LINUX Note-free command

Source: Internet
Author: User

The free command displays the idle, used physical memory and swap memory in the Linux system, and the buffer used by the kernel.

[Email protected]:~$ free-h
Total used free shared buff/cache available
mem:3.8g 1.3G 928M 27M 1.7G 2.2G
swap:4.0g 0B 4.0G

Total:total installed memory (memtotal and Swaptotal in/proc/meminfo)

Used:used memory (calculated as Total-free-buffers-cache)

free:unused memory (Memfree and Swapfree in/proc/meminfo)

Shared:memory used (mostly) by Tmpfs (Shmem In/proc/meminfo, available on kernels 2.6.32, displayed as zero if
Not available)

Buffers:memory used by kernel buffers (buffers in/proc/meminfo)

Cache:memory used by the page cache and slabs (Cached and Slab in/proc/meminfo)

Buff/cache:sum of buffers and cache (A buffer is something that have yet to being "written" to disk. A cache is something that have been "read" from the disk and stored for later use.)

Available:estimation of how much memory are available for starting new applications, without swapping. Unlike the data provided by the cache or free fields, this field takes to account page caches and also that isn't all RECLA Imable memory slabs'll be reclaimed due to items being in use (Memavailable in/proc/meminfo, available on kernels 3.14, Emulated on Kernels 2.6.27+, otherwise the same as free)

LINUX Note-free command

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.