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

Tuning the operating system

In the last recipe, we covered the tuning parameters for Ceph MON, OSD, and clients. In this recipe, we will cover a few general tuning parameters which can be applied to the operating system, which are as follows:

  • kernel.pid_max: This is a Linux kernel parameter that is responsible for the maximum number of threads and process IDs. By default, the Linux kernel has a relatively small kernel.pid_max value. You should configure this parameter with a higher value on Ceph nodes hosting several OSDs, typically more than 20 OSDs. This setting helps spawn multiple threads for faster recovery and rebalancing. To use this parameter, execute the following command from the root user:
 # echo 4194303 > /proc/sys/kernel/pid_max ...

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