Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1135415pxf; Fri, 9 Apr 2021 00:26:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgStV8/kTc5R5alkKq1nPb6L2sWvK2APuL5gCY0DuvYPcqXvl+P72SjGFNcxTvlENgBGm8 X-Received: by 2002:a63:556:: with SMTP id 83mr12165798pgf.436.1617953217302; Fri, 09 Apr 2021 00:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617953217; cv=none; d=google.com; s=arc-20160816; b=G0iI4rOyE41aO5va+IdjyqZ3dIQan0gQToRfFgAdYo2RczdNJm/o3cdl6xTqzVMKgC 6dCPZ2atURJmwmBMVyD+e1vDW41AOIMcYyzOHIuJ1ks0a0vx3zLKwnMUK247crcwMnYX GNU6V0t1GSSoUoMOQPgo5TwBQCIh8HqK1Yt7EeGc9Ui2EVwR9B7OACukHgw1MBquIXJk Mc76cTUBDwBvtb3bheK3P/rX5SMAjwSFi7hmZLRYqnmSOSw6chvRh8l43mx5Mn0d55hs 1kI3vAVTFK3HFm3YO18XwE/zQSnx5aEn1G7tb+5mPmWhGvXPE/FI4sllnRK8DziDddCh iFiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3CuiOk6cqvEWVs8EpFm1ZB/VV5Oybfre6iEM0gujwYY=; b=hVhTGi1LAaUC09+ypDO7YNCx03a2gNqBK96yjApSW6ehPBWtMz47mkd/TTYRRQE4Y8 oLaNEjtxYqoPDMpxoQ4NEaoabc5q7EQZHPQLH677bQPC3/2+7p5zllVGtqfxxihv1eYJ XQX9n6m5E7LBISV66sxPmU8rrPnC8SxLvGQhnL0414IGu+OFrQLVJLEIYTaypsvPxtiJ gjnOHIcgBYDriQCrCXZoFBkE88S/P5vydjeZldDyUc0HhR9ZDYv1eqg7cksUxlLpp9u7 ayR08qgSjgK+wbeq9wdzu5t79LVItcdwN0mBtLsxqaegwvMy7O0usAOS2IYz/Hiafll0 9spQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=H4OWQuY9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y67si2134514pgy.484.2021.04.09.00.26.44; Fri, 09 Apr 2021 00:26:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=H4OWQuY9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231599AbhDIHYo (ORCPT + 99 others); Fri, 9 Apr 2021 03:24:44 -0400 Received: from mx2.suse.de ([195.135.220.15]:50424 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbhDIHYn (ORCPT ); Fri, 9 Apr 2021 03:24:43 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1617953070; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3CuiOk6cqvEWVs8EpFm1ZB/VV5Oybfre6iEM0gujwYY=; b=H4OWQuY93sOd2wKm3WVHcYphE9zQySsHIQ3lLQnHVXjXiTp5Z2tGAgTERRG5jUPKPJz+WD aeAYiSW0cSqzDTTLy2KbJpJgWv7DhS+age8yXFSPvW0YTZsIDaZ7PgOaFd1yMcKNYaXUvZ kMvpiEldYW/V/6JgPafaL4NeJ4VBUV0= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id DCA45AF0D; Fri, 9 Apr 2021 07:24:29 +0000 (UTC) Date: Fri, 9 Apr 2021 09:24:28 +0200 From: Michal Hocko To: Shakeel Butt Cc: Yang Shi , Tim Chen , Johannes Weiner , Andrew Morton , Dave Hansen , Ying Huang , Dan Williams , David Rientjes , Linux MM , Cgroups , LKML Subject: Re: [RFC PATCH v1 00/11] Manage the top tier memory in a tiered memory Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 08-04-21 13:29:08, Shakeel Butt wrote: > On Thu, Apr 8, 2021 at 11:01 AM Yang Shi wrote: [...] > > The low priority jobs should be able to be restricted by cpuset, for > > example, just keep them on second tier memory nodes. Then all the > > above problems are gone. Yes, if the aim is to isolate some users from certain numa node then cpuset is a good fit but as Shakeel says this is very likely not what this work is aiming for. > Yes that's an extreme way to overcome the issue but we can do less > extreme by just (hard) limiting the top tier usage of low priority > jobs. Per numa node high/hard limit would help with a more fine grained control. The configuration would be tricky though. All low priority memcgs would have to be carefully configured to leave enough for your important processes. That includes also memory which is not accounted to any memcg. The behavior of those limits would be quite tricky for OOM situations as well due to a lack of NUMA aware oom killer. -- Michal Hocko SUSE Labs