Re: [PATCH] tsc-disable_B9

From: Martin J. Bligh (Martin.Bligh@us.ibm.com)
Date: Mon Aug 26 2002 - 15:19:24 EST


>> It's not correlating it to real time that's the problem. It's getting resceduled
>> inbetween calls that hurts. Take your example.
>>
>> rdtsc
>> mov %eax,%ebx
>> <- get rescheduled here
>> rdtsc
>>
>> Broken. May even take negative "time".
>
> Statistically irrelevant. When you have 100,000 samples all the
> pre-emption ones drop into the dud sample filter with IRQ disturbance
> and so on.
 
OK, so let's take a better example. People are (I think) mainly using rdtsc
to provide a monotonically increasing counter for database "transaction
order" stamping. I think that's really the case we're worried about.

M.

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



This archive was generated by hypermail 2b29 : Sat Aug 31 2002 - 22:00:18 EST