Re: [PATCH 1/2] powerpc: add hugepagesz boot-time parameter
From: Arnd Bergmann <arnd@arndb.de>
Date: 2007-11-28 16:30:40
Also in:
linux-mm
From: Arnd Bergmann <arnd@arndb.de>
Date: 2007-11-28 16:30:40
Also in:
linux-mm
On Wednesday 28 November 2007, Mel Gorman wrote:
On (28/11/07 08:26), Arnd Bergmann didst pronounce:quoted
On Wednesday 28 November 2007, Jon Tollefson wrote:quoted
This patch adds the hugepagesz boot-time parameter for ppc64 that let=
s=20
quoted
quoted
you pick the size for your huge pages. =A0The choices available are 6=
4K=20
quoted
quoted
and 16M. =A0It defaults to 16M (previously the only choice) if nothin=
g or=20
quoted
quoted
an invalid choice is specified. =A0Tested 64K huge pages with the=20 libhugetlbfs 1.2 release with its 'make func' and 'make stress' test=
=20
quoted
quoted
invocations.=20 How hard would it be to add the 1MB page size that some CPUs support as well? On systems with small physical memory like the PS3, that sounds very useful to me. =20=20 Does the PS3 support 1M pages in hardware? When I last looked, the magic ibm,segment-page-sizes file that described the supported pagesizes was missing from the device tree. In this situation, the default sizes become 4K and 16M because no other ones are advertised.
I think you can select the page size using a hypercall on the PS3. The CPU supports any two of (64k, 1M, 16M) simultaneously. Arnd <><