Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4593108imm; Mon, 18 Jun 2018 18:37:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJnefUFydCjnL/G0DR4XPx3DSK7dqCYddI4dCxzOy/kG3d1XlKGKUhODAv9blahRITaVs9X X-Received: by 2002:a63:ab45:: with SMTP id k5-v6mr13137531pgp.23.1529372227310; Mon, 18 Jun 2018 18:37:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529372227; cv=none; d=google.com; s=arc-20160816; b=vuXxQpG8A1llQeA6Hg2eE1IdrNlfOWb452PF5+pBKUDB12vIy+X/0bQelua2Q2leJJ SMltm336PbWGVgCvyOl8Zto15NRsrV+0vzA5DLH2r1lE5KD/2xIIlR60qcSeb54Eun1l +h0lcL1m1aUlFx7f5t9A3wf+rzzqMoVClA+gCVelWLvUFm08XASPolhiOLmhhOK+rChp PSpzr4hlY3b0AJEQqZ6bYCDGP1/jl4aIIhASQGrcNImxbKloqDgU1bB63AIAhktkbEfG icl/7qMMP8Xt9KlD3Q2jQMRPwhMjN6LXEgZMG9cbAjOIHq0ZDpnN05CRlIHMFZ+qtw2C AAlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature:arc-authentication-results; bh=NG5wlGvnwNC3IqLZX5cTbS8035ctHyfvrCupAGb5uyI=; b=HSHEGaCMd72xFq+jkNDi/FtPCl+aNgLQ3t3l4wJWj9r+0phXY/hnEIDfVGThNKHc+B PWedZjSwCjqw8mgQBccgk1aaNW+1r2w2+Xru/zX01lyrg+TjX5BrVVdlQa2OvfUjiArJ BZTfPrc1O8RKyoBIuvCfl8PV4ppsFNSthFE01KmwULNioc2ieYACViPAzeA3kWZc5AX/ 4+LrQIbPyh3FZi8OYtrChDsDHv4qAj7bfXNrhUxoWkkfaSZo5fv/55A3cd3ELYS3Wofr QK9E+U96qm7f2QF99fO2F+QdIwL6jX5cWnhZ//vyElEOsfytgVLB5fgJr/4OD6ZwNVn0 Fc6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=WKs+RdBm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=REJECT sp=REJECT dis=REJECT) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v61-v6si16274405plb.499.2018.06.18.18.36.52; Mon, 18 Jun 2018 18:37:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=WKs+RdBm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=REJECT sp=REJECT dis=REJECT) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755482AbeFSBgM (ORCPT + 99 others); Mon, 18 Jun 2018 21:36:12 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:37850 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755387AbeFSBgL (ORCPT ); Mon, 18 Jun 2018 21:36:11 -0400 Received: by mail-pl0-f67.google.com with SMTP id 31-v6so10018067plc.4 for ; Mon, 18 Jun 2018 18:36:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:from:message-id; bh=NG5wlGvnwNC3IqLZX5cTbS8035ctHyfvrCupAGb5uyI=; b=WKs+RdBmt8v3N5Nn6VoaUlRB9CZc2oEECUfwmQt5j4GEXnX5XDeCauLsyYYYbtwsrP 5GjFXenxLZ5Rujp3hVjSbxe9lUhjAJCVazwlqcBHbBs9jxkN55R3zmRWfeWeEh13v9F8 0TF5Zc/ORkZjx9Ot2RgFfhyC08edorFsDe+QG7bf9RMvJprqbo0SuXZbt2FT35ubAhwE q8UY2kaX5fjhGmii+z33QQIvPF6pChyKO/a7bsKGasN+sTpaw7tsWJ6ypQ+VvoZXDjuh Ig6I5QKfsJM0EpvR5ydc21xZ8UCrjM0ClTkKf8zcgXZoa6iN1v6x+9HZjHwyiRON0J3f lSIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:from :message-id; bh=NG5wlGvnwNC3IqLZX5cTbS8035ctHyfvrCupAGb5uyI=; b=o1ikNx9pLguO4m5uJN44NTEbUuc67z6U+6mMuSyfHsGKs+p89Ni/QZomOImjp+U6lA eBv0Hb+bkDIO2Cj2jtZt1ubwDrdstrkHCLZdYHYptciXxm7vASkGPCNMQzF9kYH+3R7S FRbTLgOR2TMB9Sh0km70aYSJi3NuV2UnhXz0PCkP+OfggfN1bnHtKYeHyFR76XIkVoiD 17OHEEM3ZaK5wyviqFEdiKP1KN8DsWsiPJ0DnkyKe5HX0oC4lTFqc23MDBixePJyww0c w6sBloQ64S0vsvCT9jwEE4qkV7cYasiYD9cbrcKKwxX1b7fMXB7rM+ajQMa2XRRzT5qK S71Q== X-Gm-Message-State: APt69E14UJIG3pIfIKPhdhaZQ51Da0xhKkswcgjDaJ+MrZc8ZLdyQx8F FHL/kIrKeImvNZC92Ll5gBSGtDq8v7o= X-Received: by 2002:a17:902:7105:: with SMTP id a5-v6mr16399831pll.171.1529372170542; Mon, 18 Jun 2018 18:36:10 -0700 (PDT) Received: from [192.168.0.114] (c-98-210-118-128.hsd1.ca.comcast.net. [98.210.118.128]) by smtp.gmail.com with ESMTPSA id h84-v6sm25419754pfd.69.2018.06.18.18.36.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jun 2018 18:36:09 -0700 (PDT) Date: Mon, 18 Jun 2018 18:36:06 -0700 User-Agent: K-9 Mail for Android In-Reply-To: <20180619010803.GC3593@linux.vnet.ibm.com> References: <20180610234544.150933-2-joel@joelfernandes.org> <20180613065711.GZ16472@yexl-desktop> <20180613072948.GA142000@joelaf.mtv.corp.google.com> <20180618165646.GA3593@linux.vnet.ibm.com> <20180618222647.GA156172@joelaf.mtv.corp.google.com> <20180619010803.GC3593@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [lkp-robot] [rcutorture] 46e26223e3: WARNING:at_kernel/rcu/rcutorture.c:#rcu_torture_stats_print To: paulmck@linux.vnet.ibm.com, "Paul E. McKenney" , Joel Fernandes CC: kernel test robot , linux-kernel@vger.kernel.org, kernel-team@android.com, Josh Triplett , Lai Jiangshan , Mathieu Desnoyers , mingo@redhat.com, Steven Rostedt , tglx@linutronix.de, lkp@01.org From: Joel Fernandes Message-ID: <2CDE3A5B-1AD3-4185-9E24-24D4075A9EA6@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On June 18, 2018 6:08:03 PM PDT, "Paul E=2E McKenney" wrote: >On Mon, Jun 18, 2018 at 03:26:47PM -0700, Joel Fernandes wrote: >> On Mon, Jun 18, 2018 at 09:56:46AM -0700, Paul E=2E McKenney wrote: >> > > The reason for the rcutorture test failure could be that the >default >> > > kthread_prio for the system's RCU threads is set to 1 (unless >overridden by >> > > rcutree=2Ekthread_prio) which is also equal to the priority of the >rcutorture's >> > > boost threads=2E Due to this the rcutorture test could starve the >RCU threads >> > > as well and defeat the boosting mechanism=2E I was able to solve a >similar >> > > issue by just passing rcutree=2Ekthread_prio of 50 on the kernel >command line=2E >> > >=20 >> > > Paul, would it be ok if we changed the default kthread_prio to >something > 1 >> > > so that rcutorture can test properly without needing to pass any >extra >> > > rcutree=2E* parameters? >> > >=20 >> > > so something like this in kernel/rcu/tree=2Ec ? >> > >=20 >> > > static int kthread_prio =3D IS_ENABLED(CONFIG_RCU_BOOST) ? 2 : 0; >> >=20 >> > Would it be possible to also condition this on rcutorture being >built >> > in? Or are they doing modprobes for rcutorture? >>=20 >> They seem to be doing built-in rcutorture tests=2E But I believe the >same >> problem would occur even if you used modules? I believe the fact that >> rcutorture is a module or built-in wouldn't matter to the underlying >issue >> which is the RCU subsystems's threads are at too low of a priority >> (rcutree=2Ekthread_prio =3D 1)=2E > >Understood=2E=2E=2E > >> If you agree with changing the default priority, I have included a >patch >> below for rcu/dev=2E > >The problem is that without rcutorture, rcutree=2Ekthread_prio=3D1 is a >legitimate choice, and changing the default globally could be breaking >someone=2E So it would be far better to up the priority only during >known >rcutorture testing=2E Oh I see what you're saying=2E I'll work on a patch along these lines then= =2E Thanks! - Joel > > Thanx, Paul > >> thanks, >>=20 >> - Joel >>=20 >> ---8<----------------------- >>=20 >> >From b0f4111ef1abd1c481c269fadb3535c83ab43c93 Mon Sep 17 00:00:00 >2001 >> From: "Joel Fernandes (Google)" >> Date: Mon, 18 Jun 2018 15:13:10 -0700 >> Subject: [PATCH] rcu: Change default RCU kthread priority to 2 >>=20 >> The current RT priority of 1 for RCU kthreads makes rcutorture's >boost test >> fail on systems where rcutree=2Ekthread_prio isn't passed=2E >>=20 >> The rcutorture boost kthreads have the same priority as well (RT >priority of >> 1)=2E Due to this, the rcutorture kthreads starve the RCU subsystem's >kthreads >> and causes rcutorture failures=2E This patch changes the priority of >the RCU >> subsystem's threads to a default RT priority of 2 so that >rcutorture's >> threads get preempted by them=2E Verified that the boost tests will >pass with >> this change=2E >>=20 >> Reported-by: Xiaolong Ye (via lkp-robot) >> Signed-off-by: Joel Fernandes (Google) >> --- >> kernel/rcu/tree=2Ec | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >>=20 >> diff --git a/kernel/rcu/tree=2Ec b/kernel/rcu/tree=2Ec >> index deb2508be923=2E=2E920c39e3f871 100644 >> --- a/kernel/rcu/tree=2Ec >> +++ b/kernel/rcu/tree=2Ec >> @@ -171,7 +171,7 @@ static void rcu_report_exp_rdp(struct rcu_state >*rsp, >> static void sync_sched_exp_online_cleanup(int cpu); >>=20 >> /* rcuc/rcub kthread realtime priority */ >> -static int kthread_prio =3D IS_ENABLED(CONFIG_RCU_BOOST) ? 1 : 0; >> +static int kthread_prio =3D IS_ENABLED(CONFIG_RCU_BOOST) ? 2 : 0; >> module_param(kthread_prio, int, 0644); >>=20 >> /* Delay in jiffies for grace-period initialization delays, debug >only=2E */ >> --=20 >> 2=2E18=2E0=2Erc1=2E244=2Egcf134e6275-goog >>=20 --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E