Begginer need help 2.6
Sorry bothering but somebody can help me, i need to know if exist in kernel a variable ou something that can inform the CPU idle time (like top informs) and where is it, so i can use it.
Thanks a lot.
Quoted 3 lines · Diego
Sorry bothering but somebody can help me, i need to know if exist in kernel a variable ou something that can inform the CPU idle time (like top informs) and where is it, so i can use it.
an answer to this most certainly exists in the archives already.
take a look in /usr/src/linux-2.6.X/Documentation/filesystems/proc.txt, search for /proc/stat
Salut,
Quoted 3 lines · Diego
Sorry bothering but somebody can help me, i need to know if exist in kernel a variable ou something that can inform the CPU idle time (like top informs) and where is it, so i can use it.
You mean, a possibility to let a job take all CPU idle time? Set its prio to SCHED_BATCH.
Tonnerre