literally put an integrating current sensor in your device & reset it every time you task-switch
Conversation
Replying to
But what if I heat up the cpu to just below fan activation and trick the next process into cooling for me?
2
1
1
Replying to
if you mean "how do I exclude current used by autonomous cooling system", then you route it around the sensor :)
1
1
Replying to
Delayed kernel tasks/delayed anything? So many power using hardware components I could establish a causal relationship with.
2
Replying to
another (somewhat contrived) example: I display a dialog, causing the user to reach for the touchpad, waking it in the process.
1
Replying to
touchpad wouldn't be counted towards task usage. the only two hard cases here are non-timeshared resources & asymm. multicore
2
Replying to
"asymm multicore" maybe solve with exclusive timesliced execution? Assuming you have the non-timeshared resources pinned down.
1
Replying to
I mean more like, how do you attribute SATA GC? Or cellular baseband.
2
Replying to
Yeah exactly the problem. But let's assume you have the measurement pinned down, maybe within tolerance in a relaxed model (ct)
Replying to
you could give processes a budget and have them participate in an auction for resources to incentivize low resource usage.
1
Replying to
(I think AWS kinda does that? Just bill you for everything? It works at this level.)

