Skip to content
  • Mel Gorman's avatar
    Add a movablecore= parameter for sizing ZONE_MOVABLE · 7e63efef
    Mel Gorman authored
    
    
    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: default avatarMel Gorman <mel@csn.ul.ie>
    Acked-by: default avatarAndy Whitcroft <apw@shadowen.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    7e63efef