Skip to content

[linux] saturate disk (3-10gb/s depending on hardware), become compute bound.#259

Merged
JustVugg merged 4 commits into
JustVugg:devfrom
withinboredom:uring
Jul 15, 2026
Merged

[linux] saturate disk (3-10gb/s depending on hardware), become compute bound.#259
JustVugg merged 4 commits into
JustVugg:devfrom
withinboredom:uring

Conversation

@withinboredom

@withinboredom withinboredom commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

GitHub ate my pull request

Pull request creation failed. Validation failed: Body is too long (maximum is 65536 characters)

... so I lost the benchmarks, and I don't have time to run the full gauntlet again.

With this PR, I bring over our commercial fork's disk loader from Swytch, and provide disk saturation through io_uring, Linux only. Tok/s becomes nearly 100% independent of cache size, and will saturate your entire disk and CPU cores. Combined with the better eviction algorithm of #223, I see ~0.4-0.6 tok/s with 12 cores. I tested it on a 60-core machine (Digital Ocean droplet) and saw ~1.5-2.2 tok/s.

Here's a quick run with chat that I still had in my scrollback (60 core machine):

root@ubuntu-c-60-intel-ams3:~/colibri/c# DIRECT=1 URING=1 PIPE_WORKERS=64 ./coli chat --ram 64 --repin -1 --topp 8 --topk 8

     โ–„โ–€โ–€โ–€โ–„  โ–„        colibrรฌ v1.0
  โ–„โ–„โ–„โ–„โ–€โ–€โ–€โ–€โ–„โ–€โ–€        tiny engine, immense model
      โ–€โ–€โ–€โ–€โ–€โ–€โ–€        GLM-5.2 ยท 744B MoE ยท int4 ยท streaming CPU
        โ–€โ–€โ–€โ–€         chat ยท glm52 ยท ram 64GB ยท topp 8.0
          โ–€
  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  type and press Enter ยท :more continues ยท :reset clears memory ยท :q exits

  โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
  โ”‚ โ€บ Tell me a story about a fairy princess who falls down a well. Keep it short, sardonic, and   โ”‚
  โ”‚   hilarious.                                                                                   โ”‚
  โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

  โ—† colibrรฌ
  TIERS 0 0 19456 0.00 0.00



  The Princess in the Well

  Princess Elara Glitterwing-Moondancer (yes, that was her actual legal name, and yes, the other fairies made fun of her for the hyphen) was walking through the Enchanted Forest on a Tuesday afternoon in May, because of course it was Tuesday, because nothing interesting ever happened on Tuesdays, and she was about to change that.

  She didn't.

  What she did was trip on a perfectly ordinary root and fall into an abandoned well on the property of one Gareth Blackthorn, a man who had never seen a fairy in his life and had, quite frankly, been minding his own business for the last forty-seven years.

  "Oh, for the love ofโ€”" Elara started.

  "Shut up down there," said Gary, because of course his name was Gary. "I just got this well sealed up. You're ruining my Tuesday."

  "You can't just leave me down here!"

  "Why not?"

  "Because I'm a fairy princess!"

  "Right," Gary said. "And I'm a Gary."

  He did not, in fact, help her out.

  ---

  *Gary went home, made a sandwich, and lived sardonically ever after.*
  โ””โ”€ 250 tok ยท 1.53 tok/s ยท hit 57% ยท RSS 53.4 GB ยท 163s

And the 12 core machine:

root@beta ~/code/colibri/c # DIRECT=1 URING=1 PIPE_WORKERS=12 ./coli chat --ram 32 --repin -1 --ngen 256 --topp 8 --topk 8

     โ–„โ–€โ–€โ–€โ–„  โ–„        colibrรฌ v1.0
  โ–„โ–„โ–„โ–„โ–€โ–€โ–€โ–€โ–„โ–€โ–€        tiny engine, immense model
      โ–€โ–€โ–€โ–€โ–€โ–€โ–€        GLM-5.2 ยท 744B MoE ยท int4 ยท streaming CPU
        โ–€โ–€โ–€โ–€         chat ยท glm52 ยท ram 32GB ยท topp 8.0
          โ–€
  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  type and press Enter ยท :more continues ยท :reset clears memory ยท :q exits

  โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
  โ”‚ โ€บ Tell me a story about a fairy princess who falls down a well. Keep it short, sardonic, and   โ”‚
  โ”‚   hilarious.                                                                                   โ”‚
  โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

  โ—† colibrรฌ
  TIERS 0 409 19047 0.00 7.74
  Princess ElaraSparkle of the Glittering Glen was not having a particularly magical Tuesday.

  It started, as most catastrophic Tuesdays do, with a wardrobe malfunction. Specifically, her wingsโ€”pure, spun-sugar filaments of gossaverous joyโ€”had developed a sentient grudge against her left shoe.

  She was walking near the old wishing well, trying to remember if sheโ€™d fed the fairy-dust dragon that lived in the dungeon beneath the well, when suddenly her left shoeโ€”spiteful little bastardโ€”untied itself.

  "Shoe!" she cried, in a voice as clear and melodious as a silver bell. "Shoe, you rebellious knave! How dare you betray me?"

  The shoe, naturally, said nothing, because it was a shoe.

  It did, however, conspire with gravity and a slick patch of moss to send her tumbling headfirst down the dark, dank abyss.

  Down, down, down she fell, fetching a pail of well-water on her head, ruining her tiara and her day.

  "Well, well, well," she muttered, wringing her sparkling skirts. "This is a fine kettle of fishโ€”"

  "โ€”that I've never met before!"
  โ””โ”€ 256 tok ยท 0.44 tok/s ยท hit 33% ยท RSS 25.3 GB ยท 578s

And it ran a blog post in 10 minutes... https://gist.github.com/withinboredom/a1b6bd2a7e54206a8ff8d7a393eaf74e

Validation

  • make -C c check
  • CUDA changes were tested with make -C c cuda-test (if applicable)
  • Performance claims include hardware, commands, and repeatable measurements

Compatibility

  • The default CPU build remains dependency-free
  • No model files, generated binaries, or benchmark artifacts are included

Signed-off-by: Robert Landers <landers.robert@gmail.com>
Signed-off-by: Robert Landers <landers.robert@gmail.com>
Signed-off-by: Robert Landers <landers.robert@gmail.com>
@JustVugg
JustVugg changed the base branch from main to dev July 15, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants