On Mon, May 3, 2010 at 11:07 PM, Yun Zhou <[email protected]> wrote:

> Can you please preload libumem to diagnose the memory leak problem? I think
> the below should do the trick:
>
> # svcadm disable svc:/network/datalink-management:default
> # export LD_PRELOAD=libumem.so
> # export UMEM_DEBUG=default
> # /sbin/dlmgmtd -d 10 &
> # mdb -p `pgrep dlmgmtd`
> > ::findleaks
>

# LD_PRELOAD=libumem.so UMEM_DEBUG=default /sbin/dlmgmtd -d 10

# while [ 1 ]; do dladm show-ether; dladm show-phys; dladm show-link; dladm
show-aggr; sleep 1; done

It iterated 100 times and then I fired up mdb (which had the effect of
making dladm wait):

# mdb -p 13859
Loading modules: [ ld.so.1 libumem.so.1 libavl.so.1 ]
> ::findleaks
findleaks: no memory leaks detected

-- 
Giovanni
<http://sysdroid.com>
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to