From owner-freebsd-small Thu Apr 25 10: 0:13 2002 Delivered-To: freebsd-small@freebsd.org Received: from mk-smarthost-1.mail.uk.tiscali.com (mk-smarthost-1.mail.uk.tiscali.com [212.74.112.71]) by hub.freebsd.org (Postfix) with ESMTP id 0D38937B42C for ; Thu, 25 Apr 2002 10:00:02 -0700 (PDT) Received: from [212.139.129.126] (helo=bloodhound.uk.worldonline.com) by mk-smarthost-1.mail.uk.tiscali.com with esmtp (Exim 3.35 #1) id 170mao-000DHW-00; Thu, 25 Apr 2002 17:59:38 +0100 Received: from brian by bloodhound.uk.worldonline.com with local (Exim 3.22 #1) id 170mbA-0000H8-00; Thu, 25 Apr 2002 18:00:00 +0100 Date: Thu, 25 Apr 2002 18:00:00 +0100 From: Brian Candler To: Luigi Rizzo Cc: freebsd-small@FreeBSD.ORG Subject: Re: NFS root and unnecessary NFS operations Message-ID: <20020425180000.A1031@linnet.org> References: <20020425174139.A871@linnet.org> <20020425094944.A34575@iguana.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020425094944.A34575@iguana.icir.org>; from rizzo@icir.org on Thu, Apr 25, 2002 at 09:49:44AM -0700 Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Apr 25, 2002 at 09:49:44AM -0700, Luigi Rizzo wrote: > Off the top of my head, i think you might see accesses to /etc/malloc.conf > (on stock 'diskless' FreeBSD installations, at least recently, > /etc goes onto a RAMdisk so you don't see these accesses). My system has /etc in RAMdisk too. Actually it's a ramdisk on /conf/etc which is null-mounted back onto /etc, although I notice that newer distributions eliminate this by just putting a ramdisk on /etc. > using tcpdump -v -s 256 might give you a better idea on what > accesses are being attempted. Good idea, although it doesn't show much more. Running test (3) again gives # tcpdump -n -i fxp0 -s 1500 -v udp port 2049 ... 17:55:00.686348 192.168.0.91.649129623 > 192.168.0.1.2049: 104 access fh Unknown/1 003f (ttl 64, id 10087) 17:55:00.686515 192.168.0.1.2049 > 192.168.0.91.649129623: reply ok 120 access attr: REG 444 ids 0/0 sz 35124 c 0001 (ttl 64, id 41864) ... So maybe it's just checking permissions each time the file is opened? But there is supposed to be an access cache. sysctl reports: vfs.nfs.access_cache_timeout: 60 Cheers, Brian. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message