Re: [RFC PATCH V2 11/22] x86/intel_rdt: Associate pseudo-locked regions with its domain

2018-02-19 Thread Reinette Chatre
Hi Thomas, On 2/19/2018 1:19 PM, Thomas Gleixner wrote: > On Tue, 13 Feb 2018, Reinette Chatre wrote: > >> After a pseudo-locked region is locked it needs to be associated with >> the RDT domain representing the pseudo-locked cache so that its life >> cycle can be manag

Re: [RFC PATCH V2 11/22] x86/intel_rdt: Associate pseudo-locked regions with its domain

2018-02-19 Thread Reinette Chatre
Hi Thomas, On 2/19/2018 1:19 PM, Thomas Gleixner wrote: > On Tue, 13 Feb 2018, Reinette Chatre wrote: > >> After a pseudo-locked region is locked it needs to be associated with >> the RDT domain representing the pseudo-locked cache so that its life >> cycle can be manag

Re: [RFC PATCH V2 01/22] x86/intel_rdt: Documentation for Cache Pseudo-Locking

2018-02-19 Thread Reinette Chatre
Hi Thomas, On 2/19/2018 2:19 PM, Thomas Gleixner wrote: >> It is required that the user space application self sets affinity to >> cores associated with the cache. This is also highlighted in the example >> application code (later in this patch) within the comments as well as >> the example usage

Re: [RFC PATCH V2 01/22] x86/intel_rdt: Documentation for Cache Pseudo-Locking

2018-02-19 Thread Reinette Chatre
Hi Thomas, On 2/19/2018 2:19 PM, Thomas Gleixner wrote: >> It is required that the user space application self sets affinity to >> cores associated with the cache. This is also highlighted in the example >> application code (later in this patch) within the comments as well as >> the example usage

Re: [RFC PATCH V2 01/22] x86/intel_rdt: Documentation for Cache Pseudo-Locking

2018-02-19 Thread Reinette Chatre
Hi Randy, On 2/19/2018 1:27 PM, Randy Dunlap wrote: > On 02/13/18 07:46, Reinette Chatre wrote: >> Add description of Cache Pseudo-Locking feature, its interface, >> as well as an example of its usage. >> >> Signed-off-by: Reinette Chatre <reinette.cha...@intel.com

Re: [RFC PATCH V2 01/22] x86/intel_rdt: Documentation for Cache Pseudo-Locking

2018-02-19 Thread Reinette Chatre
Hi Randy, On 2/19/2018 1:27 PM, Randy Dunlap wrote: > On 02/13/18 07:46, Reinette Chatre wrote: >> Add description of Cache Pseudo-Locking feature, its interface, >> as well as an example of its usage. >> >> Signed-off-by: Reinette Chatre >> --- >> D

Re: [RFC PATCH V2 01/22] x86/intel_rdt: Documentation for Cache Pseudo-Locking

2018-02-19 Thread Reinette Chatre
Hi Thomas, On 2/19/2018 12:35 PM, Thomas Gleixner wrote: > On Tue, 13 Feb 2018, Reinette Chatre wrote: >> +Cache Pseudo-Locking >> + >> +CAT enables a user to specify the amount of cache space into which an >> +application can fill. Cache pseudo

Re: [RFC PATCH V2 01/22] x86/intel_rdt: Documentation for Cache Pseudo-Locking

2018-02-19 Thread Reinette Chatre
Hi Thomas, On 2/19/2018 12:35 PM, Thomas Gleixner wrote: > On Tue, 13 Feb 2018, Reinette Chatre wrote: >> +Cache Pseudo-Locking >> + >> +CAT enables a user to specify the amount of cache space into which an >> +application can fill. Cache pseudo

Re: [RFC PATCH V2 00/22] Intel(R) Resource Director Technology Cache Pseudo-Locking enabling

2018-02-15 Thread Reinette Chatre
On 2/14/2018 10:31 AM, Reinette Chatre wrote: > On 2/14/2018 10:12 AM, Mike Kravetz wrote: >> On 02/13/2018 07:46 AM, Reinette Chatre wrote: >>> Adding MM maintainers to v2 to share the new MM change (patch 21/22) that >>> enables large contiguous regions that was cre

Re: [RFC PATCH V2 00/22] Intel(R) Resource Director Technology Cache Pseudo-Locking enabling

2018-02-15 Thread Reinette Chatre
On 2/14/2018 10:31 AM, Reinette Chatre wrote: > On 2/14/2018 10:12 AM, Mike Kravetz wrote: >> On 02/13/2018 07:46 AM, Reinette Chatre wrote: >>> Adding MM maintainers to v2 to share the new MM change (patch 21/22) that >>> enables large contiguous regions that was cre

Re: [RFC PATCH 0/3] Interface for higher order contiguous allocations

2018-02-15 Thread Reinette Chatre
posed alloc_gigantic_page() to handle these allocations in my testing. I now moved to using find_alloc_contig_pages() as introduced here and all my tests passed. I do hope that an API supporting large contiguous regions become available. Thank you very much for creating this. Tested-by: Reinette Chatre <reinette.cha...@intel.com> Reinette

Re: [RFC PATCH 0/3] Interface for higher order contiguous allocations

2018-02-15 Thread Reinette Chatre
posed alloc_gigantic_page() to handle these allocations in my testing. I now moved to using find_alloc_contig_pages() as introduced here and all my tests passed. I do hope that an API supporting large contiguous regions become available. Thank you very much for creating this. Tested-by: Reinette Chatre Reinette

Re: [RFC PATCH V2 00/22] Intel(R) Resource Director Technology Cache Pseudo-Locking enabling

2018-02-14 Thread Reinette Chatre
Hi Mike, On 2/14/2018 10:12 AM, Mike Kravetz wrote: > On 02/13/2018 07:46 AM, Reinette Chatre wrote: >> Adding MM maintainers to v2 to share the new MM change (patch 21/22) that >> enables large contiguous regions that was created to support large Cache >> Pseudo-Locked

Re: [RFC PATCH V2 00/22] Intel(R) Resource Director Technology Cache Pseudo-Locking enabling

2018-02-14 Thread Reinette Chatre
Hi Mike, On 2/14/2018 10:12 AM, Mike Kravetz wrote: > On 02/13/2018 07:46 AM, Reinette Chatre wrote: >> Adding MM maintainers to v2 to share the new MM change (patch 21/22) that >> enables large contiguous regions that was created to support large Cache >> Pseudo-Locked

[RFC PATCH V2 02/22] x86/intel_rdt: Make useful functions available internally

2018-02-13 Thread Reinette Chatre
In preparation for support of pseudo-locking we move some static functions to be available for sharing amongst all RDT components. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 5 + arch/x86/kernel/cpu/intel_rdt_ctrlmondata

[RFC PATCH V2 02/22] x86/intel_rdt: Make useful functions available internally

2018-02-13 Thread Reinette Chatre
In preparation for support of pseudo-locking we move some static functions to be available for sharing amongst all RDT components. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 5 + arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 2 +- arch/x86/kernel/cpu

[RFC PATCH V2 04/22] x86/intel_rdt: Introduce test to determine if closid is in use

2018-02-13 Thread Reinette Chatre
the CBMs to know if its values are meaningful or can be ignored. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 1 + arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 6 ++ 2 files changed, 7 insertions(+) diff --git a/arch/x86/kern

[RFC PATCH V2 04/22] x86/intel_rdt: Introduce test to determine if closid is in use

2018-02-13 Thread Reinette Chatre
the CBMs to know if its values are meaningful or can be ignored. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 1 + arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 6 ++ 2 files changed, 7 insertions(+) diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86

[RFC PATCH V2 03/22] x86/intel_rdt: Introduce hooks to create pseudo-locking files

2018-02-13 Thread Reinette Chatre
We create a new file to host pseudo-locking specific code. The first of this code are the functions that create the initial pseudo_lock directory with its first file, "avail", starting by reporting zero. This will be expanded in future commits. Signed-off-by: Reinette Chatre <

[RFC PATCH V2 03/22] x86/intel_rdt: Introduce hooks to create pseudo-locking files

2018-02-13 Thread Reinette Chatre
We create a new file to host pseudo-locking specific code. The first of this code are the functions that create the initial pseudo_lock directory with its first file, "avail", starting by reporting zero. This will be expanded in future commits. Signed-off-by: Reinette Chatre --- arch/

[RFC PATCH V2 01/22] x86/intel_rdt: Documentation for Cache Pseudo-Locking

2018-02-13 Thread Reinette Chatre
Add description of Cache Pseudo-Locking feature, its interface, as well as an example of its usage. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- Documentation/x86/intel_rdt_ui.txt | 229 - 1 file changed, 228 insertions(+), 1 de

[RFC PATCH V2 05/22] x86/intel_rdt: Print more accurate pseudo-locking availability

2018-02-13 Thread Reinette Chatre
on of pseudo-locking availability. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 62 - 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_pseudo_loc

[RFC PATCH V2 01/22] x86/intel_rdt: Documentation for Cache Pseudo-Locking

2018-02-13 Thread Reinette Chatre
Add description of Cache Pseudo-Locking feature, its interface, as well as an example of its usage. Signed-off-by: Reinette Chatre --- Documentation/x86/intel_rdt_ui.txt | 229 - 1 file changed, 228 insertions(+), 1 deletion(-) diff --git a/Documentation/x86

[RFC PATCH V2 05/22] x86/intel_rdt: Print more accurate pseudo-locking availability

2018-02-13 Thread Reinette Chatre
on of pseudo-locking availability. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 62 - 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c b/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.

[RFC PATCH V2 00/22] Intel(R) Resource Director Technology Cache Pseudo-Locking enabling

2018-02-13 Thread Reinette Chatre
hes from this series were applied on the x86/cache branch of tip.git at the time the HEAD was: commit 87943db7dfb0c5ee5aa74a9ac06346fadd9695c8 (tip/x86/cache) Author: Reinette Chatre <reinette.cha...@intel.com> Date: Fri Oct 20 02:16:59 2017 -0700 x86/intel_rdt: Fix potential deadlock duri

[RFC PATCH V2 00/22] Intel(R) Resource Director Technology Cache Pseudo-Locking enabling

2018-02-13 Thread Reinette Chatre
695c8 (tip/x86/cache) Author: Reinette Chatre Date: Fri Oct 20 02:16:59 2017 -0700 x86/intel_rdt: Fix potential deadlock during resctrl mount DISCLAIMER: Tests document performance of components on a particular test, in specific systems. Differences in hardware, software, or configuratio

[RFC PATCH V2 09/22] x86/intel_rdt: Discover supported platforms via prefetch disable bits

2018-02-13 Thread Reinette Chatre
pseudo-locking on a platform that does support RDT/CAT this should not be seen as a failure of CAT, the pseudo-locking interface will just not be set up. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 80 ++

[RFC PATCH V2 09/22] x86/intel_rdt: Discover supported platforms via prefetch disable bits

2018-02-13 Thread Reinette Chatre
pseudo-locking on a platform that does support RDT/CAT this should not be seen as a failure of CAT, the pseudo-locking interface will just not be set up. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 80 + 1 file changed, 80

[RFC PATCH V2 08/22] x86/intel_rdt: Introduce pseudo-locking resctrl files

2018-02-13 Thread Reinette Chatre
locked all resources will be listed as uninitialized. size: Print the size in bytes of the memory region pseudo-locked to the cache. Value is not yet initialized. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 5 +++

[RFC PATCH V2 08/22] x86/intel_rdt: Introduce pseudo-locking resctrl files

2018-02-13 Thread Reinette Chatre
locked all resources will be listed as uninitialized. size: Print the size in bytes of the memory region pseudo-locked to the cache. Value is not yet initialized. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 5 +++ arch/x86/kernel/cpu

[RFC PATCH V2 07/22] x86/intel_rdt: Connect pseudo-locking directory to operations

2018-02-13 Thread Reinette Chatre
As a dependent of RDT/CAT we hook up the pseudo-locking files initialization to that of RDT/CAT. The initial operations of mkdir/rmdir used to create pseudo-locked regions are now hooked up also. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kern

[RFC PATCH V2 07/22] x86/intel_rdt: Connect pseudo-locking directory to operations

2018-02-13 Thread Reinette Chatre
As a dependent of RDT/CAT we hook up the pseudo-locking files initialization to that of RDT/CAT. The initial operations of mkdir/rmdir used to create pseudo-locked regions are now hooked up also. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 17

[RFC PATCH V2 10/22] x86/intel_rdt: Disable pseudo-locking if CDP enabled

2018-02-13 Thread Reinette Chatre
better. Disable pseudo-locking if CDP is enabled. Add the details of things to keep in mind for anybody considering enabling this support. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 30 + 1 file c

[RFC PATCH V2 10/22] x86/intel_rdt: Disable pseudo-locking if CDP enabled

2018-02-13 Thread Reinette Chatre
better. Disable pseudo-locking if CDP is enabled. Add the details of things to keep in mind for anybody considering enabling this support. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 30 + 1 file changed, 30 insertions(+) diff --git

[RFC PATCH V2 11/22] x86/intel_rdt: Associate pseudo-locked regions with its domain

2018-02-13 Thread Reinette Chatre
from each RDT domain. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86/kernel/cpu/intel_rdt.h index 060a0976ac00..f0e020686e99 100644 --- a/ar

[RFC PATCH V2 11/22] x86/intel_rdt: Associate pseudo-locked regions with its domain

2018-02-13 Thread Reinette Chatre
from each RDT domain. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86/kernel/cpu/intel_rdt.h index 060a0976ac00..f0e020686e99 100644 --- a/arch/x86/kernel/cpu/intel_rdt.h +++ b

[RFC PATCH V2 22/22] x86/intel_rdt: Support contiguous memory of all sizes

2018-02-13 Thread Reinette Chatre
s in order to support pseudo-locked regions larger than 4MB. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 89 ++--- 1 file changed, 68 insertions(+), 21 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_

[RFC PATCH V2 15/22] x86/intel_rdt: Prevent new allocations from pseudo-locked regions

2018-02-13 Thread Reinette Chatre
-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c b/arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c index 4a11aea3ad2c..4f823d631345

[RFC PATCH V2 22/22] x86/intel_rdt: Support contiguous memory of all sizes

2018-02-13 Thread Reinette Chatre
s in order to support pseudo-locked regions larger than 4MB. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 89 ++--- 1 file changed, 68 insertions(+), 21 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c b/arch/x86/

[RFC PATCH V2 15/22] x86/intel_rdt: Prevent new allocations from pseudo-locked regions

2018-02-13 Thread Reinette Chatre
-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c b/arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c index 4a11aea3ad2c..4f823d631345 100644 --- a/arch/x86/kernel/cpu

[RFC PATCH V2 14/22] x86/intel_rdt: Enable testing for pseudo-locked region

2018-02-13 Thread Reinette Chatre
Introduce a new test that can be used to determine if a provided CBM intersects with an existing pseudo-locked region of cache domain. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 1 + arch/x86/kernel/cpu/intel_rdt_pseudo_

[RFC PATCH V2 14/22] x86/intel_rdt: Enable testing for pseudo-locked region

2018-02-13 Thread Reinette Chatre
Introduce a new test that can be used to determine if a provided CBM intersects with an existing pseudo-locked region of cache domain. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 1 + arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 19 +++ 2

[RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-13 Thread Reinette Chatre
of kernel memory. As part of the pseudo-locking the pseudo-locked region is moved to the RDT domain to which it belongs. We thus also need to ensure that cleanups happen in this area when there is a directory removal or unmount request. Signed-off-by: Reinette Chatre <reinette.cha...@intel.

[RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-13 Thread Reinette Chatre
of kernel memory. As part of the pseudo-locking the pseudo-locked region is moved to the RDT domain to which it belongs. We thus also need to ensure that cleanups happen in this area when there is a directory removal or unmount request. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu

[RFC PATCH V2 21/22] mm/hugetlb: Enable large allocations through gigantic page API

2018-02-13 Thread Reinette Chatre
ed-off-by: Reinette Chatre <reinette.cha...@intel.com> Cc: linux...@kvack.org Cc: Andrew Morton <a...@linux-foundation.org> Cc: Mike Kravetz <mike.krav...@oracle.com> Cc: Michal Hocko <mho...@suse.com> Cc: Vlastimil Babka <vba...@suse.cz> --- include/linux/hugetlb.h |

[RFC PATCH V2 21/22] mm/hugetlb: Enable large allocations through gigantic page API

2018-02-13 Thread Reinette Chatre
the kernel through the gigantic page support. The creation of which is currently directed from userspace. Expose the gigantic page support within the kernel to enable memory allocations that cannot be fulfilled by the SLAB allocators. Suggested-by: Dave Hansen Signed-off-by: Reinette Chatre Cc

[RFC PATCH V2 19/22] x86/intel_rdt: Support L3 cache performance event of Broadwell

2018-02-13 Thread Reinette Chatre
Broadwell microarchitecture supports pseudo-locking. Add support for the L3 cache related performance events of these systems so that we can measure the success of pseudo-locking. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_pseudo_

[RFC PATCH V2 19/22] x86/intel_rdt: Support L3 cache performance event of Broadwell

2018-02-13 Thread Reinette Chatre
Broadwell microarchitecture supports pseudo-locking. Add support for the L3 cache related performance events of these systems so that we can measure the success of pseudo-locking. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 56

[RFC PATCH V2 20/22] x86/intel_rdt: Limit C-states dynamically when pseudo-locking active

2018-02-13 Thread Reinette Chatre
creation so that cores associated with the pseudo-locked region are prevented from entering deeper C-states. This is accomplished by requesting a CPU latency target which will prevent the core from entering C6 across all supported platforms. Signed-off-by: Reinette Chatre <reinette.cha...@intel.

[RFC PATCH V2 20/22] x86/intel_rdt: Limit C-states dynamically when pseudo-locking active

2018-02-13 Thread Reinette Chatre
creation so that cores associated with the pseudo-locked region are prevented from entering deeper C-states. This is accomplished by requesting a CPU latency target which will prevent the core from entering C6 across all supported platforms. Signed-off-by: Reinette Chatre --- Documentation/x86

[RFC PATCH V2 17/22] x86/intel_rdt: Create character device exposing pseudo-locked region

2018-02-13 Thread Reinette Chatre
address space. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 267 +++- 1 file changed, 265 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c b/arch/x86/kern

[RFC PATCH V2 17/22] x86/intel_rdt: Create character device exposing pseudo-locked region

2018-02-13 Thread Reinette Chatre
address space. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 267 +++- 1 file changed, 265 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c b/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c index

[RFC PATCH V2 18/22] x86/intel_rdt: More precise L2 hit/miss measurements

2018-02-13 Thread Reinette Chatre
and MEM_LOAD_UOPS_RETIRED.L2_MISS, while accessing pseudo-locked data. A new tracepoint, pseudo_lock_l2, is created to make these results visible to the user. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 146 -- arch/x86/

[RFC PATCH V2 18/22] x86/intel_rdt: More precise L2 hit/miss measurements

2018-02-13 Thread Reinette Chatre
and MEM_LOAD_UOPS_RETIRED.L2_MISS, while accessing pseudo-locked data. A new tracepoint, pseudo_lock_l2, is created to make these results visible to the user. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 146 -- arch/x86/kernel/cpu

[RFC PATCH V2 12/22] x86/intel_rdt: Support CBM checking from value and character buffer

2018-02-13 Thread Reinette Chatre
buffer as well as the value itself. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 1 + arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 34 - 2 files changed, 25 insertions(+), 10 deletions(-) diff --git

[RFC PATCH V2 12/22] x86/intel_rdt: Support CBM checking from value and character buffer

2018-02-13 Thread Reinette Chatre
buffer as well as the value itself. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 1 + arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 34 - 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt.h

[RFC PATCH V2 16/22] x86/intel_rdt: Create debugfs files for pseudo-locking testing

2018-02-13 Thread Reinette Chatre
ys=latency' > /sys/kernel/debug/tracing/events/pseudo_lock/\ pseudo_lock_mem_latency/trigger Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/Kconfig | 11 ++ arch/x86/kernel/cpu/Makefile

[RFC PATCH V2 16/22] x86/intel_rdt: Create debugfs files for pseudo-locking testing

2018-02-13 Thread Reinette Chatre
ys=latency' > /sys/kernel/debug/tracing/events/pseudo_lock/\ pseudo_lock_mem_latency/trigger Signed-off-by: Reinette Chatre --- arch/x86/Kconfig | 11 ++ arch/x86/kernel/cpu/Makefile | 1 + arch/x

[RFC PATCH V2 06/22] x86/intel_rdt: Create pseudo-locked regions

2018-02-13 Thread Reinette Chatre
udo-locked region at a time. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 3 + arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 220 +++- 2 files changed, 222 insertions(+), 1 deletion(-) diff --git a/arc

[RFC PATCH V2 06/22] x86/intel_rdt: Create pseudo-locked regions

2018-02-13 Thread Reinette Chatre
udo-locked region at a time. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 3 + arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 220 +++- 2 files changed, 222 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/

Re: [RFC PATCH 00/20] Intel(R) Resource Director Technology Cache Pseudo-Locking enabling

2018-02-12 Thread Reinette Chatre
Hi Thomas, On 1/16/2018 3:38 AM, Thomas Gleixner wrote: > On Mon, 15 Jan 2018, Hindman, Gavin wrote: >>> From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- >>> ow...@vger.kernel.org] On Behalf Of Thomas Gleixner >>> On Fri, 17 Nov 2017, Reinette Chatre w

Re: [RFC PATCH 00/20] Intel(R) Resource Director Technology Cache Pseudo-Locking enabling

2018-02-12 Thread Reinette Chatre
Hi Thomas, On 1/16/2018 3:38 AM, Thomas Gleixner wrote: > On Mon, 15 Jan 2018, Hindman, Gavin wrote: >>> From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- >>> ow...@vger.kernel.org] On Behalf Of Thomas Gleixner >>> On Fri, 17 Nov 2017, Reinette Chatre w

Re: [RFC PATCH 00/20] Intel(R) Resource Director Technology Cache Pseudo-Locking enabling

2018-01-16 Thread Reinette Chatre
Hi Thomas, On 1/16/2018 3:38 AM, Thomas Gleixner wrote: > On Mon, 15 Jan 2018, Hindman, Gavin wrote: >>> From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- >>> ow...@vger.kernel.org] On Behalf Of Thomas Gleixner >>> On Fri, 17 Nov 2017, Reinette Cha

Re: [RFC PATCH 00/20] Intel(R) Resource Director Technology Cache Pseudo-Locking enabling

2018-01-16 Thread Reinette Chatre
Hi Thomas, On 1/16/2018 3:38 AM, Thomas Gleixner wrote: > On Mon, 15 Jan 2018, Hindman, Gavin wrote: >>> From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- >>> ow...@vger.kernel.org] On Behalf Of Thomas Gleixner >>> On Fri, 17 Nov 2017, Reinette Cha

Re: [RFC PATCH 00/20] Intel(R) Resource Director Technology Cache Pseudo-Locking enabling

2017-11-17 Thread Reinette Chatre
Hi Thomas, On 11/17/2017 4:48 PM, Thomas Gleixner wrote: > On Mon, 13 Nov 2017, Reinette Chatre wrote: > > thanks for that interesting work. Before I start looking into the details > in the next days let me ask a few general questions first. Thank you very much for taking a look. I

Re: [RFC PATCH 00/20] Intel(R) Resource Director Technology Cache Pseudo-Locking enabling

2017-11-17 Thread Reinette Chatre
Hi Thomas, On 11/17/2017 4:48 PM, Thomas Gleixner wrote: > On Mon, 13 Nov 2017, Reinette Chatre wrote: > > thanks for that interesting work. Before I start looking into the details > in the next days let me ask a few general questions first. Thank you very much for taking a look. I

[RFC PATCH 10/20] x86/intel_rdt: Disable pseudo-locking if CDP enabled

2017-11-13 Thread Reinette Chatre
better. Disable pseudo-locking if CDP is enabled. Add the details of things to keep in mind for anybody considering enabling this support. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 28 1 file chang

[RFC PATCH 10/20] x86/intel_rdt: Disable pseudo-locking if CDP enabled

2017-11-13 Thread Reinette Chatre
better. Disable pseudo-locking if CDP is enabled. Add the details of things to keep in mind for anybody considering enabling this support. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 28 1 file changed, 28 insertions(+) diff --git

[RFC PATCH 09/20] x86/intel_rdt: Discover supported platforms via prefetch disable bits

2017-11-13 Thread Reinette Chatre
pseudo-locking on a platform that does support RDT/CAT this should not be seen as a failure of CAT, the pseudo-locking interface will just not be set up. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 80 ++

[RFC PATCH 09/20] x86/intel_rdt: Discover supported platforms via prefetch disable bits

2017-11-13 Thread Reinette Chatre
pseudo-locking on a platform that does support RDT/CAT this should not be seen as a failure of CAT, the pseudo-locking interface will just not be set up. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 80 + 1 file changed, 80

[RFC PATCH 08/20] x86/intel_rdt: Introduce pseudo-locking resctrl files

2017-11-13 Thread Reinette Chatre
locked all resources will be listed as uninitialized. size: Print the size in bytes of the memory region pseudo-locked to the cache. Value is not yet initialized. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 5 +++

[RFC PATCH 08/20] x86/intel_rdt: Introduce pseudo-locking resctrl files

2017-11-13 Thread Reinette Chatre
locked all resources will be listed as uninitialized. size: Print the size in bytes of the memory region pseudo-locked to the cache. Value is not yet initialized. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 5 +++ arch/x86/kernel/cpu

[RFC PATCH 11/20] x86/intel_rdt: Associate pseudo-locked regions with its domain

2017-11-13 Thread Reinette Chatre
from each RDT domain. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86/kernel/cpu/intel_rdt.h index 3216488f72df..120a25fdf1e8 100644 --- a/ar

[RFC PATCH 11/20] x86/intel_rdt: Associate pseudo-locked regions with its domain

2017-11-13 Thread Reinette Chatre
from each RDT domain. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86/kernel/cpu/intel_rdt.h index 3216488f72df..120a25fdf1e8 100644 --- a/arch/x86/kernel/cpu/intel_rdt.h +++ b

[RFC PATCH 20/20] x86/intel_rdt: Limit C-states dynamically when pseudo-locking active

2017-11-13 Thread Reinette Chatre
creation so that cores associated with the pseudo-locked region are prevented from entering deeper C-states. This is accomplished by requesting a CPU latency target which will prevent the core from entering C6 across all supported platforms. Signed-off-by: Reinette Chatre <reinette.cha...@intel.

[RFC PATCH 20/20] x86/intel_rdt: Limit C-states dynamically when pseudo-locking active

2017-11-13 Thread Reinette Chatre
creation so that cores associated with the pseudo-locked region are prevented from entering deeper C-states. This is accomplished by requesting a CPU latency target which will prevent the core from entering C6 across all supported platforms. Signed-off-by: Reinette Chatre --- This patch depends

[RFC PATCH 18/20] x86/intel_rdt: More precise L2 hit/miss measurements

2017-11-13 Thread Reinette Chatre
and MEM_LOAD_UOPS_RETIRED.L2_MISS, while accessing pseudo-locked data. Two new tracepoints, pseudo_lock_l2_hits and pseudo_lock_l2_miss, are created to make these results visible to the user. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c

[RFC PATCH 19/20] x86/intel_rdt: Support L3 cache performance event of Broadwell

2017-11-13 Thread Reinette Chatre
Broadwell microarchitecture supports pseudo-locking. Add support for the L3 cache related performance events of these systems so that we can measure the success of pseudo-locking. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_pseudo_

[RFC PATCH 18/20] x86/intel_rdt: More precise L2 hit/miss measurements

2017-11-13 Thread Reinette Chatre
and MEM_LOAD_UOPS_RETIRED.L2_MISS, while accessing pseudo-locked data. Two new tracepoints, pseudo_lock_l2_hits and pseudo_lock_l2_miss, are created to make these results visible to the user. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 141 -- arch/x86

[RFC PATCH 19/20] x86/intel_rdt: Support L3 cache performance event of Broadwell

2017-11-13 Thread Reinette Chatre
Broadwell microarchitecture supports pseudo-locking. Add support for the L3 cache related performance events of these systems so that we can measure the success of pseudo-locking. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 57

[RFC PATCH 04/20] x86/intel_rdt: Introduce test to determine if closid is in use

2017-11-13 Thread Reinette Chatre
the CBMs to know if its values are meaningful or can be ignored. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 1 + arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 6 ++ 2 files changed, 7 insertions(+) diff --git a/arch/x86/kern

[RFC PATCH 05/20] x86/intel_rdt: Print more accurate pseudo-locking availability

2017-11-13 Thread Reinette Chatre
on of pseudo-locking availability. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 62 - 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_pseudo_loc

[RFC PATCH 04/20] x86/intel_rdt: Introduce test to determine if closid is in use

2017-11-13 Thread Reinette Chatre
the CBMs to know if its values are meaningful or can be ignored. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 1 + arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 6 ++ 2 files changed, 7 insertions(+) diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86

[RFC PATCH 05/20] x86/intel_rdt: Print more accurate pseudo-locking availability

2017-11-13 Thread Reinette Chatre
on of pseudo-locking availability. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 62 - 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c b/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.

[RFC PATCH 06/20] x86/intel_rdt: Create pseudo-locked regions

2017-11-13 Thread Reinette Chatre
udo-locked region at a time. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 3 + arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 220 +++- 2 files changed, 222 insertions(+), 1 deletion(-) diff --git a/arc

[RFC PATCH 06/20] x86/intel_rdt: Create pseudo-locked regions

2017-11-13 Thread Reinette Chatre
udo-locked region at a time. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 3 + arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 220 +++- 2 files changed, 222 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/

[RFC PATCH 02/20] x86/intel_rdt: Make useful functions available internally

2017-11-13 Thread Reinette Chatre
In preparation for support of pseudo-locking we move some static functions to be available for sharing amongst all RDT components. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 5 + arch/x86/kernel/cpu/intel_rdt_ctrlmondata

[RFC PATCH 02/20] x86/intel_rdt: Make useful functions available internally

2017-11-13 Thread Reinette Chatre
In preparation for support of pseudo-locking we move some static functions to be available for sharing amongst all RDT components. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 5 + arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 2 +- arch/x86/kernel/cpu

[RFC PATCH 14/20] x86/intel_rdt: Enable testing for pseudo-locked region

2017-11-13 Thread Reinette Chatre
Introduce a new test that can be used to determine if a provided CBM intersects with an existing pseudo-locked region of cache domain. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 1 + arch/x86/kernel/cpu/intel_rdt_pseudo_

[RFC PATCH 14/20] x86/intel_rdt: Enable testing for pseudo-locked region

2017-11-13 Thread Reinette Chatre
Introduce a new test that can be used to determine if a provided CBM intersects with an existing pseudo-locked region of cache domain. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 1 + arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 19 +++ 2

[RFC PATCH 13/20] x86/intel_rdt: Support schemata write - pseudo-locking core

2017-11-13 Thread Reinette Chatre
of kernel memory. As part of the pseudo-locking the pseudo-locked region is moved to the RDT domain to which it belongs. We thus also need to ensure that cleanups happen in this area when there is a directory removal or unmount request. Signed-off-by: Reinette Chatre <reinette.cha...@intel.

[RFC PATCH 13/20] x86/intel_rdt: Support schemata write - pseudo-locking core

2017-11-13 Thread Reinette Chatre
of kernel memory. As part of the pseudo-locking the pseudo-locked region is moved to the RDT domain to which it belongs. We thus also need to ensure that cleanups happen in this area when there is a directory removal or unmount request. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu

[RFC PATCH 17/20] x86/intel_rdt: Create character device exposing pseudo-locked region

2017-11-13 Thread Reinette Chatre
address space. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 267 +++- 1 file changed, 265 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c b/arch/x86/kern

[RFC PATCH 17/20] x86/intel_rdt: Create character device exposing pseudo-locked region

2017-11-13 Thread Reinette Chatre
address space. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 267 +++- 1 file changed, 265 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c b/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c index

[RFC PATCH 12/20] x86/intel_rdt: Support CBM checking from value and character buffer

2017-11-13 Thread Reinette Chatre
buffer as well as the value itself. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 1 + arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 34 - 2 files changed, 25 insertions(+), 10 deletions(-) diff --git

[RFC PATCH 12/20] x86/intel_rdt: Support CBM checking from value and character buffer

2017-11-13 Thread Reinette Chatre
buffer as well as the value itself. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 1 + arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 34 - 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt.h

[RFC PATCH 16/20] x86/intel_rdt: Create debugfs files for pseudo-locking testing

2017-11-13 Thread Reinette Chatre
ys=latency' > /sys/kernel/debug/tracing/events/pseudo_lock/\ pseudo_lock_mem_latency/trigger Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/Kconfig | 11 ++ arch/x86/kernel/cpu/Makefile

[RFC PATCH 16/20] x86/intel_rdt: Create debugfs files for pseudo-locking testing

2017-11-13 Thread Reinette Chatre
ys=latency' > /sys/kernel/debug/tracing/events/pseudo_lock/\ pseudo_lock_mem_latency/trigger Signed-off-by: Reinette Chatre --- arch/x86/Kconfig | 11 ++ arch/x86/kernel/cpu/Makefile | 1 + arch/x

[RFC PATCH 15/20] x86/intel_rdt: Prevent new allocations from pseudo-locked regions

2017-11-13 Thread Reinette Chatre
-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c b/arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c index 50d3743ed79e..fb3ecc864b2a

[RFC PATCH 15/20] x86/intel_rdt: Prevent new allocations from pseudo-locked regions

2017-11-13 Thread Reinette Chatre
-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c b/arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c index 50d3743ed79e..fb3ecc864b2a 100644 --- a/arch/x86/kernel/cpu

<    6   7   8   9   10   11   12   >