Help - Search - Members - Calendar
Full Version: Swapfile Or Swap Partition?
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > OpenBSD
ZDevil
Because of the possible cause of too-many (= 6) partitions on microdrive for the suspend/resume hanging, I am about to reinstall the whole system on 3200 in one big partition.

Now i have a question about swapping:

If i install the whole system in one big partition, and then create another (small) swap partition, does the swap partition work well?
According to the documentation, swap partition comes as the second one (wd0b), which means it can be/has to be accessed fast enough near the beginning of the hard drive.
But if I use one big partition, which should come before the swap partition, then the swap partition will end up being at the end of the hard drive.
The question is: does this allocation for swap affect its access speed?
If it is a normal big harddisk, say several hundred GBs, then i guess this would be the case.
But how about a 6gb microdrive or a 8gb hi-speed CF on a Zaurus?
Or is it actually better to use a (contiguous?) swapfile *within* the single partition?

Or do i misunderstand the whole thing?

Sorry i am not very familiar with harddisk and partitioning. Your advice is much appreciated. smile.gif
mathemajikian
QUOTE(ZDevil @ May 8 2007, 08:34 AM)
Because of the possible cause of too-many (= 6) partitions on microdrive for the suspend/resume hanging, I am about to reinstall the whole system on 3200 in one big partition.

Sorry i am not very familiar with harddisk and partitioning. Your advice is much appreciated.  smile.gif


I wouldn't really worry about the swap partition access times; in fact, it might be best to leave it on a separate partition. However, during my initial installation I only created a wd0a partition. I didn't create a separate partition wd0b for swap. After the system was installed I created a swap file on wd0a. Directions on how to accomplish this can be found here: How to swap to a File This method will leave you with one single partition utilizing the entire micro drive, but you can't use softdep:

QUOTE
The swap file must not reside on a filesystem which has SoftUpdates enabled


Another alternative is to generate scripts which unmounts wd0b on suspend and standby and then remounts it on resume after a few seconds. Name the scripts standby,suspend, and resume then place them in /etc/apm/

I don't think unmounting the swap partition before suspend/standby and remounting it after resume is going to resolve your resume/suspend problems, but you can give it a try.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.