[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1317804832.2473.25.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC>
Date: Wed, 05 Oct 2011 10:53:52 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: starlight@...nacle.cx
Cc: Joe Perches <joe@...ches.com>, Christoph Lameter <cl@...two.org>,
Serge Belyshev <belyshev@...ni.sinp.msu.ru>,
Con Kolivas <kernel@...ivas.org>, linux-kernel@...r.kernel.org,
netdev <netdev@...r.kernel.org>, Willy Tarreau <w@....eu>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Stephen Hemminger <stephen.hemminger@...tta.com>
Subject: Re: big picture UDP/IP performance question re 2.6.18 -> 2.6.32
Le mercredi 05 octobre 2011 à 02:58 -0400, starlight@...nacle.cx a
écrit :
> Final note:
>
> I had captured latency measurements for
> two of the three kernels. Just ran
> 2.6.18(rhel5) and the results are
> stunning. The older kernel is much,
> much better then the newer kernel.
>
> Average latency is three times better
> and the standard deviation is six
> time better. As in 300% and 600%.
>
> Latency here is the time it takes
> a packet to travel from the kernel
> (where it is timestamped) till it
> reaches the final consumption point
> in the application.
>
> Makes me think that the old kernel
> is better at keeping caches hot and
> scheduling woken threads on the same
> cores as the threads that triggered
> them.
>
Note :
Your results are from a combination of a user application and kernel
default strategies.
On other combinations, results can be completely different.
A wakeup strategy is somewhat tricky :
- Should we affine or not.
- Should we queue the wakeup on a remote CPU, to keep scheduler data hot
in a single cpu cache.
- Should we use RPS/RFS to queue the packet to another CPU before even
handling it in our stack, to keep network data hot in a single cpu
cache. (check Documentation/networking/scaling.txt)
At least, with recent kernels, we have many available choices to tune a
workload.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists