Date: Tue, 27 Jun 2023 15:47:05 +0200 From: Mateusz Guzik <mjguzik@gmail.com> To: Konstantin Belousov <kostikbel@gmail.com> Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: a6c0d801ca59 - main - libpthread: allocate rwlocks and spinlocks in dedicated cachelines Message-ID: <CAGudoHHcZaXFiepuupNC6pyngmCrJjy9af_-DptCd8HDSGpoSw@mail.gmail.com> In-Reply-To: <ZJrUQrNro5ZjOkE6@kib.kiev.ua> References: <202306271156.35RButXO071800@gitrepo.freebsd.org> <ZJrUQrNro5ZjOkE6@kib.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
On 6/27/23, Konstantin Belousov <kostikbel@gmail.com> wrote: > On Tue, Jun 27, 2023 at 11:56:55AM +0000, Mateusz Guzik wrote: >> The branch main has been updated by mjg: >> >> URL: >> https://cgit.FreeBSD.org/src/commit/?id=a6c0d801ca5934bb9b9cca6870ea7406d5db0641 >> >> commit a6c0d801ca5934bb9b9cca6870ea7406d5db0641 >> Author: Greg Becker <becker.greg@att.net> >> AuthorDate: 2023-06-27 01:08:29 +0000 >> Commit: Mateusz Guzik <mjg@FreeBSD.org> >> CommitDate: 2023-06-27 11:56:44 +0000 >> >> libpthread: allocate rwlocks and spinlocks in dedicated cachelines > Why e.g. mutexes were not handled in the similar way? > Sorting out the general problem looks like quite a bit of churn. For example the aforementioned mutexes end up with __thr_calloc -> __crt_calloc which does not provide alignment support afaics. The above patch sorts out some of the problem in a trivial manner, so I saw no issue putting it in. -- Mateusz Guzik <mjguzik gmail.com>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGudoHHcZaXFiepuupNC6pyngmCrJjy9af_-DptCd8HDSGpoSw>