From: Istvan Marko Subject: v3 client generates too many "access" requests Date: Mon, 09 Dec 2002 18:12:53 -0800 Sender: nfs-admin@lists.sourceforge.net Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from adsl-67-116-34-2.dsl.sntc01.pacbell.net ([67.116.34.2] helo=imarko.dhs.org) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 18LZtl-0005gx-00 for ; Mon, 09 Dec 2002 18:13:25 -0800 Received: from zsu ([192.168.2.12] helo=zsu.sush.org) by imarko.dhs.org with smtp (Exim 4.05) id 18LZtF-0007PA-00 for nfs@lists.sourceforge.net; Mon, 09 Dec 2002 18:12:53 -0800 To: nfs@lists.sourceforge.net Errors-To: nfs-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Unsubscribe: , List-Archive: Hello NFS hackers, I am working on a netbooted linux setup with / living on tmpfs and a shared /usr NFS mounted (readonly) from a Netapp server. While working on this I noticed that certain workloads ran much slower on the netbooted system than they would on a standalone one. One example is running ./configure for any package using GNU autoconf, say emacs-21.1. After some digging around I found that during the ./configure run a large number of NFS requests are generated against the server holding /usr (even though the emacs source tree lived somewhere else), about 120000 requests total. Most of these (over 100000) are "access" requests. My guess is that these are generated by cache validations when executables or libraries are accessed from /usr/bin and /usr/lib and perhaps during PATH searches as well. I switched the /usr mount to NFS v2 and this reduced the number of requests during the ./configure run to about 2000 calls total. That's 120000 for v3 vs. 2000 for v2! Here are the mount options from /proc/mounts in each case: ro,v3,rsize=8192,wsize=8192,hard,udp,nocto,nolock ro,v2,rsize=8192,wsize=8192,hard,udp,nocto,nolock I have initially tried the v3 mount without the explicit rsize/wsize=8192, same results. nocto appears to reduce the number of requests a bit when using v2 but it doesn't seem to make a difference with v3. The nolock is needed because portmap is not yet running when /usr is mounted. The netbooted client is running a vanilla 2.4.20 kernel, the server is a Netapp. There is plenty of RAM on the client, over 50MB is used for caching during the run. Why does the NFS v3 mount generate so much traffic? Mounting via v2 is an acceptable workaround for now but I would rather use v3 if it wasn't for this issue. Any clues would be greatly appreciated, -- Istvan ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs