From owner-freebsd-bugs@FreeBSD.ORG Wed Oct 13 09:00:39 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84EE016A4CF for ; Wed, 13 Oct 2004 09:00:39 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67DBE43D54 for ; Wed, 13 Oct 2004 09:00:39 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i9D90dVw074013 for ; Wed, 13 Oct 2004 09:00:39 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i9D90dcS074000; Wed, 13 Oct 2004 09:00:39 GMT (envelope-from gnats) Resent-Date: Wed, 13 Oct 2004 09:00:39 GMT Resent-Message-Id: <200410130900.i9D90dcS074000@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, bob frazier Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DEDC16A4CE for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: kern/72630: NFS copy of large file crash/hangs 5.2.1 while running Xorg/gnome2 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2004 09:00:39 -0000 >Number: 72630 >Category: kern >Synopsis: NFS copy of large file crash/hangs 5.2.1 while running Xorg/gnome2 >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 13 09:00:38 GMT 2004 >Closed-Date: >Last-Modified: >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: >Unformatted: