From owner-freebsd-performance@FreeBSD.ORG Tue Dec 4 12:07:24 2012 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5D23DC7C for ; Tue, 4 Dec 2012 12:07:24 +0000 (UTC) (envelope-from victor@bsdes.net) Received: from equilibrium.bsdes.net (244.Red-217-126-240.staticIP.rima-tde.net [217.126.240.244]) by mx1.freebsd.org (Postfix) with ESMTP id 07D388FC14 for ; Tue, 4 Dec 2012 12:07:22 +0000 (UTC) Received: by equilibrium.bsdes.net (Postfix, from userid 1001) id 721E639845; Tue, 4 Dec 2012 12:59:30 +0100 (CET) Date: Tue, 4 Dec 2012 12:59:30 +0100 From: Victor Balada Diaz To: freebsd-performance@freebsd.org Subject: FreeBSD NFS latency stats Message-ID: <20121204115930.GC1414@equilibrium.bsdes.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Dec 2012 12:07:24 -0000 Hello, >From time to time we're seeing that some requests take a long time to serve from our NFS servers. I've been trying to monitor NFS latency but so far i haven't found anything on FreeBSD that allows me to do this. nfsstat(1) doesn't have latency counters. gstat(8) doesn't work because nfs mounts are not devices. iostat(8) doesn't work with nfs mounts. sysctl trees vfs.nfs and vfs.nfsrv don't have anything about latency. I've found that Linux people do have an nfs-iostat tool for kernels newer than 2.6.17: http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=blob;f=tools/nfs-iostat/nfs-iostat.py;h=9626d42609b9485c7fda0c9ef69d698f9fa929fd;hb=HEAD How do you monitor NFS latency with FreeBSD client and server? Thanks a lot. Regards. -- La prueba más fehaciente de que existe vida inteligente en otros planetas, es que no han intentado contactar con nosotros.