From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx183.postini.com [74.125.245.183]) by kanga.kvack.org (Postfix) with SMTP id 1D8CD6B0033 for ; Fri, 7 Jun 2013 10:16:10 -0400 (EDT) Message-ID: <51B1EB25.9000509@yandex-team.ru> Date: Fri, 07 Jun 2013 18:16:05 +0400 From: Roman Gushchin MIME-Version: 1.0 Subject: Re: [patch 09/10] mm: thrash detection-based file cache sizing References: <1369937046-27666-1-git-send-email-hannes@cmpxchg.org> <1369937046-27666-10-git-send-email-hannes@cmpxchg.org> In-Reply-To: <1369937046-27666-10-git-send-email-hannes@cmpxchg.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Johannes Weiner Cc: linux-mm@kvack.org, Andi Kleen , Andrea Arcangeli , Andrew Morton , Greg Thelen , Christoph Hellwig , Hugh Dickins , Jan Kara , KOSAKI Motohiro , Mel Gorman , Minchan Kim , Peter Zijlstra , Rik van Riel , Michel Lespinasse , Seth Jennings , metin d , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org On 30.05.2013 22:04, Johannes Weiner wrote: > +/* > + * Monotonic workingset clock for non-resident pages. > + * > + * The refault distance of a page is the number of ticks that occurred > + * between that page's eviction and subsequent refault. > + * > + * Every page slot that is taken away from the inactive list is one > + * more slot the inactive list would have to grow again in order to > + * hold the current non-resident pages in memory as well. > + * > + * As the refault distance needs to reflect the space missing on the > + * inactive list, the workingset time is advanced every time the > + * inactive list is shrunk. This means eviction, but also activation. > + */ > +static atomic_long_t workingset_time; It seems strange to me, that workingset_time is global. Don't you want to make it per-cgroup? Two more questions: 1) do you plan to take fadvise's into account somehow? 2) do you plan to use workingset information to enhance the readahead mechanism? Thanks! Regards, Roman -- 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