RE: [PATCH v7 11/13] arch/x86: Introduce QOS feature for AMD
From: Yu, Fenghua
Date: Wed Nov 14 2018 - 14:31:07 EST
> From: Moger, Babu [mailto:Babu.Moger@xxxxxxx]
> >> I'm wondering: does that mean the tasks running with this closid
> >> directly access memory without cache? Is there any usage for this
> situation?
>
> Here is the detailed answer to your question from Doug(in CC).
>
> A closid with L3_MASK of all 0's will not use any of the L3 cache, but will still
> be able to use L2 cache. So, no, the processes in that closid will not
> "directly access memory" in the sense that they will use the L1 and L2
> caches as normal. But if they miss the L2 then, yes, the access will go
> directly to memory. To be precise, none of the lines which are fetched by a
> process running with such a configuration will be installed in the L3 cache,
> so subsequent accesses which miss the L2 cache will not find the requested
> data in the L3 cache and will then go on to access memory.
Seems all zeros CBM reduces the caches to L1 and L2. This might be useful in fast access to small data fitting in L2.
Thank you very much for your explanation!
-Fenghua