Question-53: Which of the following is a recommended value for vm.swappiness for Cloudera CDP Private Cloud Base host?

  1. 10
  2. 60
  3. 99
  4. 0

Answer: 1

Exp: The kernel parameter that determines the tendency of the kernel to swap pages in and out of the main memory is vm.swappiness. By default, on RHEL 7 and variants, the value is set to 60 (range 0-99). This is not appropriate for hadoop clusters. This needs to be tuned down to 1 to avoid unnecessary page outs and long garbage collection pauses.

To make this parameter persist across reboots, an entry needs to be made in /etc/sysctl.conf file as follows --

vm.swappiness=1

 


Other Popular Courses