Free use and interpretation

Source: Internet
Author: User

#free [parameters] shows free, used physical memory and swap memory in Linux system, and buffer used by the kernel

-H Auto-convert unit easy-to-read mode

-B Displays memory usage in bytes.

-K displays memory usage in kilobytes.

-m displays memory usage in megabytes.

-G displays memory usage in gigabytes.

-O does not display buffer throttling columns.

-s< interval seconds > Continuous observation of memory usage.

-T displays the memory sum column.

-V Displays version information.

#free--------total:used:free:shared:buffers/cached: Total memory Size: Used: Available: Total memory shared by multiple processes: size of disk cache: (-/+ buffers/ Cached): Used:free: How big is used: How much is available: swap:2.0g 0B 2.0G

--------

-Buffers/cached= Used (first line)-buffers-cached

is actually the size of the "physical Memory" of the program's current "real use".

+ buffers/cached= buffers + Cached

The combination of the two can be interpreted as "temporarily lending" the memory size used by the system as a "buffer".

Buffer is actually used to store the file system's meta data

Cache caches the contents of recently read-write files


Available RAM = System free Memory + buffers + cached.

=total-buff/cach used


Cat/proc/sys/vm/swappiness

Swappiness=0 indicates maximum use of physical memory and then swap space

SWAPPINESS=100 indicates active use of the swap partition, and the memory data is moved to the swap space in time

Echo 3 >/proc/sys/vm/drop_caches

"3" means releasing all buffers and cached; normal use will rise again.





This article is from the "mediocre" blog, please be sure to keep this source http://zzjasper.blog.51cto.com/9781564/1833706

Free use and interpretation

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.