03.08.2013 Views

Copyright by William Lloyd Bircher 2010 - The Laboratory for ...

Copyright by William Lloyd Bircher 2010 - The Laboratory for ...

Copyright by William Lloyd Bircher 2010 - The Laboratory for ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.3 Per<strong>for</strong>mance Counter Sampling<br />

To sample per<strong>for</strong>mance monitoring counters a small kernel that provides periodic<br />

sampling of processor per<strong>for</strong>mance counters is developed. This kernel uses a device<br />

driver to provide ring-0 access to user-mode applications. This approach is preferred<br />

over existing user-mode per<strong>for</strong>mance counter libraries as it af<strong>for</strong>ds more precise control<br />

of sampling and lower overhead. In all experiments, the worst-case sampling overhead<br />

(% CPU time sampling) <strong>for</strong> per<strong>for</strong>mance counter access averages less than 1% <strong>for</strong><br />

sampling intervals as low as 16ms. In addition to the per<strong>for</strong>mance impact of counter<br />

sampling, there is a power impact which must be minimized. A common problem with<br />

periodically scheduled code, such as per<strong>for</strong>mance counter sampling, is excessive<br />

scheduler activity. This activity causes CPUs to frequently exit the idle state to service<br />

interrupts, thus increasing power consumption. <strong>The</strong> sampling kernel avoids this issue <strong>by</strong><br />

explicitly requesting a scheduling interval that exactly matches the required sampling<br />

interval. As a result the scheduler only runs enough to schedule the per<strong>for</strong>mance counter<br />

sampling events and background operating system activity.<br />

2.4 Workloads<br />

Workload selection is a critical part of dynamic power management analysis. <strong>The</strong> focus<br />

on power accounting and prediction requires workloads with widely varying power and<br />

per<strong>for</strong>mance levels. Unlike microarchitectural analysis that considers phases within an<br />

21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!