From nobody@FreeBSD.org  Tue Jan 16 08:21:56 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 586E316A415
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Jan 2007 08:21:56 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 45DB413C455
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Jan 2007 08:21:56 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l0G8LrNS026942
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 16 Jan 2007 08:21:53 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l0G8Lr4Q026941;
	Tue, 16 Jan 2007 08:21:53 GMT
	(envelope-from nobody)
Message-Id: <200701160821.l0G8Lr4Q026941@www.freebsd.org>
Date: Tue, 16 Jan 2007 08:21:53 GMT
From: Wolfgang Hurst<whurst@whurst.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: NFS TCP read slow - write fast
X-Send-Pr-Version: www-3.0

>Number:         107975
>Category:       kern
>Synopsis:       [nfs] NFS TCP read slow - write fast
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 16 08:30:19 GMT 2007
>Closed-Date:    Tue Jan 16 19:59:09 GMT 2007
>Last-Modified:  Tue Jan 16 19:59:09 GMT 2007
>Originator:     Wolfgang Hurst
>Release:        FreeBSD 6.x
>Organization:
Tiscali
>Environment:
FreeBSD xxx.xxxx.xxx 6.2-STABLE FreeBSD 6.2-STABLE #3: Tue Jan 16 07:52:22 CET 2007     root@xxx.xxxxx.xxx:/usr/obj/usr/src/sys/XXXX  i386

>Description:

Server :
 s1 -> FreeBSD 6.2-STABLE (Intel) my private fileserver
 s2 -> FreeBSD 6.1-PRERELEASE (Dec 2006) customer fileserver

Clients :
 c1 -> Solaris 8 (latest patches) my private client
 c2 -> Linux RE4 customer client

I have problems with TCP NFS mounts. Read requests are very very very slow. On 100Mb/s network
i have approx. 300 kb/s. On Gigabit ethernet i reach only 10 Mb/s.

TCP write requests are fast with full speed of storage. on 100 Mb/s i have 90 Mb/s. On Gigabit network i have 150-200 Mb/s (storage speed)

I saw this problem once and i fix this -> change to UDP. with UDP is anything fine. fullspeed in both directions.

i googling but i found nothing about this problem. i think i'm the only one with this problem and i think -> the hardware sucks ... switching to UDP is fine -> forget it ...

BUT yesterday a customer want tcp mount with an full difference freesbd and client. and he got the same problem. tcp ist slow on read but fast on write. on a full difference equickment.

i have freebsd 5.x somewhere, on this server works anything fine. but since freebsd 6.x the nfs-tcp makes some problems.

yes you can say .> mount via udp, but this is not possible, because udp mounts uses to many kernel memory and my private server rans out of memory. the kernel sad : "ENOMEM at bla" when he try to access the SATA devices. on linux the udp nfs crashes the host. it's uncool.

i try to test many many sysctl values, but nothing helps.

i think it's not a hardware problem, maybe the em (intel ethernet) device is broken. but rsync or other tcp services runns with full speed, it's only (nfs AND tcp AND freebsd6.x AND nfs-server)

i know you have many other stuff to do, but somethink ist there very very strange. somewho should be look at this (maybe someone speak german :-)))))

>How-To-Repeat:
fresh install (server and client)
export something on freebsd 6.x nfs server
mount on client (solaris 8 or linux re4)
transfer files
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Tue Jan 16 19:59:07 UTC 2007 
State-Changed-Why:  
Mohan tested this and he got 10mb/s read output, which is much better 
then the submitter mentioned. He informed me about this as well as the 
submitter, but the email to the submitter bounces, so no luck this time, 
close the ticket. I can deliver the feedback from Mohan to someone 
interested (but i see the same behaviour in my network so i dont think 
this is a actual problem). Thanks to Mohan for the very quick reply! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107975 
>Unformatted:
