All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/2] plugins/cache: multicore cache modelling
@ 2021-08-03 15:12 Mahmoud Mandour
  2021-08-03 15:13 ` [PATCH v5 1/2] plugins/cache: supported " Mahmoud Mandour
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Mahmoud Mandour @ 2021-08-03 15:12 UTC (permalink / raw)
  To: qemu-devel; +Cc: Mahmoud Mandour, alex.bennee

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(-)

-- 
2.25.1



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

end of thread, other threads:[~2021-08-04 17:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-03 15:12 [PATCH v5 0/2] plugins/cache: multicore cache modelling Mahmoud Mandour
2021-08-03 15:13 ` [PATCH v5 1/2] plugins/cache: supported " Mahmoud Mandour
2021-08-03 15:13 ` [PATCH v5 2/2] docs/devel/tcg-plugins: added cores arg to cache plugin Mahmoud Mandour
2021-08-03 21:10 ` [PATCH v5 0/2] plugins/cache: multicore cache modelling Alex Bennée
2021-08-04 11:54   ` Mahmoud Mandour
2021-08-04 14:47     ` Alex Bennée

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.