diff options
author | Matt Fleming <matt.fleming@intel.com> | 2015-01-23 18:45:45 +0000 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-02-25 13:53:33 +0100 |
commit | 35298e554c74b7849875e3676ba8eaf833c7b917 (patch) | |
tree | 19c1dbf828dc8a79dfd749870426f622613e6345 /kernel/kcmp.c | |
parent | 4afbb24ce5e723c8a093a6674a3c33062175078a (diff) | |
download | op-kernel-dev-35298e554c74b7849875e3676ba8eaf833c7b917.zip op-kernel-dev-35298e554c74b7849875e3676ba8eaf833c7b917.tar.gz |
perf/x86/intel: Implement LRU monitoring ID allocation for CQM
It's possible to run into issues with re-using unused monitoring IDs
because there may be stale cachelines associated with that ID from a
previous allocation. This can cause the LLC occupancy values to be
inaccurate.
To attempt to mitigate this problem we place the IDs on a least recently
used list, essentially a FIFO. The basic idea is that the longer the
time period between ID re-use the lower the probability that stale
cachelines exist in the cache.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kanaka Juvva <kanaka.d.juvva@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Vikas Shivappa <vikas.shivappa@linux.intel.com>
Link: http://lkml.kernel.org/r/1422038748-21397-7-git-send-email-matt@codeblueprint.co.uk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/kcmp.c')
0 files changed, 0 insertions, 0 deletions