K
K
Kirill Zimin2014-10-21 16:58:33
linux
Kirill Zimin, 2014-10-21 16:58:33

What is avg_atom?

What is the value in the avg_atom line in the /proc/$PID/sched file, who can tell?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2014-10-21
@astraleuro

Code from kernel/sched/debug.c that calculates it:

avg_atom = p->se.sum_exec_runtime;
                if (nr_switches)
                        avg_atom = div64_ul(avg_atom, nr_switches);

Judging by the fact that here the total execution time is divided by the number of context switches, this is how long, on average, the process ran between context switches.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question