To view parent comment, click here.
To read all comments associated with this story, please click here.
it depends on what happens if the system crashes. some OS still dump the whole OS completely in SWAP before dying since you don't want it saved as a regular file on the filesystem.
When rebooting, the dump in swap is then saved into a regular file.
basically swap = 2xRAM is a bad idea, but there are sometimes reaons why it's space is needed. Don't know how HAIKU does this though.
It's important to explain why "some OS" on the event of a crash dumps the whole system memory over the paging file: because it's pre-allocated and, at some point, reliable (ie: safe to write to).
There could never be something unexplained or uncotrolled at kernel space. If something odd happened at kernel space, it (the kernel) can only be trusted to a minimum, so trusting it to allocate another file could be disastrous and render the whole system corrupt or unusable, so this design of using a pre-allocated file would be the safest.
Back to the matter at hand, the fixed value of twice the RAM is completely out of parameter, but you have to start somewhere, so it's understandable.
I would choose no hard disk paging, ever, for a few reasons: it's simpler (and simpler is always good) and you got the "how much RAM you have is exactly how much you can expect to load on your system" approach (a lot easier for everyone: users, developers, admins, ...).
I have an idea: use disk paging only after the system generated a baseline on how a particular system behaves. I think it's the smartest way to do that.
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.
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
Face it, modern OSes need to use lots of RAM, esp. for developers who are rebuilding things like GCC, OpenOffice, etc. Not saying that's typical or ideal, but it can be necessary for some things.
However, does anyone here know if using 2 GB RAM + 4 GB swap is even possible?? I mean, would that even work (on Haiku or any other 32-bit OS)?? Wouldn't it be unavailable at the same time anyways, only letting you use approx. 4 GB (or less) at once?
Why "face it"? My last system had 1 GB of RAM and it worked fine. My RAM is now doubled, yet my apps haven't become more bloated. If anything, GNOME and KDE have only become less bloated over the years as they kept optimizing things. I compiled GCC 4 years ago on an Athlon 1.4 Ghz with only 380 MB RAM, why wouldn't I be able to do that now with a system that has even more RAM? GCC didn't become *that* much bigger.
If my last system with less resources worked fine, and it only had 1 GB of RAM, then why would I suddenly need to have 4 GB of swap now that I have 2 GB of RAM? Couldn't I just think of the extra GB of RAM that I've gained as the swap?
It seems totally illogical to me. One of the points of upgrading one's RAM is to make sure that the system doesn't need as much swap, so why would one need to upgrade the swap as well after having upgraded the RAM?







Member since:
2005-11-11
Yes, I don't understand why people still stick to it. I have 2 GB of RAM and I have no swap, and everything works fine. It would be insane to allocate 4 GB of swap for my system.