About linux low-end memory

Source: Internet
Author: User
About linux low-end memory a problem was found in the server program a few days ago. When a cache function is enabled for some files on a disk (save some common results directly to the disk to avoid repeated computation ), the LowFree memory in the operating system/proc/meminfo is quickly reduced, basically... about linux low-end memory a problem was found in the server program a few days ago. When a cache function is enabled for some files on a disk (save some common results directly to the disk to avoid repeated computation ), the LowFree memory in/proc/meminfo of the operating system quickly decreases, basically close to 0. However, the program runs normally, and because of the cache, the CPU usage and load are greatly reduced, and the effect is obvious. Www.2cto.com later I checked some linux documents about LowFree and LowTotal in/proc/meminfo, as follows: LowTotal: The total amount of non-highmem memory. lowFree: The amount of free memory of the low memory region. this is the memory the kernel can address directly. all kernel datastructures need to go into low memory means that the low-end memory is the memory that the kernel can directly address. In a 32-bit operating system, LowFree is the 1 GB memory used by the kernel. On 64-bit machines, LowTotal and LowFree are actually equal to MemTotal and MemFree. The problem I encountered was actually because the operating system buffered the files in the memory after the files on the disk were used as the cache. Therefore, LowFree memory is reduced. When memory is needed, the memory used as the file buffer can be released at any time. So there is no problem.
Related Article

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.