[PATCH] autocache patch for mock -- try 2

Michael E Brown Michael_E_Brown at dell.com
Wed May 17 04:28:35 UTC 2006


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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: mock-autocache-gzip.patch
Type: text/x-patch
Size: 553 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-buildsys-list/attachments/20060516/a1455f4b/attachment.bin>
-------------- next part --------------
Full build, no cache, don't build cache:
        [michael_e_brown at mdomsch-pe1425-a ~]$ 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): 
        [michael_e_brown at mdomsch-pe1425-a ~]$ 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): 
        [michael_e_brown at mdomsch-pe1425-a ~]$ 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): 
        [michael_e_brown at mdomsch-pe1425-a ~]$ 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): 
        [michael_e_brown at mdomsch-pe1425-a ~]$ 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): 
        [michael_e_brown at mdomsch-pe1425-a ~]$ 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): 
        [michael_e_brown at mdomsch-pe1425-a ~]$ 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




More information about the Fedora-buildsys-list mailing list