site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=0ClKZ7m5jw4ydEp3crlGQstmOewbFaiXLUdgFft1h/Y=; b=xQRKet+i6xVLwhcY04eHT0pkCvX70NzJDZiGHoBa5KZyvhSE9Z4rg/suTgjjg/saP/ 9CIUC1zcRUK3Kd4ok0JIgamQrAcTqnlputskqJ8KehbAo+jhOwtMWWoc53JueOHQ+cru 2IT4uo7R22nYaSRZ7eTvTSQy/aFHgvsGzrqIk= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=HmNmd0zgzO0LWwpEcP9XyMGTOrjAucowAlL9b2ZSioRnT4bOQFS3oztnOpXvH/wou9 P6VqYicCH2/XClFFAvnjrAKJBsupiZwpz/iwzgrKlR2WpKBvOXG9v0u4/wiqbgFFTgwj KNP68HXD3zkN3yk6ptZ5bSuRxHAEu9ZQ0cUN8= On Tue, Jun 30, 2009 at 2:15 PM, Duane Murphy<duanemurphy@mac.com> 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/WritingDev... 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Brian Bechtel