linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: Luiz Capitulino <luizcap@redhat.com>,
	linux-mm@kvack.org, mgorman@techsingularity.net,
	willy@infradead.org
Cc: linux-kernel@vger.kernel.org, lcapitulino@gmail.com
Subject: Re: [PATCH v2 1/2] mm: alloc_pages_bulk_noprof: drop page_list argument
Date: Wed, 8 Jan 2025 14:39:54 +0100	[thread overview]
Message-ID: <5724ae77-0863-4f8a-90ad-ebe2d2268eb1@redhat.com> (raw)
In-Reply-To: <f1c75db91d08cafd211eca6a3b199b629d4ffe16.1734991165.git.luizcap@redhat.com>

On 23.12.24 23:00, Luiz Capitulino wrote:
> The commit 387ba26fb1cb ("mm/page_alloc: add a bulk page allocator") added
> __alloc_pages_bulk() along with the page_list argument. The next
> commit 0f87d9d30f21 ("mm/page_alloc: add an array-based interface to the
> bulk page allocator") added the array-based argument. As it turns out, the
> page_list argument has no users in the current tree (if it ever had any).
> Dropping it allows for a slight simplification and eliminates some
> unnecessary checks, now that page_array is required.
> 
> Also, note that the removal of the page_list argument was proposed before
> in the thread below, where Matthew Wilcox mentions that:
> 
>    """
>    Iterating a linked list is _expensive_.  It is about 10x quicker to
>    iterate an array than a linked list.
>    """
>    (https://lore.kernel.org/linux-mm/20231025093254.xvomlctwhcuerzky@techsingularity.net)
> 
> Signed-off-by: Luiz Capitulino <luizcap@redhat.com>
> ---

Acked-by: David Hildenbrand <david@redhat.com>

Thanks!

-- 
Cheers,

David / dhildenb



  parent reply	other threads:[~2025-01-08 13:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-23 22:00 [PATCH v2 0/2] mm: alloc_pages_bulk: small API refactor Luiz Capitulino
2024-12-23 22:00 ` [PATCH v2 1/2] mm: alloc_pages_bulk_noprof: drop page_list argument Luiz Capitulino
2024-12-25 12:36   ` Yunsheng Lin
2025-01-02 16:38     ` Luiz Capitulino
2025-01-03 11:21       ` Yunsheng Lin
2025-01-03 14:12         ` Luiz Capitulino
2025-01-02 20:00     ` Mel Gorman
2025-01-03 11:29       ` Yunsheng Lin
2025-01-03 14:27         ` Mel Gorman
2025-01-03 14:46           ` Luiz Capitulino
2025-01-08 13:39   ` David Hildenbrand [this message]
2024-12-23 22:00 ` [PATCH v2 2/2] mm: alloc_pages_bulk: rename API Luiz Capitulino
2025-01-08 13:40   ` David Hildenbrand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5724ae77-0863-4f8a-90ad-ebe2d2268eb1@redhat.com \
    --to=david@redhat.com \
    --cc=lcapitulino@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=luizcap@redhat.com \
    --cc=mgorman@techsingularity.net \
    --cc=willy@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox