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=-16.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 4ECA3C433E0 for ; Mon, 15 Mar 2021 19:38:40 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id DCF1464F4B for ; Mon, 15 Mar 2021 19:38:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DCF1464F4B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 75DB36B006C; Mon, 15 Mar 2021 15:38:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 734126B0070; Mon, 15 Mar 2021 15:38:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6238C6B0071; Mon, 15 Mar 2021 15:38:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0083.hostedemail.com [216.40.44.83]) by kanga.kvack.org (Postfix) with ESMTP id 454DE6B006C for ; Mon, 15 Mar 2021 15:38:39 -0400 (EDT) Received: from smtpin03.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 060E01801D434 for ; Mon, 15 Mar 2021 19:38:39 +0000 (UTC) X-FDA: 77923120758.03.C97C904 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by imf09.hostedemail.com (Postfix) with ESMTP id 55C356000E1D for ; Mon, 15 Mar 2021 19:33:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615836815; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RFIjDQlgAbDZb84hCcz/nIlskkxfDKDLDVdmAvsZ6QA=; b=i2dtXSReeGFLWDaViKHr7doDSAxtUhm+ZbUuY3gmeE4zv24Av1fYCi5j5jHjBvzd3H+5hg z9QiYg66wRg/+OdKf0nqZyYD7ZIZ62OY8jF3rVexKR98Nkikf2yCS3vgJvRzPWbfVvO6BB Ji+eZXqIaUZb9hUknosac5ega3DCDfg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-275-2zLsoK69PWCE-vaq_Q0KEw-1; Mon, 15 Mar 2021 15:33:31 -0400 X-MC-Unique: 2zLsoK69PWCE-vaq_Q0KEw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 42B7B100C618; Mon, 15 Mar 2021 19:33:29 +0000 (UTC) Received: from firesoul.localdomain (unknown [10.40.208.15]) by smtp.corp.redhat.com (Postfix) with ESMTP id D1FE210023AB; Mon, 15 Mar 2021 19:33:25 +0000 (UTC) Received: from [10.1.1.1] (localhost [IPv6:::1]) by firesoul.localdomain (Postfix) with ESMTP id 524D93250E696; Mon, 15 Mar 2021 20:33:24 +0100 (CET) Subject: [PATCH mel-git] Followup: Update [PATCH 7/7] in Mel's series From: Jesper Dangaard Brouer To: Mel Gorman , linux-mm@kvack.org Cc: Jesper Dangaard Brouer , chuck.lever@oracle.com, Alexander Duyck , netdev@vger.kernel.org, linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 15 Mar 2021 20:33:24 +0100 Message-ID: <161583677541.3715498.6118778324185171839.stgit@firesoul> In-Reply-To: <20210315094038.22d6d79a@carbon> References: <20210315094038.22d6d79a@carbon> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Stat-Signature: 5cyrcygusk7hkwaix5xfmk6inxjn4dxr X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 55C356000E1D Received-SPF: none (redhat.com>: No applicable sender policy available) receiver=imf09; identity=mailfrom; envelope-from=""; helo=us-smtp-delivery-124.mimecast.com; client-ip=216.205.24.124 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1615836816-876828 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: This patch is against Mel's git-tree: git://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git Using branch: mm-bulk-rebase-v4r2 but replacing the last patch related to the page_pool using __alloc_pages_bulk(). https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git/log/?h=mm-bulk-rebase-v4r2 While implementing suggestions by Alexander Duyck, I realised that I could simplify the code further, and simply take the last page from the pool->alloc.cache given this avoids special casing the last page. I re-ran performance tests and the improvement have been reduced to 13% from 18% before, but I don't think the rewrite of the specific patch have anything to do with this. Notes on tests: https://github.com/xdp-project/xdp-project/blob/master/areas/mem/page_pool06_alloc_pages_bulk.org#test-on-mel-git-tree --- Jesper Dangaard Brouer (1): net: page_pool: use alloc_pages_bulk in refill code path net/core/page_pool.c | 73 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 47 insertions(+), 26 deletions(-) --