Red Hat Bugzilla – Bug 654233
[RFE] One-pass creation using TarFile
Last modified: 2014-04-01 07:34:32 EDT
- sosreport currently creates a directory, put everything there THEN compress it
- This is CPU-intensive, involves an awful lot of unnecessary system calls, involves way more storage than necessary
- When a sosreport fails, users willing to provide files to their support team have to create the tarball themselves, when they know how to do that
- Use Tarfile http://docs.python.org/library/tarfile.html
- Symlinks and commands outputs can be provided directly through TarFile.add() and TarInfo
- All signals need to be catched when possible, to make sure we have a consistent tarball
- Less I/O, less operations
- A lot less disk space being used
- Virtually no temporary files
- Back to gzip/bzip2 as TarFile does NOT expose the xz algorithm
-- or --
- Compression happens afterwards (partially defeats the purpose of this RFE)
- (In the long term?) we can stop using /tmp and use the current directory.
- Users would have to be very explicitely notified about this change.
... Stuff I didn't think about yet, but please discuss in the comments.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Reverted due to https://github.com/sosreport/sosreport/issues/86