swapiness value to be set for high load nginx server

Igor A. Ippolitov iippolitov at nginx.com
Fri Feb 17 09:09:41 UTC 2017


I would suggest disabling swap at all. With 1.5Tb of RAM I doubt you 
need any.

You can try finding out what is swapped by `smem` utility. May be you 
can live we those files swapped out of memory.
Anyway, I doubt swappiness tuning will help you.

Look through: https://www.kernel.org/doc/Documentation/sysctl/vm.txt
Set swappiness to 0.


On 16.02.2017 08:40, omkar_jadhav_20 wrote:
> Hi,
>
> We are using nginx/1.10.2 as web server on centos and redhat Linux 7.2 OS.
> We are getting issues of getting our SWAP fully utilized even though we have
> free memory , vm.swapiness is kept as default i.e. 60.
> below are memory details for your reference :
>
> # free -g
>                total        used        free      shared  buff/cache
> available
> Mem:           1511          32           3         361        1475
> 1091
> Swap:           199         199          0
>
> Please suggest method by which we can avoid swap full scenario. also let us
> know what should be vm.swapiness value for high load nginx web server. Also
> let us know any other sysctl parameters to improve nginx performance.
>
> Posted at Nginx Forum: https://forum.nginx.org/read.php?2,272446,272446#msg-272446
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx




More information about the nginx mailing list