[diffoscope] diffoscope - Excessive memory usage?

Chris Lamb chris at reproducible-builds.org
Fri Sep 12 01:24:25 UTC 2025


Hello Greg,

> Potentially user error here, but hoping for some ideas.

Well, we don't like to assume user error — or putting it another way,
diffoscope should make it easy to do the right or expected thing. :)

> I pulled the latest diffoscope container image to compare two 4.7GB DVD 
> ISOs of the same disc. After starting it, it quickly used all 16GB of 
> RAM on the machine, and then another ~8GB of swap.

ISO images are particularly taxing for diffoscope, but it shouldn't be
hitting memory quite like that. I wonder: is the Docker container
using a tmpfs? That would certainly exhaust your memory very quickly,
as the ISO image needs to be extracted before its contents can be
compared.


Regards,

-- 
      o
    ⬋   ⬊      Chris Lamb
   o     o     reproducible-builds.org 💠
    ⬊   ⬋
      o


More information about the diffoscope mailing list