Re: [PATCH 00 of 41] Transparent Hugepage Support #17

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

 



On Sat, 10 Apr 2010, Andrea Arcangeli wrote:

> Full agreement! I think everyone wants transparent hugepage, the only
> compliant I ever heard so far is from Christoph that has some slight
> preference on not introducing split_huge_page and going full hugepage
> everywhere, with native in gup immediately where GUP only returns head
> pages and every caller has to check PageTransHuge on them to see if
> it's huge or not. Changing several hundred of drivers in one go and
> with native swapping with hugepage backed swapcache immediately, which
> means also pagecache has to deal with hugepages immediately, is
> possible too, but I think this more gradual approach is easier to keep
> under control, Rome wasn't built in a day. Surely in a second time I
> want tmpfs backed by hugepages too at least. And maybe pagecache, but
> it doesn't need to happen immediately. Also we've to keep in mind for
> huge systems the PAGE_SIZE should eventually become 2M and those will
> be able to take advantage of transparent hugepages for the 1G
> pud_trans_huge, that will make HPC even faster. Anyway nothing
> prevents to take Christoph's long term direction also by starting self
> contained.

I want hugepages but not the way you have done it here. Follow conventions
and do not introduce on the fly conversion of page size and do not treat a
huge page as a 2M page while also handling the 4k components as separate
pages. Those create additional synchronization issues (like the compound
lock and the refcounting of tail pages). There are existing ways to
convert from 2M to 4k without these issues (see reclaim logic and page
migration). This would be much cleaner.

I am not sure where your imagination ran wild to make the claim that
hundreds of drivers would have to be changed only because of the use of
proper synchronization methods. I have never said that everything has to
be converted in one go but that it would have to be an incremental
process.

Would you please stop building strawmem and telling wild stories?

> To me what is relevant is that everyone in the VM camp seems to want
> transparent hugepages in some shape or form, because of the about
> linear speedup they provide to everything running on them on bare
> metal (and an more than linear cumulative speedup in case of nested
> pagetables for obvious reasons), no matter what design that it is.

We want huge pages yes. But transparent? If you can define transparent
then we may agree at some point. Certainly not transparent in the sense of
volatile objects that suddenly convert from 2M to 4K sizes causing
breakage.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx  For more info on Linux MM,
see: http://www.linux-mm.org/ .
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]