fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
drsmith_away is now known as drsmith
drsmith has left #systemtap [#systemtap]
adgud has joined #systemtap
<adgud>
what is the best approach to get values of cpu in sy, us, wa and id for a period of time?
<adgud>
i'm thinking of using probe scheduler but also found probe timer and count user/kernel ticks
<fche>
hi adgud - not sure which is 'best' - is there a problem in trying both?
irker460 has quit [Quit: transmission timeout]
<adgud>
hello fche - by best i mean the easiest while being accurate - i'm struggling to replicate vmstat-like output using systemtap and i have trouble adapting graphts.stp sample script to split cpu utilisation to kernel and user time
<fche>
might look at pf2.stp -- probe timer.profile { if (user_mode()) ... }
<fche>
so estimate the values, per-cpu, on a sampling basis
<adgud>
but then, using timer.profile, I don't know the idle time during sample period :(
<fche>
yeah, it'd be lumped into 'system'
<fche>
hm but the idle threads have some identifying characteristics that may help, pid=0?
<adgud>
just what i was about to ask - which process is the idle process :)
<fche>
not sure it's that simple, but worth testing
<adgud>
testing this right now
<adgud>
hmm with such approach (http://pastebin.com/raw/YzeRwLvP) and running some load, i've got 35% system time, while vmstat shows 25%
<adgud>
do you have any idea why, fche?
<adgud>
i should probably account for io wait time as well...
adgud has quit [Ping timeout: 240 seconds]
_whitelogger has joined #systemtap
_whitelogger has joined #systemtap
jhg_ has quit [Ping timeout: 264 seconds]
jhg_ has joined #systemtap
hpt has joined #systemtap
gila has joined #systemtap
gila_ has joined #systemtap
gila has quit [Read error: Connection reset by peer]
wcohen has joined #systemtap
gila_ has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
adgud has joined #systemtap
adgud has quit [Quit: Leaving]
hpt has quit [Ping timeout: 248 seconds]
hpt has joined #systemtap
hpt has quit [Client Quit]
djellemah has joined #systemtap
rgrinberg has joined #systemtap
rgrinberg has quit [Remote host closed the connection]
rgrinberg has joined #systemtap
rgrinberg has quit [Remote host closed the connection]