Skip to content
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

Xar chokes with a large number of files #80

Open
GoogleCodeExporter opened this issue Apr 6, 2015 · 1 comment
Open

Xar chokes with a large number of files #80

GoogleCodeExporter opened this issue Apr 6, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. find about 70000 XML files roughly 3k each
2. Attempt to create an XAR archive using the command "xar -cf xml.xar xml/"
3. Watch xar chug for about an hour, eat up gobs of RAM and not finish.

What is the expected output? What do you see instead?

I would like xar to yield an archive in a reasonable amount of time.  
Unfortunately it took so long I just killed the process before it completed.

What version of the product are you using? On what operating system?

xar 1.5.2 on gentoo

Please provide any additional information below.

While the process was running the file on disk remained at 0 bytes.  Does xar 
try to create the entire archive in memory and then dump to disk at the end?  
With a large number of files, this appears to break.

I was attempting to compare the file size and performance difference between 
xar and tar. Tar was able to complete the task within a few minutes and reduce 
the size of the XML directory from 445M to 46M.  I have no numbers for xar as 
it didn't finish.

Original issue reported on code.google.com by roberto....@gmail.com on 16 Mar 2011 at 12:15

@GoogleCodeExporter
Copy link
Author

It's my understanding that xar is supposed to do limited work in RAM (e.g. data 
is processed in 4K chunks) and written into /tmp files before the archive is 
constructed.

I've been using the source distributed with Mac OS X. 
<http://www.opensource.apple.com/source/xar/>, which calls itself v1.6

Original comment by 1billgar...@gmail.com on 25 Apr 2011 at 9:22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant