By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Deferred THP Insertion Nearing The Linux Kernel To Help Avoid Memory Waste
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > Deferred THP Insertion Nearing The Linux Kernel To Help Avoid Memory Waste
Computing

Deferred THP Insertion Nearing The Linux Kernel To Help Avoid Memory Waste

News Room
Last updated: 2025/04/27 at 8:55 AM
News Room Published 27 April 2025
Share
SHARE

A patch currently residing within Andrew Morton’s “MM” memory management branch ahead of the upcoming Linux 6.16 merge window is an addition by Red Hat for introducing deferred THP insertion to khugepaged. This deferred Transparent Huge Page (THP) insertion aims to help reduce memory waste on Linux with some workloads.

Nico Pache of Red Hat has been working on this ability to optionally defer TDP insertion to khugepaged. This adds a new Linux boot option for “transparent_hugepage=” of transparent_hugepage=defer for those wanting this new deferred mode.

Lots of RAM

The Red Hat engineer explains in the MM patch commit message:

“We’ve seen cases were customers switching from RHEL7 to RHEL8 see a significant increase in the memory footprint for the same workloads.

Through our investigations we found that a large contributing factor to the increase in RSS was an increase in THP usage.

For workloads like MySQL, or when using allocators like jemalloc, it is often recommended to set /transparent_hugepages/enabled=never. This is in part due to performance degradations and increased memory waste.

This series introduces enabled=defer, this setting acts as a middle ground between always and madvise. If the mapping is MADV_HUGEPAGE, the page fault handler will act normally, making a hugepage if possible. If the allocation is not MADV_HUGEPAGE, then the page fault handler will default to the base size allocation. The caveat is that khugepaged can still operate on pages thats not MADV_HUGEPAGE.

This allows for three things… one, applications specifically designed to use hugepages will get them, and two, applications that don’t use hugepages can still benefit from them without aggressively inserting THPs at every possible chance. This curbs the memory waste, and defers the use of hugepages to khugepaged. Khugepaged can then scan the memory for eligible collapsing. Lastly there is the added benefit for those who want THPs but experience higher latency PFs. Now you can get base page performance at the PF handler and Hugepage performance for those mappings after they collapse.”

As this new “transparent_hugepage=defer” option is currently queued in Andrew Morton’s MM branch, it’s likely to be submitted for the upcoming Linux 6.16 merge window in one month if no issues arise with this current code.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Kroger apologizes after shopper calls out ‘constant’ issues with popular service
Next Article Star Wars is so back
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Azure Service Fabric vs Kubernetes:Definitions & Differences
News
5 Signs Your Startup Actually Has Brand Value | HackerNoon
Computing
Here’s Which Vehicles Offer iPhone Car Keys
News
When is it SAFE to retire? Expert reacts to couple with $7k pension & $140k cash
News

You Might also Like

Computing

5 Signs Your Startup Actually Has Brand Value | HackerNoon

7 Min Read
Computing

Nothing is Absolute: A Beginner’s Guide to Einsten’s Theory of Sepcial Relativity | HackerNoon

20 Min Read
Computing

Free Landscaping Proposal Template for Professional Agreements

28 Min Read
Computing

10 Project Retrospective Templates for Productive Feedback

21 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?