Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp43752imw; Tue, 12 Jul 2022 14:17:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vKFv8tYtUzCHXIUaQ0EyS5PPMOeFxK4hsMKmuoGWhfUAj1HmBbyB145mqAJsb5qqNsYYiy X-Received: by 2002:a17:907:2724:b0:72b:526f:6389 with SMTP id d4-20020a170907272400b0072b526f6389mr65506ejl.289.1657660674889; Tue, 12 Jul 2022 14:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657660674; cv=none; d=google.com; s=arc-20160816; b=QphbOEycvEqWHEBRrHPT2J+GNrUhRh7+5nPwmrp/9B012EVw780gyXrqzBAhtKJxU5 EOMZjpNXfwUqQ9dERJ3wdpXFSVHl2zqZr4QovwNfCLQOnPnsPMdi9GAJrAeKxKHub7fz BONHfV4LmR7cWxLjLGWSn0kpunzjIWZlouiXt1Hi08xP2dqnllLa+WiL16RPrUczh5Hx okXUT91SBEAAEJDXiZxx9jTnWTkd6DTq7EM2P9huk33WAIFuIT1TNzvCmsN+v15QS3yZ dzrhrvSa4IY0iIOwfW0EhuopTNn3Go2BhehuGAIPzGGdckl3GRpshXOED+IyZI5F1c0X wjnQ== 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:user-agent:mime-version :date:message-id:dkim-signature; bh=HDxIKR5RZX5hxcnOWzngwENoyujLpmp2i20B6Du0SD0=; b=k4bfmQyhO1IuFoMkuolCx0dfTTZ34PwZ7DyDOHTFUDi0kPc8D9CALsh6IzaDbdJ3IQ mBfyAyAUJQGaRz9kizBpP+SCKYxWThgIWQYdAJaXrse1gKiX6+4gKWsh+key0H2KCNI6 R+wVv1JTUhq0hLxVGv6A50Eq9/zShMgQTEYDQ8E0WEIkjxkdNzRueyL22HlM1futBDtU 54o4S6D64KuWFrupOdbotoHvzQN+R6fscPywwIPoKvwWLsW6knFRoFuhVdrCHA+4R84q dQtopixxOR/7oDPKF20GwgcmxujDJLxkvFQ095BB7vTRsfbqNrhsEFoxl7thg2ntJ3CN 7bOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=t1jqDN4d; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y8-20020a056402270800b0043ad3f569b1si11305349edd.563.2022.07.12.14.17.28; Tue, 12 Jul 2022 14:17:54 -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=@joelfernandes.org header.s=google header.b=t1jqDN4d; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231658AbiGLVPd (ORCPT + 99 others); Tue, 12 Jul 2022 17:15:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230185AbiGLVPc (ORCPT ); Tue, 12 Jul 2022 17:15:32 -0400 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 221A1B23F4 for ; Tue, 12 Jul 2022 14:15:31 -0700 (PDT) Received: by mail-qk1-x72d.google.com with SMTP id q13so2140764qkc.9 for ; Tue, 12 Jul 2022 14:15:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=HDxIKR5RZX5hxcnOWzngwENoyujLpmp2i20B6Du0SD0=; b=t1jqDN4diP7PGhDFRbIYdTcZo3TnW78eug9gswc22ayAkchjHWaBjv7ra/b6tNZrfC FXr8XWDh4knjVpA7+Ofy8h4EMhrfxxeM8Jva9Y4eoOtcpqWIBSbOdWG0fOK/Npkp/422 /BihrPbs/1eHoklLQfvlP8VupGeO0flemzUrM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=HDxIKR5RZX5hxcnOWzngwENoyujLpmp2i20B6Du0SD0=; b=d/EU7/YZ8RsUGHwyjY/AyF7MGnQL9vuFMHNqpIcmI/BR3bM6nByUk8XQtE2BWp/gRV F8bhvV/8rCE1GXLiO2FbnYVBsXdOVkMYMsoOSjkFnGYRm9gupvQ9Jvsl1qnVvv97ChCh 5kfqkjJ2gj+aEeg9mOteHHvb9x8+ev/0ZGOkR7R1CcbbldCIYz6qt8K1khT967GQ7Jmk ESaTZEwNTCy0r0GNXOAqelK+MNmdJdrxwqKNKnjQIH6mkGN3xkSz3kG5ovN1rAKLo5ML WaCrDgEdvQek+TdMi0I1V00nOQYC1im4qxdycVdITdEnEmepQP3tfQWQfwjVFwaMXcxY muDQ== X-Gm-Message-State: AJIora/exok4yEBD0CS2MxUgmKtkmMgdRdn/S4avlMBPpS/beZQV4ejU F6cELy9ngkJa4/uoUTt7zk4Clw== X-Received: by 2002:a05:620a:1008:b0:6b5:70c8:e2a1 with SMTP id z8-20020a05620a100800b006b570c8e2a1mr193131qkj.342.1657660530231; Tue, 12 Jul 2022 14:15:30 -0700 (PDT) Received: from [10.0.0.40] (c-73-148-104-166.hsd1.va.comcast.net. [73.148.104.166]) by smtp.gmail.com with ESMTPSA id d9-20020ac85ac9000000b0031eb3af3ffesm274737qtd.52.2022.07.12.14.15.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Jul 2022 14:15:29 -0700 (PDT) Message-ID: Date: Tue, 12 Jul 2022 17:15:23 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.0.1 Subject: Re: [PATCH v2 6/8] rcuscale: Add test for using call_rcu_lazy() to emulate kfree_rcu() Content-Language: en-US To: paulmck@kernel.org Cc: rcu , LKML , Rushikesh S Kadam , "Uladzislau Rezki (Sony)" , Neeraj upadhyay , Frederic Weisbecker , Steven Rostedt , vineeth@bitbyteword.org References: <20220622225102.2112026-1-joel@joelfernandes.org> <20220622225102.2112026-8-joel@joelfernandes.org> <20220626041327.GN1790663@paulmck-ThinkPad-P17-Gen-1> <20220708230600.GC1790663@paulmck-ThinkPad-P17-Gen-1> <20220712205854.GE1790663@paulmck-ThinkPad-P17-Gen-1> From: Joel Fernandes In-Reply-To: <20220712205854.GE1790663@paulmck-ThinkPad-P17-Gen-1> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 7/12/2022 4:58 PM, Paul E. McKenney wrote: > On Tue, Jul 12, 2022 at 04:27:05PM -0400, Joel Fernandes wrote: >> Ah, with all the threads, I missed this one :(. Sorry about that. > > I know that feeling... > >> On Fri, Jul 8, 2022 at 7:06 PM Paul E. McKenney wrote: >> >>>> Currently I added a test like the following which adds a new torture type, my >>>> thought was to stress the new code to make sure nothing crashed or hung the >>>> kernel. That is working well except I don't exactly understand the total-gps >>>> print showing 0, which the other print shows 1188 GPs. I'll go dig into that >>>> tomorrow.. thanks! >>>> >>>> The print shows >>>> TREE11 ------- 1474 GPs (12.2833/s) [rcu_lazy: g0 f0x0 total-gps=0] >>>> TREE11 no success message, 7 successful version messages >>> >>> Nice!!! It is very good to see you correctly using the rcu_torture_ops >>> facility correctly! >>> >>> And this could be good for your own testing, and I am happy to pull it >>> in for that purpose (given it being fixed, having a good commit log, >>> and so on). After all, TREE10 is quite similar -- not part of CFLIST, >>> but useful for certain types of focused testing. >>> >>> However, it would be very good to get call_rcu_lazy() testing going >>> more generally, and in particular in TREE01 where offloading changes >>> dynamically. A good way to do this is to add a .call_lazy() component >>> to the rcu_torture_ops structure, and check for it in a manner similar >>> to that done for the .deferred_free() component. Including adding a >>> gp_normal_lazy module parameter. This would allow habitual testing >>> on a few scenarios and focused lazy testing on all of them via the >>> --bootargs parameter. >> >> Ok, if you don't mind I will make this particular enhancement to the >> torture test in a future patchset, since I kind of decided on doing v3 >> with just fixes to what I have and more testing. Certainly happy to >> enhance these tests in a future version. > > No need to gate v3 on those tests. > >>> On the total-gps=0, the usual suspicion would be that the lazy callbacks >>> never got invoked. It looks like you were doing about a two-minute run, >>> so maybe a longer run? Though weren't they supposed to kick in at 15 >>> seconds or so? Or did this value of zero come about because this run >>> used exactly 300 grace periods? >> >> It was zero because it required the RCU_FLAVOR torture type, where as >> my torture type was lazy. Adding RCU_LAZY_FLAVOR to the list fixed it >> :) > > Heh! Then it didn't actually do any testing. Done that as well! Sorry to not be clear, I meant the switch-case list below, not the torture list in rcutorture.c! It was in the rcutorture.c so was being tested, just reporting zero gp_seq as I pointed. /* * Send along grace-period-related data for rcutorture diagnostics. */ void rcutorture_get_gp_data(enum rcutorture_type test_type, int *flags, unsigned long *gp_seq) { switch (test_type) { case RCU_FLAVOR: case RCU_LAZY_FLAVOR: *flags = READ_ONCE(rcu_state.gp_flags); *gp_seq = rcu_seq_current(&rcu_state.gp_seq); break; default: break; } } EXPORT_SYMBOL_GPL(rcutorture_get_gp_data);