Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3519660ybg; Mon, 28 Oct 2019 14:14:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqx19UwsmkhKQ/l/1BNY3LXa1m83O3UvOqaKJUeJc3otG5W79nkUuejQGAlYeu+wo0Nnj+x2 X-Received: by 2002:a17:906:7097:: with SMTP id b23mr19055156ejk.252.1572297283501; Mon, 28 Oct 2019 14:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572297283; cv=none; d=google.com; s=arc-20160816; b=AsiY4lwODYJ0lWkGvmWA7C/OvSyphyG8HvLC5xu5PNXDpdI9HxxvnUDOqgzhgWOpHd tUZAFp/ZpJeb/i2Yz11o7AiCEWi46Hd8104A7Hh8/WZ98oacEDmHtf5GR2glqTd4ujZF fYhOKZsyfEr1lKkCSugSxjIuiOV4DaLijBTSIfW38dTSk7brIXuksX61SDiDBJkiePwC v34LM0W1+vgZZQARZrncqx54cbwvXnZp1IbL3201Kr+IEgWNe3ysq10cyRKsF591yxyg cvdJtG8pA5ifM+6Bueeb6icZlOZ9yP/v4SbEWWM25NilzGg6PHARoaNAbhJmcfW6LMm5 Byhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=W+oVyHGwOHNWyoBXA1OJvT64Ll72Qyn+h/rilXVin2s=; b=IVh9pPcxWEWet1mmSH2uPY0MjsYI+tO5ENQBzGWNqG+7l8z8r3sDEHAnxkrLzFX4k3 mJm/lVNbqS76zoJLeyHrcpmazM4qxgxQuM2tqQG3Z/SXCzlq6CwpLO5wi36eYjxvk+/G 5qP3Ng27i8YzGJN74Gu7FqTg0Bbd2PRJ30ji/0LseaVczvT7y80vevlQ01L3iIhFbdjd 0AVd1gO1ms8gjp3EshzovUJHk0a997lK9kHe6B27Cs7PSdwVIBGmXl72mULtr4s4spNs rfcsR++S8CLyu65SlaPm0iWfHkGUa8DSpMGPM+duCyx7/1hCQqpiGPnAqdJ7kAvd0vBY 4h8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=vKvw+2Qo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gz21si6081052ejb.260.2019.10.28.14.14.19; Mon, 28 Oct 2019 14:14:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=vKvw+2Qo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390743AbfJ1P4U (ORCPT + 99 others); Mon, 28 Oct 2019 11:56:20 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:37920 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730109AbfJ1P4U (ORCPT ); Mon, 28 Oct 2019 11:56:20 -0400 Received: by mail-qt1-f193.google.com with SMTP id t26so5212617qtr.5 for ; Mon, 28 Oct 2019 08:56:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=W+oVyHGwOHNWyoBXA1OJvT64Ll72Qyn+h/rilXVin2s=; b=vKvw+2Qoar3/HPbIdHr8xSut0Z//5biMVB/Q8OmS6BJwlVkgqUFgW6dCio2Zk/mYUp vLZazr0F0yN2/i7CKag2kenLrdAub0fw1+oU+dVyoU61hpb6Em9cpzTGul5uIV+NC86h c3C69ZRZ0V5ChouD1WyWiV1dPHA32ShChQb3mBcgynN2hpSIB2zzai3K0MO12HWL+gsf rMd/P0eeVujkLc59En1DPYihGovvQtlgww+1/w+MWZgHl7c7EhfhSisrZZhkcWImt4GR yGTkhQmjfuO5rI3jZQlUdn/VcmexeSilhaZlIVpU1aK3U8xHjtce20z3WZuufXzqtGZY 6suA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=W+oVyHGwOHNWyoBXA1OJvT64Ll72Qyn+h/rilXVin2s=; b=Dk86JamTtAx14W5YT5hyOSiyUaOG6PpDbzOj0xOOGGRyQuh6qg6tcCpiuNeK0Nt+xu RQ0+6U7exY4OP2kYQ2VrnmASfSzxjCcYQTnfmXA1xb/j0332F3pRK8cE0esSBKB1oK6b eylZK4lrfC5kQ1EkLVTCPJVhH99KSXnpx5dAQCY69pLlgpxJUd8LBLna7dz5oTvvN9cj g0OuUyXdpBrUHneMYKXQ6rhGrrGDlpGbfy5/WRGFsMVXLDk2COsOgB2PhNKSmgW1AaWB OyspYPgfhYeSzGnX9nOUaqVCIjpz8ltAgwvvUy99g8enNlNLwE0kVrlLyQpC3uf5rzsg 1cWA== X-Gm-Message-State: APjAAAVIzrchsmdaceEX7IUMGYbN7ooee2V7p3uAwbclqqv1aNALTxE/ SekN6KDcPiv9K0fYlejEOHacnw== X-Received: by 2002:ac8:548f:: with SMTP id h15mr18225602qtq.176.1572278179077; Mon, 28 Oct 2019 08:56:19 -0700 (PDT) Received: from localhost ([2620:10d:c091:500::2:831b]) by smtp.gmail.com with ESMTPSA id w24sm3520903qta.44.2019.10.28.08.56.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 08:56:18 -0700 (PDT) Date: Mon, 28 Oct 2019 11:56:17 -0400 From: Johannes Weiner To: Hillf Danton Cc: linux-mm , Andrew Morton , linux-kernel , Matthew Wilcox , Michal Hocko , Shakeel Butt , Minchan Kim , Mel Gorman , Vladimir Davydov , Jan Kara Subject: Re: [RFC v2] mm: add page preemption Message-ID: <20191028155617.GA3156@cmpxchg.org> References: <20191026112808.14268-1-hdanton@sina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191026112808.14268-1-hdanton@sina.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 26, 2019 at 07:28:08PM +0800, Hillf Danton wrote: > > The cpu preemption feature makes a task able to preempt other tasks > of lower priorities for cpu. It has been around for a while. > > This work introduces task prio into page reclaiming in order to add > the page preemption feature that makes a task able to preempt other > tasks of lower priorities for page. > > No page will be reclaimed on behalf of tasks of lower priorities ... at which point they'll declare OOM and kill the high-pri task? Please have a look at the cgroup2 memory.low control. This memory prioritization problem has already been solved.