Re: [RFC] [PATCH 0/5 V2] Huge page backed user-space stacks

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mel Gorman
Date: Wednesday, July 30, 2008 - 12:30 pm

On (30/07/08 10:34), Andrew Morton didst pronounce:

It is a bit. Usually, I expect around 5%.


I expect so. I know SpecCPU has some benchmarks that are stack-dependent and
would benefit from this patchset. I haven't experimented enough yet with other
workloads to give a decent estimate. I've added Andrew Hastings to the cc as
I believe he can make a good estimate on what sort of gains had by backing
the stack with huge pages based on experiments along those lines. Andrew?

With Erics patch and libhugetlbfs, we can automatically back text/data[1],
malloc[2] and stacks without source modification. Fairly soon, libhugetlbfs
will also be able to override shmget() to add SHM_HUGETLB. That should cover
a lot of the memory-intensive apps without source modification.

[1] It can partially remap non-hugepage-aligned segments but ideally the
application would be relinked

[2] Allocated via the morecore hook in glibc

-- 
Mel Gorman
Part-time Phd Student                          Linux Technology Center
University of Limerick                         IBM Dublin Software Lab
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] [PATCH 0/5 V2] Huge page backed user-space stacks, Eric Munson, (Mon Jul 28, 12:17 pm)
[PATCH 4/5 V2] Build hugetlb backed process stacks, Eric Munson, (Mon Jul 28, 12:17 pm)
Re: [PATCH 4/5 V2] Build hugetlb backed process stacks, Dave Hansen, (Mon Jul 28, 1:37 pm)
Re: [RFC] [PATCH 0/5 V2] Huge page backed user-space stacks, Mel Gorman, (Wed Jul 30, 12:30 pm)
Re: [RFC] [PATCH 0/5 V2] Huge page backed user-space stacks, Christoph Lameter, (Wed Jul 30, 12:40 pm)
Re: [RFC] [PATCH 0/5 V2] Huge page backed user-space stacks, Michael Ellerman, (Thu Jul 31, 7:32 am)