All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] INSTALL: minor typo fix
@ 2015-01-27 16:15 Alexander Kuleshov
  2015-01-27 17:09 ` Chris Packham
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Kuleshov @ 2015-01-27 16:15 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, Alexander Kuleshov

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
 INSTALL | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/INSTALL b/INSTALL
index ffb071e..6f1c3d5 100644
--- a/INSTALL
+++ b/INSTALL
@@ -53,7 +53,7 @@ or
 
 As a caveat: a profile-optimized build takes a *lot* longer since the
 git tree must be built twice, and in order for the profiling
-measurements to work properly, ccache must be disabled and the test
+measurements to work properly, cache must be disabled and the test
 suite has to be run using only a single CPU.  In addition, the profile
 feedback build stage currently generates a lot of additional compiler
 warnings.
-- 
2.3.0-rc1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] INSTALL: minor typo fix
  2015-01-27 16:15 [PATCH] INSTALL: minor typo fix Alexander Kuleshov
@ 2015-01-27 17:09 ` Chris Packham
  2015-01-27 17:15   ` Chris Packham
  2015-01-27 17:17   ` Jeff King
  0 siblings, 2 replies; 4+ messages in thread
From: Chris Packham @ 2015-01-27 17:09 UTC (permalink / raw)
  To: Alexander Kuleshov; +Cc: Junio C Hamano, GIT

Hi Alexander

On Wed, Jan 28, 2015 at 5:15 AM, Alexander Kuleshov
<kuleshovmail@gmail.com> wrote:
> Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
> ---
>  INSTALL | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/INSTALL b/INSTALL
> index ffb071e..6f1c3d5 100644
> --- a/INSTALL
> +++ b/INSTALL
> @@ -53,7 +53,7 @@ or
>
>  As a caveat: a profile-optimized build takes a *lot* longer since the
>  git tree must be built twice, and in order for the profiling
> -measurements to work properly, ccache must be disabled and the test
> +measurements to work properly, cache must be disabled and the test
>  suite has to be run using only a single CPU.  In addition, the profile
>  feedback build stage currently generates a lot of additional compiler
>  warnings.
> --

That's not a typo ccache[1] is a compiler cache tool that can be used
to speed up rebuilding object files. I don't know anything about the
profile enabled builds but I imagine it has something to do with
needing the 2nd build to produce difference object files from the
first (with ccache enabled I imagine the 2nd build would result in
identical output since on source files are changed between builds).

--
[1] - https://ccache.samba.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] INSTALL: minor typo fix
  2015-01-27 17:09 ` Chris Packham
@ 2015-01-27 17:15   ` Chris Packham
  2015-01-27 17:17   ` Jeff King
  1 sibling, 0 replies; 4+ messages in thread
From: Chris Packham @ 2015-01-27 17:15 UTC (permalink / raw)
  To: Alexander Kuleshov; +Cc: Junio C Hamano, GIT

On Wed, Jan 28, 2015 at 6:09 AM, Chris Packham <judge.packham@gmail.com> wrote:
> Hi Alexander
>
> On Wed, Jan 28, 2015 at 5:15 AM, Alexander Kuleshov
> <kuleshovmail@gmail.com> wrote:
>> Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
>> ---
>>  INSTALL | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/INSTALL b/INSTALL
>> index ffb071e..6f1c3d5 100644
>> --- a/INSTALL
>> +++ b/INSTALL
>> @@ -53,7 +53,7 @@ or
>>
>>  As a caveat: a profile-optimized build takes a *lot* longer since the
>>  git tree must be built twice, and in order for the profiling
>> -measurements to work properly, ccache must be disabled and the test
>> +measurements to work properly, cache must be disabled and the test
>>  suite has to be run using only a single CPU.  In addition, the profile
>>  feedback build stage currently generates a lot of additional compiler
>>  warnings.
>> --
>
> That's not a typo ccache[1] is a compiler cache tool that can be used
> to speed up rebuilding object files. I don't know anything about the
> profile enabled builds but I imagine it has something to do with
> needing the 2nd build to produce difference object files from the

s/difference/different/

> first (with ccache enabled I imagine the 2nd build would result in
> identical output since on source files are changed between builds).
>
> --
> [1] - https://ccache.samba.org/

The commit that added that note f2d713fc[1] has a bit more of an
explanation of why profile enabled builds and ccache are incompatible.

[1] - https://github.com/git/git/commit/f2d713fc3e8e0b7be89584f04b421808aa99c403

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] INSTALL: minor typo fix
  2015-01-27 17:09 ` Chris Packham
  2015-01-27 17:15   ` Chris Packham
@ 2015-01-27 17:17   ` Jeff King
  1 sibling, 0 replies; 4+ messages in thread
From: Jeff King @ 2015-01-27 17:17 UTC (permalink / raw)
  To: Chris Packham; +Cc: Alexander Kuleshov, Junio C Hamano, GIT

On Wed, Jan 28, 2015 at 06:09:52AM +1300, Chris Packham wrote:

> On Wed, Jan 28, 2015 at 5:15 AM, Alexander Kuleshov
> <kuleshovmail@gmail.com> wrote:
> > Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
> > ---
> >  INSTALL | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/INSTALL b/INSTALL
> > index ffb071e..6f1c3d5 100644
> > --- a/INSTALL
> > +++ b/INSTALL
> > @@ -53,7 +53,7 @@ or
> >
> >  As a caveat: a profile-optimized build takes a *lot* longer since the
> >  git tree must be built twice, and in order for the profiling
> > -measurements to work properly, ccache must be disabled and the test
> > +measurements to work properly, cache must be disabled and the test
> >  suite has to be run using only a single CPU.  In addition, the profile
> >  feedback build stage currently generates a lot of additional compiler
> >  warnings.
> > --
> 
> That's not a typo ccache[1] is a compiler cache tool that can be used
> to speed up rebuilding object files. I don't know anything about the
> profile enabled builds but I imagine it has something to do with
> needing the 2nd build to produce difference object files from the
> first (with ccache enabled I imagine the 2nd build would result in
> identical output since on source files are changed between builds).

Yes, ccache creates a cache key for each file based on the command line
flags to the compiler, and the output of the pre-processor when run on
the file. The profiling data generated by the first run is outside of
what ccache knows about, so it can't include that information in its
cache key (and consequently, we get false cache hits).

So yeah. Not a typo.

-Peff

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-01-27 17:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-27 16:15 [PATCH] INSTALL: minor typo fix Alexander Kuleshov
2015-01-27 17:09 ` Chris Packham
2015-01-27 17:15   ` Chris Packham
2015-01-27 17:17   ` Jeff King

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.