Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp89947ybt; Mon, 6 Jul 2020 04:52:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgY0NsaKCv1r/ZMYwURuUy/JeK7T/kr79IyHUKlTz6eFUbXNZxqY84OmgGXzQiIJQmN584 X-Received: by 2002:a50:f047:: with SMTP id u7mr57720309edl.274.1594036355273; Mon, 06 Jul 2020 04:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594036355; cv=none; d=google.com; s=arc-20160816; b=K+EiwIMZxagOsgRM2Jzf8X1Pl81KDdN4gIKo5v2eBDXZYlqbYHqAGOAawPS8baFQIf jHdVSXO6B7p0TRf1VUZPzyvZt1NCbWk9wElvYgxA2uIYr+FW6DmVQ/Oy6iHONiaEyfKY wFRk/PHPKNINQgpZYYFTRKVIHfNefUBNOlqggE0dFimW9TZfIvYl3fmScknD2zi6Hw49 sO/W4m6Cac9/w5xlGphTjkwBp/dQ1HtUGaARRtUTJjtX4fbIB5zwik/ujsU2+3SYqYK3 oV/GtJF0I8bBfAvU3B/IHmm5lHHUOknkOr95khg0FxwuSVc8hgwvt0US2D7aXHpa8Dre ryvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=HJPS9i68AMwe08ob266SMGfaNOxK2LzyyRESTVDvAq8=; b=oKwWZCoL2nG19d+8hSlPV1UzXZ0a2mXcjIxU0GKd2Urb3Ld/vTk8tel0j7q8KwpuGV AE6TZxb7ZidJwvEu6Z1OfzhABu4PMJZODXgdkmlPbVlRqye/Na9qQXP4BDOS7d5rnrs8 Lkcfwd09IG86eBaCIw5PvXvKruLOvLR81fGPKDVN2u1ztNIXqQPXC/zWJ6Zv4W2g2a2n aURftcEnlj591O6jp+JmnnfUMcYQo4t0AwZVmc2wjuiy3+F1wnULO14tQejgoCHUGDaP DlAxRw7T8HMVQniGmBAqwbIGtatqbgrjtRkuxY1fgEk64vBg4SWYhyKdc2o5qIIOEff+ +dyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gwrb8q1f; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do5si17421985ejc.105.2020.07.06.04.52.10; Mon, 06 Jul 2020 04:52:35 -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=@gmail.com header.s=20161025 header.b=gwrb8q1f; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728908AbgGFLuM (ORCPT + 99 others); Mon, 6 Jul 2020 07:50:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728264AbgGFLuM (ORCPT ); Mon, 6 Jul 2020 07:50:12 -0400 Received: from mail-qv1-xf43.google.com (mail-qv1-xf43.google.com [IPv6:2607:f8b0:4864:20::f43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F11AC061794 for ; Mon, 6 Jul 2020 04:50:12 -0700 (PDT) Received: by mail-qv1-xf43.google.com with SMTP id p7so17009069qvl.4 for ; Mon, 06 Jul 2020 04:50:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HJPS9i68AMwe08ob266SMGfaNOxK2LzyyRESTVDvAq8=; b=gwrb8q1fpMTbIIY+b98bPBgNhHC9YXFytB4yndrISbMQrXTdynTfT3rTtMJrliss9x erJD+p3yZxRqXXvy6ytWhvzyRPXafkIQ1DgcxO7PNK7Jdpc69H7TWhU/j11tArTdwfGo aXF6HcW5XBkKo0Zf0o9W8iSnrTGiSyrphmjbPmec/KIfQgEhg5i+KtkhCSHxs6XOawqI PRp4Gr9thqc+rEYeLoWK4Bu/pGXceBTFR/y0eLu/dsRBjPuOqkE0lEE+4/IhK10q6g5P JGVi/SSTbRtWI9eAeRX+yBvyCldrbTU2z8giLdxKHyYKTa+zplEHvc1kkX9CbJn1f3mN ZxUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HJPS9i68AMwe08ob266SMGfaNOxK2LzyyRESTVDvAq8=; b=cgaivGvs5aBQHiNKoUin4cnl2rH2VKamibyqKEsgKJZInaDmfDkpPB4EKRUTHiRht8 KynBdFQnEsOCwKw3wJftfpRH+r6jZlZ8LgSRYDm7fDuPXJ+KtBYUx786OByrhXhUeOy4 +dj+UKWJ9jumcY5iSOv18h5hkzggYv4WosJxHHSKRmrQb9ls1wH1xux/kOCwI6wDDFIR iOBrn2F25t5g33GIQtg8iN/q3twJEjqbUILBmIgV0qExCDMOzFCpOAroWY8FiFWaQ1La u0xmSX/NKESpvEPY6ZROYdycKq6Gr5UIDyU8kyr2AhCGUgwWg0O3iltDVENpmYAcjya2 IlCQ== X-Gm-Message-State: AOAM533ds4kRhzm0ZywxzJAWIGkHLO/fXFpL3RodcMY8+HWM2v0wILjy U2U9SnDt3/9/xpc2wVswvK0zF18YTbR/B5Yk+VU= X-Received: by 2002:a0c:e78b:: with SMTP id x11mr41855150qvn.103.1594036211296; Mon, 06 Jul 2020 04:50:11 -0700 (PDT) MIME-Version: 1.0 References: <20200706025921.53683-1-songmuchun@bytedance.com> In-Reply-To: <20200706025921.53683-1-songmuchun@bytedance.com> From: Pekka Enberg Date: Mon, 6 Jul 2020 14:49:55 +0300 Message-ID: Subject: Re: [PATCH v2] mm/page_alloc: skip setting nodemask when we are in interrupt To: Muchun Song Cc: Andrew Morton , David Hildenbrand , "linux-mm@kvack.org" , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 6, 2020 at 5:59 AM Muchun Song wrote: > When we are in the interrupt context, it is irrelevant to the > current task context. If we use current task's mems_allowed, we > can fair to alloc pages in the fast path and fall back to slow > path memory allocation when the current node(which is the current > task mems_allowed) does not have enough memory to allocate. In > this case, it slows down the memory allocation speed of interrupt > context. So we can skip setting the nodemask to allow any node > to allocate memory, so that fast path allocation can success. > > Signed-off-by: Muchun Song Reviewed-by: Pekka Enberg