lkml.org 
[lkml]   [2020]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch V4 4/8] sched: Make migrate_disable/enable() independent of RT
Date
On Mon, Nov 23 2020 at 14:07, Andy Lutomirski wrote:
>> On Nov 23, 2020, at 1:25 PM, Thomas Gleixner <tglx@linutronix.de> wrote:
>> On Mon, Nov 23 2020 at 22:15, Thomas Gleixner wrote:
>>>> On Sun, Nov 22 2020 at 15:16, Andy Lutomirski wrote:
>>>>
>>>> The common case of a CPU switching back and forth between a small
>>>> number of mms would have no significant overhead.
>>>
>>> For CPUs which do not support PCID this sucks, which is everything pre
>>> Westmere and all of 32bit. Yes, 32bit. If we go there then 32bit has to
>>> bite the bullet and use the very same mechanism. Not that I care much
>>> TBH.
>>
>> Bah, I completely forgot that AMD does not support PCID before Zen3
>> which is a major showstopper.
>
> Why? Couldn’t we rig up the code so we still track all the ASIDs even
> if there is no CPU support? We would take the TLB flush hit on every
> context switch, but we pay that cost anyway. We would avoid the extra
> copy in the same cases in which we would avoid it if we had PCID.

Did not think about that indeed. Yes, that should do the trick and
should not be worse than what we have now.

Sometimes one just can't see the forest for the trees :)

Thanks,

tglx

\
 
 \ /
  Last update: 2020-11-24 00:11    [W:0.057 / U:13.652 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site