Page MenuHomeFreeBSD

becker.greg_att.net (Greg Becker)
User

Projects

User does not belong to any projects.

User Details

User Since
Jul 6 2023, 3:01 PM (43 w, 2 d)

Recent Activity

Sep 23 2023

becker.greg_att.net added inline comments to D41936: libc: Rewrite quick_exit() and at_quick_exit() using C11 atomics..
Sep 23 2023, 12:14 PM
becker.greg_att.net added inline comments to D41936: libc: Rewrite quick_exit() and at_quick_exit() using C11 atomics..
Sep 23 2023, 10:48 AM

Sep 22 2023

becker.greg_att.net added inline comments to D41936: libc: Rewrite quick_exit() and at_quick_exit() using C11 atomics..
Sep 22 2023, 1:42 PM

Sep 10 2023

becker.greg_att.net added a comment to D41783: sockets: re-check socket state after call to pr_rcvd().

Thanks, Mark, I will send you two commits as requested. Thanks again for all your help!

Sep 10 2023, 5:20 PM · committers, tests

Sep 9 2023

becker.greg_att.net added inline comments to D41783: sockets: re-check socket state after call to pr_rcvd().
Sep 9 2023, 1:28 PM · committers, tests
becker.greg_att.net updated the diff for D41783: sockets: re-check socket state after call to pr_rcvd().

Reformat to ahere to suggested style...

Sep 9 2023, 1:27 PM · committers, tests

Sep 8 2023

becker.greg_att.net updated the summary of D41783: sockets: re-check socket state after call to pr_rcvd().
Sep 8 2023, 3:16 PM · committers, tests
becker.greg_att.net requested review of D41783: sockets: re-check socket state after call to pr_rcvd().
Sep 8 2023, 3:13 PM · committers, tests

Jul 30 2023

becker.greg_att.net added inline comments to D41150: Implement __crt_aligned_alloc()..
Jul 30 2023, 2:43 PM

Jul 29 2023

becker.greg_att.net updated the diff for D41092: libthr: Use a small cache to greatly reduce pshared lock latency..

Refactor to more closely follow seqc.h.

Jul 29 2023, 12:22 AM · Src Committers

Jul 28 2023

becker.greg_att.net added inline comments to D41092: libthr: Use a small cache to greatly reduce pshared lock latency..
Jul 28 2023, 5:38 PM · Src Committers
becker.greg_att.net updated the diff for D41092: libthr: Use a small cache to greatly reduce pshared lock latency..

Updated to quasi-follow seqlock semantics from seqc.h for continued discussion...

Jul 28 2023, 5:34 PM · Src Committers

Jul 27 2023

becker.greg_att.net added inline comments to D41092: libthr: Use a small cache to greatly reduce pshared lock latency..
Jul 27 2023, 1:58 PM · Src Committers

Jul 26 2023

becker.greg_att.net added a comment to D41150: Implement __crt_aligned_alloc()..
In D41150#938121, @kib wrote:

With tail pad, I mean the following. The goal of the exercise is not to get specific alignments, but ultimately ensure that lock objects do not (false) share cache lines with any other objects. Alignment ensures that there is no sharing with

So now I am wondering if __crt_aligned_alloc() should be abandoned. Other cleanup from this review should go in, IMO.

Jul 26 2023, 12:07 PM

Jul 25 2023

becker.greg_att.net added a comment to D41150: Implement __crt_aligned_alloc()..

Are you saying that instead of aligning pthread_mutex allocations, we just need to ensure that allocation is padded to the end of the cache line? Then, perhaps the same thing needs to be done to rwlocks and spinlocks?

Jul 25 2023, 10:39 PM
becker.greg_att.net added inline comments to D41092: libthr: Use a small cache to greatly reduce pshared lock latency..
Jul 25 2023, 7:12 PM · Src Committers
becker.greg_att.net added inline comments to D41092: libthr: Use a small cache to greatly reduce pshared lock latency..
Jul 25 2023, 6:03 PM · Src Committers
becker.greg_att.net updated the diff for D41092: libthr: Use a small cache to greatly reduce pshared lock latency..

Fix how generation count is updated and synchronized with readers.
Add comments to explain how it works.

Jul 25 2023, 6:00 PM · Src Committers
becker.greg_att.net added inline comments to D41092: libthr: Use a small cache to greatly reduce pshared lock latency..
Jul 25 2023, 2:25 PM · Src Committers
becker.greg_att.net added a comment to D41150: Implement __crt_aligned_alloc()..

General observation. Overall I like this new feature! But I have a suspicion that using it for pthread mutexes might increase the lock/unlock latency a wee bit.

Jul 25 2023, 2:22 PM
becker.greg_att.net added inline comments to D41150: Implement __crt_aligned_alloc()..
Jul 25 2023, 1:41 PM
becker.greg_att.net added inline comments to D41150: Implement __crt_aligned_alloc()..
Jul 25 2023, 12:13 PM

Jul 24 2023

becker.greg_att.net added inline comments to D41150: Implement __crt_aligned_alloc()..
Jul 24 2023, 6:18 PM
becker.greg_att.net added inline comments to D41150: Implement __crt_aligned_alloc()..
Jul 24 2023, 6:18 PM
becker.greg_att.net added inline comments to D41150: Implement __crt_aligned_alloc()..
Jul 24 2023, 6:18 PM
becker.greg_att.net added a comment to D41150: Implement __crt_aligned_alloc()..

General question: AFAICT, on amd64 _ _crt_malloc() seems to always return an address that is a power-of-two + 8 bytes. Why isn't it at least _ _alignof(max_align_t) aligned?
For example, it appears that malloc(3) always returns a suitably aligned allocation as long as the request is for more than 8 bytes.

Jul 24 2023, 6:18 PM
becker.greg_att.net added inline comments to D41150: Implement __crt_aligned_alloc()..
Jul 24 2023, 6:18 PM
becker.greg_att.net added inline comments to D41150: Implement __crt_aligned_alloc()..
Jul 24 2023, 6:18 PM

Jul 20 2023

becker.greg_att.net updated the diff for D41092: libthr: Use a small cache to greatly reduce pshared lock latency..

Use MACHINE_ABI to build only for 64-bit architectures.
Replace uint64_t with u_long for pshared hash table generation counts.

Jul 20 2023, 11:57 AM · Src Committers

Jul 19 2023

becker.greg_att.net added inline comments to D41092: libthr: Use a small cache to greatly reduce pshared lock latency..
Jul 19 2023, 3:59 PM · Src Committers
becker.greg_att.net requested review of D41092: libthr: Use a small cache to greatly reduce pshared lock latency..
Jul 19 2023, 3:53 PM · Src Committers

Jul 7 2023

becker.greg_att.net added inline comments to D40912: libthr: Patch to reduce latency to acquire+release a pthread mutex.
Jul 7 2023, 10:34 PM · Contributor Reviews (src)
becker.greg_att.net updated the diff for D40912: libthr: Patch to reduce latency to acquire+release a pthread mutex.

I reverted all the m_qidx changes, lost a wee bit of perf across all mutex flavors, but numbers still look pretty good.

Jul 7 2023, 10:33 PM · Contributor Reviews (src)
becker.greg_att.net updated the diff for D40912: libthr: Patch to reduce latency to acquire+release a pthread mutex.

Updated diff to provide full context via diff -U99999999 ...

Jul 7 2023, 4:47 PM · Contributor Reviews (src)
becker.greg_att.net requested review of D40912: libthr: Patch to reduce latency to acquire+release a pthread mutex.
Jul 7 2023, 4:01 PM · Contributor Reviews (src)

Jul 6 2023

becker.greg_att.net updated the diff for D40900: Fix to allow building libthr without -D_PTHREADS_INVARIANTS defined.

Thanks John, I've updated the patch as requested, including the tools/build/options change (I wasn't aware of that, pretty cool!)

Jul 6 2023, 10:50 PM · Contributor Reviews (src)
becker.greg_att.net requested review of D40900: Fix to allow building libthr without -D_PTHREADS_INVARIANTS defined.
Jul 6 2023, 9:32 PM · Contributor Reviews (src)