lkml.org 
[lkml]   [2009]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: High contention on the sk_buff_head.lock
On Wed, Mar 18, 2009 at 05:54:04PM -0400, Gregory Haskins (ghaskins@novell.com) wrote:
> Note that -rt doesnt typically context-switch under contention anymore
> since we introduced adaptive-locks. Also note that the contention
> against the lock is still contention, regardless of whether you have -rt
> or not. Its just that the slow-path to handle the contended case for
> -rt is more expensive than mainline. However, once you have the
> contention as stated, you have already lost.
>
> We have observed the posters findings ourselves in both mainline and
> -rt. I.e. That lock doesnt scale very well once you have more than a
> handful of cores. It's certainly a great area to look at for improving
> the overall stack, IMO, as I believe there is quite a bit of headroom
> left to be recovered that is buried there.

Something tells me that you observer skb head lock contention because
you stressed the network and anything else on that machine slacked in
sleep. What if you will start IO stress, will __queue_lock contention
have the same magnitude order? Or having as many processes as skbs each
of which will race for the scheduler? Will run-queue lock show up in the
stats?

I believe the asnwer is yes for all the questions.
You stressed one subsystem and it showed up in the statistics.

--
Evgeniy Polyakov


\
 
 \ /
  Last update: 2009-03-19 08:19    [W:0.077 / U:6.820 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site