Liste des Groupes | Revenir à c arch |
jseigh wrote:This the the terminology ARM uses when describing their LL/SC>Just make sure you never have multiple locks residing inside the same cache line!
I'm not so sure about making the memory lock granularity same as
cache line size but that's an implementation decision I guess.
I'm not aware of any lock-free queue algorithms that use>I do prefer LOCK XADD instead of CAS (CmpXchg*), because the return value will also tell you which queue entry to pick/work on.
I do like the idea of detecting potential contention at the
start of LL/SC so you can do back off. Right now the only way I
can detect contention is after the fact when the CAS fails and
I probably have the cache line exclusive at that point. It's
pretty problematic.
It will not be optimal when really contended, but at least one participant will make forward progress, and typically several of them.
Date | Sujet | # | Auteur | |
2 Sep 24 | arm ldxr/stxr vs cas | 58 | jseigh | |
2 Sep 24 | Re: arm ldxr/stxr vs cas | 4 | Chris M. Thomasson | |
2 Sep 24 | Re: arm ldxr/stxr vs cas | 3 | Chris M. Thomasson | |
2 Sep 24 | Re: arm ldxr/stxr vs cas | 2 | jseigh | |
2 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | Chris M. Thomasson | |
4 Sep 24 | Re: arm ldxr/stxr vs cas | 50 | MitchAlsup1 | |
5 Sep 24 | Re: arm ldxr/stxr vs cas | 3 | Chris M. Thomasson | |
5 Sep 24 | Re: arm ldxr/stxr vs cas | 2 | MitchAlsup1 | |
5 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | Chris M. Thomasson | |
5 Sep 24 | Re: arm ldxr/stxr vs cas | 46 | jseigh | |
5 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | Anton Ertl | |
5 Sep 24 | Re: arm ldxr/stxr vs cas | 44 | MitchAlsup1 | |
5 Sep 24 | Re: arm ldxr/stxr vs cas | 43 | Chris M. Thomasson | |
5 Sep 24 | Re: arm ldxr/stxr vs cas | 42 | jseigh | |
6 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | MitchAlsup1 | |
6 Sep 24 | Re: arm ldxr/stxr vs cas | 20 | Chris M. Thomasson | |
6 Sep 24 | Re: arm ldxr/stxr vs cas | 19 | MitchAlsup1 | |
7 Sep 24 | Re: arm ldxr/stxr vs cas | 18 | jseigh | |
8 Sep 24 | Re: arm ldxr/stxr vs cas | 17 | Chris M. Thomasson | |
8 Sep 24 | Re: arm ldxr/stxr vs cas | 16 | Chris M. Thomasson | |
8 Sep 24 | Re: arm ldxr/stxr vs cas | 15 | Chris M. Thomasson | |
8 Sep 24 | Re: arm ldxr/stxr vs cas | 14 | MitchAlsup1 | |
8 Sep 24 | Re: arm ldxr/stxr vs cas | 4 | Chris M. Thomasson | |
8 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | Chris M. Thomasson | |
8 Sep 24 | Re: arm ldxr/stxr vs cas | 2 | jseigh | |
8 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | Chris M. Thomasson | |
8 Sep 24 | Re: arm ldxr/stxr vs cas | 9 | Chris M. Thomasson | |
8 Sep 24 | Re: arm ldxr/stxr vs cas | 6 | Michael S | |
8 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | Chris M. Thomasson | |
8 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | Chris M. Thomasson | |
9 Sep 24 | Re: arm ldxr/stxr vs cas | 3 | Michael S | |
9 Sep 24 | Re: arm ldxr/stxr vs cas | 2 | Michael S | |
9 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | Michael S | |
8 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | MitchAlsup1 | |
8 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | Chris M. Thomasson | |
9 Sep 24 | Re: arm ldxr/stxr vs cas | 20 | Terje Mathisen | |
9 Sep 24 | Re: arm ldxr/stxr vs cas | 11 | jseigh | |
9 Sep 24 | Re: arm ldxr/stxr vs cas | 6 | Chris M. Thomasson | |
10 Sep 24 | Re: arm ldxr/stxr vs cas | 5 | jseigh | |
10 Sep 24 | Re: arm ldxr/stxr vs cas | 4 | Chris M. Thomasson | |
10 Sep 24 | Re: arm ldxr/stxr vs cas | 3 | jseigh | |
11 Sep 24 | Re: arm ldxr/stxr vs cas | 2 | Chris M. Thomasson | |
11 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | Chris M. Thomasson | |
10 Sep 24 | Re: arm ldxr/stxr vs cas | 4 | Terje Mathisen | |
10 Sep 24 | Re: arm ldxr/stxr vs cas | 3 | jseigh | |
10 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | Chris M. Thomasson | |
10 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | Chris M. Thomasson | |
9 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | Chris M. Thomasson | |
11 Sep 24 | Re: arm ldxr/stxr vs cas | 7 | Paul A. Clayton | |
11 Sep 24 | Re: arm ldxr/stxr vs cas | 2 | Chris M. Thomasson | |
11 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | Chris M. Thomasson | |
11 Sep 24 | Re: arm ldxr/stxr vs cas | 2 | jseigh | |
11 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | Chris M. Thomasson | |
11 Sep 24 | Re: arm ldxr/stxr vs cas | 2 | Stefan Monnier | |
12 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | Chris M. Thomasson | |
9 Sep 24 | Re: arm ldxr/stxr vs cas | 3 | jseigh | |
11 Sep 24 | Re: arm ldxr/stxr vs cas | 2 | jseigh | |
11 Sep 24 | Re: arm ldxr/stxr vs cas | 1 | Chris M. Thomasson |
Les messages affichés proviennent d'usenet.