Re: Kernel Leak Detection
Re: Kernel Leak Detection
- Subject: Re: Kernel Leak Detection
- From: Brian Bechtel <email@hidden>
- Date: Tue, 30 Jun 2009 18:36:42 -0700
On Tue, Jun 30, 2009 at 2:15 PM, Duane Murphy<email@hidden> wrote:
> I was wondering if anyone could suggest tools and techniques for
> locating memory leaks in the kexts?
http://developer.apple.com/documentation/DeviceDrivers/Conceptual/WritingDeviceDriver/DeployingDrivers/DeployingDrivers.html
has some good ideas.
In 10.5.7:
if you have a particular zone which is leaking, set the boot-args
nvram variable with zlog={zone_name} and reboot, e.g. if the
kalloc.512 zone is leaking, try
sudo nvram boot-args="debug=0x144 zlog=kalloc.512"
reboot, then reproduce. Use a second mac to attach, and use the
findoldest, countpcs, and zstack macros to find the code which is
leaking. See http://www.opensource.apple.com/source/xnu/xnu-1228.12.14/kgmacros
for details.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden