In the case of low free memory, empty the cached memory.
Perform sync sync dirty data to prevent data loss
>>sync
Execute the Purge command
>>sudo sh-c ' echo 1>/proc/sys/vm/drop_caches '
2. Sysctl Control System parameters
The/proc/sys directory below records the current system's kernel parameters (memory, network, kernel, file system, etc.) control parameters.
Sysctl-a can view all current parameters
Sysctl-p re-loading system parameters
Sysctl-w xxxx=xxx Modifying system parameters
If you want to permanently take effect, you need to modify the/etc/sysctl.conf file, the parameter name format please refer to/proc/sys/below the path rule. For example, to set IP parameters
[email protected] ipv4]$ cat ip_forward0
The current parameter value is 0
[Email protected]:/proc/sys/net/ipv4$ sudo sh-c ' sysctl-w net.ipv4.ip_forward=1 ' net.ipv4.ip_forward = 1[email protecte d]:/proc/sys/net/ipv4$ Cat Ip_forward 1
This article is from the "humble Benefit" blog, please be sure to keep this source http://ganludong.blog.51cto.com/801200/1561203
Linux System Maintenance Collection