[Samba] Samba memory usage - how big is it?

Martin Zielinski mz at seh.de
Thu Nov 13 13:24:46 GMT 2008


Hi Volker, all!

Yesterday I reported a memleak in the smbd on the technical mailing list 
with an attached pool-usage dump.

I still do not fully understand the talloc system nor the memcache 
functions, but as we currently have your attention on this topic :-)

samba-3.2.4 - passdb/pdb_interface.c - pdb_getsampwnam()

Quick shot from the hip:

If the memcache_add_talloc () reuses the existing record - the previous 
record (which is a pointer to talloced() data) is not being destroyed.

Nonsense, or leak?

bye,
Martin

P.S. There are several situations in the code, where the allocated samu 
structs are not destroyed in case of an error. But I'm still after it.


Volker Lendecke schrieb:
> On Thu, Nov 13, 2008 at 06:05:48PM +0700, FC Mario Patty wrote:
>> Thank you. I tried redirecting with '>' first but got not much of the log.
>> Here are the result with --log-file option. Thanx again.
> 
> Hmmmm. This does not show any memory leaks. Is this really
> smbd that is eating memory? Did you check with top? You can
> sort by memory usage by typing "Oq" in top.
> 
> Volker
> 


-- 
Martin Zielinski 			mz at seh.de		
Softwareentwicklung			T +49 (0)521 94226 76	

SEH Computertechnik GmbH 		www.seh.de



More information about the samba mailing list