Skip to content

plugins/cache: multicore cache modelling

Mahmoud Mandour qemu-devel 2 versions – Applied

Status from this message: Queued to plugins/next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 3 repliesApplied
  2. v42 patches 1 replySuperseded

Changes in v5 from the cover letter

1. Reserved a mutex lock for each cache structure; now callbacks generated by accesses done by different vcpus don't block each other.
2. Used atomic increment to access hashtable entries instead of locking.
3. Renamed mtx to hashtable_lock to reflect its job more explicitly.
4. Dropped the usage of CoreStats, embedded stats in the cache structure.
4. append_stats_line now takes the stats explicitly.

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/2plugins/cache: supported multicore cache modellingcontrib/plugins/cache.c+132 -440 replies
2/2docs/devel/tcg-plugins: added cores arg to cache plugindocs/devel/tcg-plugins.rst+8 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/2] plugins/cache: multicore cache modelling

Hello,

This series introduce multicore cache modelling in contrib/plugins/cache.c

Multi-core cache modelling is handled such that for full-system emulation, a private L1 cache is maintained to each core available to the system. For multi-threaded userspace emulation, a static number of cores is maintained for the overall system, and every memory access go through one of these, even if the number of fired threads is more than that number.

v4 -> v5:
1. Reserved a mutex lock for each cache structure; now callbacks generated by accesses done by different vcpus don't block each other.
2. Used atomic increment to access hashtable entries instead of locking.
3. Renamed mtx to hashtable_lock to reflect its job more explicitly.
4. Dropped the usage of CoreStats, embedded stats in the cache structure.
4. append_stats_line now takes the stats explicitly.

Mahmoud Mandour (2):
plugins/cache: supported multicore cache modelling docs/devel/tcg-plugins: added cores arg to cache plugin

 contrib/plugins/cache.c    | 176 +++++++++++++++++++++++++++----------
 docs/devel/tcg-plugins.rst |  13 +--
 2 files changed, 140 insertions(+), 49 deletions(-)
Signature · 1 line
2.25.1