sakaki- / gentoo-on-rpi-64bit

Bootable 64-bit Gentoo image for the Raspberry Pi4B, 3B & 3B+, with Linux 5.4, OpenRC, Xfce4, VC4/V3D, camera and h/w codec support, weekly-autobuild binhost
GNU General Public License v3.0
926 stars 127 forks source link

RE: about swap wiki entry. #182

Closed k0nsl closed 3 years ago

k0nsl commented 3 years ago

Hello sakaki,

I am currently testing gentoo-on-rpi-64bit and so far I like what I see. Very good. There's just one thing I accidentally stumbled across, the wiki entry about swap!

The way I see it: I think that introducing an “old school” type of swap file on any RPi-device is a very bad idea due to the nature of swap; it will tear away the lifespan of your micro SD card or USB flash drive significantly and fast. If you must use swap, then look into something called ZRAM — this is faster and more safe than the method you describe in the wiki entry about swap.

ZRAM was released sometime in 2014, IIRC. In any case, heed my advice and use ZRAM, at least if you care about the health of your micro SD card or USB flash drive. 👌

That's all. Keep up the good work!

sakaki- commented 3 years ago

Thanks. The image does use zswap to attempt to minimize backing store I/O.

Best, sakaki

k0nsl commented 3 years ago

Aha, I see. I hadn't seen that. Very nice!

Have a great day, sakaki. 😁