Messages in this thread |  | | Date | Thu, 22 May 2014 08:34:50 +0900 | | Subject | Re: [RFC] x86_64: A real proposal for iret-less return to kernel | | From | Linus Torvalds <> |
| |
On Thu, May 22, 2014 at 8:23 AM, Andi Kleen <andi@firstfloor.org> wrote: >> Hardware-interrupts during kernel are actually fairly common under >> network-intensive loads, even outside of idle (but idle is admittedly >> likely *the* most common one). Many network loads are fairly >> kernel-intensive. > > For network workloads we can arbitarily coalesce interrupts or just use NAPI > to lower the costs. No need to optimize network interrupts too much.
BS. Lots of network loads are latency-criticial, to the point that people sometimes actually turn off coalescing. But even with coalescing, it doesn't do crap for ping-pong kinds of loads that are not "interrupt storm from tons and tons of separate packets", but "lots of individual packets that are data-dependent", so you don't have new ones coming in while processing old ones.
Ask Andy L. He had numbers. Interrupt overhead was quite big for him.
And you ignored the real issue: special-casing idle is *stupid*. It's more complicated, and gives fewer cases where it helps. It's simply fundamentally stupid and wrong.
Linus
|  |