Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2944759ybi; Thu, 18 Jul 2019 17:49:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+V5O1Hz8FAJqvVWUQuwznQ7A3fewk3zGPVz6MVVUvlNSsUUIcqryJzckqzBOdlscDOXU3 X-Received: by 2002:a17:902:28c9:: with SMTP id f67mr13726339plb.19.1563497378962; Thu, 18 Jul 2019 17:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563497378; cv=none; d=google.com; s=arc-20160816; b=aX1VpaOjAytPje+Eg6JpUAJyiuxvXJgBhVt6wY2WcQavr9E33dHI/rRAcTBiwr+PQD Y8BH+tIDlmVePm6X58Jq0QuAYW/3OE9WAm9ItYfP3V4ia0w3vD5EAFBA68U4mreqYpAa sNP37onsEQrxn3QwBMo0t7TyiYF7U16TnqrNE6VjWLzBOLi/GItpIBNKT+Lc6hBEK716 RKWKWx7Htp35QIc7BigNf6LaJNRDayNyDx2+zGsF/W1FIY/hzNjgP4KSYueR0zGIymiU 77Df0DJQdharfsHXh9FZf0aH0/3ruObZE9clUyCqZiniu2VbQLA4oPrvNiqPQUmYI6rE VncQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7jHRVGYnOvUursfYWZeDAUUnbVipDkEH1tJJIaRboaw=; b=inbP++x3biUn1MjiAHe9735iEysnfGp3dedt1ifaDhtF1eP72ZghiXmhDVsmdAmt2R mto3h2d28XdHDmRBZtZ2Pu1w/RPslO6Cjv5XQLFBkxVozxKYo5/uoleVMse3v8EvtrEZ U7mHm9ld6rGiKvUtMQI3xcUIDlJhMdJjkN6QoKPylSnUXjZQfell9ZS5HJSBeVSQk2XX wEO9lZnph0YG5W4+SFc6NSNEjE1ZprstQ8tJsYfxDqMP0wGoAucyYTzXpQBIktsJf/D/ LTmZFJ1lorAipNQepULz50Hv1IoapJrzmMtBDtWlxIKTfPeCBOH/DmDaBQhdDnBbA3gg O8pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=wJ4Do64T; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h10si195691pfk.197.2019.07.18.17.49.23; Thu, 18 Jul 2019 17:49:38 -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=pass header.i=@joelfernandes.org header.s=google header.b=wJ4Do64T; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726385AbfGSAsu (ORCPT + 99 others); Thu, 18 Jul 2019 20:48:50 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:42648 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725992AbfGSAst (ORCPT ); Thu, 18 Jul 2019 20:48:49 -0400 Received: by mail-pl1-f195.google.com with SMTP id ay6so14740715plb.9 for ; Thu, 18 Jul 2019 17:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7jHRVGYnOvUursfYWZeDAUUnbVipDkEH1tJJIaRboaw=; b=wJ4Do64TgslH5ajaP39l3lzWeOkT7er76jZGcUJG2PYrgj1XIa8WPr5AJWdIo6ztbf 6SgS4u/Mzqxd5dp6vzMR0WsJQS8P2WmPY/FjBG/JNFP0Rn8+sIYpTm4QHn1+gah9+xck sdm0QTt3Tc4LqhY6vZJzce98FmnJotTEeFC6g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7jHRVGYnOvUursfYWZeDAUUnbVipDkEH1tJJIaRboaw=; b=WdPCm2FXsdjbXKYeEA6WVPTU6XPzA5f9K2gOlxUhpPtRlVWINWCV2c7R767t0NDMWd SDnyLhMekTpVz6FD01ulp2r3dm5q45jO6hwPhVq8w8JtjdQ6VTO5JAuUzegvJrY+mPpn MqBZwEpHww+z0y106HZirjUkJWwJtzf+tS7x0pJadjf9cSFmmHio5IKFfh0ZobfgYBL8 Y5rhj+j8B0h6g8bLj4OV8/poe140SV/tEzqlvanvtz0AvNRMMh7gbztymaexknv7wMIA s8qR/luho3JlLpes/kpUtAbDR3ILS0R4k+X0ezV/h7FpSd+jE6BOuNE9AK0KKk83rb7N BeFA== X-Gm-Message-State: APjAAAViZ/0LtgHQ7mhesgQOIqk1NJBeYFxOX7MQbzRahOc8FFfSel7Y hpUP86Nt36UH67f0Y58+Ol0= X-Received: by 2002:a17:902:724a:: with SMTP id c10mr49965858pll.298.1563497328827; Thu, 18 Jul 2019 17:48:48 -0700 (PDT) Received: from localhost ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id m16sm29639113pfd.127.2019.07.18.17.48.47 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 18 Jul 2019 17:48:48 -0700 (PDT) Date: Thu, 18 Jul 2019 20:48:46 -0400 From: Joel Fernandes To: "Paul E. McKenney" Cc: Byungchul Park , Byungchul Park , rcu , LKML , kernel-team@lge.com Subject: Re: [PATCH] rcu: Make jiffies_till_sched_qs writable Message-ID: <20190719004846.GA61615@google.com> References: <20190711195839.GA163275@google.com> <20190712063240.GD7702@X58A-UD3R> <20190712125116.GB92297@google.com> <20190713151330.GE26519@linux.ibm.com> <20190713154257.GE133650@google.com> <20190713174111.GG26519@linux.ibm.com> <20190718213419.GV14271@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190718213419.GV14271@linux.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 18, 2019 at 02:34:19PM -0700, Paul E. McKenney wrote: > On Thu, Jul 18, 2019 at 12:14:22PM -0400, Joel Fernandes wrote: > > Trimming the list a bit to keep my noise level low, > > > > On Sat, Jul 13, 2019 at 1:41 PM Paul E. McKenney wrote: > > [snip] > > > > It still feels like you guys are hyperfocusing on this one particular > > > > > knob. I instead need you to look at the interrelating knobs as a group. > > > > > > > > Thanks for the hints, we'll do that. > > > > > > > > > On the debugging side, suppose someone gives you an RCU bug report. > > > > > What information will you need? How can you best get that information > > > > > without excessive numbers of over-and-back interactions with the guy > > > > > reporting the bug? As part of this last question, what information is > > > > > normally supplied with the bug? Alternatively, what information are > > > > > bug reporters normally expected to provide when asked? > > > > > > > > I suppose I could dig out some of our Android bug reports of the past where > > > > there were RCU issues but if there's any fires you are currently fighting do > > > > send it our way as debugging homework ;-) > > > > > > Suppose that you were getting RCU CPU stall > > > warnings featuring multi_cpu_stop() called from cpu_stopper_thread(). > > > Of course, this really means that some other CPU/task is holding up > > > multi_cpu_stop() without also blocking the current grace period. > > > > > > > So I took a shot at this trying to learn how CPU stoppers work in > > relation to this problem. > > > > I am assuming here say CPU X has entered MULTI_STOP_DISABLE_IRQ state > > in multi_cpu_stop() but another CPU Y has not yet entered this state. > > So CPU X is stalling RCU but it is really because of CPU Y. Now in the > > problem statement, you mentioned CPU Y is not holding up the grace > > period, which means Y doesn't have any of IRQ, BH or preemption > > disabled ; but is still somehow stalling RCU indirectly by troubling > > X. > > > > This can only happen if : > > - CPU Y has a thread executing on it that is higher priority than CPU > > X's stopper thread which prevents it from getting scheduled. - but the > > CPU stopper thread (migration/..) is highest priority RT so this would > > be some kind of an odd scheduler bug. > > - There is a bug in the CPU stopper machinery itself preventing it > > from scheduling the stopper on Y. Even though Y is not holding up the > > grace period. > > - CPU Y might have already passed through its quiescent state for > the current grace period, then disabled IRQs indefinitely. > Now, CPU Y would block a later grace period, but CPU X is > preventing the current grace period from ending, so no such > later grace period can start. Ah totally possible, yes! thanks, - Joel