diff options
author | Mel Gorman <mel@csn.ul.ie> | 2007-07-17 07:03:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:22:59 -0400 |
commit | 7e63efef857575320fb413fbc3d0ee704b72845f (patch) | |
tree | ce33c10e5f5d9ea16b0e6944d6994b1f9cc22040 /Documentation | |
parent | ed7ed365172e27b0efe9d43cc962723c7193e34e (diff) |
Add a movablecore= parameter for sizing ZONE_MOVABLE
This patch adds a new parameter for sizing ZONE_MOVABLE called
movablecore=. While kernelcore= is used to specify the minimum amount of
memory that must be available for all allocation types, movablecore= is
used to specify the minimum amount of memory that is used for migratable
allocations. The amount of memory used for migratable allocations
determines how large the huge page pool could be dynamically resized to at
runtime for example.
How movablecore is actually handled is that the total number of pages in
the system is calculated and a value is set for kernelcore that is
kernelcore == totalpages - movablecore
Both kernelcore= and movablecore= can be safely specified at the same time.
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Acked-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/kernel-parameters.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 1794affbd06f..9a541486fb7e 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -833,6 +833,16 @@ and is between 256 and 4096 characters. It is defined in the file | |||
833 | use the HighMem zone if it exists, and the Normal | 833 | use the HighMem zone if it exists, and the Normal |
834 | zone if it does not. | 834 | zone if it does not. |
835 | 835 | ||
836 | movablecore=nn[KMG] [KNL,IA-32,IA-64,PPC,X86-64] This parameter | ||
837 | is similar to kernelcore except it specifies the | ||
838 | amount of memory used for migratable allocations. | ||
839 | If both kernelcore and movablecore is specified, | ||
840 | then kernelcore will be at *least* the specified | ||
841 | value but may be more. If movablecore on its own | ||
842 | is specified, the administrator must be careful | ||
843 | that the amount of memory usable for all allocations | ||
844 | is not too small. | ||
845 | |||
836 | keepinitrd [HW,ARM] | 846 | keepinitrd [HW,ARM] |
837 | 847 | ||
838 | kstack=N [IA-32,X86-64] Print N words from the kernel stack | 848 | kstack=N [IA-32,X86-64] Print N words from the kernel stack |