Re: check memory consumption (kernel address space) and cpu consumption by kext
Re: check memory consumption (kernel address space) and cpu consumption by kext
- Subject: Re: check memory consumption (kernel address space) and cpu consumption by kext
- From: Terry Lambert <email@hidden>
- Date: Thu, 18 Jun 2009 18:19:04 -0700
On Jun 18, 2009, at 2:58 AM, Rahulkumar Tibdewal wrote:
Hi All,
Is there any way to check memory consumption (kernel address space)
and cpu consumption done by kext?
It may sound silly question but I want to make sure efficient
resource utilization.
Generally, no. You can find out how much memory the kext's data and
text sections take up bdefault (kextstat and a little math will give
you that). Individual allocations of data are not easily attributable
to a KEXT, since it runs in the kernel address space
There's no way to tell allocations made as a result of the inferior
call graph (allocations by the KEXT directly or allocations made on
behalf of the KEXT by KPI called from the KEXT) from those not made on
behalf of the KEXT, and there's no way to tell service allocations
made by other threads or KEXTs on behalf of the KEXT as a result of
requests it's made to threads outside of itself.
Similarly, there's no way to attribute CPU utulization on any but a
per-thread basis. While you could (maybe) identify threads created in
the kernel task by the KEXT due to detailed knowledge of the KEXT
itself, and then aggregate those numbers, but there's not way to get
information about CPU cycles spent on behalf of the KEXT as a result
of requests it's made to threads outside itself.
-- Terry
_______________________________________________
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