The Haiku/BeOS Tip Server
Tips and tricks for Haiku/BeOS users

A fix for too much RAM

Contributed by: Nate LaCourse
This tip is valid for: Both BeOS and Haiku

If you have a lot of RAM (>128MB), and find that your machine crashes fairly often, the following could be your problem:

“When accessing a filesystem where the blocks are 2 KB [or larger], such as a CD, the [disk] cache gets bigger. When you have 256MB of RAM [or greater], it gets so big that the kernel_heap collides with another part of the kernel called the vm_heap. When that happens, the kernel can no longer resize its heap, and that’s a fatal problem [the kernel panics, and you get thrown into KDL — read: your system crashes].”

The fix:

Copy the file /boot/home/config/settings/kernel/drivers/sample/kernel to /boot/home/config/settings/kernel/drivers.

Edit /boot/home/config/settings/kernel/drivers and uncomment the disk_cache_size line by removing the # sign.

Change 2048 to 16384.

Save your changes and reboot.


EDITOR’S NOTE: Quoted text taken from BeFAQs.com.

Posted in Miscellaneous


(comments are closed).