Hey Mirko,
Am Freitag, 25. September 2009 01:22:41 schrieb Mirko Vogt:
Unfortunately OpenZIM seems to consume an amount of memory the Ben isn't able to serve (it has 32MB of RAM). Even with a really minimalistic system (lightweight kernelconfig + busybox-based rootfs, having just a shell) and accessing the zimreader via a webbrowser running on another machine, OpenZIM is getting killed by the kernels out-of-memory killer after a few clicks.
I had a discussion with Mirko Lindner about this issue a few days ago.
My guess was that the caches inside zimreader are to aggressive.
Zimreader tries to optimize access time by caching the extracted data and by pre-fetching articles which are linked in the currently viewed article.
Another issue may be that the cluster size (number of articles which are bundled together for better compression) might be too high. For this I filed a bug: http://bugs.openzim.org/show_bug.cgi?id=9.
Is there a way of configuring / adjusting the zimreader to reduce memory consumption to get it running smoothly and stable on device such the ben NanoNote?
Concerning the caches I suggest that the zimreader gets a configure option "--low-memory" which disables pre-fetching and limits the number of cached articles. I asked Mirko to file a bug for this.
Regards,
Manuel