Return-Path: Subject: Re: computing drop-able caches To: Daniel Walker , "Khalid Mughal (khalidm)" , Rik van Riel , Johannes Weiner References: <56AAA77D.7090000@cisco.com> <20160128235815.GA5953@cmpxchg.org> <56AABA79.3030103@cisco.com> <56AAC085.9060509@cisco.com> <20160129015534.GA6401@cmpxchg.org> <56ABEAA7.1020706@redhat.com> <56BB7BC7.4040403@cisco.com> Cc: Alexander Viro , Michal Hocko , Andrew Morton , "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "xe-kernel@external.cisco.com" From: Dave Hansen Message-ID: <56BB7DDE.8080206@intel.com> Date: Wed, 10 Feb 2016 10:13:50 -0800 MIME-Version: 1.0 In-Reply-To: <56BB7BC7.4040403@cisco.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: On 02/10/2016 10:04 AM, Daniel Walker wrote: >> [Linux_0:/]$ echo 3 > /proc/sys/vm/drop_caches >> [Linux_0:/]$ cat /proc/meminfo >> MemTotal: 3977836 kB >> MemFree: 1095012 kB >> MemAvailable: 1434148 kB > > I suspect MemAvailable takes into account more than just the droppable > caches. For instance, reclaimable slab is included, but I don't think > drop_caches drops that part. There's a bit for page cache and a bit for slab, see: https://kernel.org/doc/Documentation/sysctl/vm.txt -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org