All of lore.kernel.org
 help / color / mirror / Atom feed
* Rpc.mountd growing 6 MB/day
@ 2007-04-30 17:41 Kottaridis, Chris
  2007-04-30 17:47 ` Gabriel Barazer
  2007-04-30 21:19 ` Neil Brown
  0 siblings, 2 replies; 12+ messages in thread
From: Kottaridis, Chris @ 2007-04-30 17:41 UTC (permalink / raw)
  To: nfs


[-- Attachment #1.1: Type: text/plain, Size: 3858 bytes --]

I have a situation where rpc.mountd is growing continuously and I am not
sure if it's a memory leak or expected behavior that can be controlled
with some configuration option.
 
Top is used to watch rpc.mountd over time and I can see Virtual size
continually growing. In this environment there is no swap space so RSS
is growing also. When RSS gets close to Virtual size,  Virtual size
jumps up by 128K until RSS again "catches up" to VIRTUAL which then
jumps up by 128K again:
 
 
                              VIRT  RES
9951 root      16   0  1812 1052  668 S  0.0  0.0   0:20.07 rpc.mountd
--nfs-version 2 --nfs-version 3
 9951 root      16   0  1812 1052  668 S  0.0  0.0   0:20.19 rpc.mountd
--nfs-version 2 --nfs-version 3
 9951 root      15   0  1812 1052  668 S  0.0  0.0   0:20.44 rpc.mountd
--nfs-version 2 --nfs-version 3
 9951 root      15   0  1940 1056  668 S  0.0  0.0   0:20.57 rpc.mountd
--nfs-version 2 --nfs-version 3
 9951 root      16   0  1940 1056  668 S  0.0  0.0   0:20.69 rpc.mountd
--nfs-version 2 --nfs-version 3
 9951 root      16   0  1940 1056  668 S  0.0  0.0   0:20.70 rpc.mountd
--nfs-version 2 --nfs-version 3
 
RES keeps incrementing every so often and eventually:
 
                               VIRT RES
 9951 root      16   0  1940 1180  668 S  0.0  0.0   0:38.85 rpc.mountd
--nfs-version 2 --nfs-version 3
 9951 root      16   0  1940 1180  668 S  0.0  0.0   0:38.99 rpc.mountd
--nfs-version 2 --nfs-version 3
 9951 root      16   0  2068 1184  668 S  0.0  0.0   0:39.14 rpc.mountd
--nfs-version 2 --nfs-version 3
 9951 root      16   0  2068 1184  668 S  0.0  0.0   0:39.33 rpc.mountd
--nfs-version 2 --nfs-version 3
 
This pattern continues.
 
I added some xlog() statements in rpc.mountd to try and show me if there
were some malloc's without free's. I didn't see anything, but here are
the routines that seemed to get called frequently:
 
Apr 26 18:55:13 unit0 mountd[24268]: auth_unix_ip client alloced
0x80695e0
Apr 26 18:55:13 unit0 mountd[24268]: auth_unix_ip client freed 0x80695e0
Apr 26 18:55:13 unit0 mountd[24268]: nfsd_export alocated dom 0x80695e0 
Apr 26 18:55:13 unit0 mountd[24268]: nfsd_export alocated path 0x80695f0

Apr 26 18:55:13 unit0 mountd[24268]: nfsd_export : free dom 0x80695e0
Apr 26 18:55:13 unit0 mountd[24268]: nfsd_export : free path 0x80695f0
Apr 26 18:55:13 unit0 mountd[24268]: nfsd_fh : dom allocated 0x8069600
Apr 26 18:55:13 unit0 mountd[24268]: nfsd_fh : freed dom 0x8069600
Apr 26 19:10:33 unit0 mountd[24268]: auth_unix_ip client alloced
0x8069618
Apr 26 19:10:33 unit0 mountd[24268]: auth_unix_ip client freed 0x8069618
Apr 26 19:10:33 unit0 mountd[24268]: nfsd_export alocated dom 0x8069618 
Apr 26 19:10:33 unit0 mountd[24268]: nfsd_export alocated path 0x8069628

Apr 26 19:10:33 unit0 mountd[24268]: nfsd_export : free dom 0x8069618
Apr 26 19:10:33 unit0 mountd[24268]: nfsd_export : free path 0x8069628
Apr 26 19:10:33 unit0 mountd[24268]: nfsd_fh : dom allocated 0x8069638
Apr 26 19:10:33 unit0 mountd[24268]: nfsd_fh : freed dom 0x8069638
 
It seems to be these three routines that get called over and over, at
least so far that I have added xlog()'s to. These seem to be making some
interactions with the kernel nfsd via /proc, but I am not real sure how
that would impact rpc.mountd's virtual size.
 
I am using the kernel NFSD, the kernel version is 2.6.10, the nfs-utils
version is nfs-utils-1.0.7
 
I don't know if this growth is expected or if it will eventually stop,
over a period of days it has not stopped growing, and if there may be
some configuration option that can control it.
 
Has anyone seen this behavior before ?
 
Is it expected and controllable or is there a memory leak here ?
 
Thanks
 
Chris Kottaridis
Senior Engineer
Wind River Systems
719-522-9786
 

[-- Attachment #1.2: Type: text/html, Size: 8503 bytes --]

[-- Attachment #2: Type: text/plain, Size: 286 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

[-- Attachment #3: Type: text/plain, Size: 140 bytes --]

_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

end of thread, other threads:[~2007-05-02 11:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-30 17:41 Rpc.mountd growing 6 MB/day Kottaridis, Chris
2007-04-30 17:47 ` Gabriel Barazer
2007-04-30 20:06   ` Kottaridis, Chris
2007-04-30 21:24   ` Neil Brown
2007-04-30 22:19     ` Gabriel Barazer
2007-05-01  3:47       ` Neil Brown
2007-05-02  9:20         ` Gabriel Barazer
2007-05-02 11:30           ` Neil Brown
2007-04-30 22:49     ` Gabriel Barazer
2007-05-01  3:49       ` Neil Brown
2007-04-30 21:19 ` Neil Brown
2007-04-30 21:27   ` Kottaridis, Chris

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.