Re: [PATCH v4 14/17] x86/asm/entry/64: Migrate error and interrupt exit work to C

From: Andy Lutomirski
Date: Fri Jul 03 2015 - 12:29:45 EST


On Fri, Jul 3, 2015 at 9:27 AM, Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:
>
> I haven't benchmarked very carefully. IIRC syscall timing was
> unaffected by this series. Exceptions ought to be unaffected unless
> something very weird is going on with the trace cache or branch
> predictor. IRQs will slow down by a couple cycles (I'm guessing 5,
> since it's more or less the same change I benchmarked when I was
> playing with the next pile of patches).

One clarification: I bet that context tracking performance changes
with these patches, but it sucked before and it'll suck afterwards
regardless. I think that these patches are a good step in making it
not suck, though -- they will allow us to only change ct state once on
entry and once on exit, and we used to get it wrong. They also allow
us to do context tracking with IRQs off, which Rik van Riel wanted to
help his speedup project.

So, in the long run, I expect a huge context tracking improvement, and
these patches will help. By themselves, they won't do much.

--Andy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/