cpu usage - Measuring CPU efficiency of bare metal ARM Cortex A9 system -
i have bare metal program implemented on on of core of arm-cortex a9 processor. program handling 2 interrupts. measure efficiency of cpu. may ratio of time cpu idle time cpu busy. using zedboard (zynq 7000 series) measurements.
since not have operating system running on core, aware on how cpu efficiency.
cheers, s
first off, have define mean idle. , definition part answers question.
if example, work in interrupts, , foreground task definition, when processor idling, can measure or @ least relatively. example have foreground task, have counter in loop counts , polls timer, every x number of timer ticks see how many counts (loops) have completed. fewer counts more time interrupts occurred, more counts less time interrupts occurred.
bottom line though, once define idle is, take idle code , measure how long spend in idle , how long dont. experiment other tasks off , see, using measuring stick, idles performance nothing else going on when other stuff running, can 10% or 50% or whatever.
Comments
Post a Comment