Reduce the impact of linuxswap on erlang programs-general Linux technology-Linux programming and kernel information. For more information, see the following. During the erlang stress test, the memory on my machine was 4 GB. When the erlang program used 2-3 GB memory, swapd started to work. The response of the erlang program slowed down significantly. But at this time, I actually have about 1 GB of physical memory. First try swapoff and shut down the swap, and the system runs smoothly. But when the physical memory is used up, my machine crashes. This is not very good. I found that I could solve the/proc/sys/vm/swappiness problem. The default value of/proc/sys/vm/swappiness is 50. If you set it to a small linux system, swap is not recommended. If you set it to swap, swap is recommended.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service