Re: nosmp/maxcpus=0 or 1 -> TSC unstable

From: Ingo Molnar
Date: Wed Jan 16 2008 - 10:31:59 EST



* Pete Wyckoff <pw@xxxxxxx> wrote:

> > pretty sure this is the culprit is that num_possible_cpus() > 1,
> > which would mean cpu_possible_map contains the second cpu... but i'm
> > not quite sure what the right fix is... or perhaps this is all
> > intended.
>
> We've seen the same problem. We use gettimeofday() for timing of
> network-ish operations on the order of 10-50 us. But not having the
> TSC makes gettimeofday() itself very slow, on the order of 30 us.

30 usecs is too much - even with pmtimer it's typically below 5 usecs.
Could you run this on your box:

http://people.redhat.com/mingo/time-warp-test/time-warp-test.c

and send back what it reports? (run it for a few minutes)

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/