Re:Apple Silicon M1: A Developer's Perspective
by CraigJPerry on Saturday November 28, 2020 @03:55PM
(#25240464)
You could create a swap file rather than a dedicated partition:
$ dd if=/dev/zero of=/swap bs=1M count=8192
$ mkswap /swap
$ swapon /swap
$ echo "/swap swap swap defaults 0 0" >> /etc/fstab
Re:Apple Silicon M1: A Developer's Perspective
by laurencerowe on Saturday November 28, 2020 @05:35PM
(#25241131)
You don’t need to reparation, just configure it to use a swap file. If you set swappiness to zero it will only use it when out of ram.
Re:Apple Silicon M1: A Developer's Perspective
by barkingcat on Saturday November 28, 2020 @04:39PM
(#25240790)
you can always add a swap file ... that makes your life easier so you don't have hangs, and you don't need to repartition.
I use swap files all the time with things like raspberry pi's and such because I don't want to mess with the sd card partitions, but still from time to time it's good to have that swap fallback since the memory onboard is limited.
Swap files are super easy to set up, take up no "brainpower" and disk space is cheap these days.
Certainly some devs need more than 16gb, but they know who they are. And you know who they are because, well, they love telling you :).