Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3938575rwd; Mon, 29 May 2023 20:26:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7i2wkjmGq6MLOjiernjNRRBU+t1EIRUlovkl+0V2z1WCzUXf4nDpBCp3Vfemst1taw67KA X-Received: by 2002:a05:6a20:d38b:b0:10a:fad7:43bf with SMTP id iq11-20020a056a20d38b00b0010afad743bfmr846395pzb.39.1685417173385; Mon, 29 May 2023 20:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685417173; cv=none; d=google.com; s=arc-20160816; b=M7r4YicYIVRrxBB08Wpu4bj//UwuH1SzU4oLTZqES48Q+0D/VPX+LnpLf/wMYKfzvy UNY815viwCRHXa3ewuV50Gq5PaymtnB925yIlRSXxEL+pf1NB/2Q3A3OnX+Hq/m8FOzR 8QtzuSu1HJ/l79/WWnFhLUmUdC/1CX4Jl+PpaPrmQFGsbKz4Jep0ET3Cg3BcZLOeH+cB pomTuR++g2PEoY4DEesBdauBB2OtSn7nJTsCtocCPteIQHC9rUHEqUd6CCFrsm8cOLvf SURXmvlls1u4UmJFI72P9yOGEFhsp3F4t9fvRbOdrX7CzQfpVT7322K3DGrb7sILV1Qj xEBQ== 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:from :references:cc:to:content-language:subject:mime-version:date :dkim-signature:message-id; bh=hhVCqVUhvZRjlBrxLBQaFs82AfnvT+az3ouF0P0dHAo=; b=cXTmJ+VgUEnjMhQVC9+D1I2e+945X7bgfYQtIYAmg/asavoQ5zXpe4JCicV2rsMYpI UuwHc7KsVZzjYCujvCRLuf2+H4HfelhnuF09pnLxwGDfkPch9ouUC/PMUYZCjgYyeNJS +n90d5Azxg5f4UUY3Iz9Xe/shLix9RtGbYjU/TjtseRGXiAVgRNqG2mn9x7//wW2w79q R+d65gBlhy5uoYaZCrvoAZ/LeGM366BJEje58vmTJja1GClv/xw4PZPP5mumJgvO4xAA Zdh5BfpBF8i01br2B05VfylA6J+XOgkJo/Lh/zhKZtPEqMttJxadx1eg5Y7KtRoVYrj7 WEtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=mlTKSDp3; 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=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 199-20020a6301d0000000b00530b70aac4asi10392977pgb.91.2023.05.29.20.25.34; Mon, 29 May 2023 20:26:13 -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=@linux.dev header.s=key1 header.b=mlTKSDp3; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbjE3DHr (ORCPT + 99 others); Mon, 29 May 2023 23:07:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjE3DHp (ORCPT ); Mon, 29 May 2023 23:07:45 -0400 Received: from out-29.mta1.migadu.com (out-29.mta1.migadu.com [95.215.58.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A82489F for ; Mon, 29 May 2023 20:07:43 -0700 (PDT) Message-ID: <26da75a6-115f-a17a-73bb-381a6b4a3a75@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1685416060; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hhVCqVUhvZRjlBrxLBQaFs82AfnvT+az3ouF0P0dHAo=; b=mlTKSDp327yaErwS5wPyUOFLhylZtOXgmCsi5D/Ahv65c8fdvz5AEvKl8wwzngX+XQyxB7 3xb9bQMv30BmVUREfvhaXsc5w+Js7ZPspdMxeFle/O48tfkrlr7T8waiZphxSHAtfQN4C0 /8vG5h5z2wHuFeuJA+FakXDh+Wquthg= Date: Tue, 30 May 2023 11:07:29 +0800 MIME-Version: 1.0 Subject: Re: [linus:master] [mm] f95bdb700b: stress-ng.ramfs.ops_per_sec -88.8% regression Content-Language: en-US To: paulmck@kernel.org, Kirill Tkhai Cc: RCU , Yujie Liu , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, Andrew Morton , Vlastimil Babka , Roman Gushchin , =?UTF-8?Q?Christian_K=c3=b6nig?= , David Hildenbrand , Davidlohr Bueso , Johannes Weiner , Michal Hocko , Muchun Song , Shakeel Butt , Yang Shi , linux-mm@kvack.org, ying.huang@intel.com, feng.tang@intel.com, fengwei.yin@intel.com References: <202305230837.db2c233f-yujie.liu@intel.com> <896bbb09-d400-ec73-ba3a-b64c6e9bbe46@linux.dev> <44407892-b7bc-4d6c-8e4a-6452f0ee88b9@paulmck-laptop> <095806f1-f7f0-4914-b04b-c874fb25bb83@paulmck-laptop> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Qi Zheng In-Reply-To: <095806f1-f7f0-4914-b04b-c874fb25bb83@paulmck-laptop> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Hi, On 2023/5/29 20:51, Paul E. McKenney wrote: > On Mon, May 29, 2023 at 10:39:21AM +0800, Qi Zheng wrote: [...] >> >> Thanks for such a detailed explanation. >> >> Now I think we can continue to try to complete the idea[1] from >> Kirill Tkhai. The patch moves heavy synchronize_srcu() to delayed >> work, so it doesn't affect on user-visible unregistration speed. >> >> [1]. https://lore.kernel.org/lkml/153365636747.19074.12610817307548583381.stgit@localhost.localdomain/ > > A blast from the past! ;-) > > But yes, moving the long-latency synchronize_srcu() off the user-visible > critical code path can be even better. Yeah, I applied these patches ([PATCH RFC 04/10]~[PATCH RFC 10/10], with few conflicts), the ops/s does get back to the previous levels. I'll continue updating this patchset after doing more testing. Thanks, Qi > > Thanx, Paul