Identifying process contributing to individual core's utilization

Hi,
I have a customer who is reporting a high utilization on a single core on a 16 logical processor setup running Windows 2008 R2. With no activity on our driver, one core is pegged at 50% which shoots to 100% once the test on our driver is initiated. I am trying to identify the process that is contributing to this core’s utilization before and during the test, but seem to be hitting a dead end.
While Taskmgr indicates the overall CPU utilization to be around 6% with no single processes having utilization of more than 1%, I am unable to relate this to the individual core’s utilization. I tried looking for any performance counters that could provide this data but could not find any and Google does not help either. Being a customer setup, I am not in a position to run any profiling tools.

Is there a mechanism (or MS provided tool) by which I can identify the processes contributing to a particular core’s utilization? I am sure I am missing something trivial but havent been able to figure out what. Any help would be appreicated.

Regards,
Girish.

Xperf or Kernrate will get you this data.

Don Burn
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

xxxxx@hotmail.com” wrote in message
news:xxxxx@ntdev:

> Hi,
> I have a customer who is reporting a high utilization on a single core on a 16 logical processor setup running Windows 2008 R2. With no activity on our driver, one core is pegged at 50% which shoots to 100% once the test on our driver is initiated. I am trying to identify the process that is contributing to this core’s utilization before and during the test, but seem to be hitting a dead end.
> While Taskmgr indicates the overall CPU utilization to be around 6% with no single processes having utilization of more than 1%, I am unable to relate this to the individual core’s utilization. I tried looking for any performance counters that could provide this data but could not find any and Google does not help either. Being a customer setup, I am not in a position to run any profiling tools.
>
> Is there a mechanism (or MS provided tool) by which I can identify the processes contributing to a particular core’s utilization? I am sure I am missing something trivial but havent been able to figure out what. Any help would be appreicated.
>
> Regards,
> Girish.

Xperf is now called wpt (windows perf tool) in the win8 kits

d

debt from my phone


From: Don Burn
Sent: 11/7/2012 6:16 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Identifying process contributing to individual core’s utilization

Xperf or Kernrate will get you this data.

Don Burn
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

xxxxx@hotmail.com” wrote in message
news:xxxxx@ntdev:

> Hi,
> I have a customer who is reporting a high utilization on a single core on a 16 logical processor setup running Windows 2008 R2. With no activity on our driver, one core is pegged at 50% which shoots to 100% once the test on our driver is initiated. I am trying to identify the process that is contributing to this core’s utilization before and during the test, but seem to be hitting a dead end.
> While Taskmgr indicates the overall CPU utilization to be around 6% with no single processes having utilization of more than 1%, I am unable to relate this to the individual core’s utilization. I tried looking for any performance counters that could provide this data but could not find any and Google does not help either. Being a customer setup, I am not in a position to run any profiling tools.
>
> Is there a mechanism (or MS provided tool) by which I can identify the processes contributing to a particular core’s utilization? I am sure I am missing something trivial but havent been able to figure out what. Any help would be appreicated.
>
> Regards,
> Girish.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Just break into kernel debugger, and you will be in that process with 50% probability.

Thanks for the inputs. However, since this is a customer production setup, currently I do not have the flexibility of running any profiling tools (xperf or kernrate) or attaching a debugger.
Is there any tool that comes packaged with Windows OS that can provide the data I am looking for?

I think xperf is xcopyable from the install share, there is nothing built into the windows media for this

d

debt from my phone


From: xxxxx@hotmail.com
Sent: 11/7/2012 7:46 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Identifying process contributing to individual core’s utilization

Thanks for the inputs. However, since this is a customer production setup, currently I do not have the flexibility of running any profiling tools (xperf or kernrate) or attaching a debugger.
Is there any tool that comes packaged with Windows OS that can provide the data I am looking for?


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Does your driver start any thread?

Does your device use interrupts?

No. But why can’t you use xperf or kernrate? If you can’t repro it in
your shop, then you have to ask the customer who raised the issue to
cooperate in getting their problem solved. There is probably no need to
attach a debugger, and it is not clear what it would provide you anyway.
I’ve hardly ever done optimizations based on what I learned from the
debugger. In fact, in 48 years of programming, I used this technique
exactly once, in a very specialized context, in 1982.
joe

Thanks for the inputs. However, since this is a customer production setup,
currently I do not have the flexibility of running any profiling tools
(xperf or kernrate) or attaching a debugger.
Is there any tool that comes packaged with Windows OS that can provide the
data I am looking for?


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Thanks folks. Will persuade the customer to allow us to run xperf for additional data. In the meantime we are also attempting a repro in-house, so hopefully will have a break through soon.