Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3453006pxj; Tue, 1 Jun 2021 05:47:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylvQWRHVnfi4YqLBqjt4TY0glJ0ztEXcGbcuxib5ra++xfuRV3TflrrLUlmkfBtSIUPqOM X-Received: by 2002:a05:6e02:1a4c:: with SMTP id u12mr21205508ilv.221.1622551663768; Tue, 01 Jun 2021 05:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622551663; cv=none; d=google.com; s=arc-20160816; b=hjR87apH21lAdxoW2CP643TiVMUgpjV1lqlc8aM38Cr5aIrEDZzlSb9/DGwLUtPbxc uFVi1RAHsVOaYChoTRdqxJ4AGoAXo3bPYRZLjvtGOwcAv9tfjNA0niEEXPkwoR/xnqwC RkfqpBkN4jvILJgkzhwqomy0YCyqX75W1DqjGYX59E1xIpLu8fOfAaSoK9asRjsJGVMd 68ePIdwiq0PSdolfVCIZPcUFCxhWErokCcrYD/i7U8Jy9FE0vpVSQnrA+mlGJKz16tvn ZvcN5VL9IBCwYmtnYUdXEXzAFOEpkZqCW1b8+z+wrRdROy2fV4krMcvUqYLG1F2SLdip c6Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=thqoGIVf4D5X0bR3/8troRnBLFTLEWwyUdfwoftjRqI=; b=kDXNsADkzz+bYDyFcwruAv7YElK2mVmoqw2nk2z/OwMs1AzaeQ5XLvt9JBTzEUrM8j Mv5mNZxqxQbvUZSkSaTusmzHTC1Ia8uEdkWsXp5TPdInTFxHBB+s4DqZyreYAvMA3hbp +BrBrNILJYMooibIivpBOkzlnK8WBxuW5SqOMeWL65nGZNgWsnUBSLc6OPy+FkAb+Xm/ Fipj7S4Q/2VQWPb1plojExjya1axrzQ9Is9A3+XjhhxsdbsqVuYjAw9HZUtlchI2K/Yl fR5A2qGF5wY0phgjGNJ5zDwgVFrbpi++Bx6cKS6sgNe1g85B81Y1ik9YxagAkC15eH1s DbsA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si18070891jat.71.2021.06.01.05.47.31; Tue, 01 Jun 2021 05:47:43 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233797AbhFAMrR (ORCPT + 99 others); Tue, 1 Jun 2021 08:47:17 -0400 Received: from outbound-smtp53.blacknight.com ([46.22.136.237]:47249 "EHLO outbound-smtp53.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232965AbhFAMrR (ORCPT ); Tue, 1 Jun 2021 08:47:17 -0400 Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp53.blacknight.com (Postfix) with ESMTPS id D502AFB120 for ; Tue, 1 Jun 2021 13:45:34 +0100 (IST) Received: (qmail 716 invoked from network); 1 Jun 2021 12:45:34 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.17.255]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 1 Jun 2021 12:45:34 -0000 Date: Tue, 1 Jun 2021 13:45:33 +0100 From: Mel Gorman To: Jesper Dangaard Brouer Cc: Linux-MM , Dave Hansen , Vlastimil Babka , Michal Hocko , LKML , "netdev@vger.kernel.org" Subject: Re: [PATCH 2/2] mm/page_alloc: Allow high-order pages to be stored on the per-cpu lists Message-ID: <20210601124533.GU30378@techsingularity.net> References: <20210531120412.17411-1-mgorman@techsingularity.net> <20210531120412.17411-3-mgorman@techsingularity.net> <20210531172338.2e7cb070@carbon> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20210531172338.2e7cb070@carbon> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 31, 2021 at 05:23:38PM +0200, Jesper Dangaard Brouer wrote: > On Mon, 31 May 2021 13:04:12 +0100 > Mel Gorman wrote: > > > The per-cpu page allocator (PCP) only stores order-0 pages. This means > > that all THP and "cheap" high-order allocations including SLUB contends > > on the zone->lock. This patch extends the PCP allocator to store THP and > > "cheap" high-order pages. Note that struct per_cpu_pages increases in > > size to 256 bytes (4 cache lines) on x86-64. > > > > Note that this is not necessarily a universal performance win because of > > how it is implemented. High-order pages can cause pcp->high to be exceeded > > prematurely for lower-orders so for example, a large number of THP pages > > being freed could release order-0 pages from the PCP lists. Hence, much > > depends on the allocation/free pattern as observed by a single CPU to > > determine if caching helps or hurts a particular workload. > > > > That said, basic performance testing passed. The following is a netperf > > UDP_STREAM test which hits the relevant patches as some of the network > > allocations are high-order. > > This series[1] looks very interesting! I confirm that some network > allocations do use high-order allocations. Thus, I think this will > increase network performance in general, like you confirm below: > Would you be able to do a small test on a real high-speed network? It's something I can do easily myself in a few weeks but I do not have testbed readily available at the moment. It's ok if you do not have the time, it would just be nice if I could include independent results in the changelog if the results are positive. Alternatively, a negative result would mean going back to the drawing board :) -- Mel Gorman SUSE Labs