Linux NFS development
 help / color / mirror / Atom feed
* Possible causes for rpc.mountd consuming 100 percent CPU.
@ 2007-03-05  1:47 Matt Proud
  2007-03-05  2:05 ` Neil Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Matt Proud @ 2007-03-05  1:47 UTC (permalink / raw)
  To: nfs

Hello,

I am curious why rpc.mountd would be consuming 100 percent CPU on a
mail server. I have noticed this periodically, and it does not appear
to matter how overloaded the server is with respect to mail clients.

I have started rpc.mountd with debugging enabled, and so far nothing
interesting appears in the logs. NFS functions perfectly on the
client-side.

Here's a brief description of the setup:

Mail resides on the mail server locally, and it is exported to
clients. The chief way for clients to access the mail is via IMAP, but
we do export the mail for the convenience of our power-users who care
to manually grep through mail data. Mail is stored in the maildir
format. Given this context, the amount of manual access that occurs
over NFS for this mail is miniscule, so I am surprised to see this
happening.

The mail server is running Ubuntu 6.06 with kernel 2.6.15-28-amd64-k8.
NFS is version 1.0.7-3ubuntu2. The mail data is stored on a RAID1
array on a tuned ext3 filesystem. We are considering switching to
RAID10 in the near future, even though we have not experienced many
I/O bottlenecks.

When rpc.mountd acts funny, an attached strace reveals the a select
function call occurring very rapidly:

select(1024, [3 4 5 6 7 32 33 34 35 36 37 38 39 40], NULL, NULL, NULL)
= 9 (in [32 33 34 35 36 37 38 39 40])

When rpc.mountd behaves normally a periodic select statement with
fewer file descriptors is called periodically.

We currently have the following options set:

options lockd nlm_udpport=32768 nlm_tcpport=32768

/var/maildir    localhost(rw,sync,no_root_squash) \
                        @mail_clients(rw,sync) @nfs_server(rw,sync) \
                        xxxx(rw,sync) xxxxxxxx(rw,sync) \
                        xxxxxx(rw,sync,no_root_squash) xxxx.xxx.xxx.xxx(ro,sync)

Our clients have the following set:

maildir -fstype=nfs,_netdev,tcp,timeo=600,retrans=2,rsize=32768,wsize=32768,hard,intr,nosuid,nodev,noacl,rw
    mail:/var/maildir

If the kernel server is restarted, rpc.mountd behaves normally for a time.

The server is multi-core, so the consumption is not a major problem;
but the fact that it is occurring is troubling.

Best,

Matt

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-03-05  4:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-05  1:47 Possible causes for rpc.mountd consuming 100 percent CPU Matt Proud
2007-03-05  2:05 ` Neil Brown
2007-03-05  2:12   ` Matt Proud
2007-03-05  3:07     ` Neil Brown
2007-03-05  3:25       ` Neil Brown
2007-03-05  4:10         ` Neil Brown
     [not found]         ` <a6a251db0703042017l60a872f7ve93038b169a52968@mail.gmail.com>
     [not found]           ` <17899.39862.202935.678726@notabene.brown>
2007-03-05  4:32             ` Matt Proud

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox