Re: [PATCH v2 1/2] perf sharded_mutex: Introduce sharded_mutex

From: Namhyung Kim
Date: Wed Jun 21 2023 - 13:28:05 EST


On Tue, Jun 20, 2023 at 3:15 PM Namhyung Kim <namhyung@xxxxxxxxxx> wrote:
>
> On Wed, Jun 14, 2023 at 9:07 PM Ian Rogers <irogers@xxxxxxxxxx> wrote:
> >
> > Per object mutexes may come with significant memory cost while a
> > global mutex can suffer from unnecessary contention. A sharded mutex
> > is a compromise where objects are hashed and then a particular mutex
> > for the hash of the object used. Contention can be controlled by the
> > number of shards.
> >
> > Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
>
> Acked-by: Namhyung Kim <namhyung@xxxxxxxxxx>

Applied both patches to perf-tools-next, thanks!