This is a weird problem...
I have these problem during NetBSD 9.0 -> NetBSD 9.1
I also check this post and the final solution after all is switch to NetBSD-Stable branch.
https://www.unitedbsd.com/d/171-netbsd-90-huge-memory-usage
That is too bad. I don't want to move to NetBSD-Stable branch right now. And I don't want to throw NetBSD out of my world. I hope I can find solution in here.
I have read https://en.wikipedia.org/wiki/Memory_paging#Unix_and_Unix-like_systems and I think I know a little bit.
The only thing I want to do is enable swap space
here is my /etc/fstab
/dev/wd0a / ffs rw 1 1
/dev/wd0b none swap sw,dp 0 0
tmpfs /tmp tmpfs rw,-m=1777,-s=ram%25
kernfs /kern kernfs rw
ptyfs /dev/pts ptyfs rw
procfs /proc procfs rw
/dev/cd0a /cdrom cd9660 ro,noauto
tmpfs /var/shm tmpfs rw,-m1777,-sram%25
here is my mount
:
/dev/wd0a on / type ffs (local)
tmpfs on /tmp type tmpfs (local)
kernfs on /kern type kernfs (local)
ptyfs on /dev/pts type ptyfs (local)
procfs on /proc type procfs (local)
tmpfs on /var/shm type tmpfs (local)
I sometimes see swapctl: adding /dev/wd0b as swap device at pririority 0
when I boot to the system.
And how to can I use swapctl
or something to enable swap?