Re: [RFC] hugepages on sparc

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

 



From: Nitin Gupta <nitin.m.gupta@xxxxxxxxxx>
Date: Wed, 27 Jan 2016 14:29:49 -0800

> I'm not a hugepage expert but as I understand, this change in default
> hugepage size is due to the way transparent hugepage (THP) is
> implemented, which looks at memory in PMD size increments and PMD
> happens to be 8M aligned. Correct?

Correct.  It is 1,000 times easier to implement THP support if the
PMD boundary matches the huge page size.  We can encode the huge PTEs
directly in the PMDs, so it's the best implementation.

> THP code in mm/huge_memory.c also seems to assume an x86 style page
> table (depends on "PMD" size etc.). This seems not ideal for
> architectures like SPARC where any data structure like hash table can
> be used for page tables. So, shouldn't THP code be using some API to
> figure out hugepage backing status of a memory area?

Making APIs easier to use for architecture other than x86 is not a
priority for anyone.

> Do you think it would be worth fixing THP as above (remove constrain
> for hugepage to be PMD aligned) to at least allow enabling hw-backed
> hugepage size as default again?

I don't see what the problem with 8MB huge pages are, they work really
well and the implementation is incredibly straightforward.

You have to demonstrate a performance of behavioral problem to justify
such work.  Then you have to come up with an implementation of the
THP ABI changes, and satisfy the THP and mm maintainers.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux