Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomai
  • ipipe
  • Repository
Switch branch/tag
  • ipipe
  • mm
  • hugetlb.c
Find file BlameHistoryPermalink
  • Adam Litke's avatar
    hugetlb: decrease hugetlb_lock cycling in gather_surplus_huge_pages · 19fc3f0a
    Adam Litke authored Apr 28, 2008
    
    
    To reduce hugetlb_lock acquisitions and releases when freeing excess surplus
    pages, scan the page list in two parts.  First, transfer the needed pages to
    the hugetlb pool.  Then drop the lock and free the remaining pages back to the
    buddy allocator.
    
    In the common case there are zero excess pages and no lock operations are
    required.
    
    Thanks Mel Gorman for this improvement.
    Signed-off-by: default avatarAdam Litke <agl@us.ibm.com>
    Cc: Mel Gorman <mel@csn.ul.ie>
    Cc: Dave Hansen <haveblue@us.ibm.com>
    Cc: William Lee Irwin III <wli@holomorphy.com>
    Cc: Andy Whitcroft <apw@shadowen.org>
    Cc: Mel Gorman <mel@csn.ul.ie>
    Cc: David Gibson <david@gibson.dropbear.id.au>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    19fc3f0a

Imprint & Privacy Policy