fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
derek0883 has quit [Ping timeout: 246 seconds]
derek0883 has joined #systemtap
mjw has quit [Quit: Leaving]
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
derek0883 has quit [Ping timeout: 256 seconds]
hpt has joined #systemtap
sscox has joined #systemtap
orivej has joined #systemtap
orivej has quit [Remote host closed the connection]
orivej has joined #systemtap
derek0883 has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #systemtap
derek0883 has quit [Remote host closed the connection]
orivej has quit [Read error: Connection reset by peer]
orivej has joined #systemtap
derek0883 has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Ping timeout: 260 seconds]
derek0883 has quit [Remote host closed the connection]
khaled has joined #systemtap
orivej has joined #systemtap
hpt has quit [Ping timeout: 256 seconds]
irker694 has quit [Quit: transmission timeout]
przemoc has joined #systemtap
przemoc has quit [Changing host]
przemoc has joined #systemtap
mjw has joined #systemtap
derek0883 has joined #systemtap
derek0883 has quit [Ping timeout: 260 seconds]
amerey has joined #systemtap
tromey has joined #systemtap
sscox has quit [Ping timeout: 244 seconds]
<kerneltoast> fche, good morning
<kerneltoast> i hope you slept well
derek0883 has joined #systemtap
orivej has quit [Ping timeout: 258 seconds]
<agentzh> fche: it seems __stp_tf_vma_map has inherient hash conflicts involved with many different entries for all the DSO deps for every process.
<agentzh> but that hash table is only indexed by the tasks.
<agentzh> frequent func calls to _stp_umodule_relocate() would always iterate through the heavily conflicted hash table bucket linearly to search for a hit.
<agentzh> i wonder if we could introduce a secondary hash table for each process in that hash table. the 2nd level hash table can use the ->user field (which is the _stp_module pointer value) as the keys.
<agentzh> maybe there're better ways to optimize this.
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
sscox has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Ping timeout: 260 seconds]
derek0883 has joined #systemtap
<fche> hi
<fche> what are we using as the lookup/hash key right now? pid?
<kerneltoast> fche, pid yeah
<kerneltoast> I changed it to the task struct pointer in my patch
<kerneltoast> since pids are not a reliable anchor to a task struct
<kerneltoast> fche, i ran the testsuite with and without my patch and collected the logs for you
<fche> the diff over the .sum file is what one'd start the analysis with there
<kerneltoast> they are attached to my gist (scroll to the bottom): https://gist.github.com/kerneltoast/8a9518f7f17b8fc1613be69a5d0719ff
<kerneltoast> Yeah it has the .sum file
<kerneltoast> I just have no idea what to look for diffing it myself, since I'm not sure which failures are normal
<kerneltoast> i tested with a 5.8 kernel btw
<fche> ok, those diffs are mild, good to see
<fche> I'd look next at those test cases that have any conceivable relationship to the piece you modified
<fche> so something like things related to process probes
<fche> check dmesg for any diagnostics
orivej has joined #systemtap
mjw has quit [Quit: Leaving]
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
tromey has quit [Quit: ERC (IRC client for Emacs 27.1.50)]
root_ has joined #systemtap
<root_> if some kernel code has a global variable, how can i print it out in systemtap
root_ is now known as Guest10353
<Guest10353> e.g. a kernel module has its file module.c, in this file you have a globally defined variable
<Guest10353> my program will run some code, which has access to this variable
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
<fche> try @var("foo")
<fche> or @var("foo", "kernel") I think
<fche> though if the variable is in scope at your probe point, then just $var
<Guest10353> okay
derek0883 has quit [Read error: Connection reset by peer]
derek0883 has joined #systemtap
<Guest10353> unable to find global
<Guest10353> its basically a variable in a c file which is global, static int var;
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
<Guest10353> i got it working
Guest10353 has quit [Quit: Lost terminal]
derek0883 has quit [Ping timeout: 272 seconds]
derek0883 has joined #systemtap
<fche> ah good, how?
<kerneltoast> fche, it doesn't look like any of the failed test cases use process probes
<fche> and nothing alarming in dmesg / lockdep?
<kerneltoast> fche, dmesg is clean
<kerneltoast> i didn't test with lockdep
<kerneltoast> i figured the massive testsuite would be sufficient instead
khaled has quit [Ping timeout: 264 seconds]
khaled has joined #systemtap
<kerneltoast> fche, how comfortable do you feel about the patch?
<kerneltoast> i can throw in another cookie of course
derek0883 has quit [Remote host closed the connection]
amerey has quit [Quit: Leaving]
<fche> heh
<fche> I'd be okay in throwing it into the master branch in a tentative basis, let our buildbots chew over it
derek0883 has joined #systemtap
<fche> in the worst case we revert and look again
<fche> but I can't think of a good reason not to take this, anyone else?
derek0883 has quit [Remote host closed the connection]
<kerneltoast> it's good rcu magic
derek0883 has joined #systemtap
<kerneltoast> can't get more micro-optimized than that
<fche> hahah
<fche> ok, go for it.
<fche> if the performance effects may be user noticeable, please add a sentence blurb to the NEWS as to what people may observe
<kerneltoast> agentzh has a better grasp of where the performance difference will be noticed
derek0883 has quit [Ping timeout: 260 seconds]
<kerneltoast> fche, it did make the testsuite run faster fwiw
<fche> ah interesting, how much?
<kerneltoast> it took 40 minutes instead of 41.5 minutes
<kerneltoast> when run in parallel
<fche> 2% might just be noise but whatever
<fche> at least it's not -10% :)
<kerneltoast> it was consistent
<kerneltoast> i ran it twice
<fche> interesting
<kerneltoast> on a system without cpu scaling inconsistencies
<fche> spherical cow?
derek0883 has joined #systemtap
<kerneltoast> hah
<kerneltoast> no it's a ryzen laptop with some msr twiddling
<kerneltoast> so the cpu frequency gets pinned across all cores, plus or minus 50 MHz
<kerneltoast> the performance gain for the specific workload that stresses that file should be much greater than 2%
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Ping timeout: 246 seconds]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
khaled has quit [Quit: Konversation terminated!]
khaled has joined #systemtap
khaled has quit [Remote host closed the connection]
khaled has joined #systemtap
khaled has quit [Client Quit]
khaled has joined #systemtap
khaled has quit [Remote host closed the connection]
khaled has joined #systemtap