fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
irker303 has joined #systemtap
<irker303>
systemtap: wcohen systemtap.git:refs/heads/master * release-4.0-138-gc7232ec / testsuite/systemtap.examples/process/syscalls_by_pid.stp: Use statistical aggregates to reduce overhead and contention for global array http://tinyurl.com/y5qqhzj2
hpt has joined #systemtap
gromero has quit [Ping timeout: 252 seconds]
irker303 has quit [Quit: transmission timeout]
jistone has quit [Ping timeout: 250 seconds]
jistone has joined #systemtap
jistone has quit [Ping timeout: 245 seconds]
jistone has joined #systemtap
slowfranklin has joined #systemtap
chappar has joined #systemtap
slowfranklin has quit [Quit: slowfranklin]
slowfranklin has joined #systemtap
chappar has quit [Ping timeout: 256 seconds]
gila has joined #systemtap
DUKENUKE1 has joined #systemtap
DUKENUKEM has quit [Ping timeout: 252 seconds]
slowfranklin has quit [Quit: slowfranklin]
slowfranklin has joined #systemtap
hpt has quit [Ping timeout: 250 seconds]
mjw has joined #systemtap
wcohen has quit [Remote host closed the connection]
sscox has quit [Ping timeout: 246 seconds]
wcohen has joined #systemtap
orivej has quit [Ping timeout: 272 seconds]
sscox has joined #systemtap
mjw has quit [Ping timeout: 250 seconds]
mjw has joined #systemtap
orivej has joined #systemtap
irker481 has joined #systemtap
<irker481>
systemtap: smakarov systemtap.git:refs/heads/master * release-4.0-138-g57d177c / bpf-translate.cxx: stapbpf PR22330 :: cleanup round 3 of n (sprintf typo fix) http://tinyurl.com/y55yurxd
<agentzh>
fche: what you suggested makes sense but i'm worried that it still has to iterate through all the global vars over and over again
<agentzh>
my patch can skip that loop as well.
<agentzh>
our biggest tool also has a lot of globals.
<agentzh>
and that visit_embeddedcode method is called extremely frequently.
<agentzh>
string_find_memoized() should be made a hash table for its own right.
<agentzh>
i agree with that.
<fche>
suggest changing the global to a hash table first as the quickest test
<agentzh>
but that thing is also a brute force cache which trades a *lot* of memory for CPU speed.
<fche>
second best would be moving the tables to a member inside the embedded* objects
<fche>
it shouldn't be a lot of memory, with interned strings
<agentzh>
large stp scripts do have a lot of distinct names and code.
<agentzh>
yeah, i'll do some measurement.
<agentzh>
for the hash table thing.
<fche>
thanks. a sample large generated stp file for others to test too would be good
<fche>
maybe a new PR for the artifacts / conversation ?
wcohen has quit [Ping timeout: 246 seconds]
wcohen has joined #systemtap
<agentzh>
a standalone script might be a bit tricky since our script also uses some stap features which haven't been merged into the mainline stap. but i'll see what we can do better.
<agentzh>
*how we can do better
<agentzh>
i'm trying both of your suggestions regarding to the tagged_p thing.
<fche>
ok
<agentzh>
separately
<agentzh>
is STL's unordered_map good enough?
<fche>
yes
<agentzh>
okay, thanks
<fche>
back a month ago when I worked in this area, the globals we worked with there were all synthetic
<fche>
so some of the underlying algorithmic matters could be bypassed
<fche>
but not the case for your scripts
<agentzh>
ah, i need to prepare my own hash functions for the pair...