Skip to contentSkip to conversation

Begginer need help 2.6

DISCUSSION Diego 3 participants 3 messages Nov 10, 2004 – Nov 11, 2004

lore
Share & tools
lore

Diego

author
#0 lore raw

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.

#1 lore raw
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

#2 lore raw
In reply to Diego

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