What are the two important parameters of Linux system performance optimization?
This article mainly explains "what are the two important parameters of Linux system performance optimization". The explanation in this article is simple and clear and easy to learn and understand. Please follow the editor's train of thought to study and learn "what are the two important parameters of Linux system performance optimization"?
The code is as follows:
Vfs_cache_pressure:
This file indicates the kernel's tendency to recycle memory for directory and inode cache; the default value of 100 indicates that the kernel will keep directory and inode cache at a reasonable percentage based on pagecache and swapcache; lowering this value below 100 will cause the kernel to tend to retain directory and inode cache; by more than 100, which will cause the kernel to tend to recycle directory and inode cache.
Default: 100
The code is as follows:
Min_free_kbytes:
This file represents the minimum amount of free memory (Kbytes) that forces Linux VM to reserve.
Default: 724 (512m physical memory)
Change the command:
The code is as follows:
Sysctl-w vm.vfs_cache_pressure=200
Sysctl-w vm.min_free_kbytes=1024
Thank you for your reading, the above is the content of "what are the two important parameters of Linux system performance optimization". After the study of this article, I believe you have a deeper understanding of what the two important parameters of Linux system performance optimization are, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!