[haiku-development] R1A4 RC swap issue - ram * 2

  • From: kallisti5 <kallisti5@xxxxxxxxxxx>
  • To: <haiku-development@xxxxxxxxxxxxx>
  • Date: Thu, 30 Aug 2012 10:39:11 -0500

I installed the R1A4 RC (hrevr1alpha4-44576) on my beefy laptop with lots of memory this morning and ran across this bug:

https://dev.haiku-os.org/ticket/7742

* Installed Haiku to a freshly formatted 8GB partition
* Reboot to find 400MB free
* Disk usage shows /boot/common/var/swap is 6.9 GB
* Machine has a little over 3GB ram... so this makes sense as ram * 2
* Swap preference panel was already disabled.
* Erased swap file
* Emptied trash
* Space still used
* Rebooted
* Space still used
* No swap file present now
* Ran checkfs on Haiku partition
  * No errors reported, but space drops to a correct level.

It sounds like swap is double the ram by default... but on these 8-16GB systems, the swap file grows larger then the available free space causing issues.

Would setting ceiling for automatically determined swap of 2GB be a potential fix wanted in the R1A4 (and master) branch?


 -- Alex

Other related posts: