Date: Wed, 26 Feb 2003 15:07:32 -0800 (PST) From: Julian Elischer <julian@elischer.org> To: Daxbert <daxbert_news@dweebsoft.com> Cc: Ed Alley <alley1@llnl.gov>, wea@llnl.gov, freebsd-hackers@freebsd.org Subject: Re: HOWTO track resource leaks in kernel modules? Message-ID: <Pine.BSF.4.21.0302261458040.88133-100000@InterJet.elischer.org> In-Reply-To: <1046300073.3e5d45a9a9669@ra.dweebsoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 26 Feb 2003, Daxbert wrote: > Quoting Julian Elischer <julian@elischer.org>: > > > On Wed, 26 Feb 2003, Ed Alley wrote: > > > > > > Re: Resource leaks > > > <HOWTO track resource leaks in kernel modules?> > > > > what KIND of resource leaks? > > > > I guess I asked this question of the wrong list. I'm interested in > finding dma allocs, memory allocs, and IRQ/IO allocs which occur > during a LKM's attached life. I'm adding the ability to detach > if_de and was hoping to find assistance on where to look for > resource tracking tools. For malloc (in the kernel) you can specify a separate pool for a module, so that it will account for mallocs for that module separatly. you can then look at them with vmstat -m check out sys/malloc.h and look at MALLOC_DECLARE is this for 4.x or 5.x? > > --daxbert > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0302261458040.88133-100000>