THP Shrinker was developed by Facebook To prevent Linux memory waste

Share This Post

THP can be effective for specific workloads by lowering the TLB cache’s unhit state, but if it’s not used properly, the 2MB vs. 4Kb page size can result in significant memory waste.

The fundamental idea of THP Shrinker, developed by Meta/Facebook developers to improve Linux’s Transparent Pages (THP), is to reduce memory wastage by eliminating unused transparent pages.

Highlights

  • By separating the least-used big memory pages, the THP Shrinker mechanism Facebook is developing for the Linux kernel intends to solve this waste while still enjoying the advantages of THP for CPU performance.

  • On one of their platforms, Facebook developers discovered that the THP wasn’t being used to its full potential, even leaving each machine with almost 2.7GB of unused memory.

Facebook engineers are working to tie this THP Shrinker to CPU/IO/memory stress events and to add more tuning to it. The THP shrinker should eventually enable the engineers to directly deprecate Linux’s madvise THP mode and switch to THP enabled for all programmes, they hope.

The madevise system call-based option is replaced by THP Shrinker, which is created to prevent RAM wastage and make huge memory pages as transparent and accessible to everyone as feasible.

Read More:

Partnership Between Mitsubishi Electric and Nozomi Networks Strengthens Operational Technology Security Business

Mitsubishi Electric and Nozomi Networks Partnership Mitsubishi Electric and Nozomi...

Solidion Technology Inc. Completes $3.85 Million Private Placement Transaction

**Summary:** 1. Solidion TechnologyInc. has announced a private placement deal...

Analyzing the Effects of the EU’s AI Act on Tech Companies in the UK

Breaking Down the Impact of the EU’s AI Act...

Tech in Agriculture: Roundtable Discusses Innovations on the Ranch

Summary of Tech on the Ranch Roundtable Discussion: ...

Are SMEs Prioritizing Tech Investments Over Security Measures?

SMEs Dive Into Tech Investments, But Are...

Spotify Introduces Music Videos for Premium Members in Chosen Markets

3 Summaries of Spotify Unveils Music Videos for Premium...

Shearwater to Monitor Production at Equinor’s Two Oil Platforms

Shearwater GeoServices secures 4D monitoring projects from Equinor for...

Regaining Europe’s Competitive Edge in Innovation: Addressing the Innovation Lag

Europe’s Innovation Lag: How Can We Regain Our Competitive...

Related Posts

Government Warns of AI-Generated Content: Learn More about the Issue

Government issued an advisory on AI-generated content. All AI-generated content...

Africa Faces Internet Crisis: Extensive Outage Expected to Last for Months, Hardest-Hit Nations Identified

Africa’s Internet Crisis: Massive Outage Could Last Months, These...

FTC Investigates Reddit for AI Content Licensing Practices

FTC is investigating Reddit's plans...

Journalists Criticize AI Hype in Media

Summary Journalists are contributing to the hype and...