lkml.org 
[lkml]   [2016]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC] why the amount of cache from "free -m" and /proc/meminfo are different?
From
Date
On 02/05/2016 07:50 AM, Xishi Qiu wrote:
> [root@localhost ~]# free -m
> total used free shared buff/cache available
> Mem: 48295 574 41658 8 6062 46344
> Swap: 24191 0 24191
>
> [root@localhost ~]# cat /proc/meminfo
> Buffers: 0 kB
> Cached: 3727824 kB
> Slab: 2480092 kB

free and meminfo seems to match up pretty well to me.

Are you really asking about display in MB vs kB?

Drop the -m switch to free.

Also, give 'man free' a spin, it explains what's behind the numbers.


Daniel K.

\
 
 \ /
  Last update: 2016-02-05 13:21    [W:0.045 / U:0.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site