[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 01/15] docs: L2 Cache Allocation Technology (CAT) feature document.
On Tue, Oct 25, 2016 at 11:40:49AM +0800, Yi Sun wrote: > Signed-off-by: Yi Sun <yi.y.sun@xxxxxxxxxxxxxxx> > --- > docs/features/l2_cat.pandoc | 314 > ++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 314 insertions(+) > create mode 100644 docs/features/l2_cat.pandoc > > diff --git a/docs/features/l2_cat.pandoc b/docs/features/l2_cat.pandoc > new file mode 100644 > index 0000000..8544510 > --- /dev/null > +++ b/docs/features/l2_cat.pandoc > @@ -0,0 +1,314 @@ > +% Intel L2 Cache Allocation Technology (L2 CAT) Feature > +% Revision 2.0 > + > +\clearpage > + > +# Basics > + > +---------------- ---------------------------------------------------- > + Status: **Tech Preview** > + > +Architecture(s): Intel x86 > + > + Component(s): Hypervisor, toolstack > + > + Hardware: Atom codename Goldmont and beyond > +---------------- ---------------------------------------------------- > + > +# Overview > + > +L2 CAT allows an OS or Hypervisor/VMM to control allocation of a Could you define CAT? > +CPU's shared L2 cache based on application priority or Class of Service > +(COS). Each CLOS is configured using capacity bitmasks (CBM) which > +represent cache capacity and indicate the degree of overlap and > +isolation between classes. Once L2 CAT is configured, the processor > +allows access to portions of L2 cache according to the established > +class of service (COS). > + > +# Technical information > + > +L2 CAT is a member of Intel PSR features and part of CAT, it shares Could you define 'PSR' here? Usually when you introduce an acronym you do something like: Intel Problem Solver Resolver (PSR) and that makes it easy for folks to map the acronym to the full feature. > +some base PSR infrastructure in Xen. > + > +## Hardware perspective > + > +L2 CAT defines a new range MSRs to assign different L2 cache access > +patterns which are known as CBMs (Capacity BitMask), each CBM is > +associated with a COS. > + > +``` > + > + +----------------------------+----------------+ > + IA32_PQR_ASSOC | MSR (per socket) | Address | > + +----+---+-------+ +----------------------------+----------------+ > + | |COS| | | IA32_L2_QOS_MASK_0 | 0xD10 | > + +----+---+-------+ +----------------------------+----------------+ > + └-------------> | ... | ... | > + +----------------------------+----------------+ > + | IA32_L2_QOS_MASK_n | 0xD10+n (n<64) | > + +----------------------------+----------------+ > +``` > + > +When context switch happens, the COS of VCPU is written to per-thread > +MSR `IA32_PQR_ASSOC`, and then hardware enforces L2 cache allocation > +according to the corresponding CBM. > + > +## The relationship between L2 CAT and L3 CAT/CDP > + > +L2 CAT is independent of L3 CAT/CDP, which means L2 CAT would be enabled Could you define CDP? > +while L3 CAT/CDP is disabled, or L2 CAT and L3 CAT/CDP are all enabled. > + > +L2 CAT uses a new range CBMs from 0xD10 ~ 0xD10+n (n<64), following by > +the L3 CAT/CDP CBMs, and supports setting different L2 cache accessing > +patterns from L3 cache. Like L3 CAT/CDP requirement, the bits of CBM of > +L2 CAT must be continuous too. > + > +N.B. L2 CAT and L3 CAT/CDP share the same COS field in the same > +associate register `IA32_PQR_ASSOC`, which means one COS associate to a s/COS associate/COS associate's/ ? > +pair of L2 CBM and L3 CBM. > +Besides, the max COS of L2 CAT may be different from L3 CAT/CDP (or > +other PSR features in future). In some cases, a VM is permitted to have a > +COS that is beyond one (or more) of PSR features but within the others. > +For instance, let's assume the max COS of L2 CAT is 8 but the max COS of > +L3 CAT is 16, when a VM is assigned 9 as COS, the L3 CBM associated to > +COS 9 would be enforced, but for L2 CAT, the behavior is fully open (no > +limit) since COS 9 is beyond the max COS (8) of L2 CAT. Thanks for the explanation. ..snip.. [didnt' have any questions below] _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |