#TIL how to add swap space easily on #OpenBSD
Uncategorized
1
Posts
1
Posters
2
Views
-
#TIL how to add swap space easily on #OpenBSD
1) Create a swapfile made of many many 0's, in the size of how large a swapfile you want, so e.g. for 16gb:
$ dd if=/dev/zero of=~/.swapfile bs=1m count =163842) Add it as swap:
# swapctl -a ~/.swapfile3) For great success, check it out to get warm fuzzy feelings:
$ swapctl -l
Device 512-blocks Used Avail Capacity Priority
/dev/sd2b 17065992 0 17065992 0% 0
/home/puffy/.swapfile 33554432 0 33554432 0% 0
Total 50620424 0 50620424 0% -
undefined stefano@mastodon.bsd.cafe shared this topic on