PrepAway - Latest Free Exam Questions & Answers

Which configuration file should be modified, to set this kernel parameter permanently?

A database application requires a maximum shared memory segment (shmmax) of 2GB (2147483648 Bytes).
Which configuration file should be modified, to set this kernel parameter permanently? Please enter the complete path to the file.

5 Comments on “Which configuration file should be modified, to set this kernel parameter permanently?

  1. Marco says:

    To determine the maximum size of a shared memory segment, run:
    # cat /proc/sys/kernel/shmmax
    2147483648

    The default shared memory limit for SHMMAX can be changed in the proc file system without reboot:

    # echo 2147483648 > /proc/sys/kernel/shmmax

    Alternatively, you can use sysctl(8) to change it:

    # sysctl -w kernel.shmmax=2147483648
    To make a change permanent, add the following line to the file /etc/sysctl.conf (your setting may vary). This file is used during the boot process.

    # echo “kernel.shmmax=2147483648” >> /etc/sysctl.conf




    0



    0

Leave a Reply