5 The easiest way to profile Ceph's CPU consumption is to use the `oprofile`_
8 .. _oprofile: http://oprofile.sourceforge.net/about/
13 If you are using a Debian/Ubuntu distribution, you can install ``oprofile`` by
14 executing the following::
16 sudo apt-get install oprofile oprofile-gui
19 Compiling Ceph for Profiling
20 ============================
22 To compile Ceph for profiling, first clean everything. ::
26 Then, export the following settings so that you can see callgraph output. ::
28 export CFLAGS="-fno=omit-frame-pointer -O2 -g"
30 Finally, compile Ceph. ::
36 You can use ``make -j`` to execute multiple jobs depending upon your system. For
45 Ensure that you disable ``lockdep``. Consider setting logging to
46 levels appropriate for a production cluster. See `Ceph Logging and Debugging`_
49 .. _Ceph Logging and Debugging: ../../rados/troubleshooting/log-and-debug
51 See the `CPU Profiling`_ section of the RADOS Troubleshooting documentation for details on using Oprofile.
54 .. _CPU Profiling: ../../rados/troubleshooting/cpu-profiling