1
Zaurus - pdaXrom / Pdaxi13 : Safer Apm Suspend On Akita
« on: August 01, 2007, 03:11:30 pm »Quote
QuoteIsn't this dangerous when swap is heavily used?
I have heard and experiences myself that when unmounting a used swap, not all contents can be swapped back into memory and the system hangs.
daniel
[div align=\"right\"][a href=\"index.php?act=findpost&pid=165612\"][{POST_SNAPBACK}][/a][/div]
I agree... and if there aren't issues... suspends will become VERY lengthy...
Late
[div align=\"right\"][a href=\"index.php?act=findpost&pid=165616\"][{POST_SNAPBACK}][/a][/div]
Yes, your are right, turning off the swap might not be a good idea in case of heavy load. But suspending in this situation is in general not a good idea...
From a general point of view, I prefer a lengthy suspend than a buggy resume. When there is heavy traffic on the SD card while suspending, I experimented some timeout issues from the SD driver that yield I/O errors on the ext2 filesystem. This is very bad and could corrupt the data. Of course, the real culprit is the proprietary SD driver that is apm unaware. The best solution would be to have a better driver. I suggest here only a quickand dirty workaround.
Of course other suggestions are welcome ...