Re: [PATCH 1/2] mm: implement remap_pfn_range with apply_to_page_range

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nick Piggin
Date: Friday, November 14, 2008 - 12:35 am

On Friday 14 November 2008 16:22, Jeremy Fitzhardinge wrote:

Yep. And leaving it alone is even simpler and still faster :)



I think its pretty nice. It means you can make the loops fairly
optimal even if they might have slightly different requirements
(different arguments, latency breaks, copy_page_range etc).



I think that's being way over dramatic. When switching to a
different page table structure, I assure you that copying and
pasting your new walking algorithm a few times will be the least
of your worries :)

It's not meant to be pluggable. Actually this came up last I think
when the UNSW wanted to add page table accessors to abstract this.
They came up with a good set of things, but in the end you can't
justify slowing things down in these paths unless you actually have
a replacement page table structure that gets you a *net win*. So
far, I haven't heard from them again.

No, adding a cycle here or an indirect function call there IMO is
not acceptable in core mm/ code without a good reason.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] mm: implement remap_pfn_range with apply_to_pa ..., Jeremy Fitzhardinge, (Thu Nov 13, 10:19 am)
Re: [PATCH 1/2] mm: implement remap_pfn_range with apply_t ..., Jeremy Fitzhardinge, (Thu Nov 13, 1:12 pm)
[PATCH 3/2] mm/remap_pfn_range: restore missing flush, Jeremy Fitzhardinge, (Thu Nov 13, 1:13 pm)
Re: [PATCH 1/2] mm: implement remap_pfn_range with apply_t ..., Jeremy Fitzhardinge, (Thu Nov 13, 7:56 pm)
Re: [PATCH 1/2] mm: implement remap_pfn_range with apply_t ..., Jeremy Fitzhardinge, (Thu Nov 13, 10:22 pm)
Re: [PATCH 1/2] mm: implement remap_pfn_range with apply_t ..., Nick Piggin, (Fri Nov 14, 12:35 am)
Re: [PATCH 1/2] mm: implement remap_pfn_range with apply_t ..., Jeremy Fitzhardinge, (Fri Nov 14, 11:04 am)