View Single Post
Posts: 66 | Thanked: 17 times | Joined on Dec 2007
#16
Originally Posted by dan View Post
I put aside 1gb for swap. When I added Debian I put it on same card as swap and have been having trouble with loading apps int Debian.
Edit: Solution do not put Debian in a card that has swap partition. Major problems with Debian if you do.
I'm not sure which "fix" of mine you are referring to. I simply set up swap as in a normal Linux install. I'm using Debian on a partition which is on the same card as the swap, and haven't had any problems, but I haven't had time to try and add any apps to it yet. Since having swap and data on the same interface can create data transfer bandwith bottlenecks your solution is a good one. I always put a swap partition on every SD card I use (as the first partition on the internal card, and the last partition on external card).

I have found that, unfortunately, flash-based devices seem unable to take good advantage of large amounts of swap memory. So currently I'm using 256MB. Unfortunately even that seems to be excessive, since I've never seen a flash-based device take advantage of anything over say 100MB.

But then again with the size of the new SD cards memory is cheap, so it never hurts to have way too much. 1GB, however, is probably way too excessive.

You must also remember that using swap will wear out the flash very quickly, so always have a backup of any data on your SD card. It would probably also be best to put the swap on a smaller and less expensive SD card, just in case it dies. . .