Tuesday, January 1, 2013

11 Configure Kernel Parameter and number of open file descriptor

maximum number of open file descriptors: nofiles

Global setting can be found via /proc/sys/fs/file-max

Change it can be done via /etc/security/limits.conf

image

# soft limit
ulimit -Sn
# Hard Limit
ulimit -Hn

image

Maximum number of processes available to a single user: nproc

ulimit -Su
ulimit -Hu

 

image

Kernel Parameter

Check current value:

sysctl -a

image

Below is the Oracle recommendation kernel parameters.

semmsl semmns semopm semmni 250 32000 100 128 /proc/sys/kernel/sem
shmmni 4096 /proc/sys/kernel/shmmni
shmmax Recommended: More than half the physical memory /proc/sys/kernel/shmmax
file-max 6815744 /proc/sys/fs/file-max
ip_local_port_range

Minimum: 9000

Maximum: 65500

/proc/sys/net/ipv4/ip_local_port_range
rmem_default 262144 /proc/sys/net/core/rmem_default
rmem_max 4194304 /proc/sys/net/core/rmem_max
wmem_default 262144 /proc/sys/net/core/wmem_default
wmem_max 1048576 /proc/sys/net/core/wmem_max
aio-max-nr 1048576 /proc/sys/fs/aio-max-nr

 

To make the changes, we can update /etc/sysctl.conf

Once the file is being update, we can run below command to make it effective,

/sbin/sysctl -p

 

We  can use ipcs –lm to check the

 

image

 

 

Reference

11 comments:

  1. All the best blogs that is very useful for keeping me share the ideas
    of the future as well this is really what I was looking for, and I am
    very happy to come here. Thank you very much
    earn to die
    earn to die 2
    earn to die 3
    Hi! I’ve been reading your blog for a while now and finally got the
    earn to die 4
    courage to go ahead and give youu a shout out from
    earn to die 6
    Austin Texas! Just wanted to tell
    earn to die 5
    Hi! I’ve been reading your blog for a while now and finally got the
    happy wheels
    strike force heroes
    slitherio
    you keep up the fantastic work!my weblog
    age of war
    earn to die 5

    ReplyDelete
  2. SqlPanda is it not very funny name BTw good look for idm crack latest version

    ReplyDelete
  3. SKARTEC Digital Marketing Academy is an institute dedicated to meet the integrated marketing needs of the industry. Our Digital Marketing Course in Chennai is ideal for those, who wish to manage a successful and sustainable digital marketing strategy.

    This digital marketing certification explores all the core digital marketing and management concepts, techniques and disciplines from planning, implementation and measurement to success and failure factors. Enrolling in this marketing course will prepare you to join an exclusive community of highly-recognized digital marketing experts.

    Digital Marketing Course in Chennai
    Digital Marketing Training in Chennai
    Online Digital Marketing Training
    SEO Training in Chennai
    Digital Marketing Course
    Digital Marketing Training
    Digital Marketing Courses

    ReplyDelete
  4. Superb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us. expecting for your.
    ccna Training center in Chennai
    Best CCNA Training Institute in Chennai
    ccna certification in Chennai
    ccna course in Chennai
    German Language Course in Chennai
    German Courses in Chennai

    ReplyDelete
  5. I read your blog regularly from the beginning. It was very impressed to me and I learn huge of information from your blog. Thank you!!!
    Ethical Hacking Course in Chennai
    Hacking Course in Chennai
    Certified Ethical Hacking Course in Chennai
    Ethical Hacking Training in Chennai

    ReplyDelete

 

SQL Panda Copyright © 2011 - |- Template created by O Pregador - |- Powered by Blogger Templates