Daily Archives: 25.10.2023

1 post

Add A Swap File On Existing Partition

Use case: One creates a cloud VM with minimal RAM and your service is being killed because it just needs some more. There’s only one partition on the disk attached so here we go: ` $ sudo fallocate -l 1g /mnt/1GiB.swap $ sudo chmod 600 /mnt/1GiB.swap $ sudo mkswap /mnt/1GiB.swap Setting up swapspace version 1, […]