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

          主站蜘蛛池模板: 石嘴山市| 八宿县| 当雄县| 黔东| 民和| 茶陵县| 乌兰浩特市| 天水市| 盐亭县| 古浪县| 抚顺市| 南昌市| 南部县| 镇巴县| 论坛| 张掖市| 彭山县| 策勒县| 成安县| 西安市| 阆中市| 白城市| 阜新| 壤塘县| 涟源市| 扬中市| 神木县| 黎川县| 海门市| 连平县| 唐海县| 磐安县| 弥渡县| 津南区| 龙南县| 资溪县| 涪陵区| 年辖:市辖区| 翼城县| 苏州市| 新乡市|