2008-09-30 12:25:59

by Trond Myklebust

[permalink] [raw]
Subject: Re: lockd using up 60% CPU and won't let go

On Mon, 2008-09-29 at 20:18 -0400, Just Marc wrote:
> Hi,
> > It's basically just a userspace NFS server, right?
> Correct.
> > Could you work around the problem by mounting with -onolock?
> That doesn't seem to help.
> >You might try running wireshark on the "lo" interface and seeing
> whether there's any NLM traffic from lockd.
> You guessed right. There's a 12 megabytes per second of NLM traffic on lo.
> unlock call requests and unlock replies saying permission denied, looks
> like it just repeats forever in a tight loop.

As Bruce said, you need to mount with -onolock. Please unmount _all_
your cfs partitions, then mount them again with -onolock.

Note that -oremount,nolock will not work and for some kernels, mounting
while you have the same cfs partition mounted somewhere else will cause
the kernel to use the 'old' mount options.
See /proc/mounts to find out which mount options the kernel is actually