linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] mm/slub: Fix count_partial() problem
@ 2020-08-10 12:17 Xunlei Pang
  2020-08-10 12:17 ` [PATCH v2 1/3] mm/slub: Introduce two counters for partial objects Xunlei Pang
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Xunlei Pang @ 2020-08-10 12:17 UTC (permalink / raw)
  To: Vlastimil Babka, Christoph Lameter, Wen Yang, Roman Gushchin,
	Pekka Enberg, Konstantin Khlebnikov, David Rientjes, Xunlei Pang
  Cc: linux-kernel, linux-mm

v1->v2:
- Improved changelog and variable naming for PATCH 1~2.
- PATCH3 adds per-cpu counter to avoid performance regression
  in concurrent __slab_free().

[Testing]
On my 32-cpu 2-socket physical machine:
Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz
perf stat --null --repeat 10 -- hackbench 20 thread 20000

== original, no patched
      19.211637055 seconds time elapsed                                          ( +-  0.57% )

== patched with patch1~2
 Performance counter stats for 'hackbench 20 thread 20000' (10 runs):

      21.731833146 seconds time elapsed                                          ( +-  0.17% )

== patched with patch1~3
 Performance counter stats for 'hackbench 20 thread 20000' (10 runs):

      19.112106847 seconds time elapsed                                          ( +-  0.64% )


Xunlei Pang (3):
  mm/slub: Introduce two counters for partial objects
  mm/slub: Get rid of count_partial()
  mm/slub: Use percpu partial free counter

 mm/slab.h |   2 +
 mm/slub.c | 124 +++++++++++++++++++++++++++++++++++++++++++-------------------
 2 files changed, 89 insertions(+), 37 deletions(-)

-- 
1.8.3.1



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2021-03-03 20:32 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-10 12:17 [PATCH v2 0/3] mm/slub: Fix count_partial() problem Xunlei Pang
2020-08-10 12:17 ` [PATCH v2 1/3] mm/slub: Introduce two counters for partial objects Xunlei Pang
2020-08-10 12:17 ` [PATCH v2 2/3] mm/slub: Get rid of count_partial() Xunlei Pang
2020-08-10 12:17 ` [PATCH v2 3/3] mm/slub: Use percpu partial free counter Xunlei Pang
2021-03-02  5:56   ` Shu Ming
2021-03-02  9:14   ` Christoph Lameter
2021-03-03 13:46     ` Xunlei Pang
2021-03-03 14:26     ` Matthew Wilcox
2021-03-03 19:15       ` Christoph Lameter
2021-03-03 19:30         ` Matthew Wilcox
2021-03-03 19:55           ` Christoph Lameter
2021-03-03 20:16             ` Matthew Wilcox
2020-08-20 14:02 ` [PATCH v2 0/3] mm/slub: Fix count_partial() problem Pekka Enberg
2020-08-24 10:04   ` xunlei
2021-03-01 10:31     ` Shu Ming
2021-03-03 13:34       ` Xunlei Pang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).