Re: [PATCH] net: Adjust softirq raising in __napi_schedule

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Miller
Date: Thursday, October 22, 2009 - 4:29 am

From: Jarek Poplawski <jarkao2@gmail.com>
Date: Wed, 21 Oct 2009 23:39:47 +0200


Semantically I think your patch is correct, but I wonder about cost.

Something that is a simply per-cpu inline "or" operation is now a
function call and potentially mispredicted branch inside of
raise_softirq_irqoff().

And netif_rx() is indeed a fast path for tunnels and other users so
this does matter.

I like having people call things in the correct context the function
was built for, and thus we can avoiryd completely useless operations and
tests as we can now in netif_rx().

Makaing things general purpose costs something, and it costs too much
here for this critical routine, sorry.

I was just having a talk with Nick Piggin about these kinds of issues
today, too few people care about these ever encrouching tiny pieces
of bloat that slow the kernel down gradually over time, and I simply
won't stand for it when I notice it :-)
--
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:
Re: NOHZ: local_softirq_pending 08, Jarek Poplawski, (Thu Oct 15, 4:40 am)
Re: NOHZ: local_softirq_pending 08, Jarek Poplawski, (Thu Oct 15, 10:53 am)
Re: NOHZ: local_softirq_pending 08, Tilman Schmidt, (Wed Oct 21, 11:46 am)
[PATCH] net: Adjust softirq raising in __napi_schedule, Jarek Poplawski, (Wed Oct 21, 2:19 pm)
Re: [PATCH] net: Adjust softirq raising in __napi_schedule, Tilman Schmidt, (Wed Oct 21, 2:37 pm)
Re: [PATCH] net: Adjust softirq raising in __napi_schedule, Jarek Poplawski, (Wed Oct 21, 2:39 pm)
Re: [PATCH] net: Adjust softirq raising in __napi_schedule, David Miller, (Thu Oct 22, 4:29 am)
Re: [PATCH] net: Adjust softirq raising in __napi_schedule, Jarek Poplawski, (Thu Oct 22, 5:54 am)
Re: NOHZ: local_softirq_pending 08, Tilman Schmidt, (Thu Oct 22, 4:37 pm)
Re: NOHZ: local_softirq_pending 08, Johannes Berg, (Fri Oct 23, 6:34 am)
Re: NOHZ: local_softirq_pending 08, Tilman Schmidt, (Fri Oct 23, 7:27 am)
Re: NOHZ: local_softirq_pending 08, Johannes Berg, (Fri Oct 23, 7:31 am)
Re: [PATCH] net: Adjust softirq raising in __napi_schedule, Tilman Schmidt, (Fri Oct 23, 7:39 am)
Re: NOHZ: local_softirq_pending 08, Tilman Schmidt, (Fri Oct 23, 9:33 am)
Re: [PATCH] net: Adjust softirq raising in __napi_schedule, Jarek Poplawski, (Mon Oct 26, 12:41 am)
Re: [PATCH] net: Adjust softirq raising in __napi_schedule, Johannes Berg, (Mon Oct 26, 12:44 am)
Re: [PATCH] net: Adjust softirq raising in __napi_schedule, Jarek Poplawski, (Mon Oct 26, 12:54 am)
Re: [PATCH] net: Adjust softirq raising in __napi_schedule, Johannes Berg, (Mon Oct 26, 12:58 am)
Re: [PATCH] net: Adjust softirq raising in __napi_schedule, Tilman Schmidt, (Mon Oct 26, 1:47 am)
Re: [PATCH] net: Adjust softirq raising in __napi_schedule, Tilman Schmidt, (Mon Oct 26, 5:52 pm)
Re: [PATCH] net: Adjust softirq raising in __napi_schedule, Johannes Berg, (Tue Oct 27, 12:01 am)