From owner-freebsd-arch@FreeBSD.ORG Sun Aug 21 12:19:47 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 B518216A41F; Sun, 21 Aug 2005 12:19:47 +0000 (GMT) (envelope-from randy@psg.com) Received: from rip.psg.com (rip.psg.com [147.28.0.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C15943D53; Sun, 21 Aug 2005 12:19:47 +0000 (GMT) (envelope-from randy@psg.com) Received: from localhost ([127.0.0.1] helo=roam.psg.com) by rip.psg.com with esmtp (Exim 4.51 (FreeBSD)) id 1E6oni-000FDX-Sv; Sun, 21 Aug 2005 12:19:46 +0000 Received: from [127.0.0.1] (helo=roam.psg.com.psg.com) by roam.psg.com with esmtp (Exim 4.52 (FreeBSD)) id 1E6oni-000Dpz-GX; Sun, 21 Aug 2005 02:19:46 -1000 From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17160.29026.1724.73259@roam.psg.com> Date: Sun, 21 Aug 2005 12:19:46 +0000 To: Robert Watson References: <20050821003536.P14178@fledge.watson.org> Cc: arch@FreeBSD.org 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 12:19:47 -0000 > (1) Has anyone characterized the significant of the cost of doing a stat() > for every DNS lookup for a significant workload? Does it matter? > Most performance-critical network paths don't do name lookups in order > to prevent indefinite stalls in lookup, but doing, say, 1,000 > additional stats a second is not a small issue. are you gonna be doing all that many of them, given that the dns queries over the net will not be blindingly fast to say the least? > (2) By reading the configuration file more frequently and more quickly > after a change, we increase the chances of a race condition in which > the resolve reads a partially written resolv.conf file during an > update. Does this happen in practice? I've always been very leery of > re-reading configuration files automatically based on a time-stamp, as > updates to files are not atomic at all. hmmmmm dunno about others' use patterns, but in my world, resolv.conf only changes when my mobile platform moves layer three binding (i.e. not an an 802.11 access point move). so the frequency is low, and it is usually not issuing dns queries as i move. but when i get to the new binding, i am annoyed if i have to whack the resolver. randy