this post was submitted on 02 Oct 2023
1020 points (99.1% liked)

Programmer Humor

32380 readers
1413 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 208 points 1 year ago (7 children)

Protip: Put swapfile on ramdisk for highest speed

[–] [email protected] 90 points 1 year ago (6 children)

Unironically that's how zram works

[–] [email protected] 21 points 1 year ago (1 children)

Doesn't it compress the contents that it's storing to help kind of get the best of both worlds?

You get faster storage because it's in ram still, but with it being compressed there's also "more" available?

I could be completely mistaken though

[–] [email protected] 15 points 1 year ago (1 children)

You are correct, although zram uses more cpu power since it compresses things. It's not really an issue if you're not using a potato :=)

[–] [email protected] 11 points 1 year ago (1 children)

even if you are using a potato it probably doesn't have much ram so slightly slowing it to make things run smoother is a very popular choice

[–] [email protected] 1 points 1 year ago

Today I learned!

load more comments (4 replies)
load more comments (4 replies)