Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Aug 2005 12:54:12 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Hajimu UMEMOTO <ume@freebsd.org>
Cc:        arch@freebsd.org, Robert Watson <rwatson@freebsd.org>
Subject:   Re: [CFR] reflect resolv.conf update to running application
Message-ID:  <20050821125412.0de6b890@Magellan.Leidinger.net>
In-Reply-To: <yge8xyvy490.wl%ume@mahoroba.org>
References:  <ygefyt4yiaz.wl%ume@mahoroba.org> <20050821003536.P14178@fledge.watson.org> <20050821115454.55441a64@Magellan.Leidinger.net> <yge8xyvy490.wl%ume@mahoroba.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 21 Aug 2005 19:27:07 +0900
Hajimu UMEMOTO <ume@freebsd.org> wrote:

> Hi,
>=20
> >>>>> On Sun, 21 Aug 2005 11:54:54 +0200
> >>>>> Alexander Leidinger <Alexander@Leidinger.net> said:
>=20
> Alexander> Can kqueue be used instead of polling?
>=20
> It may be able to use kqueue.  However, I'm not sure how kevent() is
> cheap than stat().  It requires holding a file descriptor for

=46rom a high level perspective (I don't know the code), kevent() only
has to lookup an event in a queue (if the file hasn't changed, which is
the typical case), while stat() has to go through the VFS subsystem
until it reaches the cache (or the disk).

Bye,
Alexander.

--=20

http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint =3D C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050821125412.0de6b890>