Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 52965

Summary: xdelta ignores --maxmem
Product: [Retired] Red Hat Linux Reporter: Tim Waugh <twaugh>
Component: xdeltaAssignee: Jindrich Novy <jnovy>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-08 13:50:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tim Waugh 2001-08-31 18:01:55 UTC
Description of Problem:
xdelta ignores the --maxmem option.

Version-Release number of selected component (if applicable):
1.1.1-11

How Reproducible:
100%

Steps to Reproduce:
1. xdelta delta --maxmem=16M largefile1 largefile2 deltafile
2. See how much memory it's taking.

Actual Results:
It takes more than 16M.

Expected Results:
It takes at most 16M.

Additional Information:

Comment 1 Jindrich Novy 2005-09-08 13:50:43 UTC
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:
http://sourceforge.net/tracker/?func=detail&atid=106966&aid=1284923&group_id=6966