Re: check memory consumption (kernel address space) and cpu consumption by kext
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Hi All, -- Terry _______________________________________________ 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... On Jun 18, 2009, at 2:58 AM, Rahulkumar Tibdewal wrote: 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert