Welcome to the Linux Foundation Forum!

Chapter 24 - Kernel Services and Configuration : question 24.2

Options

which of the following are valid ways to change runtime parameters

It says

A. sudo sysctl -p vm.nr_hugepages=8 is a correct answer ...

using that command gives me a "no such file or directory"

i guess it should be > sudo sysct vm.nr_hugepages=8

Comments

  • luisviveropena
    luisviveropena Posts: 1,159
    Options

    Hi @tdendas,

    It seems there is an issue with the setting of the answers. From the list, the correct one is:

    sudo sh -c 'echo 10 > /proc/sys/vm/nr_hugepages'

    Also you can use the '-w' flag to write, as follows:

    luis@ubuntuserver:~$ sudo sysctl -w vm.nr_hugepages=12
    vm.nr_hugepages = 12

    luis@ubuntuserver:~$ sudo sysctl -a | grep vm.nr_hugepages
    vm.nr_hugepages = 12
    vm.nr_hugepages_mempolicy = 12

    But that one is not in the answers (I got the flag from the man page).

    Thanks for informing us of the issue!

    Regards,
    Luis.

Categories

Upcoming Training