Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Mar 2004 11:26:52 -0800 (PST)
From:      Doug White <dwhite@gumbysoft.com>
To:        Chris Shenton <chris@shenton.org>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: 5.2 "ls -l /" hangs; ^C and kill -9 no help; NFS? 5.1 is OK
Message-ID:  <20040304112306.E21028@carver.gumbysoft.com>
In-Reply-To: <86k720bqbt.fsf@PECTOPAH.shenton.org>
References:  <86k720bqbt.fsf@PECTOPAH.shenton.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 4 Mar 2004, Chris Shenton wrote:

> Current and new kernel from last week:
>
>   FreeBSD PECTOPAH.shenton.org 5.2-CURRENT FreeBSD 5.2-CURRENT #18: Thu Feb 26 09:24:28 EST 2004     chris@PECTOPAH.shenton.org:/usr/obj/usr/src/sys/PECTOPAH  i386
>
> When emacs does or I do in a shell an "ls /" it hangs. Neither ^C nor
> ^Z help, and root using "kill -9" has no effect on the hung processes:

'ps axlwww' is generally more useful in these cases since it shows the
wchan -- what the processs is blocking in.

> chris 69584  0.0  0.1 1492  912  p7- D   9:40AM 0:00.01 /bin/ls -al -- /.
>
> A truss suggests it might be hanging on the NFS mount I have on an old
> NetApp.  It does NOT hang with simple "ls /netapphome" but does if I
> use "ls -l /netapphome".  I had hooked up the NetApp last week but had
> some problems, so I left the mounts in place.  But it looks like some
> "ls" I did on those mounts last week are still stuck (Thu11AM above
> must be from last week because it's 10am Thursday now).

Unless you mounted the NFS volume soft for interruptible (intr), these are
stuck permanently.  Welcome to the joys of NFS. :)

If you're seeing this on new mounts, I strongly sugget getting a network
capture and viewing it with ethereal. Its quite good at decoding the RPC
calls and can shed some light on the situation.  You can use tcpdump's
save capability to view the capture on another box if you don't run X off
this machine.

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite@gumbysoft.com          |  www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040304112306.E21028>