Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753869AbbG2P6U (ORCPT ); Wed, 29 Jul 2015 11:58:20 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:37247 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751387AbbG2P6R (ORCPT ); Wed, 29 Jul 2015 11:58:17 -0400 Date: Wed, 29 Jul 2015 17:58:14 +0200 From: Michal Hocko To: Vladimir Davydov Cc: Michel Lespinasse , Andrew Morton , Andres Lagar-Cavilla , Minchan Kim , Raghavendra K T , Johannes Weiner , Greg Thelen , David Rientjes , Pavel Emelyanov , Cyrill Gorcunov , Jonathan Corbet , linux-api@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -mm v9 0/8] idle memory tracking Message-ID: <20150729155814.GO15801@dhcp22.suse.cz> References: <20150729123629.GI15801@dhcp22.suse.cz> <20150729135907.GT8100@esperanza> <20150729144539.GU8100@esperanza> <20150729150855.GM15801@dhcp22.suse.cz> <20150729153640.GX8100@esperanza> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150729153640.GX8100@esperanza> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1389 Lines: 30 On Wed 29-07-15 18:36:40, Vladimir Davydov wrote: > On Wed, Jul 29, 2015 at 05:08:55PM +0200, Michal Hocko wrote: > > On Wed 29-07-15 17:45:39, Vladimir Davydov wrote: [...] > > > Page table scan approach has the inherent problem - it ignores unmapped > > > page cache. If a workload does a lot of read/write or map-access-unmap > > > operations, we won't be able to even roughly estimate its wss. > > > > That page cache is trivially reclaimable if it is clean. If it needs > > writeback then it is non-idle only until the next writeback. So why does > > it matter for the estimation? > > Because it might be a part of a workload's working set, in which case > evicting it will make the workload lag. My point was that no sane application will rely on the unmaped pagecache being part of the working set. But you are right that you might have a more complex load consisting of many applications each doing buffered IO on the same set of files which might get evicted due to other memory pressure in the meantime and have a higher latencies. This is where low limit covering this memory as well might be helpful. -- Michal Hocko SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/