honzeland

          記錄點滴。。。

          常用鏈接

          統計

          Famous Websites

          Java

          Linux

          P2P

          最新評論

          RAM percentage utilised in Linux

          --zz: http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1230261484567+28353475&threadId=1213960

          Question:
          We are planning to calculate the percentage of physical memory utilised as below:

          System Page Size: 4Kbytes
          Memory: 5343128K (1562428K) real, 13632356K (3504760K) virtual, 66088K free Page# 1/604

          Now the formula goes as below:

          (free memory / actual active real memory) * 100
          (66088/1562428) * 100 = 4.22 %

          Please let us know if its the correct formula .

          Mainly we are interested in RAM percentage utilised

          Reply 1:
          Red Hat/Centos v 5 take spare ram and use it for a buffer cache.

          100% memory allocation is pretty meaningless because allocation is almost always near 100%. The 2.6.x kernel permits rapid re-allocation of buffer to other purposes eliminating a performance penalty that you see on an OS like HP-UX

          I'm not thrilled with your formula because it includes swap(virtual memory). If you start digging too deep into virtual memory, your system start paging processes from memory to disk and back again and slows down badly.

          The formula is however essentially correct.

          Reply 2:
          Here, a quick example from the machine under my desk:
          Mem:   3849216k total,  3648280k used,   200936k free,   210960k buffers
          Swap:  4194296k total,       64k used,  4194232k free,  2986460k cached

          If the value of 'Swap used' is up (i.e. hundreds of megabytes), then you've got an issue, but as you can see, it's only 64k here.
          Your formula for how much memory is used is something along the lines of this:

          (Used - (Buffers + Cached) / Total) * 100 = Used-by-programs%
          (Free + Buffers + Cached / Total) * 100 = Free%

          .. Roughly ..



          posted on 2008-12-26 12:08 honzeland 閱讀(278) 評論(0)  編輯  收藏 所屬分類: Linux

          主站蜘蛛池模板: 柯坪县| 峨眉山市| 乾安县| 广汉市| 夏邑县| 博客| 巴东县| 金华市| 大邑县| 亚东县| 郑州市| 耒阳市| 英超| 育儿| 孟连| 商都县| 德安县| 屏南县| 大新县| 察雅县| 双峰县| 盐源县| 建瓯市| 辽阳县| 西藏| 林周县| 广宁县| 唐海县| 巴中市| 临江市| 红安县| 蛟河市| 自治县| 泊头市| 交城县| 扶风县| 伊吾县| 政和县| 洛宁县| 汉阴县| 乌拉特后旗|