Using swapfile on NetBSD 9.2
If do you use applications like mdnds on NetBSD on a simple OrangePi Zero, soon will take notice that it will fill the RAM, even if not used for anything. One solution is to activate the good and old swap, who is disabled by default on a OrangePi Zero NetBSD image. As root, do the following commands to create a swapfile with 2Gb. Febronia# dd if=/dev/zero of=/swapfile bs=1m count=2048 Febronia# chmod 600 /swapfile Febronia# swapctl -a -p 0 /swapfile Febronia# echo "/swapfile none swap sw,priority=0 0 0" >> /etc/fstab And that’s it. I should already show on “top” and on /proc/meminfo.