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]
Message-ID: <56AABA79.3030103@cisco.com>
Date:	Thu, 28 Jan 2016 17:03:53 -0800
From:	Daniel Walker <danielwa@...co.com>
To:	Johannes Weiner <hannes@...xchg.org>
Cc:	Alexander Viro <viro@...iv.linux.org.uk>,
	Michal Hocko <mhocko@...e.com>,
	Andrew Morton <akpm@...ux-foundation.org>,
	linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
	linux-mm@...ck.org, "Khalid Mughal (khalidm)" <khalidm@...co.com>,
	"xe-kernel@...ernal.cisco.com" <xe-kernel@...ernal.cisco.com>,
	Rik van Riel <riel@...hat.com>
Subject: Re: computing drop-able caches

On 01/28/2016 03:58 PM, Johannes Weiner wrote:
> On Thu, Jan 28, 2016 at 03:42:53PM -0800, Daniel Walker wrote:
>> "Currently there is no way to figure out the droppable pagecache size
>> from the meminfo output. The MemFree size can shrink during normal
>> system operation, when some of the memory pages get cached and is
>> reflected in "Cached" field. Similarly for file operations some of
>> the buffer memory gets cached and it is reflected in "Buffers" field.
>> The kernel automatically reclaims all this cached & buffered memory,
>> when it is needed elsewhere on the system. The only way to manually
>> reclaim this memory is by writing 1 to /proc/sys/vm/drop_caches. "
> [...]
>
>> The point of the whole exercise is to get a better idea of free memory for
>> our employer. Does it make sense to do this for computing free memory?
> /proc/meminfo::MemAvailable was added for this purpose. See the doc
> text in Documentation/filesystem/proc.txt.
>
> It's an approximation, however, because this question is not easy to
> answer. Pages might be in various states and uses that can make them
> unreclaimable.


Khalid was telling me that our internal sources rejected MemAvailable 
because it was not accurate enough. It says in the description,
"The estimate takes into account that the system needs some page cache 
to function well". I suspect that's part of the inaccuracy. I asked 
Khalid to respond with more details on this.

Do you know of any work to make it more accurate?

Daniel

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ