From: Brian Ristuccia <bristucc@sw.starentnetworks.com>
To: Chris Mason <mason@suse.com>
Cc: Brian Ristuccia <bristucc@sw.starentnetworks.com>,
linux-kernel@vger.kernel.org
Subject: Re: kernel nfsd consuming 100% CPU on 2.4.17 and 2.4.18 with reiserfs?
Date: Tue, 26 Feb 2002 10:09:16 -0500 [thread overview]
Message-ID: <3C7BA51C.8010900@sw.starentnetworks.com> (raw)
In-Reply-To: <3C7B9212.5050400@sw.starentnetworks.com> <2305220000.1014735355@tiny>
Chris Mason wrote:
>
> On Tuesday, February 26, 2002 08:48:02 AM -0500 Brian Ristuccia
> <bristucc@sw.starentnetworks.com> wrote:
>
>
>>It seems that kernel nfsd consumes an inordinate amount of CPU time
>>during writes on this machine. With a few hundred kb/sec being written
>>over NFSv3 from a 2.2.17 client, all of the nfsd threads each consume as
>>much of the available CPU time as possible. On a similarly configured
>>machine with ext3 instead of reiserfs, nfsd consumes much less CPU time.
>>
>>Is there a known issue with NFSv3 performance and reiserfs?
>>
>
> No, it is not a known issue. Does it only happen with a 2.2.17 client, or
> can you reproduce with any kernel version on the client?
>
I can get it to happen with 2.2.19 and 2.4.4-pre3 as well.
So I'm pretty sure the NFS server is doing too much work somewhere.
If it matters, it's a SMP kernel running on a dual 1ghz pIII system with
2gb of memory. The filesystem resides on a linux kernel md RAID-5 array
with 6 10,000 rpm disks. It's my understanding that the a machine this
large should soak out the available network or disk bandwidth long
before it became CPU bound serving NFS. I also did some raw IO tests to
confirm that the md block device wasn't hogging up CPU time that was
getting accounted to the nfsd kernel threads. I can soak that array
pretty hard without soaking the CPU.
The closest machine configuration wise that I have access to is
similarly configured, only with 3 disks instead of 6 and ext3 instead of
reiserfs. Both machines were running exactly the same 2.4.17 image when
I started having this problem. I can't reproduce the problem there, even
when I do nasty things like run bonnie++ over NFS. (This isn't to say
that nfsd is free on this other machine, but I'm seeing it use on the
order of 2-4% CPU per nfsd thread with 8 threads and a load average of
between 1 and 2 vs. 20+% and a load average of 8 on the other machine).
Thanks.
--
Brian Ristuccia
prev parent reply other threads:[~2002-02-26 15:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-26 13:48 Brian Ristuccia
2002-02-26 14:55 ` Chris Mason
2002-02-26 15:09 ` Brian Ristuccia [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3C7BA51C.8010900@sw.starentnetworks.com \
--to=bristucc@sw.starentnetworks.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mason@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®