cvs commit: src/sys/kern kern_linker.c
Peter Edwards
peadar at freebsd.org
Fri Apr 9 10:39:09 PDT 2004
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.
More information about the cvs-src
mailing list