aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorFeng Tang <[email protected]>2023-04-07 12:12:35 +0800
committerJonathan Corbet <[email protected]>2023-04-10 16:46:11 -0600
commit911ac7979dde0ca31fdfcc4fbd27d2fa3f2bf376 (patch)
tree1cf780e14b8731924e49b985f65d8e178955abdd /tools/perf/scripts/python/bin/export-to-postgresql-report
parent2ca956cf883458a713d7e2f4c37554b374b39907 (diff)
Documentation: Add document for false sharing
When doing performance tuning or debugging performance regressions, more and more cases are found to be related to false sharing [1][2][3], and the situation can be worse for newer platforms with hundreds of CPUs. There are already many commits in current kernel specially for mitigating the performance degradation due to false sharing. False sharing could harm the performance silently without being noticed, due to reasons like: * data members of a big data structure randomly sitting together in one cache line * global data of small size are linked compactly together So it's better to make a simple document about the normal pattern of false sharing, basic ways to mitigate it and call out to developers to pay attention during code-writing. [ Many thanks to Dave Hansen, Ying Huang, Tim Chen, Julie Du and Yu Chen for their contributions ] [1]. https://lore.kernel.org/lkml/20220619150456.GB34471@xsang-OptiPlex-9020/ [2]. https://lore.kernel.org/lkml/20201102091543.GM31092@shao2-debian/ [3]. https://lore.kernel.org/lkml/[email protected]/ Signed-off-by: Feng Tang <[email protected]> Reviewed-by: Randy Dunlap <[email protected]> Reviewed-by: Shakeel Butt <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Corbet <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions