NVIDIA Engineer Revives Work On Linux Proactive Memory Compaction

Written by Michael Larabel in NVIDIA on 18 May 2020 at 06:11 PM EDT. 2 Comments
NVIDIA
One of the interesting patch series initially published back in 2019 by NVIDIA engineer Nitin Gupta was on proactive memory compaction for the Linux kernel while so far in 2020 it hasn't yet been merged but a fifth revision to the work was published today.

The proactive memory compaction was brought on to address latency issues currently experienced with the kernel's on-demand memory compaction behavior that can happen as a result of requesting a lot of hugepages.

Benchmarks shown by Gupta in the past have for instance shown a Java test setup with transparent huge-pages and requesting tons of huge-pages that the time dropped from 27 minutes to just over 3 minutes. Other benchmark numbers have also been promising out of the proactive memory compaction.

The proactive compaction behavior remains configurable via a new compaction_proactiveness flag for determining how aggressive the compaction should happen in the background. With the v5 patch, the configuration tunable is now exposed via sysctl and besides that are other minor code changes.

More details via the v5 patch message. Hopefully this proactive memory compaction support will see mainline soon, potentially even for Linux 5.8 if this latest round of code review proves fruitful.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week