From owner-freebsd-arch@FreeBSD.ORG Sun Aug 21 10:54:57 2005 Return-Path: X-Original-To: arch@freebsd.org Delivered-To: freebsd-arch@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFB5116A41F; Sun, 21 Aug 2005 10:54:57 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26C3543D46; Sun, 21 Aug 2005 10:54:56 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5FCB8.dip.t-dialin.net [84.165.252.184]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id j7LAm31p027505; Sun, 21 Aug 2005 12:48:14 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id j7LAsC8D017734; Sun, 21 Aug 2005 12:54:12 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Sun, 21 Aug 2005 12:54:12 +0200 From: Alexander Leidinger To: Hajimu UMEMOTO Message-ID: <20050821125412.0de6b890@Magellan.Leidinger.net> In-Reply-To: References: <20050821003536.P14178@fledge.watson.org> <20050821115454.55441a64@Magellan.Leidinger.net> X-Mailer: Sylpheed-Claws 1.9.13 (GTK+ 2.6.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new Cc: arch@freebsd.org, Robert Watson Subject: Re: [CFR] reflect resolv.conf update to running application X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Aug 2005 10:54:57 -0000 On Sun, 21 Aug 2005 19:27:07 +0900 Hajimu UMEMOTO wrote: > Hi, >=20 > >>>>> On Sun, 21 Aug 2005 11:54:54 +0200 > >>>>> Alexander Leidinger 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