Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1239577pxb; Wed, 10 Feb 2021 03:46:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMINhSnS+QvP5kRtbt0JGiy/Zfuc6WX7HRy1GG/UlEeVr5KIGnKMihZHIc1wP8F5hkHnTK X-Received: by 2002:a50:d4d9:: with SMTP id e25mr2756201edj.183.1612957608945; Wed, 10 Feb 2021 03:46:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612957608; cv=none; d=google.com; s=arc-20160816; b=ejqXrelKqebIOUwCeWoWI1Hkdq+6jtnfXxG6jMjIKkHnXhHOPqIMJjm3DbRZq2RTN/ P3uUJiDaFiikFnJ+wvljq8lwWN4F9QSFmUcTvf5JWeGpJoKmESEIXUH2zMkdATw9Ta9i aqVXzHUVhaXqkqoKH+HfjsF1C0eQISOlqbbStz6/vQk2vvECJcJ+iJ6hLMsvqUYOpetU 8UhasXrsnWZQbqJ1rsLDKWRhTjrr2IwAiYXxxukXBNVcZ+r51Fn/yoFSmcLyfjmk2TgN QGVjDix6/bLw98QZFCUUsPZoFyeLCmWBaGO/ixDZAcU4OdKsxQpovGtotnbwgmckqauU rg1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=wL4SG9uMFV+mFhCtvdkD+pczNWZ7HBnX4eYd8blqO0A=; b=EX449oNKsQ0TzLEJpfy3XudIllDjPmR31m3N1Ds5SnZ8oAO5uQCvpIplRQhmk9FH0t ZpRH/6aI9+nkoxYcA3Ovb+iBCb47Jfs7zx7Cqnlo+i7Mrs1gR0DH6wAHFFqCpak7DLzl Fa4KOMGX7N2UnzoNffJAD0kPgADWS/K967EPL119GuGlbi0LbbwGYzudpgb4dHGw6RnH ZndDvCiwKGEYplf0EzooIQ/DPZcRseYwzrid3GzJ6rUz3XZnmW+s20rk6Q7wcMomRzwM VXnrQ7/MPA2oodN1u68LQYvmvHWOLK+3B0TjBUUwBm/NQEz7o98cr9hQugR973+pK/qh RM7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UHePbQJ1; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m6si1456932ejl.63.2021.02.10.03.46.14; Wed, 10 Feb 2021 03:46:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-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=@redhat.com header.s=mimecast20190719 header.b=UHePbQJ1; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229710AbhBJLo4 (ORCPT + 99 others); Wed, 10 Feb 2021 06:44:56 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:26252 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230328AbhBJLmn (ORCPT ); Wed, 10 Feb 2021 06:42:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612957275; 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=wL4SG9uMFV+mFhCtvdkD+pczNWZ7HBnX4eYd8blqO0A=; b=UHePbQJ1JbYgCfKOUxu8TkvDrzHcyFIq5s222tYydfIaBrsNoyD5tjKwAX1A/ntMbQITQ5 R0ZL33PVv0+MuTazmQMfjDe88SuFmxrEEONkWpKtejcPgIYSeWltunx0pbxEIEV/ND3wjt O4bv+jumnCASr3nSxaR2OBom5/PpKQA= 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-6-NB1JMqSQO_6iEkM3iVqzsw-1; Wed, 10 Feb 2021 06:41:11 -0500 X-MC-Unique: NB1JMqSQO_6iEkM3iVqzsw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 37F975B364; Wed, 10 Feb 2021 11:41:10 +0000 (UTC) Received: from carbon (unknown [10.36.110.45]) by smtp.corp.redhat.com (Postfix) with ESMTP id 65EF560BE2; Wed, 10 Feb 2021 11:41:03 +0000 (UTC) Date: Wed, 10 Feb 2021 12:41:03 +0100 From: Jesper Dangaard Brouer To: Mel Gorman Cc: Chuck Lever , "mgorman@suse.de" , Linux NFS Mailing List , "linux-mm@kvack.org" , brouer@redhat.com, Jakub Kicinski Subject: Re: alloc_pages_bulk() Message-ID: <20210210124103.56ed1e95@carbon> In-Reply-To: <20210210084155.GA3697@techsingularity.net> References: <2A0C36E7-8CB0-486F-A8DB-463CA28C5C5D@oracle.com> <20210209113108.1ca16cfa@carbon> <20210210084155.GA3697@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, 10 Feb 2021 08:41:55 +0000 Mel Gorman wrote: > On Tue, Feb 09, 2021 at 11:31:08AM +0100, Jesper Dangaard Brouer wrote: > > > > Neil Brown pointed me to this old thread: > > > > > > > > https://lore.kernel.org/lkml/20170109163518.6001-1-mgorman@techsingularity.net/ > > > > > > > > We see that many of the prerequisites are in v5.11-rc, but > > > > alloc_page_bulk() is not. I tried forward-porting 4/4 in that > > > > series, but enough internal APIs have changed since 2017 that > > > > the patch does not come close to applying and compiling. > > > > I forgot that this was never merged. It is sad as Mel showed huge > > improvement with his work. > > > > > > I'm wondering: > > > > > > > > a) is there a newer version of that work? > > > > > > > > Mel, why was this work never merged upstream? > > > > Lack of realistic consumers to drive it forward, finalise the API and > confirm it was working as expected. It eventually died as a result. If it > was reintroduced, it would need to be forward ported and then implement > at least one user on top. I guess I misunderstood you back in 2017. I though that I had presented a clear use-case/consumer in page_pool[1]. But you wanted the code as part of the patchset I guess. I though, I could add it later via the net-next tree. It seems that Chuck now have a NFS use-case, and Hellwig also have a use-case for DMA-iommu in __iommu_dma_alloc_pages. The performance improvement (in above link) were really impressive! Quote: "It's roughly a 50-70% reduction of allocation costs and roughly a halving of the overall cost of allocating/freeing batches of pages." Who have time to revive this patchset? I can only signup for coding the page_pool usage. Chuck do you have time if Mel doesn't? [1] https://github.com/torvalds/linux/blob/master/net/core/page_pool.c#L201-L209 -- Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer