netdev
[Top] [All Lists]

Re: gettimeofday scalability

To: P@xxxxxxxxxxxxxx
Subject: Re: gettimeofday scalability
From: Ingo Molnar <mingo@xxxxxxx>
Date: Tue, 5 Oct 2004 21:18:58 +0200
Cc: netdev@xxxxxxxxxxx, Andrea Arcangeli <andrea@xxxxxxx>
In-reply-to: <4162CD76.4070204@xxxxxxxxxxxxxx>
References: <4162CD76.4070204@xxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.1i
* P@xxxxxxxxxxxxxx <P@xxxxxxxxxxxxxx> wrote:

> In particular I was wondering about reducing the overhead of
> calling do_gettimeofday.

> 2.6.8.1 uses seqlock, which contains the comment that it's not as
> cache friendly as brlock.

that comment is way too modest! Seqlocks are very cache-friendly in the
read path. There is no reason to use brlocks anymore for fixed-frequency
writers like the timer seqlock. (writers can starve seqlock readers but
in the timer case the writers occur only once every 1 msec.)

so please benchmark 2.6, it should scale linearly in this area.

        Ingo

<Prev in Thread] Current Thread [Next in Thread>