Question on getimeofday



Hi all,

Our apps has a lot of gettimeofday() call. I've written a very simple
program to measure the speed of gettimeofday() call.

The outcome is vary a lot, even on the two hardware with same spec.

Recently, I get access on 8 cores opteron linux. I run the test again
and the result is not very good, especially when I currently run two
copy of my testing program

1) running 1 copy:
378078 us for 100000 gettimeofday

2) running two copy.
611078 us for 100000 gettimeofday

However, this is behaviour is not observed in another machine.

Anyone know why? is it something wrong with the 8 opteron linux? or is
it related to any kernel setting?

thanks.

Eric.

.



Relevant Pages

  • Quesiton on gettimeofday
    ... Our apps has a lot of gettimeofday() call. ... I get access on 8 cores opteron linux. ... copy of my testing program ...
    (comp.os.linux.development.apps)
  • RE: [Xen-devel] Re: [PATCH 3/5] x86/pvclock: add vsyscall implementation
    ... The timestamps must be relatively ... but these apps would use clock_gettime for nsec resolution), ... I'm told the difference between non-vsyscall gettimeofday ... the performance impact is not measureable. ...
    (Linux-Kernel)
  • Re: [-mm patch] x86_64 GTOD: offer scalable vgettimeofday
    ... I believe that should be also a separate clock_gettime() CLOCK_ ... There are systems where gettimeofday already has such ... resolution, so apps certainly shouldnt break from this. ...
    (Linux-Kernel)
  • Re: [ANNOUNCE] ktimers subsystem
    ... > apps are all wrong? ... > Applications call gettimeofday for a variety of reasons. ... But I still doubt that the number of calls to gettimeofday is ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)