All of lore.kernel.org
 help / color / mirror / Atom feed
* Making races happen more often
@ 2021-09-26  3:51 Paul E. McKenney
  2021-09-26  4:41 ` Willy Tarreau
  0 siblings, 1 reply; 10+ messages in thread
From: Paul E. McKenney @ 2021-09-26  3:51 UTC (permalink / raw)
  To: w; +Cc: rcu

Hello, Willy!

Continuing from linkedin:

> Maybe this doesn't work as well as expected because of the common L3 cache
> that runs at a single frequency and that imposes discrete timings. Also,
> I noticed that on modern CPUs, cache lines tend to "stick" at least a few
> cycles once they're in a cache, which helps the corresponding CPU chain
> a few atomic ops undisturbed. For example on a 8-core Ryzen I'm seeing a
> minimum of 8ns between two threads of the same core (L1 probably split in
> two halves), 25ns between two L2 and 60ns between the two halves (CCX)
> of the L3. This certainly makes it much harder to trigger concurrency
> issues. Well let's continue by e-mail, it's a real pain to type in this
> awful interface.

Indeed, I get best (worst?) results from memory latency on multi-socket
systems.  And these results were not subtle:

	https://paulmck.livejournal.com/62071.html

All that aside, any advice on portably and usefully getting 2-3x clock
frequency differences into testing would be quite welcome.

							Thanx, Paul

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

end of thread, other threads:[~2021-10-07 18:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-26  3:51 Making races happen more often Paul E. McKenney
2021-09-26  4:41 ` Willy Tarreau
2021-09-27  3:25   ` Paul E. McKenney
2021-09-27  6:49     ` Willy Tarreau
2021-09-28  4:01       ` Paul E. McKenney
2021-09-29 19:59         ` Willy Tarreau
2021-09-30 18:46           ` Paul E. McKenney
2021-09-30 21:12             ` Willy Tarreau
2021-10-07  0:44               ` Paul E. McKenney
2021-10-07 17:53                 ` Willy Tarreau

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.