Disable Virtual Memory (on BeOS)

Hi. How do I disable swap/virtual memory on BeOS? I don’t really want the minimum of 1GB.

The Virtual Memory preference only lets me go down to 1133MB. That doesn’t seem to change when I change virtual_memory file in kernel drivers, although that file will remain the way I left it during reboots.

I know I found an app to do this while organizing, but I just can’t find it. I saw it only 2 days ago.

I was able to find the swap file in var somewhere and remove it. After a reboot, I got an error message about not enough free space to make a swap file. There is plenty of free space, but don’t nag. I don’t want the swap anyway.

The error said swap will be disabled until I free up more space. I want to ensure it remains disabled. Any ideas.

You can edit the virtual_memory file located under: ~/config/settings/kernel/drivers/.

Just make sure it reads vm off (doesn’t really matter if you still see swap_size <some number here>.

After saving that file, and rebooting, you can just rm /var/swap to reclaim the space.

1 Like

I did edit that, it didn’t seem to have an effect. I also removed that file, and got an error on boot that I was able to “don’t nag”. If it will stay that way, that’s awesome. Thanks.

If you click don’t nag it creates an empty file in home/config/settings called stop_swap_nagging (or similar) and doesn’t recreate the swap file unless you change settings in the virtual memory preference app.

1 Like