Linda Walsh wrote:
Peter Hofer wrote:
./ticks.py delta process: user: 2495 sys: 181 delta all: user: 2283 sys: 258
Thanks, Peter
What I'm wondering is why your total's are near the same as a single user's ticks. I.e. you have 4 cores, shouldn't the total be about 4x the single user/single-thread ticks?
Silly me -- I should have read the documentation before responding. Those are not ticks. /proc/stat returns clock-ticks "(Time units are in USER_HZ (typically hundredths of a second)". Vs. the numbers in /proc/self/stat are in "jiffies". I don't think there is an established formula for comparing jiffies & clock ticks. Has to do with variable CPU clock speeds. You need to use the system call for getting actual time values back. More interesting... you are running 8 threads. It's interesting to see how well python does parallelization. Set (in bash):
export TIMEFORMAT="%2Rsec %2Uusr %2Ssys (%P%% cpu)"
Then run with:
time python ticks.py time python ticks.py delta process: user: 9677 sys: 3221 delta all: user: 6263 sys: 2370 69.19sec 96.78usr 32.22sys (186.45% cpu)
---- Your 8 threads utilize about 1.9 cores. you probably didn't get an answer on the kernel list because your initial statement of the problem was wrong (i.e. you hadn't read the documentation)...but that's just a guess...never know why people don't answer -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org