On Thu, Sep 26, 2013 at 11:30:22AM -0700, Zach Brown wrote: > > > Sigh. A pox on whoever thought up huge pages. > > > > managing 1TB+ of memory in 4K chunks is just insane. > > The question of larger pages is not "if", but only "when". > > And "how"! > > Sprinking a bunch of magical if (thp) {} else {} throughtout the code > looks like a stunningly bad idea to me. It'd take real work to > restructure the code such that the current paths are a degenerate case > of the larger thp page case, but that's the work that needs doing in my > estimation. Sorry, but that is how all of large pages in the Linux VM works (both THP and hugetlbfs) Yes it would be nice if small pages and large pages all ran in a unified VM. But that's not how Linux is designed today. Yes having a Pony would be nice too. Back when huge pages were originally proposed Linus came up with the "separate hugetlbfs VM" design and that is what were stuck with today. Asking for a whole scale VM redesign is just not realistic. VM is always changing in baby steps. And the only known way to do that is to have if (thp) and if (hugetlbfs) . -Andi -- ak@xxxxxxxxxxxxxxx -- Speaking for myself only -- 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/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>