Two important parameters for Linux performance optimization (refer)

Source: Internet
Author: User

Vfs_cache_pressure:
This file indicates that the kernel is recycled for directory and inode
Cache memory preference; default value: 100 indicates that the kernel uses directory and inode according to pagecache and swapcache
Cache stays at a reasonable percentage; lowering this value below 100 will lead to kernel preference for directory and inode
Cache; an increase of more than 100 will lead to the kernel tends to recycle directory and inode cache.
Default: 100

Min_free_kbytes:
This file indicates the minimum number of idle memory (Kbytes) reserved by the Linux VM ).
Default setting: 724 (MB physical memory)

Change command:
Sysctl-w vm. vfs_cache_pressure = 200
Sysctl-w vm. min_free_kbytes = 1024

See:
Http://bbs.chinaunix.net/viewthread.php? Tid = 849389
Http://blog.sina.com.cn/s/blog_4b4de658010006m7.html

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.