api - how to meter power(watt) of PC components(cpu,memory,disk,etc) in real time? -
as question says ,i want monitor value of power(watts) components consumption .especially value of cpu , memory , disk .
when use aida64,i found in computer/sensor ,there data power consumption . want know how did can these data ?
i have idea ,but not sure best way solve question :
there sensors on motherboard ,we can use values of sensors calculate real-time power.
according different os, have apis can utilization of cpu,memory throughout rate , disk i/o rate . using data ,we can build mode of power consumption pc.if there apis,where can find them ?
maybe hardware manufacturer intel has record value of power in real-time ,they put value special register in hardware .we can value through mapping special memory location .
in opinion ,the second way maybe solution monitor software using .but don't know can api.
whats more ,our aim design os-independent real-time power monitor software. so, if there better solutions question ,i appreciate .
hmmm. wasn't sure if should post comment or answer. answer in negative.
at time, can't create os independent software-based non-intrusive power monitor. non-intrusive, mean not putting special instrumentation on motherboard , other hardware. because power technology being used modern processors in rapid flux, each new generation making significant advances. additionally, amount of power related information available software hardware (via pmu events , like) continually increasing more silicon real estate becomes available. example, believe in current processors, can direct thermal information key parts of processor silicon, , temperature, power , current readings various parts of core , uncore.
the best can abstract top layer of monitor lower layers. top becomes os / hw independent while lower levels need platform dependent.
check out papi apis. note apis appear give world, api set. still has implement what's on other side of api.
now if can own special instrumentation, many (most?) motherboards , other hardware have measurement points (some undocumented) provide thermal, current (and power) information. information important debugging devices , platforms.
Comments
Post a Comment