Little memory leak?

Issue #123 new
Paul Matthijsse created an issue

Hello, sometimes I’m running low on memory when using ART. Restarting the application solves this. I did some testing to find out where this could come from, but couldn’t find any tool that causes this. I noticed the following though, on a 6 years old simple pc (AMD quad-core, 8GB RAM, Xubuntu 18.04 LTS).

I reboot the pc and start only one application, Geany. Free memory according to GKrellM: 7370 MB.

I start ART with last visited folder. Free mem: 7089.

Now I open 5 NEFs and close them. I repeat this 6 times. I noted the free memory after closing them:

  • 6437
  • 6038
  • 5873
  • 5744
  • 5490
  • 5371

So there’s ~1700MB gone after this operation. Closing ART gives me 7372MB free, as before opening ART.

Not a big deal but perhaps it’s easy to find what causes this.

Regards, Paul.

Comments (5)

  1. Paul Matthijsse reporter

    Yes I do compile myself with the following 3 commands (I’m not a specialist in compile options, if it works for me it’s OK):

    • cmake -DCMAKE_BUILD_TYPE=Release
    • make -j5
    • sudo make install

  2. agriggio repo owner

    try installing tcmalloc if you haven't already (usually the package is called gperftools)

  3. leclerc

    Hello.

    on my system as well, Art is quickly very memory-hungry (Manjaro linux). After processing a photo with a few local layers, I quickly go up to 6-7 GB of memory used.
    I compile Art with build-art, and I'm on the latest version. Tcmalloc is installed on my computer.

  4. Log in to comment