Swap partition size

1, swap partition is set much are different in every Linux distribution, and in the current era of memory, hard drive, and then set after considerable speed disk array.

2, I think the next big hard case, vigorously how much, I just control memory usage when the swap in 99%, and if the array memory drives, the basic performance that will not go bad.

3, there is a situation, such as a database server (MySQL) which, with a number of application servers, as well as a simple caching server (Redis) configured swap these are not the same, such as database servers and cache servers is not recommended to use these swap partition , such as to be absolutely 100% memory, and memory 256G or more. The application server for these services would be divided, such as spike or high response, the memory utilization must be high. For ordinary business, even went to the swap, it can not affect much.

other:

In Red Hat Enterprise Linux, the following rules are set up right swap partition size:

Physical Memory

Swap (SWAP)

<= 4G

At least 4G

4~16G

At least 8G

16G~64G

At least 16G

64G~256G

At least 32G

Guess you like

Origin www.cnblogs.com/RXDXB/p/11919819.html