Re:A fast multi-producer, multi-consumer lock-free concurren...
by TeMPOraL on Sunday December 04, 2016 @11:03PM
(#13103292)
Assuming I don't have access to CPU specs, how could I debug constructs like this queue? Should I set aside a machine and have it pound the queue with random data for the next six months, alerting me each time the error rate rises above cosmic ray threshold?
[ Parent
| on HN ]
Re:A fast multi-producer, multi-consumer lock-free concurren...
by vvanders on Monday December 05, 2016 @12:18AM
(#13103535)
> a machine
In the absence of formal proof think 50+ machines. You basically setup a lab to run 24/7 and a/b with a hope that you repro.
Same technique works for really gnarly intermittent driver bugs.
It's still no guarantee but at least you get in the same range assuming the execution profile is diverse and robust.