Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Nov 2005 19:30:50 -0500
From:      michael johnson <buhnux@gmail.com>
To:        Maxim.Sobolev@portaone.com
Cc:        Nicolas Blais <nb_root@videotron.ca>, Steve Hodgson <steve@acidy.com>, freebsd-current@freebsd.org, Jens Schweikhardt <schweikh@schweikhardt.net>
Subject:   Re: Using ccache for build{world,	kernel}
Message-ID:  <3DE7B806-FB6B-4388-8FC7-E495F82E9D9B@ahze.net>
In-Reply-To: <437A780C.8070609@portaone.com>
References:  <200511141702.45491.nb_root@videotron.ca>	<200511150542.34910.nb_root@videotron.ca>	<4379BCEB.6030806@acidy.com>	<200511150611.31743.nb_root@videotron.ca>	<20051115183647.GA1783@schweikhardt.net> <20051115211418.GE1783@schweikhardt.net> <437A780C.8070609@portaone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Nov 15, 2005, at 7:06 PM, Maxim Sobolev wrote:

> I have better patch which extends detection mechanism, so that  
> along with size/mtime checksum of the compiler binary is stored as  
> well. Since compiler binary linked from the same sources/objects  
> will have the same checksum it allows ccache to be used OOB with  
> buildworld. Do you have any interest in putting it into the port?
>
> http://www.portaone.com/~sobomax/ccache.buildworld
>

Sure, I just have one question about the way this thing works. Would  
using this patch not
make collision probability of the cache higher? I don't think this  
would be a huge problem,
but it's not impossible to do with a 1,000,000~ file cache now.


> -Maxim
>
> Jens Schweikhardt wrote:
>
>> Folks,
>> # Put this in /usr/ports/devel/ccache/files/patch-nohash-size- 
>> mtime and
>> # reinstall the port. Then export CCACHE_NOHASH_SIZE_MTIME=y  
>> during your
>> # makes for buildworld and buildkernel. This melts my buildworld time
>> # from 2700s (real@~100%CPU) to under 1000s and buildkernel from 800s
>> # to 250s, so you gain about a factor 3 for ab-initio builds. Sweet!
>> # # # --- ccache.c.orig    Mon Oct 31 17:38:21 2005
>> # +++ ccache.c    Mon Oct 31 17:52:31 2005
>> # @@ -331,8 +331,10 @@
>> #          hash_string(str_basename(args->argv[0]));
>> #      }
>> #  # -    hash_int(st.st_size);
>> # -    hash_int(st.st_mtime);
>> # +    if (!getenv("CCACHE_NOHASH_SIZE_MTIME")) {
>> # +        hash_int(st.st_size);
>> # +        hash_int(st.st_mtime);
>> # +    }
>> [Rest of patch snipped ...]
>> I just asked the devel/ccache maintainer to commit this patch and he
>> promptly did (Thanks Michael Johnson, aka ahze!). So you only need  
>> this
>> unless your ports tree is current as of now.
>> Regards,
>>     Jens
>>
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current- 
> unsubscribe@freebsd.org"
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFDen28n4uqfTwEb9YRAjwUAJ439Lix6NizOpdPi201BnK2ghS9KwCfc7Lu
AWa6Ybbl66Fqh4ZP1D2VRtc=
=TJw0
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DE7B806-FB6B-4388-8FC7-E495F82E9D9B>