-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
big memory usage #98
Comments
Yes, this is a known issue (to me anyway 😉) and my current biggest frustration with this project. I've collected a bunch of blog posts and such about space leaks in Haskell, but have not managed to make any progress beyond that on fixing this -- I have no real experience with this kind of issue. 😦 There are two scripts in the You could try those on your phone photos folder, though fair warning that I have suffered some data loss with both of them in the past. (I've fixed all the data loss bugs I know of, but there may be more.) |
Space leaks and Haskell! It Is Known. I haven't done any haskell hacking in quite a while so not much help. Sprinkling some strictness annotations around might help? |
Yeah, I did try that a while ago. Hadn't bothered pushing it here since it didn't pan out, but you can see what I tried at https://github.com/jerith666/elbum/compare/gen-album-mem-leak if you're curious. |
The first thing I did with this was run it on my phone photos folder, just to see what the output looked like. That's 9673 images. The result was my machine UI froze, ha. Last update from btop showed 19G memory usage from elbum (I have 32G), but hard to say what final memory usage was as the screen was frozen, mouse pointer wouldn't move, etc. Rebooted and ran on a smaller folder with fewer images, but still impressive memory usage of like 5.4G. So it works, but better for a curated gallery than a comprehensive catalog it seems.
The text was updated successfully, but these errors were encountered: