Colin Burgess(deleted)
|
Re: Stange performance issue
|
Colin Burgess(deleted)
12/04/2007 3:34 PM
post3316
|
Re: Stange performance issue
I took a trace of my own, and I can confirm that cc1 is waitpage most of
the time.
This is a combination of a larger binary, plus the sticky bit was
forgotten on the binary.
This sticky bit hints to procnto that you use the program a lot, and
keeps it in memory for 30
seconds after exit. It can make a big difference for some programs,
especially cc1.
You can replace the sticky bit with
# chmod +t cc1
I notice that it is missing on a great deal of binaries in $QNX_HOST -
you might want to set it on them all.
Colin
Mario Charest wrote:
>
> > Take a trace, take a trace, take a trace. :-)
> >
> > Hmmm, gotta get moving on dtrace, that would be handy in this case.
> >
>
> I have attached a trace file ( compressed with 7za ).
>
> cc1 is in WaitPage state most of the time ???
>
> In this sample qcc -V4.2.1 took 1.87 seconds, while -V3.3.5 took .03
> seconds...
>
> Before taking the trace I ran qcc -V4.2.1 foo.c a few time to make
> sure it all sits in the file system cache.
>
>
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post3070
>
>
>
--
cburgess@qnx.com
|
|
|