Originally posted by Spam
View Post
Announcement
Collapse
No announcement yet.
Fedora Workstation 33 Aiming To Have SWAP-On-ZRAM By Default
Collapse
X
-
Unfortunately compressed swap files are not supported. I guess the swap file actually just acts as a place holder for the physical address the swap writes to.
The problem with using an underlaying filsystem is that even if you can compress a 4KiB memory page, you still have to write out a block, and most FS's uses 4KiB blocks. It wouldn't save any I/O. What is needed is a virtual swap address so that several blocks can be combined. This is done in-ram with zbud/zsmalloc for zswap.
Last edited by S.Pam; 26 January 2020, 04:38 PM.
Leave a comment:
-
Originally posted by Spam View PostSo when will we get compressed swap on disk? Seems far more useful. Especially if an application actually needs a lot of ram, as zswap takes valuable ram.
Code:zfs create -V 8G \ -o compression=lz4 \ -o logbias=throughput \ -o sync=always \ -o primarycache=metadata \ -o secondarycache=none \ -o com.sun:auto-snapshot=false \ poolname/swap
Leave a comment:
-
So when will we get compressed swap on disk? Seems far more useful. Especially if an application actually needs a lot of ram, as zswap takes valuable ram.
- Likes 1
Leave a comment:
-
Originally posted by xinorom View Post
Sure, for large media storage, backups, etc... but using a HDD for your main system partitions in 2020 is extremely cheapskate. If you're a heavy computer user, I'd even say that not using an NVMe drive is bordering on cheapskate...
I'm content with mirrors and raid0 on HDDs for the time being.
Leave a comment:
-
Originally posted by skeevy420 View PostI still use HDDs. More storage for less money.
- Likes 3
Leave a comment:
-
Originally posted by polarathene View PostHibernation by default aims for 40% compression of RAM(2/5th the size). You can reduce that target to 100%(5/5) if you don't care for compression and it'll just write the contents to disk. On a SATA SSD, if it has to write 48GB yeah that would be slow, around 1 min 30? But afaik only actual allocated memory is written to disk for hibernation?
- Likes 1
Leave a comment:
-
Originally posted by skeevy420 View PostThe problem with the first option is, at least the last time I tried anyways, a full reboot cycle was faster than just going into hibernation, let alone restoring it.
Originally posted by Britoid View PostWindows is very good at hibernation and session restore.
When you shutdown/restart, it logs out of the user session to free up RAM, then hibernates from there to reduce load times apparently, provided Fast Startup is enabled.
Originally posted by Britoid View PostProbably need to move to a system where a hibernate file can be created on-demand.
- Likes 1
Leave a comment:
-
Originally posted by Britoid View Post
That's how Intel Rapid Start worked.
It's gone now, it got replaced because Windows is very good at hibernation and session restore.
Probably need to move to a system where a hibernate file can be created on-demand.
Leave a comment:
-
Originally posted by skeevy420 View Post
I wonder how long it'll be until laptops come with two drives -- primary drive and hibernate drive.
It's gone now, it got replaced because Windows is very good at hibernation and session restore.
Probably need to move to a system where a hibernate file can be created on-demand.
- Likes 1
Leave a comment:
Leave a comment: