5 If you built Ceph from source and compiled Ceph for use with `oprofile`_
6 you can profile Ceph's CPU usage. See `Installing Oprofile`_ for details.
12 ``oprofile`` must be initalized the first time it is used. Locate the
13 ``vmlinux`` image that corresponds to the kernel you are running:
19 sudo opcontrol --setup --vmlinux={path-to-image} --separate=library --callgraph=6
25 Run the following command to start ``oprofile``:
35 Run the following command to stop ``oprofile``:
42 Retrieving oprofile Results
43 ===========================
45 Run the following command to retrieve the top ``cmon`` results:
49 opreport -gal ./cmon | less
52 Run the following command to retrieve the top ``cmon`` results, with call
57 opreport -cal ./cmon | less
59 .. important:: After you have reviewed the results, reset ``oprofile`` before
60 running it again. The act of resetting ``oprofile`` removes data from the
67 Run the following command to reset ``oprofile``:
71 sudo opcontrol --reset
73 .. important:: Reset ``oprofile`` after analyzing data. This ensures that
74 results from prior tests do not get mixed in with the results of the current
77 .. _oprofile: http://oprofile.sourceforge.net/about/
78 .. _Installing Oprofile: ../../../dev/cpu-profiler