Memory (RAM) Woes
Posted: Fri Feb 26, 2010 9:33 am
First off, thanks for putting this tutorial together, Jeff. Great inspiration to get back in to hacking again.
Now, onto my problem
I've been doing a bunch of re-compiles to get my firmware setup exactly how I wanted it and finally, it was working great with the radio streams or a few mp3s.
However, when I samba mounted my entire MP3 collection to the 520gu from a file server, mpd threw up on me by running out of memory and took the system down with it (full system halt after 10s of memory allocation errors). The mp3 collection is about 65GB (i had a huge cd collection and am a big e-tree user) and that translates into an approx 2.3MB mpd.db file.
I have a few ideas, but don't really like any of them too much enough to do much more than do some experiments. Any feedback or other ideas?
Possible workarounds:

Now, onto my problem

I've been doing a bunch of re-compiles to get my firmware setup exactly how I wanted it and finally, it was working great with the radio streams or a few mp3s.
However, when I samba mounted my entire MP3 collection to the 520gu from a file server, mpd threw up on me by running out of memory and took the system down with it (full system halt after 10s of memory allocation errors). The mp3 collection is about 65GB (i had a huge cd collection and am a big e-tree user) and that translates into an approx 2.3MB mpd.db file.
I have a few ideas, but don't really like any of them too much enough to do much more than do some experiments. Any feedback or other ideas?
Possible workarounds:
- Add a USB flash thumb drive and put swap space on it. Pros: Easy and Cheap, Cons: worried about reliability of flash reliability as swap
- Create a small networked partition to use as swap space Pros: Should be quick and easy, Cons: can swap space even be mounted over a network? Seems sketchy even if possible, especially wireless.
- Cut down memory usage of other parts on the system to minimal Pros: no external swap needed, Cons: painful and really limits any improvements/expansions to the system.
- Buy the next step up of the router with 2x memory Pros: probably would have enough to not have issues, Cons: Feels like giving up and throwing HW and $$ at a technical challenge :D