O'Reilly logo

Ceph Cookbook - Second Edition by Karan Singh, Michael Hackett, Vikhyat Umrao

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

Let's see how to profile memory use for the Ceph daemons running on our nodes:

  1. Start the memory profiler on a specific daemon:
        # ceph tell osd.2 heap start_profiler
To auto-start the profiler as soon as the Ceph osd daemon starts, set the environment variable as CEPH_HEAP_PROFILER_INIT=true. It's a good idea to keep the profiler running for a few hours so that it can collect as much information related to the memory footprint as possible. At the same time, you can also generate some load on the cluster.
  1. Next, print heap statistics about the memory footprint that the profiler has collected:
        # ceph tell osd.2 heap stats
  1. You can also dump heap stats on a file that can be used later; by default, it will create the dump ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required