Hi Tony, Thanks for the comment. > Another approach would be to make the set of prefetch settings a task attribute. > Then set them in the context switch code when the process is about to run on > a CPU. > > But that assumes you can cheaply change the attributes. If doing so requires > multiple MSR writes (on x86) it might be a non-starter. On the x86 and A64FX, each parameter for controlling hardware prefetch is contained in one register. The current specification makes each parameter a separate attribute, so we need to write as many times as there are parameters to change. However it is possible to change the attribute with one MSR write per core by changing multiple parameters before the context switch.