ubuntu16.04 viewing system available memory

Source: Internet
Author: User

Free-m View memory status (in megabytes)

The MEM line shows how memory is used from a system point of view, and total is the amount of memory available to the system, equal to the system physical memory minus the kernel's reserved memory . Buffers and cached are memory used by the system as buffers. The buffers is associated with a block device, contains the file system metadata, and tracks changes in the block. The cache contains only the file itself.

-/+ buffers/cache rows Display memory information from the user's perspective, and the available memory is equal to the number of mem rows used column values minus the size of buffers and cached memory. Because buffers and cached are set up by the operating system to speed up system operation, they can be used directly for users when they need it.

The free command is detailed:
Function Description: Displays the memory status.
Syntax: free [-bkmotv][-s]
Note: The free instruction shows memory usage, including physical memory, virtual exchange of document memory, shared memory segments, and buffers used by the system core.
Parameters
-B Displays memory usage in bytes.
-K displays memory usage in kilobytes.
-m displays memory usage in megabytes.
-O does not display buffer throttling columns.
-S continuously observes memory usage.
-T displays the memory sum column.
-V Displays version information.

The MEM line shows how memory is used from a system point of view, and total is the amount of memory available to the system, equal to the system physical memory minus the kernel's reserved memory. Buffers and cached are memory used by the system as buffers. The buffers is associated with a block device, contains the file system metadata, and tracks changes in the block. The cache contains only the file itself.

-/+ buffers/cache rows Display memory information from the user's perspective, and the available memory is equal to the number of mem rows used column values minus the size of buffers and cached memory. Because buffers and cached are set up by the operating system to speed up system operation, they can only be used by users when they need it.

Top and the Vmstat The system memory information is also displayed, similar to the display results for free.


The free command is detailed:
Function Description: Displays the memory status.
Syntax: free [-bkmotv][-s]
Note: The free instruction shows memory usage, including physical memory, virtual exchange of document memory, shared memory segments, and buffers used by the system core.
Parameters
-B Displays memory usage in bytes.
-K displays memory usage in kilobytes.
-m displays memory usage in megabytes.
-O does not display buffer throttling columns.
-S continuously observes memory usage.
-T displays the memory sum column.
-V Displays version information.

ubuntu16.04 viewing system available memory

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.