From nobody@FreeBSD.org  Wed Oct 13 08:53:41 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3DEDC16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 13 Oct 2004 08:53:41 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0E11B43D45
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 13 Oct 2004 08:53:41 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i9D8reZf070804
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 13 Oct 2004 08:53:40 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i9D8reKB070803;
	Wed, 13 Oct 2004 08:53:40 GMT
	(envelope-from nobody)
Message-Id: <200410130853.i9D8reKB070803@www.freebsd.org>
Date: Wed, 13 Oct 2004 08:53:40 GMT
From: bob frazier <bobf@mrp3.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: NFS copy of large file crash/hangs 5.2.1 while running Xorg/gnome2
X-Send-Pr-Version: www-2.3

>Number:         72630
>Category:       kern
>Synopsis:       [nfs] [hang] NFS copy of large file crash/hangs 5.2.1 while running Xorg/gnome2
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 13 09:00:38 GMT 2004
>Closed-Date:    Mon Dec 25 11:28:29 GMT 2006
>Last-Modified:  Mon Dec 25 11:28:29 GMT 2006
>Originator:     bob frazier
>Release:        5.2.1-RELEASE-p9
>Organization:
SFT Inc.
>Environment:
FreeBSD beater.SFT.local 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #0:
Sat Aug 28 13:40:02 PDT 2004 root@beater.SFT.local:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Copying large file via NFS share (approximately 770Mb) causes the total
number of buffers to slowly increase until it results in a system hang.
I have observed this on multiple occasions, once while runnning systat
-vmstat.  When large files are copied TO the machine via NFS, it seems
that the network speed is faster than the drive speed, and buffers are
filled up but not written to disk.  When the number of 'dirty' buffers
gets to a certain point (not sure exactly where) the system will 'hang'.
I have only observed this while Xorg with gnome2/sawfish (latest ports
as of a week ago) is running at the same time.      

>How-To-Repeat:
Create NFS share.  In this case it's on drive /dev/ad2s0d on a system
with 2 hard drives (/ /var /usr all mount from /dev/ad0xxx).  Run Xorg
(assuming it doesn't crash on startup, different problem, worth
mentioning) with gnome2, open up a few applications (xchat, mozilla,
mozilla mail, xterm sessions).

On a separate FreeBSD machine (same OS, different hardware) mount the
NFS share and attempt to copy an 800Mb file to the first machine via
the NFS share.

Observe the number of buffers from a console running systat -vmstat
More often than not it will crash/hang the system to the point where
it's non-responsive.

>Fix:
I attempted to remedy the situation by a) booting single user, b) fsck'ing
all of the drives, c) adding the line kern.maxbcache="32MB" to
/boot/loader.conf, and d) rebooting the system into multi-user, allowing
the other machine's copy process (which was in a hang/unkillable state
again) to terminate properly, unmounting and remounting the NFS share, and
then attempting the copy again but with Xorg/gnome2/sawfish NOT running.
The file copied correctly, without any problems.  I have not tried to
reproduce this with Xorg/gnome2/sawfish running, however.

>Release-Note:
>Audit-Trail:

From: Kris Kennaway <kris@obsecurity.org>
To: bob frazier <bobf@mrp3.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/72630: NFS copy of large file crash/hangs 5.2.1 while running Xorg/gnome2
Date: Wed, 13 Oct 2004 16:33:49 -0700

 --A6N2fC+uXW/VQSAv
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Wed, Oct 13, 2004 at 08:53:40AM +0000, bob frazier wrote:
 
 > FreeBSD beater.SFT.local 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #0:
 
 Please retry with 5.3 and let us know if the bug persists.
 
 Kris
 
 --A6N2fC+uXW/VQSAv
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (FreeBSD)
 
 iD8DBQFBbbtdWry0BWjoQKURAhpXAJ40n6evV3ML2k9UkkhypZC+hTUf1QCfdDYq
 m8o4NlcRLA7wIbhn9Pxm2Nc=
 =fGD3
 -----END PGP SIGNATURE-----
 
 --A6N2fC+uXW/VQSAv--
State-Changed-From-To: open->closed 
State-Changed-By: cel 
State-Changed-When: Fri May 12 18:57:06 UTC 2006 
State-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=72630 
State-Changed-From-To: closed->open 
State-Changed-By: cel 
State-Changed-When: Sat May 13 12:17:53 UTC 2006 
State-Changed-Why:  
Reopened.  Will wait to hear from submitter if this is fixed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72630 
State-Changed-From-To: open->feedback 
State-Changed-By: cel 
State-Changed-When: Sat May 13 12:22:39 UTC 2006 
State-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=72630 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Mon Dec 25 11:28:24 UTC 2006 
State-Changed-Why:  
feedback timeout. 

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