How Linux optimizes performance by modifying parameters

  
                

When Linux users are using it, they must make their computer performance better and run faster. Today Xiaobian introduces two Linux system performance optimization parameters, so that users can optimize their computer performance by modifying these two parameters.

vfs_cache_pressure:

This represents the tendency of the core and recovered for directory inode cache memory; default value of 100 represents the kernel according pagecache and swapcache, and the directory inode cache holding At a reasonable percentage; lowering the value below 100 will cause the kernel to tend to keep the directory and inode cache; increasing the value by more than 100 will cause the kernel to tend to reclaim the directory and inode cache.

Default setting: 100

min_free_kbytes:

This file indicates how much free memory (Kbytes) is reserved for the Linux VM.

Default setting: 724 (512M physical memory)

Change command:

The code is as follows:

sysctl -w vm.vfs_cache_pressure=200

sysctl -w vm.min_free_kbytes=1024

This is the two performance optimization parameters of the Linux system. Users who want to make their computer performance further can be modified by modifying these two parameters. Your own purpose.

Copyright © Windows knowledge All Rights Reserved