Re: Intel P6 vs P7 system call performance

From: H. Peter Anvin (hpa@transmeta.com)
Date: Tue Dec 17 2002 - 16:41:55 EST


Benjamin LaHaise wrote:
> On Tue, Dec 17, 2002 at 11:11:19AM -0800, H. Peter Anvin wrote:
>
>>>against 0xfffffxxx and "rollback" (or complete) any incomplete
>>>gettimeofday call prior to saving a task's state. but i bet that test is
>>>undesirable on all interrupt paths.
>>>
>>
>>Exactly. This is a real problem.
>
>
> No, just take the number of context switches before and after the attempt
> to read the time of day.
>

How do you do that from userspace, atomically? A counter in the shared
page?

        -hpa

-
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 : Mon Dec 23 2002 - 22:00:18 EST