Announcement

Collapse
No announcement yet.

Latest Slab Cgroup Memory Controller Patches Saving ~1GB RAM Per Host On Facebook Servers

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

  • Latest Slab Cgroup Memory Controller Patches Saving ~1GB RAM Per Host On Facebook Servers

    Phoronix: Latest Slab Cgroup Memory Controller Patches Saving ~1GB RAM Per Host On Facebook Servers

    The past number of months Facebook engineering has been working on a new slab memory controiller for Linux that can offer less memory fragmentation and lower memory use and slab utilization. The sixth version of these patches were published earlier this month...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    i wonder how much ram those hosts have, because it might make a difference.

    savings on 512GB machine are more or less negligible. on 16GB - significant. slab utilization might also be dependent on that.

    i am guessing those are some huge servers.

    Comment


    • #3
      s/controiller/controller

      Comment


      • #4
        I don't see why this is even necessary.

        Comment


        • #5
          Using linux every day for the past 15 years or so as a desktop, it is a memory pig these days, so here's to any help we can get, even if it is Fakebook.

          My laptop has 64gb of ram, and at times this is still a problem exhausting memory. My desktop has 128, and often that floats over 64gb usage, with several more vm's running.

          I keep a win10 image for visio/project around with 8gb ram, but otherwise mostly just use firefox, libreoffice, slack, signal, few other random things, but cumulatively, the least usage I tend to see is roughly 10gb usage with things freshly opened on a restart of the desktop. I've tried kde, cinnamon, all tend to just use an absolute crapton of memory in the past years. Having 64gb of ram (in my laptop) is the least I can work with here.

          Firefox is probably the worst offender (I've caught it using as much as 48gb of memory lately), and linux seems to amplify the memory usage terribly. I don't even know how folks use a pc with less than 16gb of ram with linux these days. Curious thing is how windoze machines are still typically around 8gb, and people find this acceptable, so what is linux doing wrong?

          Comment


          • #6
            mikus how are you measuring memory usage? Different ways of doing that will yield very different results.

            Comment


            • #7
              Originally posted by mikus View Post
              Firefox is probably the worst offender (I've caught it using as much as 48gb of memory lately)
              Sitting here writing this, Firefox is using under 1 GB of RAM. So either you've uncovered an immense memory leak, or your usage is highly atypical.

              Comment


              • #8
                Originally posted by mikus View Post
                Using linux every day for the past 15 years or so as a desktop, it is a memory pig these days, so here's to any help we can get, even if it is Fakebook.

                My laptop has 64gb of ram, and at times this is still a problem exhausting memory. My desktop has 128, and often that floats over 64gb usage, with several more vm's running.

                I keep a win10 image for visio/project around with 8gb ram, but otherwise mostly just use firefox, libreoffice, slack, signal, few other random things, but cumulatively, the least usage I tend to see is roughly 10gb usage with things freshly opened on a restart of the desktop. I've tried kde, cinnamon, all tend to just use an absolute crapton of memory in the past years. Having 64gb of ram (in my laptop) is the least I can work with here.

                Firefox is probably the worst offender (I've caught it using as much as 48gb of memory lately), and linux seems to amplify the memory usage terribly. I don't even know how folks use a pc with less than 16gb of ram with linux these days. Curious thing is how windoze machines are still typically around 8gb, and people find this acceptable, so what is linux doing wrong?
                Not sure what your level of knowledge here is so playing it safe.

                ATM I have about 19GiB of my 32GiB used as cache and just under ~6GiB being used (resident) by apps/DE/etc
                The cache is free'd as soon as an app needs it (so it's a good use of idle RAM and speeds things up) but means the "Free" space looks tiny, the available RAM is much higher than what your "Free" ram might suggest

                Comment


                • #9
                  Originally posted by mikus View Post
                  Firefox is probably the worst offender (I've caught it using as much as 48gb of memory lately)
                  Maybe you are seeing the virtual memory size instead the resident one?
                  My Firefox right now is using 32.7G of virtual memory but only 346M of resident, for example.
                  Last edited by naoliv; 19 June 2020, 03:11 PM.

                  Comment


                  • #10
                    Typo:

                    Originally posted by phoronix View Post
                    Phoronix: Latest Slab Cgroup Memory Controller Patches Saving ~1GB RAM Per Host On Facebook Servers

                    The past number of months Facebook engineering has been working on a new slab memory controiller for Linux that can offer less memory fragmentation and lower memory use and slab utilization. The sixth version of these patches were published earlier this month...

                    http://www.phoronix.com/scan.php?pag...mprovements-V6

                    Comment

                    Working...
                    X