[Bug 2383] New: `free' command doesn't show amount of cached memory

bugzilla at busybox.net bugzilla at busybox.net
Tue Aug 10 22:59:18 UTC 2010


https://bugs.busybox.net/show_bug.cgi?id=2383

           Summary: `free' command doesn't show amount of cached memory
           Product: Busybox
           Version: 1.16.x
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: generatorglukoff at gmail.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


Typical busybox `free' command output is:
# free
              total         used         free       shared      buffers
  Mem:        13480         8944         4536            0          968
 Swap:            0            0            0
Total:        13480         8944         4536
# 

which says that almost 2/3 of RAM is used. However:

# cat /proc/meminfo | grep Cached
Cached:             4272 kB
SwapCached:            0 kB
# 

so in fact there is 4Mb in cache, and that means there is 9Mb usable memory
(free+cached+buffers). And this means it's only 1/3 of RAM is used. That's
confusing.

It would be nice to see amount of cached memory as well as standard line '-/+
buffers/cache:'.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list