nerdexam
CompTIA

XK0-005 · Question #858

A new database is installed on a server. To comply with the database vendor requirement, the huge page function should be set permanently. Which of the following commands will set this parameter?

The correct answer is D. echo "vm.nr_hugepage=100" >> /etc/sysctl.conf. To make kernel parameters persistent across reboots, they must be written to /etc/sysctl.conf (or a file under /etc/sysctl.d/). The command 'echo "vm.nr_hugepage=100" >> /etc/sysctl.conf' appends the setting permanently. Option A uses 'sysctl -a' which lists all parameters and…

System Management

Question

A new database is installed on a server. To comply with the database vendor requirement, the huge page function should be set permanently. Which of the following commands will set this parameter?

Options

  • Asysctl -a "vm.nr_hugepage=100"
  • Becho "vm.nr_hiigepage=100" >> /etc/sysconfig/hugepage.conf
  • Cecho "nvm.nr_hugepage=100" >> /etc/modprobe.conf
  • Decho "vm.nr_hugepage=100" >> /etc/sysctl.conf

How the community answered

(35 responses)
  • A
    3% (1)
  • B
    6% (2)
  • D
    91% (32)

Explanation

To make kernel parameters persistent across reboots, they must be written to /etc/sysctl.conf (or a file under /etc/sysctl.d/). The command 'echo "vm.nr_hugepage=100" >> /etc/sysctl.conf' appends the setting permanently. Option A uses 'sysctl -a' which lists all parameters and its syntax is wrong for setting values. Option B writes to a non-standard path that sysctl does not read. Option C targets /etc/modprobe.conf which is for kernel module parameters, not sysctl tunables.

Topics

#Kernel Parameters#System Configuration#Huge Pages#sysctl

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice