RHEL 6 kernel config

Posted on 2011-04-20
Last Modified: 2013-11-17
According to this site:

I need to set the following values for my Linux kernel

kernel.msgmni = 1024 
kernel.shmmni = 4096 
kernel.shmall = 2097152 
kernel.sem = 500 256000 250 1024 
fs.file-max = 32768 
net.ipv4.tcp_keepalive_time = 300 

Open in new window

How can I accomplish this ?  
Question by:Los Angeles1
    LVL 38

    Accepted Solution

    Add it into /etc/sysctl.conf and (as root)
    # sysctl -p /etc/sysctl.conf

    Author Comment

    by:Los Angeles1

    Regarding the command:

    # sysctl -p /etc/sysctl.conf

    Open in new window

    Where do I invoke that, in the .bashrc of the mqm, or does it need to be invoked more than once, or every reboot  Which file should I put it in to be invoked ?

    Thanks again
    LVL 12

    Expert Comment

    Invoke this in the terminal.

    # sysctl -p /etc/sysctl.conf

    This is required to make the kernel changes on the fly and after that you no need to reboot the box to make the kernel changes effective.

    It need to be invoked once when you make any changes in sysctl.conf and what tp apply the chnages on the fly.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (…
    Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap ( Version 1.2 2.      Jpcap( Version 0.6 Prerequisite: 1.      GCC …
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now