usage of POOL_USAGE

Martin Pool mbp at samba.org
Wed Jan 2 22:20:03 GMT 2002


I've just added in some debugging facilities to Samba's talloc
pool-allocator, based on ideas from glib and Apache.  

In CVS HEAD you can now say

  # smbcontrol smbd pool-usage

and all smbd processes will report how much memory they are using in
each different allocation pool.  At the moment the results are often
not very interesting, because a lot of code still calls malloc
directly.

I hope that if code changes over to using talloc then in addition to
the simplicity talloc gives, it will also be useful to see to what
purpose memory is allocated, and whether there are any long-running
leaks. 

-- 
Martin 

The daffodils are coming. Are you?
      linux.conf.au, February 2002, Brisbane, Australia
                                --- http://www.linux.org.au/conf




More information about the samba-technical mailing list