How to use micro-accounting in Linux?

I would like to access the micro-state counting timers programmatically in Linux. I guess the first part of the question is where are they available? What kernel versions and distributions? What hardware platforms? The second part is how to actually switch to timers? What is a system call?

Here is a (somewhat old) page describing accounting in micro-state , but I could not find the system call described there.

+3
source share
2 answers

Patches and user space programs are available at http://www.gelato.unsw.edu.au/patches/ . Since the patches did not migrate upstream, it would seem due to too much complexity / overhead , you would have to roll your own core.

+2
source

A google search of MSA_SELF shows what was last discussed many years ago, and a quick look upstream shows that it is not in the core upstream. Therefore, I consider it fair to say that "this data is not available."

You might want to look at clock_getres (), etc.

0
source

Source: https://habr.com/ru/post/1698135/


All Articles