Skip to contentSkip to conversation

No 100 HZ timer !

DISCUSSION [email protected] 1 participant 1 message Apr 10, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 3 lines

Just how would you do kernel/user CPU time accounting then ? It's

currently done

Quoted 1 line

on every timer tick, and doing it less often would make it useless.

This part is architecture dependent. For S/390 I choose to do a "STCK" on every
system entry/exit. Dunno if this can be done on other architectures too, on
S/390
this is reasonably cheap (one STCK costs 15 cycles). That means the kernel/user CPU
time accounting is MUCH better now.

blue skies,
Martin

Linux/390 Design & Development, IBM Deutschland Entwicklung GmbH Schönaicherstr. 220, D-71032 Böblingen, Telefon: 49 - (0)7031 - 16-2247
E-Mail: [email protected]