|
From: Valentin P. <val...@gm...> - 2009-11-28 23:43:00
|
Hi,
I am trying to use the bbv tool in Valgrind to look at block level
similarity between threads.
I am testing this with Valgrind 3.6.0 SVN together with Apache 2.2.14 with
mpm_worker thread model.
Although I use %p to tag the output files, something seems unusual. I get pc
files which seem to have no corresponding bb files.
To make this more clear the output looks like:
apache_bb.out.11325
apache_bb.out.11325.2
apache_bb.out.11325.3
apache_bb.out.11325.4
apache_bb.out.11325.5
apache_bb.out.11325.6
[...]
apache_pc.out.11325
apache_pc.out.11328
apache_pc.out.11329
apache_pc.out.11330
apache_pc.out.11331
apache_pc.out.11495
apache_pc.out.11630
apache_pc.out.11631
apache_pc.out.11828
apache_pc.out.11832
apache_pc.out.11839
apache_pc.out.11845
apache_pc.out.12089
[...]
So apache_bb.out.11325.2 I would assume is the 2nd thread in 11325 pid. If
they share the same code segment (apache_pc.out.11325), then what are the
other pc files for?
Could the pc files be for each thread and %p prints the thread pid omitting
the parent pid (11325)
Here's a part of my bash script:
VALGRIND_TARGET="$APACHE/bin/httpd"
INTERVAL_SIZE=100000
VALGRIND_CMD="$VALGRIND --tool=exp-bbv
--bb-out-file=$RESULTS/%q{BENCH}_bb.out.%p
--pc-out-file=$RESULTS/%q{BENCH}_pc.out.%p --interval-size=$INTERVAL_SIZE
--time-stamp=yes --num-callers=30 --track-fds=yes --trace-children=no
$VALGRIND_TARGET"
Could someone offer a few pointers please?
Thank you,
V
|
|
From: Nicholas N. <n.n...@gm...> - 2009-12-14 00:56:06
|
Vince, any ideas?
Nick
On Sun, Nov 29, 2009 at 10:42 AM, Valentin Pistol
<val...@gm...> wrote:
> Hi,
>
> I am trying to use the bbv tool in Valgrind to look at block level
> similarity between threads.
> I am testing this with Valgrind 3.6.0 SVN together with Apache 2.2.14 with
> mpm_worker thread model.
>
> Although I use %p to tag the output files, something seems unusual. I get pc
> files which seem to have no corresponding bb files.
>
> To make this more clear the output looks like:
> apache_bb.out.11325
> apache_bb.out.11325.2
> apache_bb.out.11325.3
> apache_bb.out.11325.4
> apache_bb.out.11325.5
> apache_bb.out.11325.6
> [...]
> apache_pc.out.11325
> apache_pc.out.11328
> apache_pc.out.11329
> apache_pc.out.11330
> apache_pc.out.11331
> apache_pc.out.11495
> apache_pc.out.11630
> apache_pc.out.11631
> apache_pc.out.11828
> apache_pc.out.11832
> apache_pc.out.11839
> apache_pc.out.11845
> apache_pc.out.12089
> [...]
>
> So apache_bb.out.11325.2 I would assume is the 2nd thread in 11325 pid. If
> they share the same code segment (apache_pc.out.11325), then what are the
> other pc files for?
> Could the pc files be for each thread and %p prints the thread pid omitting
> the parent pid (11325)
>
> Here's a part of my bash script:
>
> VALGRIND_TARGET="$APACHE/bin/httpd"
> INTERVAL_SIZE=100000
>
> VALGRIND_CMD="$VALGRIND --tool=exp-bbv
> --bb-out-file=$RESULTS/%q{BENCH}_bb.out.%p
> --pc-out-file=$RESULTS/%q{BENCH}_pc.out.%p --interval-size=$INTERVAL_SIZE
> --time-stamp=yes --num-callers=30 --track-fds=yes --trace-children=no
> $VALGRIND_TARGET"
>
> Could someone offer a few pointers please?
>
> Thank you,
> V
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Valgrind-users mailing list
> Val...@li...
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
>
>
|
|
From: Valentin P. <val...@gm...> - 2009-12-27 16:10:53
|
I am 100% sure the files are generated in a single run and are not leftovers. Is there any other possible explanation for such behavior? -vali On Mon, Dec 14, 2009 at 7:48 PM, Vince Weaver <vi...@cs...> wrote: > > > <val...@gm...> wrote: > > > Although I use %p to tag the output files, something seems unusual. I > get pc > > > files which seem to have no corresponding bb files. > > > > > > To make this more clear the output looks like: > > > apache_bb.out.11325 > > > apache_bb.out.11325.2 > > > apache_bb.out.11325.3 > > > apache_bb.out.11325.4 > > > apache_bb.out.11325.5 > > > apache_bb.out.11325.6 > > > [...] > > > apache_pc.out.11325 > > > apache_pc.out.11328 > > the exp-bbv tool only generates one pc.out file per process. So the fact > that there's only one 11325 pc file despite there being multiple bb.out > files isn't suprising. > > As for the other files, they simply look like leftover files from previous > runs. Do the timestamps on the files support that theory? I don't see > any way in the code that these files could be generated another way. And > I ran a test run of a multi-thread program using a script like the one you > are using, and I did not see any extraneous pc.out files being > generated... > > Vince > |