Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

NFS rpc.mountd - memory leak?

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
Oxydius
n00b
n00b
Posts: 8
Joined: Thu Jan 18, 2007 4:40 am

NFS rpc.mountd - memory leak?

  • Quote

Post by Oxydius » Wed Apr 25, 2007 5:07 pm

I have an NFS server with 512MB of RAM.
When it boots, the memory usage is around 100MB and the rest is used for caching and buffering.
However, after a few days the NFS rpc.mountd process increases its memory consumption to the point where the RAM doesn't cache anything anymore. rpc.mountd consumes over 50% of the RAM and causes memory to be swapped. After a week, I had over 1GB of swap and rpc.mountd's virtual memory usage keeps growing. Restarting the nfs daemon once in a while fixes it before the kernel runs out of memory and the whole box crashes, but this really looks like a leak. My memory usage for the last month looks like a toothsaw with weekly peaks over 1.5GB.

Here are the options I use :
(/etc/export) /usr/portage 192.168.0.0/16(rw,sync,no_root_squash,no_subtree_check)
(/etc/fstab) server:/usr/portage /usr/portage nfs async,soft,intr,rw,lock,rsize=8192,wsize=8192 0 0

Did anyone else experience that?
I tried both nfs-utils-1.0.10 and nfs-utils-1.0.12-r3. Apparently, a leak was fixed between nfs-utils-1.0.12 and nfs-utils-1.0.12-r3 but it might be a different one.
Top
RiBBiT
Apprentice
Apprentice
User avatar
Posts: 215
Joined: Wed May 18, 2005 7:16 am
Location: Sweden

  • Quote

Post by RiBBiT » Wed Apr 25, 2007 11:54 pm

I haven't noticed anything out of the ordinary, although my NFS server rarely is on for more than 24 hours in a row. Current RAM usage for rpc.mountd is about 3 MB after an uptime of 8 hours. I have nfs-utils 1.0.12.
Comix - GTK Comic Book Viewer [ http://comix.sourceforge.net ]
Top
Oxydius
n00b
n00b
Posts: 8
Joined: Thu Jan 18, 2007 4:40 am

  • Quote

Post by Oxydius » Thu Apr 26, 2007 3:43 am

I guess I'll submit a bug. :o

Last month
Last day
Top
jjlawren
n00b
n00b
Posts: 36
Joined: Mon Feb 06, 2006 3:20 pm

  • Quote

Post by jjlawren » Mon Apr 30, 2007 10:03 pm

I've seen the same thing, running 2.6.19-r7 and nfs-utils-1.0.12-r3.
Top
RAPHEAD
Tux's lil' helper
Tux's lil' helper
Posts: 134
Joined: Fri Jun 20, 2003 5:45 am
Location: Germany

  • Quote

Post by RAPHEAD » Tue May 01, 2007 9:43 am

I Successfully using NFS4 with uptimes for days and several clients and it
odes not show such behaviour. Kernel 2.6.20
Top
dspgen
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 103
Joined: Wed Aug 17, 2005 4:54 pm

  • Quote

Post by dspgen » Sun May 06, 2007 4:14 pm

system was very sluggish, and /usr/sbin/rpc.mountd was using 3G of virtual on system with 2G ram.
did /etc/init.d/nfs restart and all is well.
uname -a
Linux blue 2.6.21-gentoo #1 Mon Apr 30 06:20:30 EDT 2007 i686 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux
Top
RAPHEAD
Tux's lil' helper
Tux's lil' helper
Posts: 134
Joined: Fri Jun 20, 2003 5:45 am
Location: Germany

  • Quote

Post by RAPHEAD » Sun May 06, 2007 4:27 pm

Very strange, I suggest you report bugs regarding NFS4 to these people:

http://bugzilla.linux-nfs.org/


Here you can see some stats of my server:

dbserver1 ~ # uptime
18:21:19 up 8 days, 14:18, 5 users, load average: 2.91, 2.15, 1.69


USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 5649 0.0 0.0 0 0 ? S< Apr28 0:00 [nfsd4]
root 5650 0.0 0.0 0 0 ? S Apr28 7:22 [nfsd]
root 5651 0.0 0.0 0 0 ? S Apr28 8:49 [nfsd]
root 5652 0.0 0.0 0 0 ? S Apr28 8:21 [nfsd]
root 5653 0.0 0.0 0 0 ? S Apr28 9:33 [nfsd]
root 5654 0.0 0.0 0 0 ? S Apr28 9:39 [nfsd]
root 5655 0.0 0.0 0 0 ? S Apr28 9:00 [nfsd]
root 5656 0.0 0.0 0 0 ? S Apr28 8:09 [nfsd]
root 5657 0.0 0.0 0 0 ? S Apr28 7:28 [nfsd]
root 23301 0.0 0.0 1696 620 pts/8 S+ 18:24 0:00 grep --colour=auto nfs
root 24585 0.0 0.0 0 0 ? S Apr28 0:00 [nfsv4-svc]


as you can see, it has almost no CPU and memory consumption
Top
veal
n00b
n00b
Posts: 47
Joined: Thu May 08, 2003 5:42 pm

  • Quote

Post by veal » Thu May 10, 2007 1:53 pm

same here, i had several out_of_memory reports in dmesg running 2.6.18-gentoo-r3 and nfs-utils-1.0.12 (used 37% of memory and swap was full, restart fixed it)

i upgraded nfs-utils at the following dates:
Wed Apr 6 13:01:29 2005 >>> net-fs/nfs-utils-1.0.6-r6
Mon Feb 26 16:49:12 2007 >>> net-fs/nfs-utils-1.0.10
Wed Mar 28 14:51:59 2007 >>> net-fs/nfs-utils-1.0.12

my uptime was 11days till yesterday when the out_of_memory exception occurred.
so 1.0.12 run previously for ~30days w/o any noticeable problems (i use nfs quite intensively having mp3/movies on my server)


will update now to nfs-utils-0.1.12-r3

in the nfs-utils-1.0.12-r1 changelog there seems to be a memleak fixed but seems there is still a problem? guess i will upgrade the kernel aswell if the problem persists
Top
dspgen
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 103
Joined: Wed Aug 17, 2005 4:54 pm

  • Quote

Post by dspgen » Thu May 17, 2007 12:09 am

I just upgraded from net-fs/nfs-utils-1.0.12 to net-fs/nfs-utils-1.1.0 (on both server and client), and it looks like it is fixed.

previously, rpc.mountd rss was 165312 after client had mounted 12 shares, then it jumped to 291680 when I shutdown the client - and it was slowly going up.

with the new version, it started at 708, then 740 after mounting 12 shares, then 748 after rebooting and remounting client. Maybe still leaking, but much slower. Anyway, I am now logging it every minute, and will post anything useful I find.
Top
Post Reply

9 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic