Overcommit_memory of Linux kernel parameters

Source: Internet
Author: User

/etc/sysctl.conf Vm.overcommit_memory=1Or sysctl Vm.overcommit_memory=1 or echo 1 >/proc/sys/vm/overcommit_memory The kernel parameters are described below:    overcommit_memoryThe file specifies the kernel's policy for memory allocation, which can be a value of 0120Indicates that the kernel will check for sufficient available memory to be used by the process, and if sufficient memory is available, the memory request is allowed; otherwise, the memory request fails and the error is returned to the application process.
   1, which means that the kernel allows all physical memory to be allocated regardless of the current state of memory.
   2That indicates that the kernel allows allocating more memory than the sum of all physical memory and swap space

Overcommit_memory of Linux kernel parameters

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.