Re:Pinebook Pro – First Impressions and Setup Tips
by cperciva on Thursday January 23, 2020 @06:43AM
(#22126746)
Can someone explain to me the logic of putting a pagefile on a ramdisk? If the pages are going to be in RAM anyway, why pretend that they're on disk?
[ Parent
| on HN ]
Re:Pinebook Pro – First Impressions and Setup Tips
by Kliment on Thursday January 23, 2020 @06:45AM
(#22126761)
Because it's transparently compressed, so you get more RAM out of your RAM at the cost of some latency and CPU usage. This is a good tradeoff on heavily RAM constrained workloads like attempting to run Slack clients.
Re:Pinebook Pro – First Impressions and Setup Tips
by flatiron on Thursday January 23, 2020 @08:05AM
(#22127159)
I’m not sure why they went through all that hassle when there is zswap. That’s what I use for low ram devices.
Re:Pinebook Pro – First Impressions and Setup Tips
by mbreese on Thursday January 23, 2020 @09:55AM
(#22127970)
The default storage is an EMMC chip, so they are trying to avoid hitting that for swap completely. With 4GB of RAM, that’s a reasonable goal.
If think of you added in an SSD to the machine, then zswap might be more appropriate.
Re:Pinebook Pro – First Impressions and Setup Tips
by Kliment on Thursday January 23, 2020 @09:46AM
(#22127906)
In this case, because the storage device that's there by default is optimized for low power and not high speed, so RAM is dramatically faster. They implemented swap as well but only as a last resort when the compressed RAM runs out.
Re:Pinebook Pro – First Impressions and Setup Tips
by zamadatix on Thursday January 23, 2020 @10:27AM
(#22128251)
Sounds exactly like what zswap does out of the box.
"Zswap is a kernel feature that provides a compressed RAM cache for swap pages. Pages which would otherwise be swapped out to disk are instead compressed and stored into a memory pool in RAM. Once the pool is full or the RAM is exhausted, the least recently used (LRU) page is decompressed and written to disk, as if it had not been intercepted." https://wiki.archlinux.org/index.php/Zswap
Re:Pinebook Pro – First Impressions and Setup Tips
by ashitlerferad on Saturday January 25, 2020 @05:45PM
(#22149102)
From that wiki page you linked to:
"The difference compared to zram is that zswap works in conjunction with a swap device while zram is a swap device in RAM that does not require a backing swap device."