Wednesday 8 February 2017

Linux Kernal Parameters

These values will allow these resources to grow larger if necessary but if the resources are not requested then these larger values will not significantly impact the systems resources.

Increase the blow parameters in /etc/sysctl.conf

Use the command "ipcs -l" to show the current IPC limits.

# raise max open fd limits
fs.file-max = 65536
# use wider range for local ports
net.ipv4.ip_local_port_range = 1024 65000
# allow more/larger IPC message queues
kernel.msgmni = 1024
kernel.msgmax = 131072
kernel.msgmnb = 131072
# allow more/larger IPC shared memory blocks
kernel.shmmni = 4096
kernel.shmmax = 1073741824
kernel.shmall = 2097152
# adjust IPC semaphore settings
kernel.sem = 250 256000 64 1024   

shmmax - Maximum size of a shared memory segment. Databases like Oracle and UDB recommend that this be set to 256 Mb or 90% of memory, whichever is higher. The 2.2 Linux kernel had a limit of 1 Gb for this value.

sem - This file contains four values that correspond to:
1. maximum number of semaphores per array (semmsl on Solaris)
2. maximum number of semaphores in the system (semmns)
3. maximum operations per semop call (semopm)
4. maximum number of semaphore arrays (semmni).

msgmax - Maximum size of a message.
msgmnb - Maximum number of bytes on a message queue.
msgmni - Maximum number of message queues in the system. The value of this setting depends on the number of PeopleSoft processes that are running, in addition to what other processes are running. The value above is usually sufficient.

maxfiles - Soft file limit per process.
maxuprc - Maximum number of simultaneous user processes per userid.
nfile - Maximum number of simultaneously open files systemwide at any given time.
nproc - Maximum number of processes that can exist simultaneously in the system.
shmall - This parameter sets the total amount of shared memory pages that can be used system wide. Hence, shmall should always be at least ceil(shmmax/page_size).
shmmax - The maximum size(in bytes) of a single shared memory segment.
shmmin - The minimum size(in bytes) of a single shared memory segment.
shmmni - The number of shared memory identifiers.
shmseg - The maximum number of shared memory segments that can be attached by a process.
semmns - The number of semaphores in the system.
semmni - The number of semaphore set identifiers in the system; determines the number of semaphore sets that can be created at any one time.
semmsl - The maximum number of sempahores that can be in one semaphore set. It should be same size as maximum number of Oracle processes.

No comments:

Post a Comment

Jenkins Startup and Configuration

Steps to setup jenkins on ubuntu:- -After installation. check the jenkins services running on not on the server. sudo service jenk...