Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kragen
3 months ago
|
parent
|
context
|
favorite
| on:
Zram Performance Analysis
An alternative is zswap
https://old.reddit.com/r/linux/comments/11dkhz7/zswap_vs_zra...
which I believe, despite the name, can also compress RAM without hitting disk.
mscdex
3 months ago
|
next
[–]
It's only an alternative if you have a backing swap device. zram does not have this requirement, so (aside from using no compression) it's basically the only solution for some scenarios (e.g. using entire disk(s) for ZFS).
kragen
3 months ago
|
parent
|
next
[–]
Can't you use a ramdisk as your backing swap device?
PhageGenerator
3 months ago
|
root
|
parent
|
next
[–]
Using a ramdisk for zswap is basically just zram with extra steps.
Ferret7446
3 months ago
|
root
|
parent
|
next
[–]
It is not the same at all. The swapping algorithm can make a big difference in performance, for better or worse depending on workload
RealStickman_
3 months ago
|
root
|
parent
|
next
[–]
Zram is just swap but in RAM. It uses the same algorithms as normal swap
kragen
3 months ago
|
root
|
parent
|
prev
|
next
[–]
Extra steps are fine if the result works better.
heavyset_go
3 months ago
|
prev
[–]
If you use hibernation, I think it also compresses your RAM image for potentially less wear and faster loading/saving
1oooqooq
3 months ago
|
parent
[–]
why hibernation would not compress to begin with? you're more likely just end up running zstd twice.
heavyset_go
3 months ago
|
root
|
parent
[–]
Swap isn't compressed by default, hibernation dumps memory to swap
kasabali
3 months ago
|
root
|
parent
[–]
Hibernation uses compression regardless of zswap
heavyset_go
3 months ago
|
root
|
parent
[–]
Thanks for the correction
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: