wappiness
centos default vm.swappiness value is 60, this default value is already very suitable. But you can change the loading of the swap to a smaller size and the system performance will improve.
cat /proc/sys/vm/swappiness
You will see the value is 60, change:
sysctl Vm.swappiness=10
This will change the value from 60 to 10, which can greatly reduce the system's write to swap. It is recommended that friends with 512m or more memory use this. method.
If you find that you have very little use of swap, you can set the value to 0. This does not prevent you from using swap, but instead makes your system write as little as possible to swap, and use as much of your actual memory as possible.
This is great for switching applications, because they are in physical memory rather than swap partitions.
If you want to change this value permanently, you need to change the sysctl.conf file:
Add:
vm.swappiness=10< Br>
To the last line, the restart needs to take effect.
In large memory servers we need to set this value to 0, especially on the Mysql server.
We know that both functions provide the ability to enter one line at a time. However, gets is a depr
Find the virtual machine settings, set as shown below (additional figure: must be 3.0 u disk and pl
directory summary: /: root directory, generally only the directory under the root directory, do not
tcpdump is a commonly used capture tool under the Linux command line, record the usual way, the test
Question: Why is there no Beijing time zone selection in Beijing?
Linux domain name resolution function gethostbyname and getaddrinfo
Common shortcuts under the Linux command line
UNIX system failures and solutions
View the file and folder size under Linux. Use df and du command to introduce
Solve ntp error no server suitable for synchronization found
Linux administrators must not know the top ten PHP security points
How Linux can modify the system's service start and stop
Taiwan's Linux Education Revolution
Socket programming under Linux
Is there no start button for the release of Windows 9 next year?
What if the Linux partition read-only causes the database to stop writing data?
How to add games to XBOX in win10 system?
How to get Win10 to enter the selection user interface
Ten tips for shutting down and restarting Windows 8 computers
How to run Metro application with low resolution of Win8 system?
About how to identify standalone servers and VPS
What should I do if the computer display environment is incorrect?
How to cancel the Windows Update window when the Win7 system is turned on and off