On Sun, 30 Oct 2011, sheng qiu wrote:
> hi,
> 
> is there any way to see how much time spend on each part of ceph when
> running it. i just want to see which part of ceph codes spend more
> time or have larger cost.
> i tried to config ceph adding -pg, but when i use gprof command, it
> said no gmon.out.
> i also checked the ceph wiki, the profiling on cpu part do get an
> output on time cost. but it does not show details on ceph (how much
> time spend on each part).

I've used gprof in the past, but not recently.  Two things to watch out 
for, IIRC:

- The gmon.out is written out on shutdown in the current directory.  do 
'--chdir .' on the command line, and make sure you somehow tell the daemon 
to stop in order to get some output.

- You used to need to LD_PRELOAD gprof_helper.so in order to get results 
for all threads.  There should be a copy of the source in test/ or 
scripts/, although there is no Makefile line.  Google it for more info.


sage

> 
> Thanks,
> Sheng
> 
> -- 
> Sheng Qiu
> Texas A & M University
> Room 302 Wisenbaker
> email: [email protected]
> College Station, TX 77843-3259
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to