in reply to nytprof warning
Found it -- it's in the POD under CAVEATS -- basically each processor maintains its own personal Time Register that is synchronized with the master time-source at regular intervals. Between synch-points the Time Register may drift. There is circuitry that attempts to limit the excursion off of the synch-point, and the synch-points occur frequently enough to limit the drift, as well.
From the Fine manual:
The Processors in an SMP system do not start all at exactly the same time, therefore the timer registers are typically running at an offset. ...In summary, SMP systems are likely to give 'noisy' profiles. Setting a "Processor Affinity" may help.
I've seen negative durations in the current profiling project, but they have been associated with routines that I expect to be interrupt-able (mostly socket-based I/O). And, the number of times the routine gets called doesn't make it a candidate for serious work -- when you have one routine that gets called 10K times at 200 milliseconds a pop, and your I/O routine gets called twice with an exclusive-time of -0.0001, who you going to concentrate on?
----
I Go Back to Sleep, Now.
OGB
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: nytprof warning
by erwan (Sexton) on Jun 04, 2011 at 14:10 UTC | |
Re^2: nytprof warning
by Anonymous Monk on Aug 19, 2011 at 15:26 UTC | |
by Anonymous Monk on Aug 19, 2011 at 15:26 UTC |