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: Thursday, July 31, 2008 - 3:31 am

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

We are a lot more reliable than we were although exact quantification is
difficult because it's workload dependent. For a long time, I've been able
to test bits and pieces with hugepages by allocating the pool at the time
I needed it even after days of uptime. Previously this required a reboot.

I've also been able to use the dynamic hugepage pool resizing effectively
and we track how much it is succeeding and failing in /proc/vmstat (see the
htlb fields) to watch for problems. Between that and /proc/pagetypeinfo, I am
expecting to be able to identify availablilty problems. As an administrator
can now set a minimum pool size and the maximum size of the pool (nr_hugepages
and nr_overcommit_hugepages), the configuration difficulties should be relaxed.

If it is found that anti-fragmentation can be broken down and pool
resizing starts failing after X amount of time on Y workloads, there is
still the option of using movablecore=BiggestPoolSizeIWillEverNeed
and writing 1 to /proc/sys/vm/hugepages_treat_as_movable so the hugepage
pool can grow/shrink reliably there.

Overall, it's in pretty good shape.

To be fair, one snag is that that swap is almost required for pool
resizing to work as I never pushed to complete memory compaction
(http://lwn.net/Articles/238837/).  Hence, we depend on the workload to
have lots of filesystem-backed data for lumpy-reclaim to do its job, for
pool resizing to take place between batch jobs or for swap to be configured
even if it's just for the duration of a pool resize.

-- 
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, Christoph Lameter, (Wed Jul 30, 12:40 pm)
Re: [RFC] [PATCH 0/5 V2] Huge page backed user-space stacks, Mel Gorman, (Thu Jul 31, 3:31 am)
Re: [RFC] [PATCH 0/5 V2] Huge page backed user-space stacks, Michael Ellerman, (Thu Jul 31, 7:32 am)