lkml.org 
[lkml]   [2017]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC, PATCH] x86_64: KAISER - do not map kernel in user mode
From
Date
On 04.05.2017 17:47, Christoph Hellwig wrote:
> I'll try to read the paper. In the meantime: how different is your
> approach from then one here?
>
> https://lwn.net/Articles/39283/
>
> and how different is the performance impact?

The approach sounds very similar, but we have fewer changes because we
don't want to change memory allocation but only split the virtual memory
- everything can stay where it is.

We found that the CR3 switch seems to be significantly improved in
modern microarchitectures (we performed our performance tests on a
Skylake i7-6700K). We think the TLB maybe uses the full CR3 base address
as a tag, relaxing the necessity of flushing the entire TLB upon CR3
updates a bit.
Direct runtime overhead is switching the CR3, but that's it.
Indirectly, we're potentially increasing the number of TLB entries that
are required on one or the other level of the TLB. For TLB-intense tasks
this might lead to more significant performance penalties.

I'm sure the overhead on older systems is larger than on recent systems.

\
 
 \ /
  Last update: 2017-05-05 09:41    [W:0.169 / U:4.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site