Re: [PATCH 23/30] x86, kaiser: use PCID feature to make user and kernel switches faster

2017-11-16 Thread Dave Hansen
On 11/16/2017 11:19 AM, Andrea Arcangeli wrote: > On Fri, Nov 10, 2017 at 11:31:50AM -0800, Dave Hansen wrote: >> Hugh Dickins also points out that PCIDs really have two distinct >> use-cases in the context of KAISER. The first way they can be used > I don't see why you try to retain such a minor

Re: [PATCH 23/30] x86, kaiser: use PCID feature to make user and kernel switches faster

2017-11-16 Thread Dave Hansen
On 11/16/2017 11:19 AM, Andrea Arcangeli wrote: > On Fri, Nov 10, 2017 at 11:31:50AM -0800, Dave Hansen wrote: >> Hugh Dickins also points out that PCIDs really have two distinct >> use-cases in the context of KAISER. The first way they can be used > I don't see why you try to retain such a minor

Re: [PATCH 23/30] x86, kaiser: use PCID feature to make user and kernel switches faster

2017-11-16 Thread Andrea Arcangeli
Hello, On Fri, Nov 10, 2017 at 11:31:50AM -0800, Dave Hansen wrote: > Hugh Dickins also points out that PCIDs really have two distinct > use-cases in the context of KAISER. The first way they can be used I don't see why you try to retain such a minor optimization for newer Intel chips when at

Re: [PATCH 23/30] x86, kaiser: use PCID feature to make user and kernel switches faster

2017-11-16 Thread Andrea Arcangeli
Hello, On Fri, Nov 10, 2017 at 11:31:50AM -0800, Dave Hansen wrote: > Hugh Dickins also points out that PCIDs really have two distinct > use-cases in the context of KAISER. The first way they can be used I don't see why you try to retain such a minor optimization for newer Intel chips when at

[PATCH 23/30] x86, kaiser: use PCID feature to make user and kernel switches faster

2017-11-10 Thread Dave Hansen
From: Dave Hansen Short summary: Use x86 PCID feature to avoid flushing the TLB at all interrupts and syscalls. Speed them up. Makes context switches and TLB flushing slower. Background: KAISER keeps two copies of the page tables. Switches between the copies

[PATCH 23/30] x86, kaiser: use PCID feature to make user and kernel switches faster

2017-11-10 Thread Dave Hansen
From: Dave Hansen Short summary: Use x86 PCID feature to avoid flushing the TLB at all interrupts and syscalls. Speed them up. Makes context switches and TLB flushing slower. Background: KAISER keeps two copies of the page tables. Switches between the copies are performed by writing to the

[PATCH 23/30] x86, kaiser: use PCID feature to make user and kernel switches faster

2017-11-08 Thread Dave Hansen
From: Dave Hansen Short summary: Use x86 PCID feature to avoid flushing the TLB at all interrupts and syscalls. Speed them up. Makes context switches and TLB flushing slower. Background: KAISER keeps two copies of the page tables. We switch between them with

[PATCH 23/30] x86, kaiser: use PCID feature to make user and kernel switches faster

2017-11-08 Thread Dave Hansen
From: Dave Hansen Short summary: Use x86 PCID feature to avoid flushing the TLB at all interrupts and syscalls. Speed them up. Makes context switches and TLB flushing slower. Background: KAISER keeps two copies of the page tables. We switch between them with the the CR3 register. But, CR3