This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Porting string performance tests into benchtests


On Fri, Apr 05, 2013 at 10:08:01AM +0530, Siddhesh Poyarekar wrote:
> On Wed, Apr 03, 2013 at 11:40:42PM -0400, David Miller wrote:
> > I really want to see on the cpu cycle level whether the changes I make
> > to the pre-loop and post-loop code make any difference.
> > 
> > And on sparc chips I don't have the issues that can make the cpu cycle
> > counter inaccurate or less usable as a timing mechanism.
> 
> I realized that my understanding of CLOCK_PROCESS_CPUTIME_ID was
> flawed.  While it is described as 'cpu time consumed by the process',
> it seems to still be sufficiently impacted by system load.  Maybe the

Of course it will be impacted. If you have other processes competing
for resources, you're going to have a lot more cache misses, TLB
misses, and maybe even page faults (not sure if the latter count for
this clock though).

Rich


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]