Announcement

Collapse
No announcement yet.

Facebook Developing THP Shrinker To Avoid Linux Memory Waste

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Facebook Developing THP Shrinker To Avoid Linux Memory Waste

    Phoronix: Facebook Developing THP Shrinker To Avoid Linux Memory Waste

    Meta/Facebook engineers have announced their work on THP Shrinker as a way for Linux's Transparent Hugepages (THP) to be more efficient and avoiding memory waste by removing under-utilized transparent hugepages...

    https://www.phoronix.com/news/Linux-THP-Shrinker

  • #2
    Oh that sounds pretty cool!

    Comment


    • #3
      Freudian slip. I misread that as THP stinker...

      Comment


      • #4
        Which kernel will integrate this feature? What is the percentage of the improvement?

        Comment


        • #5
          Originally posted by milkylainen View Post
          Freudian slip. I misread that as THP stinker...
          I almost joked about them putting the THP in cold water instead to get it to shrink.

          Comment


          • #6
            I'm a big fan of huge pages. I think we should probably be using them wherever possible except in the most restrictive environments. Internal kernel memory structures, the page cache, filesystem tuning for small file affinity within 1MB boundaries to optimize large-page block caching, swap... I'll bet there are a ton of efficiencies to be had when more and more of the overhead is handled in 1-2MB chunks instead of 4K at a time.

            Comment


            • #7
              Michael

              Typo/Grammar "Eventually they engineers are hoping that with the THP Shrinker, they" should be something else. Perhaps "Eventually their engineers are hoping that with the THP Shrinker they" would be a bit better.

              Comment


              • #8
                Excuse my ignorance, but am I right in guessing that this doesn't affect normal desktop usage such as Browsers, DE's, Videogames, Video + Photo Editing, engineering?

                Comment


                • #9
                  tip for that pic

                  Comment


                  • #10
                    Originally posted by Mitch View Post
                    Excuse my ignorance, but am I right in guessing that this doesn't affect normal desktop usage such as Browsers, DE's, Videogames, Video + Photo Editing, engineering?
                    THP in general does not, though Fedora|CentOS|RHEL have it enabled by default, and it did have a very rocky start and leave a lot of people with a bad impressions on the desktop side. Huge pages help make some workloads much more efficient, so an improvement to THP is good no matter what. If this change works well and mitigates some of the bad effects of huge pages (more memory consumption, allocation stalls), it'll probably open the door to enabling THP by default, including on desktops.

                    Comment

                    Working...
                    X