427
submitted 1 day ago* (last edited 1 day ago) by inari@piefed.zip to c/linux@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] vithigar@lemmy.ca 99 points 1 day ago

It's a little better than your read. The ~400x speedup is in comparison to using ZRAM, which, in very brief terms, compresses memory by creating an in-memory compressed block device and assigning that as your swap space. So your "swap" is actually a compressed chunk of RAM, not on disk.

This was significantly slower than normal memory access because page faulting when looking up something in memory then fetching from swap was, itself, expensive. Regardless of how fast that swap was. When your swap is on a storage device that overhead is comparatively tiny, but when it's just another chunk of memory suddenly it's what you're spending most of your time on.

[-] rockSlayer@lemmy.blahaj.zone 13 points 1 day ago

Fuck yea, RAM swap? I bought both my laptop and desktop when RAM was cheap, and got more memory than I needed. I can safely allocate like 12GB to CRAM!

[-] vithigar@lemmy.ca 33 points 1 day ago

The win from CRAM is that it is not swap, and operates using mostly normal RAM semantics. If it works as advertised you should be able to allocate most (all?!) of your RAM as CRAM.

[-] MacFearrs@lemmy.dbzer0.com 3 points 1 day ago

I would guess this is only useful in servers, as for day to day use you ideally want the lowest latency you can for responsiveness. That said, if there's a way you can specify which type processes can use, that may be useful in some cases

[-] klankin@piefed.ca 3 points 19 hours ago* (last edited 19 hours ago)

Honestly though CPU processing is going to add almost no latency at all.

Almost all latency is sending to the RAM itself, so if you can compress it in a CPU cache before sending it, its nearly free RAM space.

Also systems are fucked fast these days you could probably make something responsive in pure python - other than millisecond timing scenarios like medical and audio stuff

[-] floquant@lemmy.dbzer0.com 5 points 1 day ago

Depends on the workload. This probably would not be great for gaming or audio production, but it might be for video editing and local LLMs

[-] morto@piefed.social 8 points 1 day ago

And for gluttonous browsers and browser-based apps

this post was submitted on 08 Oct 2026
427 points (98.9% liked)

Linux

68001 readers
1284 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS