Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5617519rwd; Wed, 24 May 2023 04:38:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6P/DcHSoAl59zQ1m5qSiBbMVSB6og3uQYn7+aV9xGRZSDVhF8j1dcLQxL31dH1yLYrPFW1 X-Received: by 2002:a17:902:ce84:b0:1af:c438:196f with SMTP id f4-20020a170902ce8400b001afc438196fmr7355006plg.50.1684928319019; Wed, 24 May 2023 04:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684928319; cv=none; d=google.com; s=arc-20160816; b=I/HW1IPWIuwXx4WNCgAaSM1dtN3LiqY/fv4pvwFv8n0oC9S/9/2LJy3BeN/MAUjg5p g82Egh32IJQnCdE9DEg79G7/FO+9+kE6fJqWAkbbNtZmYuJe026l8RrR9i7Kbin02uiI bRKd6q0rTkGn//LR8U9hiFg88jSDWa1y29T8sYwDlfizmtkbHVhlaN3y7LVZ5SNTGzAD qylLr/sLcuwfnTj+BJyT926Nimf/OQ0YNvZBdfY11WP+9lUOp1MYwCyXjxhY4/DZOemz d2Gtqk29I8jv2Ex4KsTWrErSmjqCnh5JiYT1qlFQEEE7pElDrdKFC5Rv3vkyXX2SDMkC 0IFQ== 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:mime-version:date :dkim-signature:message-id; bh=r7uIYMMBsG2+gFwRyUinbXHkYOIikxEdGr36MvRUJ8c=; b=pzo8vlNtgbzDgB7W+USYSBx53CcaA6R/VByjN63rDeelPXXyadQUX0rJXM5HbhLTPz yJ4ImBaoGtNn4ycjMt1gIzBk3VXPFDpAy5ZJxDOt/JeeKbbYjsYc/WN9NAkShv7WPQS9 zMmDEIXEKO5ri/9q3Qe1anNanVul1qnnkOh/RfuSHypkjMC9sQg0AOZDqKuKmSzK/Tek hkHvNb8iHHb/iMwMt2L75L5KSUKhYbx3DRZutW9RFZhNp+ndJbNnMTzoOVqzE5XB7G9z jJIj6MljhNd01EAqOvj9FSoTpXYw3LTogHRWXRw5IOfvz6LJ+ioTyn5cYnXGCfsur50i Dhdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="UDiOa/81"; 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 j9-20020a170903024900b001a986e5bd92si3838067plh.83.2023.05.24.04.38.26; Wed, 24 May 2023 04:38:38 -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="UDiOa/81"; 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 S231322AbjEXLXK (ORCPT + 99 others); Wed, 24 May 2023 07:23:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjEXLXJ (ORCPT ); Wed, 24 May 2023 07:23:09 -0400 Received: from out-39.mta0.migadu.com (out-39.mta0.migadu.com [91.218.175.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEA59C5 for ; Wed, 24 May 2023 04:23:07 -0700 (PDT) Message-ID: <2c5df9e0-9b1f-89eb-4d64-c5091ead9cf0@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1684927386; 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=r7uIYMMBsG2+gFwRyUinbXHkYOIikxEdGr36MvRUJ8c=; b=UDiOa/81mudJk0eXr2RQY2l6PUDl6gutYQUUOBdWfw4+15hm55V38MmdVeo8ZBbuswPAFY 1iSSHBTD3py36UxZcDvDq/qD2DEAJoyPeXpgy5NsEneGuN2zjBbbI9o1IVf8kR2YwibCRo 20qMn8Ci3rj0h3HJsM6Kqt1Dhq1pZaM= Date: Wed, 24 May 2023 19:22:55 +0800 MIME-Version: 1.0 Subject: Re: [linus:master] [mm] f95bdb700b: stress-ng.ramfs.ops_per_sec -88.8% regression Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Qi Zheng To: RCU Cc: oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, Andrew Morton , Vlastimil Babka , Kirill Tkhai , Roman Gushchin , =?UTF-8?Q?Christian_K=c3=b6nig?= , David Hildenbrand , Davidlohr Bueso , Johannes Weiner , Michal Hocko , Muchun Song , "Paul E. McKenney" , Shakeel Butt , Yang Shi , linux-mm@kvack.org, ying.huang@intel.com, feng.tang@intel.com, fengwei.yin@intel.com, Yujie Liu References: <202305230837.db2c233f-yujie.liu@intel.com> <896bbb09-d400-ec73-ba3a-b64c6e9bbe46@linux.dev> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 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/5/24 19:08, Qi Zheng wrote: > [...] > > Well, I just ran the following command and reproduced the result: > > stress-ng --timeout 60 --times --verify --metrics-brief --ramfs 9 & > > 1) with commit 42c9db3970483: > > stress-ng: info:  [11023] setting to a 60 second run per stressor > stress-ng: info:  [11023] dispatching hogs: 9 ramfs > stress-ng: info:  [11023] stressor       bogo ops real time  usr time > sys time   bogo ops/s     bogo ops/s > stress-ng: info:  [11023]                           (secs)    (secs) > (secs)   (real time) (usr+sys time) > stress-ng: info:  [11023] ramfs            774966     60.00     10.18 > 169.45     12915.89        4314.26 > stress-ng: info:  [11023] for a 60.00s run time: > stress-ng: info:  [11023]    1920.11s available CPU time > stress-ng: info:  [11023]      10.18s user time   (  0.53%) > stress-ng: info:  [11023]     169.44s system time (  8.82%) > stress-ng: info:  [11023]     179.62s total time  (  9.35%) > stress-ng: info:  [11023] load average: 8.99 2.69 0.93 > stress-ng: info:  [11023] successful run completed in 60.00s (1 min, > 0.00 secs) > > 2) with commit f95bdb700bc6b: > > stress-ng: info:  [37676] dispatching hogs: 9 ramfs > stress-ng: info:  [37676] stressor       bogo ops real time  usr time > sys time   bogo ops/s     bogo ops/s > stress-ng: info:  [37676]                           (secs)    (secs) > (secs)   (real time) (usr+sys time) > stress-ng: info:  [37676] ramfs            168673     60.00      1.61 >  39.66      2811.08        4087.47 > stress-ng: info:  [37676] for a 60.10s run time: > stress-ng: info:  [37676]    1923.36s available CPU time > stress-ng: info:  [37676]       1.60s user time   (  0.08%) > stress-ng: info:  [37676]      39.66s system time (  2.06%) > stress-ng: info:  [37676]      41.26s total time  (  2.15%) > stress-ng: info:  [37676] load average: 7.69 3.63 2.36 > stress-ng: info:  [37676] successful run completed in 60.10s (1 min, > 0.10 secs) > > The bogo ops/s (real time) did drop significantly. > > And the memory reclaimation was not triggered in the whole process. so > theoretically no one is in the read critical section of shrinker_srcu. > > Then I found that some stress-ng-ramfs processes were in > TASK_UNINTERRUPTIBLE state for a long time: > > root       42313  0.0  0.0  69592  2068 pts/0    S    19:00   0:00 > stress-ng-ramfs [run] > root       42314  0.0  0.0  69592  2068 pts/0    S    19:00   0:00 > stress-ng-ramfs [run] > root       42315  0.0  0.0  69592  2068 pts/0    S    19:00   0:00 > stress-ng-ramfs [run] > root       42316  0.0  0.0  69592  2068 pts/0    S    19:00   0:00 > stress-ng-ramfs [run] > root       42317  7.8  0.0  69592  1812 pts/0    D    19:00   0:02 > stress-ng-ramfs [run] > root       42318  0.0  0.0  69592  2068 pts/0    S    19:00   0:00 > stress-ng-ramfs [run] > root       42319  7.8  0.0  69592  1812 pts/0    D    19:00   0:02 > stress-ng-ramfs [run] > root       42320  0.0  0.0  69592  2068 pts/0    S    19:00   0:00 > stress-ng-ramfs [run] > root       42321  7.8  0.0  69592  1812 pts/0    D    19:00   0:02 > stress-ng-ramfs [run] > root       42322  0.0  0.0  69592  2068 pts/0    S    19:00   0:00 > stress-ng-ramfs [run] > root       42323  7.8  0.0  69592  1812 pts/0    D    19:00   0:02 > stress-ng-ramfs [run] > root       42324  0.0  0.0  69592  2068 pts/0    S    19:00   0:00 > stress-ng-ramfs [run] > root       42325  7.8  0.0  69592  1812 pts/0    D    19:00   0:02 > stress-ng-ramfs [run] > root       42326  0.0  0.0  69592  2068 pts/0    S    19:00   0:00 > stress-ng-ramfs [run] > root       42327  7.9  0.0  69592  1812 pts/0    D    19:00   0:02 > stress-ng-ramfs [run] > root       42328  7.9  0.0  69592  1812 pts/0    D    19:00   0:02 > stress-ng-ramfs [run] > root       42329  7.9  0.0  69592  1812 pts/0    D    19:00   0:02 > stress-ng-ramfs [run] > root       42330  7.9  0.0  69592  1556 pts/0    D    19:00   0:02 > stress-ng-ramfs [run] > > Their call stack is as follows: > > cat /proc/42330/stack > > [<0>] __synchronize_srcu.part.21+0x83/0xb0 > [<0>] unregister_shrinker+0x85/0xb0 > [<0>] deactivate_locked_super+0x27/0x70 > [<0>] cleanup_mnt+0xb8/0x140 > [<0>] task_work_run+0x65/0x90 > [<0>] exit_to_user_mode_prepare+0x1ba/0x1c0 > [<0>] syscall_exit_to_user_mode+0x1b/0x40 > [<0>] do_syscall_64+0x44/0x80 > [<0>] entry_SYSCALL_64_after_hwframe+0x63/0xcd > > + RCU folks, Is this result as expected? I would have thought that > synchronize_srcu() should return quickly if no one is in the read > critical section. :( > I received the message: BOUNCE rcu@vger.kernel.org: Message too long (>100000 chars) So add RCU folks again. -- Thanks, Qi