Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1698419
| From | Andy Lutomirski <luto@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 06/11] x86/mm: Rework lazy TLB mode and TLB freshness tracking |
| Date | 2017-07-28 04:10 +0200 |
| Message-ID | <u82T0-5RI-5@gated-at.bofh.it> (permalink) |
| References | <tUGnf-1Tn-3@gated-at.bofh.it> <tUGng-1Tn-35@gated-at.bofh.it> <tVbKq-67R-21@gated-at.bofh.it> <tVeoW-7TL-9@gated-at.bofh.it> <u7X6V-21e-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> On Jul 27, 2017, at 3:53 PM, Andrew Banman <abanman@hpe.com> wrote: > >> On Thu, Jun 22, 2017 at 10:47:29AM -0700, Andy Lutomirski wrote: >>> On Thu, Jun 22, 2017 at 7:50 AM, Borislav Petkov <bp@alien8.de> wrote: >>>> On Tue, Jun 20, 2017 at 10:22:12PM -0700, Andy Lutomirski wrote: >>>> Rewrite it entirely. When we enter lazy mode, we simply remove the >>>> cpu from mm_cpumask. This means that we need a way to figure out >>> >>> s/cpu/CPU/ >> >> Done. >> >>> >>>> whether we've missed a flush when we switch back out of lazy mode. >>>> I use the tlb_gen machinery to track whether a context is up to >>>> date. >>>> >>>> Note to reviewers: this patch, my itself, looks a bit odd. I'm >>>> using an array of length 1 containing (ctx_id, tlb_gen) rather than >>>> just storing tlb_gen, and making it at array isn't necessary yet. >>>> I'm doing this because the next few patches add PCID support, and, >>>> with PCID, we need ctx_id, and the array will end up with a length >>>> greater than 1. Making it an array now means that there will be >>>> less churn and therefore less stress on your eyeballs. >>>> >>>> NB: This is dubious but, AFAICT, still correct on Xen and UV. >>>> xen_exit_mmap() uses mm_cpumask() for nefarious purposes and this >>>> patch changes the way that mm_cpumask() works. This should be okay, >>>> since Xen *also* iterates all online CPUs to find all the CPUs it >>>> needs to twiddle. >>> >>> This whole text should be under the "---" line below if we don't want it >>> in the commit message. >> >> I figured that some future reader of this patch might actually want to >> see this text, though. >> >>> >>>> >>>> The UV tlbflush code is rather dated and should be changed. >> >> And I'd definitely like the UV maintainers to notice this part, now or >> in the future :) I don't want to personally touch the UV code with a >> ten-foot pole, but it really should be updated by someone who has a >> chance of getting it right and being able to test it. > > Noticed! We're aware of these changes and we're planning on updating this > code in the future. Presently the BAU tlb shootdown feature is working well > on our recent hardware. :) I would suggest reworking it to hook the SMP function call infrastructure instead of the TLB shootdown code.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH v3 06/11] x86/mm: Rework lazy TLB mode and TLB freshness tracking Andrew Banman <abanman@hpe.com> - 2017-07-27 22:00 +0200 Re: [PATCH v3 06/11] x86/mm: Rework lazy TLB mode and TLB freshness tracking Andy Lutomirski <luto@kernel.org> - 2017-07-28 04:10 +0200
csiph-web