`
standalone
  • 浏览: 595913 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

how to explain free buffers and cached memory usage

 
阅读更多

 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

分享到:
评论

相关推荐

    How to Read and Do Proofs: An Introduction to Mathematical Thought Processes

    This text makes a great supplement and provides a systematic approach for teaching undergraduate and graduate students how to read, understand, think about, and do proofs. The approach is to ...

    Once Upon an Algorithm: How Stories Explain Computing

    面向初学者,深入浅出,通俗易懂的算法介绍。Once Upon an Algorithm: How Stories Explain Computing

    Beautiful Code leading programmers explain how they think

    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 ...

    微软内部资料-SQL性能优化2

    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...

    Packt.Learning.Elasticsearch.pdf

    We will use an e-commerce site as an example to explain how a search engine works and how to query your data. The real power of Elasticsearch is aggregations. You will see how to perform aggregation-...

    Sams C Sharp 4.0 How To

    In short, this is the book I wish I had on my desk when I was first learning programming and C# as well as now, whenever I need a quick reference or reminder about how to do something.

    How to do research at the MIT AI Lab

    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 ...

    Dick A Guide to the Penis for Men and Women eBook pdf

    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....

    操作系统第8章作业

    1、Explain the difference between internal and external fragmentation. 2、Given five memory partitions of 100 KB, 500 KB, 200 KB, 300 KB, and 600KB (in order), how would each of the first-fit, best-...

    The.MIT.Press.Once.Upon.an.Algorithm.How.Stories.Explain.Computing.0262036630

    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.

    NetSuite ERP for Administrators 2018

    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

    Once Upon an Algorithm How Stories Explain Computing 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络...

    Algorithms to Live By-Brian Christian, Tom Griffiths(2016).epub

    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 Write a Paper

    This brief manual gives guidance in writing a ... I have used, as a model, a typical Materials project: one combining experiment with modeling and computation to explain some aspect of material behavior.

    The Way of the Web Tester(Pragmatic,2016)

    * 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...

    MANAGING BUSINESS COMPLEXITY

    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 ...

    uCOSII [繁體版]

    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 ...

    101 Ready-to-use Excel Macros

    Step-by-step instructions show you how to create VBA macros and explain how to customize your applications to look and work exactly as you want them to. By the end of the book, you will understand ...

    HTML, XHTML, and CSS All-in-one Desk Reference For Dummies

    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 ...

    The.Way.of.the.Web.Tester.A.Beginners.Guide.to.Automating.Tests

    * 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....

Global site tag (gtag.js) - Google Analytics