Re: [RFC][NET_SCHED] explict hold dev tx lock

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: jamal
Date: Monday, September 17, 2007 - 6:03 am

On Mon, 2007-17-09 at 14:27 +0400, Evgeniy Polyakov wrote:


On 4 CPUs which were always transmitting very few - there was contention
in the range of 100 per million attempts.
Note: it doesnt matter that 4 cpus were busy, this lock is contended at
max (for all NAPI drivers i poked into) between two CPUs.


Yes, a small one with the 4 CPUs and no irq binding. Note that in the
test cases i run, the contention for queue lock was high (since all CPUs
were busy processing traffic). 
I think as the the number of CPUs go up, this will become more
prominent. The choice is between contending for queue lock or this lock.
One lock is contended by max of two cpus, the other by N cpus. As N goes
up, you want to have more mercy on the one that is contended by N cpus.
Did that make sense?

cheers,
jamal

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][NET_SCHED] explict hold dev tx lock, jamal, (Sun Sep 16, 9:14 am)
Re: [RFC][NET_SCHED] explict hold dev tx lock, David Miller, (Sun Sep 16, 12:31 pm)
Re: [RFC][NET_SCHED] explict hold dev tx lock, jamal, (Sun Sep 16, 1:41 pm)
Re: [RFC][NET_SCHED] explict hold dev tx lock, jamal, (Sun Sep 16, 1:52 pm)
Re: [RFC][NET_SCHED] explict hold dev tx lock, jamal, (Sun Sep 16, 2:10 pm)
Re: [RFC][NET_SCHED] explict hold dev tx lock, Evgeniy Polyakov, (Mon Sep 17, 3:27 am)
Re: [RFC][NET_SCHED] explict hold dev tx lock, jamal, (Mon Sep 17, 6:03 am)
Re: [RFC][NET_SCHED] explict hold dev tx lock, Evgeniy Polyakov, (Mon Sep 17, 6:58 am)
Re: [RFC][NET_SCHED] explict hold dev tx lock, David Miller, (Mon Sep 17, 7:01 pm)
Re: [RFC][NET_SCHED] explict hold dev tx lock, jamal, (Mon Sep 17, 7:48 pm)
Re: [RFC][NET_SCHED] explict hold dev tx lock, jamal, (Wed Sep 19, 6:33 am)
Re: [RFC][NET_SCHED] explict hold dev tx lock, David Miller, (Wed Sep 19, 9:09 am)
Re: [RFC][NET_SCHED] explict hold dev tx lock, jamal, (Wed Sep 19, 7:33 pm)
Re: [RFC][NET_SCHED] explict hold dev tx lock, jamal, (Wed Sep 19, 7:43 pm)
Re: [RFC][NET_SCHED] explict hold dev tx lock, David Miller, (Tue Sep 25, 7:28 pm)
Re: [RFC][NET_SCHED] explict hold dev tx lock, jamal, (Wed Sep 26, 6:11 am)
Re: [RFC][NET_SCHED] explict hold dev tx lock, Herbert Xu, (Mon Oct 8, 9:00 pm)