Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8803417imu; Tue, 4 Dec 2018 14:36:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/UE3qvYTsChQNqoBH/3K6fs2wkaKMa970jZ42SeargPIL2akrVSoC22/tmgbViOKDa5SS5o X-Received: by 2002:a17:902:1105:: with SMTP id d5mr20944663pla.47.1543962968902; Tue, 04 Dec 2018 14:36:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543962968; cv=none; d=google.com; s=arc-20160816; b=mES0Lc/tyr/N2JDG01854SWb8zw0ysiRzSoXIEWtDgkSHCaqBX0hBojouiprj9Gf4G G+6N5R+ZqcMRu7YwZLRprqILS3/4xvyZasb4IwrqIMUdLFKi8oVyQ3+XPk0A9QAm9Inw JFS7Up9Zu3d1w48G9gAK4Blk591/zXflH6nJHsRRq2g8Cx4zeCManUQsKeIp4vQvHEfv lwi2A+5XiTnB3aaZefn1w8TNv8DYdUDs52FPcm1E85M1S3yQgAvkiSjdNbYsbI26VHNk 2UsF2766Q8gsOYvYASUS1H+k4tzy8yDc3t940IXcdq7jM6YldrDo2K/OBeTKRVPzyYgg bHlw== 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; bh=qYxErFT7fC9xivCBLsvSYvApCKFz+akoaloMV1cRwfQ=; b=luTAjxU3X9Qfo6TnSxOe4aGRVT1JCgjSTYrz1qJa8T/LhvlJyFTt9fbZo7QSKvl7AV u7g8GZoWwBJ1s4HHChGwX0Be3+sJMfvZWZTXxDq9eBIztg7t5KJ2cPLkfxb5CFg8B818 qNCKWi3mENN51goqexYk4dZOGrt7zn0VkISJuBEPnvwK5WgCu/cN9KuXqJfzGZ63YzIH EG+Vw44VmAH8aCT6aLfDi0f7F/cFekSwtqj9xYOXZA6LhmD0bZXDzTWz/McI5m8tzidF rEAg+oxvH4p7lnEFk9i7a/Hzvfskuv3GwwoDWUm9uUsgWHScPaj08NPLxRjVBS0yFVBU JO7g== ARC-Authentication-Results: i=1; mx.google.com; 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 l11si16144277pgb.545.2018.12.04.14.35.53; Tue, 04 Dec 2018 14:36:08 -0800 (PST) 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; 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 S1726577AbeLDWen (ORCPT + 99 others); Tue, 4 Dec 2018 17:34:43 -0500 Received: from mslow2.mail.gandi.net ([217.70.178.242]:42128 "EHLO mslow2.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725875AbeLDWen (ORCPT ); Tue, 4 Dec 2018 17:34:43 -0500 Received: from relay9-d.mail.gandi.net (unknown [217.70.183.199]) by mslow2.mail.gandi.net (Postfix) with ESMTP id CACDB3A2B88; Tue, 4 Dec 2018 23:24:21 +0100 (CET) X-Originating-IP: 134.134.139.82 Received: from localhost (unknown [134.134.139.82]) (Authenticated sender: josh@joshtriplett.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id DF8EEFF803; Tue, 4 Dec 2018 22:24:17 +0000 (UTC) Date: Tue, 4 Dec 2018 14:24:13 -0800 From: Josh Triplett To: tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com, paulmck@linux.vnet.ibm.com, linux-kernel@vger.kernel.org Cc: linux-tip-commits@vger.kernel.org Subject: Re: [tip:core/rcu] rcutorture: Make initrd/init execute in userspace Message-ID: <20181204222412.GA6874@localhost> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Tue, Dec 04, 2018 at 02:09:42PM -0800, tip-bot for Paul E. McKenney wrote: > --- a/tools/testing/selftests/rcutorture/bin/mkinitrd.sh > +++ b/tools/testing/selftests/rcutorture/bin/mkinitrd.sh > @@ -39,9 +39,22 @@ mkdir $T > > cat > $T/init << '__EOF___' > #!/bin/sh > +# Run in userspace a few milliseconds every second. This helps to > +# exercise the NO_HZ_FULL portions of RCU. > while : > do > - sleep 1000000 > + q= > + for i in \ > + a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a \ > + a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a \ > + a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a \ > + a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a \ > + a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a \ > + a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a Ow. If there's no better way to do this, please do at least comment how many 'a's this is. (And why 186, exactly?) Please also consider calibrating the delay loop as you do in the C code.