FS#17280 - [repo] Using XZ rather than gzip
Attached to Project:
Arch Linux
Opened by Ronan RABOUIN (DarkBaboon) - Wednesday, 25 November 2009, 15:32 GMT
Last edited by Pierre Schmitz (Pierre) - Monday, 22 February 2010, 02:45 GMT
Opened by Ronan RABOUIN (DarkBaboon) - Wednesday, 25 November 2009, 15:32 GMT
Last edited by Pierre Schmitz (Pierre) - Monday, 22 February 2010, 02:45 GMT
|
Details
Description:
If Archlinux would use XZ (lzma) rather than gzip for compression, providing smaller package sizes without the memory and CPU penalties associated with bzip2. This would lets Archlinux repositories use less space and bandwidth (25% in terms of space and bandwidth savings has been reported by Slackware devs). Considering our devs have to limit each connection to 50kbytes/s on ftp.archlinux.org, the default mirror for Arch, because it uses too much bandwidth, the benefits would be felt right away. |
This task depends upon
Closed by Pierre Schmitz (Pierre)
Monday, 22 February 2010, 02:45 GMT
Reason for closing: Implemented
Additional comments about closing: first xz compressed packages are in [testing]
Monday, 22 February 2010, 02:45 GMT
Reason for closing: Implemented
Additional comments about closing: first xz compressed packages are in [testing]
For xz: Using this compression decreases upload/download time and disk space significantly. I have added support for xz to our scripts some time ago and it should just work. Pacman itself doesn't need to know about it thanks to libarchive. The problem is the migration step. We have two possibilities:
1) Recompress every package with xz and adjust makepkg.conf to use xz by default. This way we wont need to change any scripts and it should just work. Of course this will be quite insane because recompression of the whole repo takes a long time and mirros would have to resync every single package.
2) update our scripts to be able to use both compression methos at the same time and set xz as default. This way we would migrate slowly with every new package. The downside is that our scripts need to have some voodoo added which makes them even more complex. I have had a look at this and it's not as simple as it sounds. So: patches are welcome.
To clarify, the only place where mixed-extension stuff is not supported is within db-scripts and devtools? That seems like the place to target this IMO.
(unassigned myself as I am not interested in doing this)