[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z_fR6c4o1V57ZAXR@localhost.localdomain>
Date: Thu, 10 Apr 2025 16:12:57 +0200
From: Oscar Salvador <osalvador@...e.de>
To: David Hildenbrand <david@...hat.com>
Cc: Gavin Shan <gshan@...hat.com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, adityag@...ux.ibm.com,
donettom@...ux.ibm.com, gregkh@...uxfoundation.org,
rafael@...nel.org, dakr@...nel.org, akpm@...ux-foundation.org,
shan.gavin@...il.com
Subject: Re: [PATCH] drivers/base/memory: Avoid overhead from
for_each_present_section_nr()
On Thu, Apr 10, 2025 at 03:55:19PM +0200, Oscar Salvador wrote:
> All in all, I think we are better, and the code is slightly simpler?
One thing to notice is that maybe we could further improve and leap 'nr'
by the number of sections_per_block, so in those scenarios where
a memory-block spans multiple sections this could be faster?
Just a thought, and maybe not worth it.
In the end, we have payed more than once the price of trying to be too smart
wrt. sections and boot tricks :-).
--
Oscar Salvador
SUSE Labs
Powered by blists - more mailing lists