From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Davydov Subject: Re: [PATCH -mm v9 0/8] idle memory tracking Date: Wed, 29 Jul 2015 18:31:35 +0300 Message-ID: <20150729153135.GW8100@esperanza> References: <20150729123629.GI15801@dhcp22.suse.cz> <20150729135907.GT8100@esperanza> <20150729144539.GU8100@esperanza> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Return-path: Content-Disposition: inline In-Reply-To: Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Transfer-Encoding: 7bit To: Michel Lespinasse Cc: Michal Hocko , Andrew Morton , Andres Lagar-Cavilla , Minchan Kim , Raghavendra K T , Johannes Weiner , Greg Thelen , David Rientjes , Pavel Emelyanov , Cyrill Gorcunov , Jonathan Corbet , linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Wed, Jul 29, 2015 at 08:08:22AM -0700, Michel Lespinasse wrote: > On Wed, Jul 29, 2015 at 7:45 AM, 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. > > You can catch that in mark_page_accessed on those paths, though. Actually, the problem here is how to find an unmapped page cache page *to mark it idle*, not to mark it accessed. Thanks, Vladimir From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by kanga.kvack.org (Postfix) with ESMTP id 356CB6B0253 for ; Wed, 29 Jul 2015 11:31:56 -0400 (EDT) Received: by lbbud7 with SMTP id ud7so5507098lbb.3 for ; Wed, 29 Jul 2015 08:31:55 -0700 (PDT) Received: from relay.parallels.com (relay.parallels.com. [195.214.232.42]) by mx.google.com with ESMTPS id wk8si21766487lbb.96.2015.07.29.08.31.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2015 08:31:54 -0700 (PDT) Date: Wed, 29 Jul 2015 18:31:35 +0300 From: Vladimir Davydov Subject: Re: [PATCH -mm v9 0/8] idle memory tracking Message-ID: <20150729153135.GW8100@esperanza> References: <20150729123629.GI15801@dhcp22.suse.cz> <20150729135907.GT8100@esperanza> <20150729144539.GU8100@esperanza> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Michel Lespinasse Cc: Michal Hocko , 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 On Wed, Jul 29, 2015 at 08:08:22AM -0700, Michel Lespinasse wrote: > On Wed, Jul 29, 2015 at 7:45 AM, 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. > > You can catch that in mark_page_accessed on those paths, though. Actually, the problem here is how to find an unmapped page cache page *to mark it idle*, not to mark it accessed. Thanks, Vladimir -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752275AbbG2Pbz (ORCPT ); Wed, 29 Jul 2015 11:31:55 -0400 Received: from relay.parallels.com ([195.214.232.42]:59680 "EHLO relay.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751052AbbG2Pbx (ORCPT ); Wed, 29 Jul 2015 11:31:53 -0400 Date: Wed, 29 Jul 2015 18:31:35 +0300 From: Vladimir Davydov To: Michel Lespinasse CC: Michal Hocko , Andrew Morton , Andres Lagar-Cavilla , Minchan Kim , Raghavendra K T , Johannes Weiner , Greg Thelen , David Rientjes , "Pavel Emelyanov" , Cyrill Gorcunov , Jonathan Corbet , , , , , Subject: Re: [PATCH -mm v9 0/8] idle memory tracking Message-ID: <20150729153135.GW8100@esperanza> References: <20150729123629.GI15801@dhcp22.suse.cz> <20150729135907.GT8100@esperanza> <20150729144539.GU8100@esperanza> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: US-EXCH2.sw.swsoft.com (10.255.249.46) To US-EXCH2.sw.swsoft.com (10.255.249.46) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 29, 2015 at 08:08:22AM -0700, Michel Lespinasse wrote: > On Wed, Jul 29, 2015 at 7:45 AM, 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. > > You can catch that in mark_page_accessed on those paths, though. Actually, the problem here is how to find an unmapped page cache page *to mark it idle*, not to mark it accessed. Thanks, Vladimir