Attached are timings from various runs with bzip2, gzip, and no compression. Summary: gzip kicks butt. Mr Tibbitts was correct.
Attached is a diff to change the default to gzip. :) Here is a summary (warm cache): No caching: real 1m36.247s build bz2 cache: real 4m28.174s build gzip cache: real 2m25.889s build nocomp cache: real 1m47.684s use bz2 cache: real 1m13.208s use gzip cache: real 0m20.854s use nocomp cache: real 0m24.060s The numbers above were from building a very small RPM which has no compilation. -- Michael
diff -ruP mock-autocache/mock.py mock-autocache-diff/mock.py --- mock-autocache/mock.py 2006-05-16 22:30:39.000000000 -0500 +++ mock-autocache-diff/mock.py 2006-05-16 23:19:18.000000000 -0500 @@ -763,7 +763,7 @@ config_opts['use_cache'] = False config_opts['pack_cmd'] = "/usr/sbin/mock-helper pack" config_opts['unpack_cmd'] = "/usr/sbin/mock-helper unpack" - config_opts['cache_ext'] = ".tar.bz2" + config_opts['cache_ext'] = ".tar.gz" config_opts['cache_topdir'] = "root-cache" config_opts['max_cache_age_days'] = 15
Full build, no cache, don't build cache: [EMAIL PROTECTED] ~]$ time mock -r fc5-i386 dell-repository-11-0.fc5.src.rpm init clean prep This may take a while setup build ending done Results and/or logs in: /var/lib/mock/fedora-5-i386-core/result First Run: real 1m51.105s user 0m46.835s sys 0m18.117s Second Run: real 1m36.247s user 0m46.895s sys 0m16.797s Full build, autocache, rebuild cache (bzip2): [EMAIL PROTECTED] ~]$ time mock -r fc5-i386 dell-repository-11-0.fc5.src.rpm --autocache init clean prep This may take a while create cache setup build ending done Results and/or logs in: /var/lib/mock/fedora-5-i386-core/result real 4m28.174s user 3m36.874s sys 0m20.877s Full build, autocache, using cache (bzip2): [EMAIL PROTECTED] ~]$ time mock -r fc5-i386 dell-repository-11-0.fc5.src.rpm --autocache init clean prep This may take a while unpack cache setup build ending done Results and/or logs in: /var/lib/mock/fedora-5-i386-core/result real 1m13.208s user 1m0.336s sys 0m11.269s Full build, autocache, rebuild cache (gzip): [EMAIL PROTECTED] ~]$ time mock -r fc5-i386 dell-repository-11-0.fc5.src.rpm --autocache init clean prep This may take a while create cache setup build ending done Results and/or logs in: /var/lib/mock/fedora-5-i386-core/result real 2m25.889s user 1m35.166s sys 0m20.537s Full build, autocache, using cache (gzip): [EMAIL PROTECTED] ~]$ time mock -r fc5-i386 dell-repository-11-0.fc5.src.rpm --autocache init clean prep This may take a while unpack cache setup build ending done Results and/or logs in: /var/lib/mock/fedora-5-i386-core/result real 0m20.854s user 0m8.289s sys 0m10.001s Full build, autocache, rebuild cache (no compression): [EMAIL PROTECTED] ~]$ time mock -r fc5-i386 dell-repository-11-0.fc5.src.rpm --autocache init clean prep This may take a while create cache setup build ending done Results and/or logs in: /var/lib/mock/fedora-5-i386-core/result real 1m47.684s user 0m46.639s sys 0m21.197s Full build, autocache, using cache (no compression): [EMAIL PROTECTED] ~]$ time mock -r fc5-i386 dell-repository-11-0.fc5.src.rpm --autocache init clean prep This may take a while unpack cache setup build ending done Results and/or logs in: /var/lib/mock/fedora-5-i386-core/result real 0m24.060s user 0m1.484s sys 0m9.169s
-- Fedora-buildsys-list mailing list Fedora-buildsys-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-buildsys-list