Thread: iLiad SWAP on iLiad
View Single Post
Old 09-01-2008, 03:28 PM   #15
M@rcel
Connoisseur
M@rcel began at the beginning.
 
Posts: 50
Karma: 32
Join Date: Aug 2008
Device: Irex iLiad
I have enabled swap on MMC

Why:
I have a few HUGE pdf's consisting of images of scanned bookpages. Opening these files made the iLiad's LED blink forever (well many hours at least) and sometimes caused even a lockup (reset required). Because the same file showed different symptoms on different attempts, I wondered if the kernel ran out of memory and perhaps an application that doesn't check returns from malloc()-calls properly .
Adding (swap-) memory seemed a valid attempt to me to try to fix this.

I have a permanently mounted 1 GByte MMC for non-iRex software and things, so I decided to put the swapfile there. I chose a size of 128MByte (2 * RAM).

Result:
  • The documents now open correctly.
  • "cat /proc/swaps" and "cat /proc/meminfo" show that the swapspace is being used.
  • I am happy .

Remarks:
  • The wiki page ( https://wiki.mobileread.com/wiki/Swap_on_iLiad ) shows an invalid dd commandline. Am I allowed to fix this myself?
  • I changed the swapfile's name into _swpfile to hide it from the contentlister
  • The performance seems not to suffer from this modification
M@rcel is offline   Reply With Quote