Running GPROF on Samba
Ralph Böhme
rb at sernet.de
Sun Mar 1 23:15:55 MST 2015
On Sun, Mar 01, 2015 at 07:38:33PM +0100, Ralph Böhme wrote:
> On Sun, Mar 01, 2015 at 04:21:51PM +0000, Richard Schmitt wrote:
> > I've seen some old discussion on profiling but nothing recent. Is
> > there a procedure for running gprof on Samba? I've added the
> > appropriate flags to the Makefiles and do get a gmon.out file but I
> > suspect my issue is that I am not cleanly shutting down Samba when I
> > wish to collect the profile data. Is there a way to cleanly shut
> > down Samba? Or are there some other suggestions on how to collect
> > gprof data on smbd.
> >
> > What I really want to get is a call graph when running various
> > benchmarks.
>
> Can't help with gprof, but there's Flamegraph which can use output
> from perf:
>
> <https://github.com/brendangregg/FlameGraph>
> <http://www.brendangregg.com/FlameGraphs/cpuflamegraphs.html>
fwiw, here's an example of briefly profiling a session smbd while the
client opened a directory with lots of files:
<https://www.samba.org/~slow/perf-smbd.svg>
-Ralph
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kontakt@sernet.de
More information about the samba-technical
mailing list