From owner-freebsd-questions@FreeBSD.ORG Thu Jul 11 08:32:27 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B04B4220 for ; Thu, 11 Jul 2013 08:32:27 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) by mx1.freebsd.org (Postfix) with ESMTP id 4A15C1AAB for ; Thu, 11 Jul 2013 08:32:26 +0000 (UTC) Received: from [192.168.1.35] (mux.fjl.org.uk [62.3.120.246]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id r6B8WOWO063724 (version=TLSv1/SSLv3 cipher=DHE-DSS-CAMELLIA256-SHA bits=256 verify=NO) for ; Thu, 11 Jul 2013 09:32:25 +0100 (BST) (envelope-from frank2@fjl.co.uk) Message-ID: <51DE6D86.5010302@fjl.co.uk> Date: Thu, 11 Jul 2013 09:32:06 +0100 From: Frank Leonhardt User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: How to get file from nfs id References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jul 2013 08:32:27 -0000 On 11/07/2013 06:47, Radek Krejc(a wrote: > Hello, > > I have problem with heavy load of my nfsd server. There is connected about 70 diskless machines, but in readonly mode. I catched traffic and get this: > > 21:00:39.715337 IP diskless-1.3297435097 > storage.nfs: 112 getattr fh > Unknown/A27801CEDE115FA30A005CD9080000007ABA42000000000000000000570CDB51 > 21:00:39.716229 IP storage.nfs > diskless-1.3297435097: reply ok 112 > getattr REG 444 ids 0/0 sz 64944 > 21:00:39.716463 IP diskless-1.3297435098 > storage.nfs: 112 getattr fh > Unknown/A27801CEDE115FA30A0043DE080000007CBA42000000000000000000570CDB51 > 21:00:39.719112 IP storage.nfs > diskless-1.3297435098: reply ok 112 > getattr REG 444 ids 0/0 sz 82800 > 21:00:39.719453 IP diskless-1.3297435099 > storage.nfs: 112 getattr fh > Unknown/A27801CEDE115FA30A0043DE080000007CBA42000000000000000000570CDB51 > 21:00:39.721636 IP storage.nfs > diskless-1.3297435099: reply ok 112 > getattr REG 444 ids 0/0 sz 82800 > > Why is the same machine requesting chmod of the same file and is there any way to find out name of file from this long id? > > Thank you > Radek > > Sorry - I don't think there's an easy answer to this but someone who knows more about nfsd may be along soon. However, if no better idea turns up you could try using dtrace to monitor the underlying calls (or hack nfsd?). I have thought about doing this myself, but it is only available in new FreeBSD releases and the DTrace user guide (from Sun) is 60 pages long and gives me a headache. I know Linux people do something similar using SystemTap. Is the attribute caching on the client set correctly? Or even working (bug?) BTW, what you're seeing isn't unusual. Regards, Frank.