Announcement

Collapse
No announcement yet.

Linux 6.10 SLUB Optimization To Reduce Memory Consumption In Extreme Scenarios

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

  • Linux 6.10 SLUB Optimization To Reduce Memory Consumption In Extreme Scenarios

    Phoronix: Linux 6.10 SLUB Optimization To Reduce Memory Consumption In Extreme Scenarios

    A patch to the Linux kernel's SLUB allocator has been queued ahead of the upcoming Linux 6.10 merge window to help reduce memory consumption in extreme scenarios...

    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
    Chen found that the number of allocated objects via /proc/slabinfo dropped from 13,519,712 down to 4,200,768 objects
    -31%.. Incredible work!!!

    Comment


    • #3
      Originally posted by Kjell View Post

      -31%.. Incredible work!!!
      -69 %

      Comment


      • #4
        SLOB was messy, SLAB ended up falling flat - let's hope SLUB doesn't end up... wait for it... "sluggish"!!

        Comment


        • #5
          The remaining SL*B acronyms are SLEB and SLIB. Maybe SLYB to force a sixth vowel since six-vowel phonology exists in real life. (Mandarin Chinese is one, at least if we take Pinyin romanization at face value.) We don't have so much space for full rewrites of a SLAB allocator before we have to get smarter.

          Things aside, this looks like a nice incremental change.
          Last edited by cend; 12 April 2024, 12:32 PM.

          Comment


          • #6
            Nice.
            Resource management is one area where blunt theory is impaled on the sharp edges of reality.
            Memory management more so than for other resources.
            Not a kernel mavin but I think the patch adds some memory (state) of where you got the chunk of memory from so when the same situation next arises you return to the same well as it were.

            Comment


            • #7
              Slab fragmentation is a big deal for my use case which involves caching a lot of small files (so inodes/dentries aplenty). In prior cases I either used SLAB or set slub_max_order = 2 to avoid it, so I'm glad to see work is being done on this.

              Comment


              • #8
                Originally posted by cend View Post
                We don't have so much space for full rewrites of a SLAB allocator before we have to get smarter.
                Or dumber. Go the "They're takin' our jerbs!" route. SLERB, SLIRB, ...

                Comment

                Working...
                X