Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752266AbdHMOwp (ORCPT ); Sun, 13 Aug 2017 10:52:45 -0400 Received: from merlin.infradead.org ([205.233.59.134]:60290 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752095AbdHMOwo (ORCPT ); Sun, 13 Aug 2017 10:52:44 -0400 Date: Sun, 13 Aug 2017 16:52:27 +0200 From: Peter Zijlstra To: Johannes Weiner Cc: Ingo Molnar , Andrew Morton , Rik van Riel , Mel Gorman , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH 3/3] mm/sched: memdelay: memory health interface for systems and workloads Message-ID: <20170813145227.eblt2ihn6wlqmcyn@hirez.programming.kicks-ass.net> References: <20170727153010.23347-1-hannes@cmpxchg.org> <20170727153010.23347-4-hannes@cmpxchg.org> <20170729091055.GA6524@worktop.programming.kicks-ass.net> <20170730152813.GA26672@cmpxchg.org> <20170731083111.tgjgkwge5dgt5m2e@hirez.programming.kicks-ass.net> <20170731184142.GA30943@cmpxchg.org> <20170801075728.GE6524@worktop.programming.kicks-ass.net> <20170801122634.GA7237@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170801122634.GA7237@cmpxchg.org> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 505 Lines: 11 On Tue, Aug 01, 2017 at 08:26:34AM -0400, Johannes Weiner wrote: > On Tue, Aug 01, 2017 at 09:57:28AM +0200, Peter Zijlstra wrote: > > And you haven't even defined wth a memdelay section is yet.. > > It's what a task is in after it calls memdelay_enter() and before it > calls memdelay_leave(). Urgh, yes that makes it harder to reusing existing bits.. although delayacct seems to do something vaguely similar. I've never really looked at that, but if you can reuse/merge that would of course be good.