free -m
total used free shared buffers cached
Mem: 48269 2424 45845 0 139 1120
-/+ buffers/cache: 1164 47105
Swap: 8197 0 8197
total used free shared buffers cached
Mem: A B C D E F
-/+ buffers/cache: G H
Swap: I J K
Note:
A=B+C
A=G+H
G=B-E-F
H=C+E+F
The display columns mean:
- total: Your total (physical) RAM (excluding a small bit that the kernel permanently reserves for itself at startup); that's why it shows ca. 11.7 GiB , and not 12 GiB, which you probably have
- use: memory in use by the OS
- free: memory not in use
total=use+free
- shared/buffers/cached: This shows memory usage for specific purposes; the numbers are included in the value for "use". This is why the second line gives the numbers for used/free minus the sum cached+buffers.
The first line is about your physical memory (RAM), the last line "swap" gives the same information about swap space usage (i.e. memory contents that have been temporarily moved to disk). The second line gives the numbers for used/free minus the sum cached+buffers (because that value is often more meaningful).
To actually understand what the numbers mean, you need a bit of background about the virtual memory (VM) subsystem in Linux. Just a short version: Linux (like most modern OS) will always try to use free RAM for caching stuff, so "free" will almost always be very low. Therefore the line "/+ buffers/cache:" is shown, because it shows how much memory is free when ignoring caches; caches will be freed automatically if memory gets scarce, so they do not really matter.
A Linux system is really low on memory if the free value in "/+ buffers/cache:" gets low.
For more details about the meaning of the numbers, see e.g. the questions:
http://serverfault.com/questions/23433/in-linux-what-is-the-difference-between-buffers-and-cache-reported-by-the-fr
http://serverfault.com/questions/9442/why-does-red-hat-linux-report-less-free-memory-on-the-system-than-is-actually-ava
分享到:
相关推荐
面向初学者,深入浅出,通俗易懂的算法介绍。Once Upon an Algorithm: How Stories Explain Computing
In this unique and insightful book, leading computer scientists offer case studies that reveal how they found unusual, carefully designed solutions to high-profile projects. You will be able to look ...
Before we look at how SQL Server uses and manages its memory, we need to ensure a full understanding of the more common memory related terms. The following definitions will help you understand how SQL...
Also, we will introduce the concept of constant buffers, and explain how you can use buffers to speed up processing by minimizing bandwidth usage. The purpose of this tutorial is to modify the ...
This document presumptuously purports to explain how to do research . We give heuristics that may be useful in picking up the specific skills needed for research (reading, writing, programming) and ...
They explain what can go wrong - sexually transmitted diseases, infertility, premature ejaculation, impotence and cancer - and provide useful information on how to avoid and deal with these nasties....
Picture a computer ...This engaging book explains computation accessibly and shows its relevance to daily life. Something to think about next time we execute the algorithm of getting up in the morning.
We start with an overview of ERP and NetSuite ERP, before going on to explain the built-in features to show the breadth of NetSuite ERP's product and its ease of use. We then discuss business aspects...
Once Upon an Algorithm How Stories Explain Computing 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络...
They explain how to have better hunches and when to leave things to chance, how to deal with overwhelming choices and how best to connect with others. From finding a spouse to finding a parking spot,...
* How to explain, coordinate, and share your efforts with others. If you’re a traditional software tester who has never written an automated test before, this is the perfect book for getting started...
second, to teach readers how to explain the features and advantages of ABMS to other people and third, to teach readers how to actually implement ABMS by building agent-based simulations. It is ...
They explain how to use these controls to create flexible and responsive layouts that adapt to different screen sizes and resolutions. #### User Interaction Controls (Chapter 7 & Appendix D) User ...
you how to install the distribution diskette and describe the directories created. I then explain some of the coding convent ions used. Before getting into the description of the examples, I describe ...
These eight minibooks get you started, explain standards, and help you connect all the dots to create sites with pizzazz. This handy, one–stop guide catches you up on XHTML basics and CSS ...