Description of Problem:
xdelta ignores the --maxmem option.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. xdelta delta --maxmem=16M largefile1 largefile2 deltafile
2. See how much memory it's taking.
It takes more than 16M.
It takes at most 16M.
Tim, I had a look into it for a while and considered the --maxmem option broken
anyway as it refuses to allocate more than 108 (1MB) pages and if you define
--maxmem=128M while diffing some large files, everything will work fine up to
108 pages are allocated for the xdelta's LRU cache. After this limit xdelta
slows down significantly as it then considers it has no cached pages.
I filed this bug upstream: