From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f180.google.com (mail-pf0-f180.google.com [209.85.192.180]) by kanga.kvack.org (Postfix) with ESMTP id 4FD706B0009 for ; Tue, 2 Feb 2016 09:35:08 -0500 (EST) Received: by mail-pf0-f180.google.com with SMTP id 65so106187150pfd.2 for ; Tue, 02 Feb 2016 06:35:08 -0800 (PST) Received: from mx2.parallels.com (mx2.parallels.com. [199.115.105.18]) by mx.google.com with ESMTPS id y70si2319384pfa.0.2016.02.02.06.35.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Feb 2016 06:35:07 -0800 (PST) Date: Tue, 2 Feb 2016 17:34:54 +0300 From: Vladimir Davydov Subject: Re: [PATCH v2 5/5] mm: workingset: per-cgroup cache thrash detection Message-ID: <20160202143454.GC21016@esperanza> References: <1454090047-1790-1-git-send-email-hannes@cmpxchg.org> <1454090047-1790-6-git-send-email-hannes@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1454090047-1790-6-git-send-email-hannes@cmpxchg.org> Sender: owner-linux-mm@kvack.org List-ID: To: Johannes Weiner Cc: Andrew Morton , Michal Hocko , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com On Fri, Jan 29, 2016 at 12:54:07PM -0500, Johannes Weiner wrote: > Cache thrash detection (see a528910e12ec "mm: thrash detection-based > file cache sizing" for details) currently only works on the system > level, not inside cgroups. Worse, as the refaults are compared to the > global number of active cache, cgroups might wrongfully get all their > refaults activated when their pages are hotter than those of others. > > Move the refault machinery from the zone to the lruvec, and then tag > eviction entries with the memcg ID. This makes the thrash detection > work correctly inside cgroups. > > Signed-off-by: Johannes Weiner Reviewed-by: Vladimir Davydov -- 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