Skip to contentSkip to conversation

cputimers/proc: can't we make /proc/pid/stat less accurate?

RFC PATCH In review Oleg Nesterov 1 participant 1 message Mar 24, 2010

lore
Share & tools
lore
#0 lore raw

cover cputimers/proc: can't we make /proc/pid/stat less accurate?

Mostly to provoke the discussion and untested, please comment.

In short: I do not actually know if /proc/pid/stat should be "really" accurate wrt cpu accounting. I mean, I don't know how much /bin/top and friends depend on xtime monotonicity.

However, it is sad that /proc/pid/stat iterates over ->thread_group _twice_ under ->siglock.

Any thoughts?

Oleg.