How to assign voltage levels to threads and measure their energy consumption
My goal is to measure the energy consumption of a process or threads running on an Mini-ITX motherboard with Intel Core 2 Duo processor and Linux 2.6.18-1.2798.fc6.
POSIX is used to create threads and FIFO is used to schedule threads on cores. Ideally, I want to assign differnt volage levels to different threads and measture their energy consumption. At minimum, I want to assign a same voltage leve to all threads and measure their energy consumption. On my system, power management is performed by ACPI. I wonder if you could give me a direction about how to assign voltage levels to threads and measure their energy consumption.