Impact of virtual memory in linux

Source: Internet
Author: User
Impact of virtual memory in linux-general Linux technology-Linux programming and kernel information. The following is a detailed description. You may rarely face this situation, but once so, you must know what is wrong: insufficient memory or out-of-memory (OOM ). The result is very typical: you cannot reallocate the memory, and the kernel will kill a task (usually the one running ). Generally, with a large amount of read/write switching, you can see the screen and disk movements.

The following is an implicit question: How much memory do you need to allocate? How much does the operating system allocate to you? The basic reason for OOM is that you apply for more memory than the system can use. I have to say virtual memory, because swap partitions are also included.

Understanding OOM

To get started with OOM, first try the code that will allocate a large amount of memory:
QUOTE:

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.