Date: Thu, 27 Feb 2003 06:44:41 -0800 From: Terry Lambert <tlambert2@mindspring.com> To: Daxbert <daxbert_news@dweebsoft.com> Cc: Julian Elischer <julian@elischer.org>, Ed Alley <alley1@llnl.gov>, wea@llnl.gov, freebsd-hackers@freebsd.org Subject: Re: HOWTO track resource leaks in kernel modules? Message-ID: <3E5E2459.689F4E9D@mindspring.com> References: <1046300073.3e5d45a9a9669@ra.dweebsoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. There are significant changes in the allocator memory architecture, which you would need to address in order to find the necessary statistics. The code you would examine to see what you need to look at these days would be whatever the most recent version of "vmstat -m" does in order to get its information. With that knowledge in hand, please see: http://www.freebsd.org/~terry/testset.txt http://www.freebsd.org/~terry/testset.tar.gz.uu which is a set of test code that allows you to exercise kernel code paths, and which will flag memory allocation leaks for you. -- Terry 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?3E5E2459.689F4E9D>