Home » LPI » 117-201 » Which TWO ways can this be changed to 2GB (2147483648 Bytes) on a running system?
It is possible to configure kernel parameters at runtime (e.g the maximum size of the shared memory segment (shmmax)). In which TWO ways can this be changed to 2GB (2147483648 Bytes) on a running system?
A. Edit /etc/shmmax and set the parameter to 2147483648.
B. sysctl shmmax=2147483648
C. sysctl kernel.shmmax=2147483648
D. echo 2147483648 > /proc/sys/kernel/shmmax
E. export kernel.shmmax=2147483648
Correct Answer: CD
Explanation/Reference:
Explanation: /proc is the Virtual File system, which contains the running kernel information. To tune the running kernel, we should change the value on / proc. Regarding the shared memory, either we can change the value of /proc/sys/kernel/shmmax which brings the changes recently on running kernel.
To set the permanent Value of maximum size of shared memory:
kernel.shmmax=?? in /etc/sysctl.conf, but you should reboot the system to bring changes on kernel.
Download Printable PDF. VALID exam to help you PASS.
|
|