]> git.proxmox.com Git - ceph.git/blame - ceph/doc/dev/cpu-profiler.rst
update sources to v12.1.1
[ceph.git] / ceph / doc / dev / cpu-profiler.rst
CommitLineData
7c673cae
FG
1=====================
2 Installing Oprofile
3=====================
4
5The easiest way to profile Ceph's CPU consumption is to use the `oprofile`_
6system-wide profiler.
7
8.. _oprofile: http://oprofile.sourceforge.net/about/
9
10Installation
11============
12
13If you are using a Debian/Ubuntu distribution, you can install ``oprofile`` by
14executing the following::
15
16 sudo apt-get install oprofile oprofile-gui
17
18
19Compiling Ceph for Profiling
20============================
21
22To compile Ceph for profiling, first clean everything. ::
23
24 make distclean
25
26Then, export the following settings so that you can see callgraph output. ::
27
28 export CFLAGS="-fno=omit-frame-pointer -O2 -g"
29
30Finally, compile Ceph. ::
31
32 ./autogen.sh
33 ./configure
34 make
35
36You can use ``make -j`` to execute multiple jobs depending upon your system. For
37example::
38
39 make -j4
40
41
42Ceph Configuration
43==================
44
45Ensure that you disable ``lockdep``. Consider setting logging to
46levels appropriate for a production cluster. See `Ceph Logging and Debugging`_
47for details.
48
49.. _Ceph Logging and Debugging: ../../rados/troubleshooting/log-and-debug
50
51See the `CPU Profiling`_ section of the RADOS Troubleshooting documentation for details on using Oprofile.
52
53
54.. _CPU Profiling: ../../rados/troubleshooting/cpu-profiling