From owner-freebsd-questions@FreeBSD.ORG Mon Apr 27 10:14:37 2009 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 BD5B31065670 for ; Mon, 27 Apr 2009 10:14:37 +0000 (UTC) (envelope-from j.catrysse@proximedia.be) Received: from mail.proxirepair.be (mail.proxirepair.be [194.88.104.226]) by mx1.freebsd.org (Postfix) with ESMTP id 7F92D8FC18 for ; Mon, 27 Apr 2009 10:14:37 +0000 (UTC) (envelope-from j.catrysse@proximedia.be) Received: from 213-84-208-229.adsl.xs4all.nl ([213.84.208.229] helo=TEC22) by mail.proxirepair.be with esmtpa (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LyNyN-000OSy-Jd; Mon, 27 Apr 2009 12:22:06 +0200 From: "Jan Catrysse" To: References: <00cf01c9c501$5113a190$f33ae4b0$@catrysse@proximedia.be> In-Reply-To: <00cf01c9c501$5113a190$f33ae4b0$@catrysse@proximedia.be> Date: Mon, 27 Apr 2009 12:14:18 +0200 Organization: Proximedia Message-ID: <009d01c9c720$eefd0510$ccf70f30$@Catrysse@proximedia.be> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcnFAVBSVsUVJJVZQH2yxrHr6vxM3gAu05ZA Content-Language: nl-be Cc: ivoras@freebsd.org Subject: RE: NFS slow 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: Mon, 27 Apr 2009 10:14:38 -0000 >Jan Catrysse wrote: >> Hello all, >> >> I am having some problems with NFS and slow performance. >> This is the scenario: >> >> 2x FreeBSD 7.1. (Raid storage server, MP, the works) >> >> GB Lan interface between them. >> >> When I transfer 1 big file the speed is never higher than 10MB/s with a peak >> to 14MB/s. >> >> When I transfer multiple files at the same time speed is about 10MB/s per >> thread. >> Disk speed > 100MB/s >> >> Network speed using samba > 60MB/s (limited by clients disk speed) >> >> Tried enabling NFSlockd, NFSstatd but that changes nothing. >> >> Any help or hunch would be greatly appreciated. > >Here are some ideas for testing: > >* Any firewall in between them? Do you have network errors? >* Any other network problems, like DNS lookup failures? (not that it >should matter for sustained tranfers but still...) >* Are you using TCP or UDP for NFS? TCP should be better in all cases. >* Have you monitored the system with "top"? Try hitting "S" and "H" in >top while transfering files, see if anything looks suspicious. >* Run "iostat 1", check tps and KB/t. >* What file system are you using? Hello Ivoras, NFS TCP did the trick. I tried it already but I didn't properly dismount the volumes before remounting them on TCP. I did a mount -u -a instead. Using netstat it became clear NFS was still using UDP. A umount and mount -a did the trick! Thnx! Jan