AIX & Linux OS Optimization

Source: Internet
Author: User

1. Aix

Core parameters:

(1) maxuproc: the maximum number of processes for each user. The default value is 128.

View: lsattr-El sys0

Modify: chdev-l sys0-A maxuproc = 500

(2) maxperm maximum non-computing memory usage, non-computing memory-memory used for I/O cache;

View: VMO [-F]-A | grep maxclient %; VMO [-F]-A | grep maxperm %

Modify: VMO-p-o maxclient % = 20; VMO-p-o maxperm % = 20;

A maximum of 20% physical memory is used to cache disk information. For online transaction processing scenarios, we recommend that you keep them in a small scope.

(3) system resource restrictions for the current user

View: ulimit-

Modify:/etc/security/limits

[Specified user]

No files = 10000

Fsize =-1

Reason: the number of opened files. Since opening a socket is also a file handle, more than 2000 handles may be opened at the same time. We recommend that you adjust it to 10000, fsize, because the log file size may exceed 2 GB without sharding, we recommend that you adjust it to an unlimited size;

2. Linux

(1) shared memory size/proc/sys/kernel/shmmax

Modify:/etc/sysctl. conf to add a line of kernel. shmmax = 1073741824 (set to 1g, restart takes effect)

(2) semaphore limit/proc/sys/kernel/SEM

View: IPCS-l or CAT/proc/sys/kernel/SEM

Modify:/etc/sysctl. conf to add a line of kernel. SEM = 250 32000 128 1024 (set to a maximum of 128, restart takes effect)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.