Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Swap partition' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Swap partition
Authored by: Anonymous on Nov 13, '02 12:27:38AM

Maybe so, maybe not. Once the swap mechanism allocates a chunk o' disk (I think in 80MB chunks -- can't rememebr, maybe 800? Doesn't matter. Big chunks, anyway), it uses some extremely low level API to read/write pages of memory to the swapfiles.

In particular, the APIs used are designed to work in relatively large and very regularly sized chunks (pages and multiples therein) while also continue to work during low level interrupts [pagein/pageout requests at bottom end of the kernel].

As well, the swapfiles are inherently volatile. That is, the state and contents of the swap files have no meaning once a system has been shutdown-- purposefully or because of a failure.

As such, I would not be at all surprised if the journaling support in OS X does not actually journal writes to the swapfiles as there would be no point in doing so.

This is, of course, completely conjecture. I have no idea if this is actually the case and, frankly, if it is even possible.

Anyone checked if the source is in the Darwin repository and bothered reading it yet??



[ Reply to This | # ]