|
From: Neil Brown <neilb <at> suse.de>
Subject: Re: rpc.mountd memory leak? Newsgroups: gmane.linux.nfs Date: 2007-03-18 22:25:03 GMT (2 years, 15 weeks, 2 days, 19 hours and 44 minutes ago) On Sunday March 18, marduk <at> letterboxes.org wrote: > I am using 1.0.12 of nfs-utils (linux/x86). I have a problem in that > after a while rpc.mountd starts to eat up gobs of memory (sometimes > > 1GB) and usually I am required to stop/restart NFS services to regain > memory. I do not have many exported filesystems and very few clients > have anything mounted at a given time, so I'm not sure why it would need > as much memory so I'm guessing it's some kind of leak. Please let me > know what I can do to debug this situation. Known problem (fixed if you use debian-unstable). Apparently there is a memory leak in libblkid which mounted now uses. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=413661 There is also a smaller leak in mountd. http://linux-nfs.org/cgi-bin/gitweb.cgi?p=nfs-utils;a=commitdiff;h=08964495c2a65f6228426e4565a50dae5b75834d From: Steinar H. Gunderson <sgunderson <at> bigfoot.com> Date: Fri, 16 Mar 2007 00:26:35 +0000 (+1100) Subject: Fix memory leak in mountd. X-Git-Url: http://linux-nfs.org/cgi-bin/gitweb.cgi?p=nfs-utils;a=commitdiff;h=08964495c2a65f6228426e4565a50dae5b75834d Fix memory leak in mountd. Signed-off-by: Neil Brown <neilb <at> suse.de> --- --- a/support/export/client.c +++ b/support/export/client.c @@ -329,6 +329,7 @@ add_name(char *old, char *add) strcat(new, ","); strcat(new, cp); } + free(old); return new; } Maybe I should do a 1.0.13 which makes libblkid optional... NeilBrown ------------------------------------------------------------------------- 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 <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs |
|
|