Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5795270rwe; Tue, 18 Apr 2023 11:36:06 -0700 (PDT) X-Google-Smtp-Source: AKy350bW79h7OGsz433fLm9Ao8N/UW6iZgrS5PLNorq9tgr4GdNGmCJZt4eCWvU+IekHz9mOkcge X-Received: by 2002:a05:6a20:3ca8:b0:ee:d266:32bb with SMTP id b40-20020a056a203ca800b000eed26632bbmr779927pzj.7.1681842966520; Tue, 18 Apr 2023 11:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681842966; cv=none; d=google.com; s=arc-20160816; b=QUYXhdGlJ+BY/uI8SItZeGUuxoJ4tqd4w2ImIhtyIrrORaQ8dw6LWWrUowo4NSBMmU V2ELBbS26eLdBlERFgEmzybBx6o6TsmIVYzRWiCyZXM831TgOlHrp4FdsSbSxP+RW31G Z3AqxEHQETQJBvislC87bz+2hYPKSTENF66ncHQFckQf7G2BjeVUL1ZRlY8D0mXJjJFo LQiCVsiYsW5Zyvc3SyHA6G8YFR0re7KzsX/Eh6Qect1zVf8A8pq65S7pPB5PedS99T7P GgsEQS4PHY+jiAqAdZjqlqnOeuK7HDDyPG6rbnkaEtO5RmuAN/yARU5CuEWiicPQAdG2 0Pdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=GYCajw4yHBuUXzxCKYtnSHiIQrDdqgEgzup1m2MjnS4=; b=r0ldfdmL807LUo+vC+4SKpFzNyMwX/EdhkyvDXNgw42OpD0J+hukuxFvALE9R1aSXx fSXCakHHcOfdsv/fh985n3uRqfMKzrBUL1IEiYCs2tY//UuONxNd/WLD54iC48r7ovV7 OYgiKBnCnGYypSkQ+Z1kNDOdKPfVNNgZCTpoWb2hMLQ12caxTsbelgmnNOSBwCPrNMiB bLhnwDT288B0EB1bWtGdHX7lzDYJLofTStm8JDa8aqXnRDL4jVKF1D5hw+O//qh8BBgJ v3yX1a65l5gwSTSbqklU8DXQjs7JMfjYtj9fffWoW4Bn7a5Tu8g05V4TrpyCvvclzQ1W e0aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=g8ya43wf; 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=efficios.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z11-20020a6552cb000000b0051b4eaac57esi14242430pgp.583.2023.04.18.11.35.54; Tue, 18 Apr 2023 11:36:06 -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; dkim=pass header.i=@efficios.com header.s=smtpout1 header.b=g8ya43wf; 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=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232656AbjDRSYn (ORCPT + 99 others); Tue, 18 Apr 2023 14:24:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232569AbjDRSYm (ORCPT ); Tue, 18 Apr 2023 14:24:42 -0400 Received: from smtpout.efficios.com (smtpout.efficios.com [167.114.26.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA2F8659B for ; Tue, 18 Apr 2023 11:24:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1681842277; bh=l8C30Bk06NQO2IPgpoprDzpUR8zjdgmuLBWX7P7sGEA=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=g8ya43wf8TImTXGt4KbIYIy7RtDW/ogz4jBuyjBteD6t7CAsrMhr+vS5WsrmJgwft GNedbrSOOmuBLGH9Zdf4Yx8E2mAf59HdHIYYOqdYU8kXuIj/5fGRmcDKrCke3aE2BR K/OXxyBDq9zICDu9goE2G9OFPZtmlrbfHtkONg2fsryMKwgth1BTdoAjsrakZ5/K7I GvtUCLiLjBRMPpTn8t8coO7f/HQ1qbSTfqDW6RlKKXjMedKKIjeKuVP1e9VCY+qgHW wV1W+NQyM5hWfWWuLhmgn1LLtczxZtcHS2x3xxNxKsTekDUPgoULKhnKEPI9Y0Rty/ nMG7bHrtoxAHw== Received: from [172.16.0.98] (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4Q1C4j02GBzw29; Tue, 18 Apr 2023 14:24:36 -0400 (EDT) Message-ID: Date: Tue, 18 Apr 2023 14:24:39 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [RFC PATCH v8] sched: Fix performance regression introduced by mm_cid Content-Language: en-US From: Mathieu Desnoyers To: Aaron Lu Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, Olivier Dion , michael.christie@oracle.com References: <20230417150831.264780-1-mathieu.desnoyers@efficios.com> <20230418112151.GA565498@ziqianlu-desk2> <40689cd1-af60-542d-2245-c6362c73a365@efficios.com> In-Reply-To: <40689cd1-af60-542d-2245-c6362c73a365@efficios.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 2023-04-18 12:01, Mathieu Desnoyers wrote: > On 2023-04-18 07:21, Aaron Lu wrote: >> On Mon, Apr 17, 2023 at 11:08:31AM -0400, Mathieu Desnoyers wrote: >>> Introduce per-mm/cpu current concurrency id (mm_cid) to fix a PostgreSQL >>> sysbench regression reported by Aaron Lu. >> >> For postgres_sysbench on SPR: >> sched_mm_cid_migrate_to() is in the range of 0.1x% - 0.4x%, mm_cid_get() >> is in the range of 0.1x% - 0.3x%. Other cid functions are pretty minor. >> >> For hackbench on SPR: >> ched_mm_cid_migrate_to() is about 3%-4%, mm_cid_get() is about 7%-8%, >> other cid functions are pretty minor. > > It's a bit higher than I would have expected for hackbench. > > Can you run with the attached schedstats patch applied and boot > with schedstats=enable ? Let me know how the counters behave please, > because I cannot reproduce anything unexpected on my machine. > Also, just to confirm, do you still use this hackbench invocation ? hackbench --pipe --threads -l 500000 Thanks, Mathieu > Thanks, > > Mathieu > -- Mathieu Desnoyers EfficiOS Inc. https://www.efficios.com