lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 5 Feb 2016 11:44:45 +0000
From:	"Daniel K." <dk@...e.no>
To:	Xishi Qiu <qiuxishi@...wei.com>, Linux MM <linux-mm@...ck.org>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [RFC] why the amount of cache from "free -m" and /proc/meminfo
 are different?

On 02/05/2016 07:50 AM, Xishi Qiu wrote:
> [root@...alhost ~]# free -m
>               total        used        free      shared  buff/cache   available
> Mem:          48295         574       41658           8        6062       46344
> Swap:         24191           0       24191
> 
> [root@...alhost ~]# 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.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ