Re: [PATCH] mremap: skip page table lookup for non-faulted anonymous VMAs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 07, 2011 at 12:21:35PM +0800, Nai Xia wrote:
> If an anonymous vma has not yet been faulted, move_page_tables() in move_vma()
> is not necessary for it.

I actually thought of adding that (in fact fork has it and it's more
likely to be beneficial for fork than for mremap I suspect), but this
adds a branch to the fast path for a case that shouldn't normally
materialize. So I don't think it's worth adding it as I expect it to
add overhead in average.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]