Liste des Groupes | Revenir à cl c++ |
On 10/29/24 00:38, Chris M. Thomasson wrote:Are you taking advantage of the fancy alignment capabilities of C++?On 10/28/2024 6:17 PM, jseigh wrote:On 10/28/24 17:57, Chris M. Thomasson wrote:On 10/28/2024 4:45 AM, jseigh wrote:Yes. It's just an optimization. The reader threads could read>>
fwiw, here's the lock and unlock logic from smrproxy rewrite
>
inline void lock()
{
epoch_t _epoch = shadow_epoch.load(std::memory_order_relaxed);
_ref_epoch.store(_epoch, std::memory_order_relaxed);
std::atomic_signal_fence(std::memory_order_acquire);
}
>
inline void unlock()
{
_ref_epoch.store(0, std::memory_order_release);
}
>
epoch_t is interesting. It's uint64_t but handles wrapped
compares, ie. for an epoch_t x1 and uint64_t n
Only your single polling thread can mutate the shadow_epoch, right?
>
from the global epoch but it would be in a separate cache line
and be an extra dependent load. So one dependent load and
same cache line.
Date | Sujet | # | Auteur | |
17 Oct 24 | smrproxy v2 | 66 | jseigh | |
17 Oct 24 | Re: smrproxy v2 | 41 | Chris M. Thomasson | |
17 Oct 24 | Re: smrproxy v2 | 40 | jseigh | |
18 Oct 24 | Re: smrproxy v2 | 39 | Chris M. Thomasson | |
18 Oct 24 | Re: smrproxy v2 | 2 | Chris M. Thomasson | |
18 Oct 24 | Re: smrproxy v2 | 1 | Chris M. Thomasson | |
18 Oct 24 | Re: smrproxy v2 | 36 | jseigh | |
26 Oct 24 | Re: smrproxy v2 | 35 | Chris M. Thomasson | |
26 Oct 24 | Re: smrproxy v2 | 34 | jseigh | |
27 Oct 24 | Re: smrproxy v2 | 33 | Chris M. Thomasson | |
28 Oct 24 | Re: smrproxy v2 | 32 | jseigh | |
28 Oct 24 | Re: smrproxy v2 | 28 | Chris M. Thomasson | |
28 Oct 24 | Re: smrproxy v2 | 27 | jseigh | |
28 Oct 24 | Re: smrproxy v2 | 26 | Chris M. Thomasson | |
28 Oct 24 | Re: smrproxy v2 | 25 | jseigh | |
28 Oct 24 | Re: smrproxy v2 | 24 | Chris M. Thomasson | |
29 Oct 24 | Re: smrproxy v2 | 1 | Chris M. Thomasson | |
29 Oct 24 | Re: smrproxy v2 | 22 | jseigh | |
29 Oct 24 | Re: smrproxy v2 | 3 | Chris M. Thomasson | |
29 Oct 24 | Re: smrproxy v2 | 2 | jseigh | |
29 Oct 24 | Re: smrproxy v2 | 1 | Chris M. Thomasson | |
29 Oct 24 | Re: smrproxy v2 | 5 | Chris M. Thomasson | |
29 Oct 24 | Re: smrproxy v2 | 4 | jseigh | |
29 Oct 24 | Re: smrproxy v2 | 3 | Chris M. Thomasson | |
30 Oct 24 | Re: smrproxy v2 | 2 | jseigh | |
1 Nov 24 | Re: smrproxy v2 | 1 | Chris M. Thomasson | |
29 Oct 24 | Re: smrproxy v2 | 13 | Chris M. Thomasson | |
30 Oct 24 | Re: smrproxy v2 | 12 | Chris M. Thomasson | |
30 Oct 24 | Re: smrproxy v2 | 11 | jseigh | |
4 Nov 24 | Re: smrproxy v2 | 10 | Chris M. Thomasson | |
4 Nov 24 | Re: smrproxy v2 | 9 | jseigh | |
4 Nov 24 | Re: smrproxy v2 | 3 | Muttley | |
4 Nov 24 | Re: smrproxy v2 | 2 | Chris M. Thomasson | |
9 Nov 24 | Re: smrproxy v2 | 1 | Chris M. Thomasson | |
12 Dec 24 | Re: smrproxy v2 | 5 | Chris M. Thomasson | |
12 Dec 24 | Re: smrproxy v2 | 4 | jseigh | |
12 Dec 24 | Re: smrproxy v2 | 3 | Chris M. Thomasson | |
13 Dec 24 | Re: smrproxy v2 | 2 | jseigh | |
26 Dec 24 | Re: smrproxy v2 | 1 | Chris M. Thomasson | |
28 Oct 24 | Re: smrproxy v2 | 3 | Chris M. Thomasson | |
28 Oct 24 | Re: smrproxy v2 | 1 | Chris M. Thomasson | |
28 Oct 24 | Re: smrproxy v2 | 1 | Chris M. Thomasson | |
29 Oct 24 | Re: smrproxy v2 | 4 | Chris M. Thomasson | |
30 Oct 24 | Re: smrproxy v2 | 1 | Chris M. Thomasson | |
30 Oct 24 | Re: smrproxy v2 | 2 | Chris M. Thomasson | |
30 Oct 24 | Re: smrproxy v2 | 1 | Chris M. Thomasson | |
30 Oct 24 | Re: smrproxy v2 | 2 | Chris M. Thomasson | |
30 Oct 24 | Re: smrproxy v2 | 1 | jseigh | |
2 Nov 24 | Re: smrproxy v2 | 1 | Chris M. Thomasson | |
21 Nov 24 | Re: smrproxy v2 | 17 | jseigh | |
23 Nov 24 | Re: smrproxy v2 | 16 | jseigh | |
23 Nov 24 | Re: smrproxy v2 | 3 | Chris M. Thomasson | |
24 Nov 24 | Re: smrproxy v2 | 2 | jseigh | |
24 Nov 24 | Re: smrproxy v2 | 1 | Chris M. Thomasson | |
24 Nov 24 | Re: smrproxy v2 | 12 | jseigh | |
25 Nov 24 | Re: smrproxy v2 | 7 | Chris M. Thomasson | |
25 Nov 24 | Re: smrproxy v2 | 6 | jseigh | |
25 Nov 24 | Re: smrproxy v2 | 2 | Chris M. Thomasson | |
25 Nov 24 | Re: smrproxy v2 | 1 | Chris M. Thomasson | |
25 Nov 24 | Re: smrproxy v2 | 3 | Chris M. Thomasson | |
25 Nov 24 | Re: smrproxy v2 | 2 | jseigh | |
26 Nov 24 | Re: smrproxy v2 | 1 | Chris M. Thomasson | |
27 Nov 24 | Re: smrproxy v2 | 4 | jseigh | |
9 Dec 24 | Re: smrproxy v2 | 3 | jseigh | |
11 Dec 24 | Re: smrproxy v2 | 2 | jseigh | |
12 Dec 24 | Re: smrproxy v2 | 1 | Chris M. Thomasson |
Les messages affichés proviennent d'usenet.