From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 07:52:10 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D95B1065670 for ; Wed, 31 Dec 2008 07:52:10 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from smtp11.ispronet.com (smtp11.ispronet.com [81.28.196.233]) by mx1.freebsd.org (Postfix) with ESMTP id C79FF8FC1D for ; Wed, 31 Dec 2008 07:52:09 +0000 (UTC) (envelope-from bernard@dugas-family.org) Received: from localhost (unknown [127.0.0.1]) by smtp11.ispronet.com (Postfix) with ESMTP id 95F81B862; Wed, 31 Dec 2008 08:52:08 +0100 (CET) Received: from smtp11.ispronet.com ([127.0.0.1]) by localhost (smtp11.ispronet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 51498-03; Wed, 31 Dec 2008 08:51:59 +0100 (CET) Received: from [192.168.1.50] (unknown [81.28.194.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp11.ispronet.com (Postfix) with ESMTP; Wed, 31 Dec 2008 08:51:59 +0100 (CET) Message-ID: <495B2516.4020904@dugas-family.org> Date: Wed, 31 Dec 2008 08:53:58 +0100 From: Bernard Dugas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7) Gecko/20040616 X-Accept-Language: fr,en MIME-Version: 1.0 To: Wojciech Puchar References: <20081216094719.EDCEE1065675@hub.freebsd.org> <495930E4.1030501@dugas-family.org> <20081229230115.F68805@wojtek.tensor.gdynia.pl> <4959DFEF.5090407@dugas-family.org> <20081230150507.U87347@wojtek.tensor.gdynia.pl> <495A3957.9050002@dugas-family.org> <495A3C72.5070802@unsane.co.uk> <20081230201351.L12391@wojtek.tensor.gdynia.pl> <495A9595.6080201@dugas-family.org> <20081231002557.D45571@wojtek.tensor.gdynia.pl> In-Reply-To: <20081231002557.D45571@wojtek.tensor.gdynia.pl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at ispronet.com Cc: freebsd-questions@freebsd.org, Vincent Hoffman Subject: Re: Optimising NFS for system files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 07:52:10 -0000 Wojciech Puchar wrote: >> nfsserver# time tar -cf - clientusr-amd64 > /dev/null >> 5.001u 12.147s 1:23.92 20.4% 69+1369k 163345+0io 0pf+0w >> >> client9# time tar -cf - /usr > /dev/null >> tar: Removing leading '/' from member names >> 3.985u 19.779s 4:32.47 8.7% 74+1457k 0+0io 0pf+0w >> >> Note : clientusr-amd64 is around 1.3GB and is the same directory >> exported to client9 /usr with nfs. >> > it's FAST. what's wrong? First thing that may be wrong is the understanding of the time figures. The documentation is not clear about them and the -h option is not working : client6# time -h tar -cf - /usr > /dev/null -h: Command not found. 0.000u 0.000s 0:00.00 0.0% 0+0k 0+0io 0pf+0w The main thing is that the 3rd figures 1:23.92 and 4:32.47 seems to be the time i wait in front of the computer while it works (ok, i know, i should enjoy a beer, or hot coffee with this nice snow ;-) : client9# date ; time tar -cf - /usr > /dev/null ; date ; Wed Dec 31 08:23:59 CET 2008 tar: Removing leading '/' from member names 4.103u 19.651s 4:25.80 8.9% 74+1453k 0+0io 2pf+0w Wed Dec 31 08:28:25 CET 2008 and 08:28:25 - 08:23:59 = 00:04:26 is very close to 4:25.80. On server, it means : 1440MB / 84s = 17MB/s On client, that becomes : 1440MB / 266s = 5.4MB/s I know the disk is not very fast, but i would like the NFS layer not to add too much... I don't want my users to wait between 3 or 4 times more because computer is using NFS. I have plenty of cpu and bandwidth available : something is slowing the process that should not... But what ? How to diagnose NFS ? Where should i look in a logical diagnosis process ? Best regards -- Bernard DUGAS Mobile +33 615 333 770