Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9714934rwd; Wed, 21 Jun 2023 10:50:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ46EfrkRye7Lms3ErE/kCtRXIBRnrM1HpJKaQ1wUNZIADemRPOQMkWUW+FyUFDitfxWGqWL X-Received: by 2002:a05:6870:9202:b0:1a9:aef7:261b with SMTP id e2-20020a056870920200b001a9aef7261bmr14314816oaf.48.1687369800576; Wed, 21 Jun 2023 10:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687369800; cv=none; d=google.com; s=arc-20160816; b=myuKFwIVtYF3+hVhFyjYtrZpqJ0PpKOJRkNbjJLurRSkENkUTZRt2ppDfL1hEaznUD C6OCI4Dk/ghY9RUUgZPptsb+kNEvuI3PMquJuzxqr+NCsVq88aM58FpleDf9cNJBRjWA gD8BpxWFLUcb8WeCy9WK6ZjcpNJcX2Mwo7jniuym3x2cinIhWhwVxOeLlN229SJMNf20 oJm3E00p100XCQhb7XN1NmkSo7NCeaHJHQJqAe9t0bKD5XZpltg43D50oMOUKZReJhIX I5UyXHuEAbppbbTc2LdWZdkuuWLyawTo9V6c7XX++5md+ygCZOczAyPeF2R/JSaYmga2 En6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=HTB9z+5D629CCXIvuqLAFCPU1D7R35T+oBjsMIx2nHY=; b=WWDD9DPc9e9mSxb5twpHmwJhU7j4OErLm+sbI9QP6FUmXJOxFXdv5kjbbfqQg0Wgpo Bo/yEXtNJJxQt/4cfge7U8q6qs3jpXbbit6l3xH5DSLWnZ8E9mz2UpBo6gwx7OGuhguU KmJW4vY9CNjb5OymSNJhj5MtIirWAtL22yk2/fFxuZ7BxLgtCOn8wCoJFT92pROGOElJ L3vjXmzl1kkrzyvtxWbjKVxf7ORpFR2YGX5vZ0tcE1XIIon/6ZzmbI/5idq8s96Ce2N+ vsae4554j8xSPz2WgKMxYQeJbZmzsOi+Yw1zL79Fn5YYvoKCWYFLPhZRWGUbIJBqsDWr BFOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o11-20020a17090a744b00b0025e9a3124c7si12541806pjk.143.2023.06.21.10.49.48; Wed, 21 Jun 2023 10:50:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230523AbjFUR2D convert rfc822-to-8bit (ORCPT + 99 others); Wed, 21 Jun 2023 13:28:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbjFUR2C (ORCPT ); Wed, 21 Jun 2023 13:28:02 -0400 Received: from mail-vk1-f173.google.com (mail-vk1-f173.google.com [209.85.221.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE43BE2; Wed, 21 Jun 2023 10:28:01 -0700 (PDT) Received: by mail-vk1-f173.google.com with SMTP id 71dfb90a1353d-471c9f2f47aso1327092e0c.3; Wed, 21 Jun 2023 10:28:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687368481; x=1689960481; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CmaOCoyILhi3FgVCCQ1JmKKyeL3P35Rtqp7/2iklqXE=; b=kw9h7ZlWfdigCSS2vZleN/9MR1q8JoGfBY9IgB6cmRzj3wdMGehxx952L6uQL+eb+v MrulV5Y+TO8CDUDqkYp/Ddm63BYErbA3E4Aic7dqzD0u05Dw+6QES0ScMjQ5BIH23+xa Vr0rmz0umhpueu9M55SVaJrWpj6hjQS98XvZtoLWdjxIvJezl+W0QW0UkDe+tYp6sG5I zL615N6rtCf38504xzz4KNdyEFNaVewwhzJ72cmnu2uhZo1JVSd/BIF0d+eVixkv2hw4 sXEd3x5UmM2NrI+JNP4lp+f2IdxioF+H0bOIFhsYNyp26dljqnGyLIEyaGTGGmTQgKEM gPwA== X-Gm-Message-State: AC+VfDwTRoXzYJRGGNg+O8OCbCCwjZGzVva3hN7LbEHNhtXPQuFPznZT DsJ6zft+PBfn2E6KZ3tLOi6DoMhXeUpnNI7W3E4ui9xKd/0= X-Received: by 2002:a1f:bd16:0:b0:471:5427:39a4 with SMTP id n22-20020a1fbd16000000b00471542739a4mr7529723vkf.0.1687368480680; Wed, 21 Jun 2023 10:28:00 -0700 (PDT) MIME-Version: 1.0 References: <20230615040715.2064350-1-irogers@google.com> In-Reply-To: From: Namhyung Kim Date: Wed, 21 Jun 2023 10:27:49 -0700 Message-ID: Subject: Re: [PATCH v2 1/2] perf sharded_mutex: Introduce sharded_mutex To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Yuan Can , Kan Liang , Masami Hiramatsu , Huacai Chen , Andres Freund , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 20, 2023 at 3:15 PM Namhyung Kim wrote: > > On Wed, Jun 14, 2023 at 9:07 PM Ian Rogers 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 > > Acked-by: Namhyung Kim Applied both patches to perf-tools-next, thanks!