[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130813105847.GC2170@gmail.com>
Date: Tue, 13 Aug 2013 12:58:47 +0200
From: Ingo Molnar <mingo@...nel.org>
To: Nathan Zimmer <nzimmer@....com>
Cc: hpa@...or.com, linux-kernel@...r.kernel.org, linux-mm@...ck.org,
holt@....com, rob@...dley.net, travis@....com,
daniel@...ascale-asia.com, akpm@...ux-foundation.org,
gregkh@...uxfoundation.org, yinghai@...nel.org, mgorman@...e.de,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [RFC v3 0/5] Transparent on-demand struct page initialization
embedded in the buddy allocator
* Nathan Zimmer <nzimmer@....com> wrote:
> We are still restricting ourselves ourselves to 2MiB initialization.
> This was initially to keep the patch set a little smaller and more
> clear. However given how well it is currently performing I don't see a
> how much better it could be with to 2GiB chunks.
>
> As far as extra overhead. We incur an extra function call to
> ensure_page_is_initialized but that is only really expensive when we
> find uninitialized pages, otherwise it is a flag check once every
> PTRS_PER_PMD. [...]
Mind expanding on this in more detail?
The main fastpath overhead we are really interested in is the 'memory is
already fully ininialized and we reallocate a second time' case - i.e. the
*second* (and subsequent), post-initialization allocation of any page
range.
Those allocations are the ones that matter most: they will occur again and
again, for the lifetime of the booted up system.
What extra overhead is there in that case? Only a flag check that is
merged into an existing flag check (in free_pages_check()) and thus is
essentially zero overhead? Or is it more involved - if yes, why?
One would naively think that nothing but the flags check is needed in this
case: if all 512 pages in an aligned 2MB block is fully initialized, and
marked as initialized in all the 512 page heads, then no other runtime
check will be needed in the future.
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists