From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58701CA9EC2 for ; Mon, 28 Oct 2019 15:56:22 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id F122A208C0 for ; Mon, 28 Oct 2019 15:56:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=cmpxchg-org.20150623.gappssmtp.com header.i=@cmpxchg-org.20150623.gappssmtp.com header.b="vKvw+2Qo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F122A208C0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cmpxchg.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 6419A6B0270; Mon, 28 Oct 2019 11:56:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5F1FC6B027A; Mon, 28 Oct 2019 11:56:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 507116B028F; Mon, 28 Oct 2019 11:56:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0126.hostedemail.com [216.40.44.126]) by kanga.kvack.org (Postfix) with ESMTP id 2F6F96B0270 for ; Mon, 28 Oct 2019 11:56:21 -0400 (EDT) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with SMTP id C096F8249980 for ; Mon, 28 Oct 2019 15:56:20 +0000 (UTC) X-FDA: 76093645320.29.wire29_1a380c2affb61 X-HE-Tag: wire29_1a380c2affb61 X-Filterd-Recvd-Size: 3873 Received: from mail-qt1-f193.google.com (mail-qt1-f193.google.com [209.85.160.193]) by imf43.hostedemail.com (Postfix) with ESMTP for ; Mon, 28 Oct 2019 15:56:20 +0000 (UTC) Received: by mail-qt1-f193.google.com with SMTP id g50so15282146qtb.4 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=UwaESg3z40GK2xFVfS5GglkyfXdEM1BiWwwLslrG6Oi+D8xy/qWy1Kmm2P0MD9A0ei f3swT5XlhpTxse9wzzORTgvkDqamzzULE9j8yl7fz5toKegnF6gtDU3xn9oDVATKIImM uAhGQfbCqXuZm1tz7TKmzH1vG3waQ4pTSjBtqlpke20uz7BAfrcFzM/eLUgjlKw4KHap ucj6sRQACGkRL5zE+TbllNMikD/G6hKibme6ERVlvU7JQbwCfln3a9vyLOOc5bjQz7DB 98+EUTbblPVgXHNvBsdFcM8aV0mcvP1IR9wn5+q6nzIE1XjSGMZ5vqYAjJE+NC5gkSz8 764g== X-Gm-Message-State: APjAAAVP0N2JuXT9ZLHr4Rvho0VLPy5pjB5hfyk4IzPCHDGpyLKrvHo7 7qhTv7k1KlEmI4Yxiekw2/JZtw== X-Google-Smtp-Source: APXvYqwI2x6YJ5JZqZ7aWNVaxYvjj2xliLFgGj2bKqgA36cdsGDCOqrgbSEDrDuWmR9RZXzacKlzXw== 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) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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.