Linked by Thom Holwerda on Sun 31st Aug 2008 16:15 UTC, submitted by cy
BeOS & Derivatives Thanks to Google Summer of Code student Zhao Shuai, Haiku now has support for a swap file. "As of revision 27233 it is enabled by default, using a swap file twice the size of the accessible RAM. The swap file size can be changed (or swap support disabled) via the VirtualMemory preferences. Swap support finally allows building Haiku in Haiku on a box with less than about 800 MB RAM, as long as as the swap file is large enough. [Ingo Weinhold] tested this on a Core 2 Duo 2.2 GHz with 256 MB RAM (artificially limited) and a 1.5 GB swap file. Building a standard Haiku image with two jam jobs (jam -j2) took about 34 minutes. This isn't particularly fast, but Haiku is not well optimized yet." The swap implementation borrows heavily from that of FreeBSD.
Thread beginning with comment 328714
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[2]: Swap twice the RAM
by fernandotcl on Sun 31st Aug 2008 19:05 UTC in reply to "RE: Swap twice the RAM"
fernandotcl
Member since:
2007-08-12

There's no rule of thumb, it always depends on what you're running. However, Haiku needs a default. For a work-in-progress operating system, I consider that default more than appropriate.

And it's not like you can't change it easily. It's a swap file, not a swap partition.

Also, I believe a big chunk of the Haiku community uses Haiku in more constrained environments. Swap space almost makes no sense for regular utilization when you have 2G of RAM, but you might require twice as much swap space if you have less than 512MB of RAM.

And what's all the fuss about this? If you have 2G of RAM in your machine, you most likely have enough disk space for a big swap file.

Reply Parent Score: 4

RE[3]: Swap twice the RAM
by ShadesFox on Mon 1st Sep 2008 01:16 in reply to "RE[2]: Swap twice the RAM"
ShadesFox Member since:
2006-10-01

That's always been my thoughts on the subject. I have 2 gigs of ram and my linux install has a 4 gig swap partition on a 500 gig disk drive. If I ever start pining for those 4 gigs It would probably be time to upgrade to a 20 terabyte disk drive. I still wish more Linux installers would have a 'use swap file' option instead, make things more dynamic.

Edited 2008-09-01 01:17 UTC

Reply Parent Score: 1