Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Apr 2004 18:39:03 +0100
From:      Peter Edwards <peadar@freebsd.org>
To:        Nate Lawson <nate@root.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern kern_linker.c
Message-ID:  <4076DFB7.8040508@freebsd.org>
In-Reply-To: <20040409102528.C48723@root.org>
References:  <20040409152753.148A716A500@hub.freebsd.org> <20040409102528.C48723@root.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Nate,

Nate Lawson wrote:

>On Fri, 9 Apr 2004, Peter Edwards wrote:
>  
>
>>peadar      2004/04/09 08:27:38 PDT
>>
>>  FreeBSD src repository
>>
>>  Modified files:
>>    sys/kern             kern_linker.c
>>  Log:
>>  Plug minor memory leak of module_t structures when unloading a file
>>  from the kernel.
>>
>>  Reviewed By: Doug Rabson (dfr@)
>>
>>  Revision  Changes    Path
>>  1.110     +3 -1      src/sys/kern/kern_linker.c
>>    
>>
>
>Excellent!  In stress testing some attach/detach routines with
>load/unload, I noticed memory allocation slowly increasing but couldn't
>find a problem with my driver.  Are there any other observable leaks?
>
>-Nate
>
>  
>
As far as I can tell, that was the only leak. I was updating NFS 
client/server to allow safe loads/unloads, and with the patch, 2 minutes 
running this:

> while true
> do
>     kldload nfsclient
>     kldunload nfsclient
> done


made no noticable difference to the wired memory reported in top, or any 
of the "InUse" counts from vmstat -m.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4076DFB7.8040508>