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]
gila has joined #systemtap
adgud has joined #systemtap
<adgud> can anyone here help me out with obtaining cpu profiling data? detailed question is here: http://stackoverflow.com/questions/42052872/calculating-cpu-utilization-with-systemtap
<fche> adgud, will have to think about it
<fche> one big difference is that this is sampling based rather than actual accounting of the sort the kernel does at transitions
<adgud> fche I would be more than glad if anyone could just point me in the right direction
<fche> one thing I'd do is reverse-engineer a bit about how vmstat etc. get their own percentages out of procfs
<fche> and trace back to the kernel-side functions or variables where they get that stuff from
<fche> then backward as to how they are counted
<adgud> that's what I thought of as well, but I doubt I have enough knowledge of C programming and kernel internals to do it in a reasonable time
rgrinberg has joined #systemtap
<fche> so maybe just go with what you have for now and make progress on the rest of your script. Was this only a part of what you were looking for?
irker442 has joined #systemtap
<irker442> systemtap: fche systemtap.git:refs/heads/master * release-3.0-905-gd1e8b63 / runtime/vsprintf.c: runtime: suppress a gcc7 warning http://tinyurl.com/z85fbwu
rgrinberg has quit [Ping timeout: 240 seconds]
<adgud> no fche, i think it is basically it - get cpu utilization
<adgud> i miss the %id component but well maybe i will find it along
jhg_ has quit [Ping timeout: 245 seconds]
jhg_ has joined #systemtap
irker442 has quit [Quit: transmission timeout]
gila has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
DuncanT has quit [Ping timeout: 252 seconds]
DuncanT has joined #systemtap