From: "Kottaridis, Chris" Subject: Re: Rpc.mountd growing 6 MB/day Date: Mon, 30 Apr 2007 14:27:35 -0700 Message-ID: <37B62E0F71C9E14B9859FADB1FC3E3E133E570@ala-mail02.corp.ad.wrs.com> References: <17974.23920.40070.101936@notabene.brown> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: nfs@lists.sourceforge.net To: "Neil Brown" Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1HidPJ-0004QN-BE for nfs@lists.sourceforge.net; Mon, 30 Apr 2007 14:27:41 -0700 Received: from mail.windriver.com ([147.11.1.11] helo=mail.wrs.com) by mail.sourceforge.net with esmtp (Exim 4.44) id 1HidPK-0004yr-M3 for nfs@lists.sourceforge.net; Mon, 30 Apr 2007 14:27:44 -0700 In-Reply-To: <17974.23920.40070.101936@notabene.brown> List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net I'll give it a try, but time on the machine can be a problem to get so it may take a while to actually try it. I'll let you know how it goes Thanks Chris Kottaridis Senior Engineer Wind River Systems 719-522-9786 -----Original Message----- From: Neil Brown [mailto:neilb@suse.de] Sent: Monday, April 30, 2007 3:20 PM To: Kottaridis, Chris Cc: nfs@lists.sourceforge.net Subject: Re: [NFS] Rpc.mountd growing 6 MB/day On Monday April 30, chris.kottaridis@windriver.com wrote: > 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. > ... > > I am using the kernel NFSD, the kernel version is 2.6.10, the > nfs-utils version is nfs-utils-1.0.7 Can you try this patch - unless you are using rpcsec/gss, it is the only known leak likely to affect that version. If that doesn't help you might need to try valgrind or similar. NeilBrown commit 08964495c2a65f6228426e4565a50dae5b75834d Author: Steinar H. Gunderson Date: Fri Mar 16 11:26:35 2007 +1100 Fix memory leak in mountd. Signed-off-by: Neil Brown diff --git a/support/export/client.c b/support/export/client.c index 33dfdb0..686c744 100644 --- 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; } ------------------------------------------------------------------------- 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/ _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs