Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4566833imd; Tue, 30 Oct 2018 04:13:30 -0700 (PDT) X-Google-Smtp-Source: AJdET5cUVJxftoStOxqncgcrfrP/XRhNKffyBLb4WhCTH9xEKU5eIXu3XizgSxnhZUMpL8R25oCj X-Received: by 2002:a17:902:162:: with SMTP id 89-v6mr5425735plb.293.1540898010201; Tue, 30 Oct 2018 04:13:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540898010; cv=none; d=google.com; s=arc-20160816; b=IAWVziVmQXHnietdo+aDqV2s4N4F4YesbAnAlCmk8zka6SfbnsxGBu/KhOfQmFvkPf OBAh8B5+/iEq8Fewix5UyHqk34Eex+E5iUq6uT3EzEM0cUl3IkcAtObkNzd1gC1Ow4tk qYfuf5QaCsULSZGf8zTYxmf0yb8Db3Fx+Ug4qKKRXPX/LjlZhHUhkmacQSVvyS9UqBQI PTvNzNkOktsDCkUp3hy9AHmaeaE1ypZW0vugds0ZzZkmrxQCNqsbT/j5rh9d9rpbW4ph TipXkyh8PKkyFlT32N0l8t/ZTihBKmHMoWtKuiyy1d6p749dPnaoFkJAb7Z3+VlU28Xc TD7g== 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=ghItDxlpwhIE9XfKIUQsqiPKgZs52Zb1A5m2LoH9p9U=; b=JVKVemL/VggZNPAq1WcZDyqdWEXoicyJTGHJMy+iZbD/DsSRMNVkf7jdgLXMYOWsWV QcdtY2pO91lFBTDPGlqLHisIqzszJ4xiDJACx/xFv862xCFRFBltdFLW7uMpst1j+lWx yKMOHIpnZXlVwDWuXnreySyE8NLuuqHxHBWL3/MhGbmfkN5Jcr6YcRIncz2yzAhnEhxi kKoFjC7K7Vs0ILmw0zDOtIKdsnwU5PaJSKz5sa9fI8c0BZ1iJ28T9fhjEQFY/nnHkKjs Swfatrn0Heam0RMMRH/jD0jjz1ilbhN6i1oKUkwNBMcr6SwjgkeOZsGaxg/mvOf7Eo0M y0RA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32-v6si24585634pls.331.2018.10.30.04.13.14; Tue, 30 Oct 2018 04:13:30 -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; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727789AbeJ3UFc (ORCPT + 99 others); Tue, 30 Oct 2018 16:05:32 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:41646 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727381AbeJ3UFa (ORCPT ); Tue, 30 Oct 2018 16:05:30 -0400 Received: by mail-wr1-f67.google.com with SMTP id x12-v6so12100464wrw.8 for ; Tue, 30 Oct 2018 04:12:27 -0700 (PDT) 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=ghItDxlpwhIE9XfKIUQsqiPKgZs52Zb1A5m2LoH9p9U=; b=X0fzieibELQsshcKTrNO9UTxEkqyPx2yTOmwqJIdjvcZszF8ZEnMQwaJSZmRPax0+n TTUaGZp1hMuGwWBUz+lwhy4R2t4xU0DWBUa3J/Y7lXSutmwi5jrJbgYY/wFNbgHxNeTw 4R4SWq/p/xxgY4kKOywctO9NI2NXE45utK0VK1UjiTR7yiS3MviPtGETiWXtlMgzAwwO Ui3q+T0PNGNDiYf0VJeSoY4qaYR+NDUG+KHjM8X5KjxxyBIZl1N1pl8fiyITdKuXVn8F qC/lywgBcWGxxA6AgU6MdzEw2949lNRQ2Ev8Odw+h+atnpedbtZRs6vELpYvNezjEMTB A/eg== X-Gm-Message-State: AGRZ1gKNROLL6pSaZBV7hygg3b+QNX7CuOTdUYRILUJ5KIEcujo7JR7e 6b44xHmJZT8P98r//WUJWc6LYw== X-Received: by 2002:adf:c389:: with SMTP id p9-v6mr18746731wrf.68.1540897946356; Tue, 30 Oct 2018 04:12:26 -0700 (PDT) Received: from localhost.localdomain ([151.68.156.111]) by smtp.gmail.com with ESMTPSA id p125-v6sm13749971wmp.2.2018.10.30.04.12.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Oct 2018 04:12:25 -0700 (PDT) Date: Tue, 30 Oct 2018 12:12:21 +0100 From: Juri Lelli To: Peter Zijlstra Cc: luca abeni , Thomas Gleixner , Juri Lelli , syzbot , Borislav Petkov , "H. Peter Anvin" , LKML , mingo@redhat.com, nstange@suse.de, syzkaller-bugs@googlegroups.com, henrik@austad.us, Tommaso Cucinotta , Claudio Scordino , Daniel Bristot de Oliveira Subject: Re: INFO: rcu detected stall in do_idle Message-ID: <20181030111221.GA18091@localhost.localdomain> References: <20181016153608.GH9130@localhost.localdomain> <20181018082838.GA21611@localhost.localdomain> <20181018122331.50ed3212@luca64> <20181018104713.GC21611@localhost.localdomain> <20181018130811.61337932@luca64> <20181019113942.GH3121@hirez.programming.kicks-ass.net> <20181019225005.61707c64@nowhere> <20181024120335.GE29272@localhost.localdomain> <20181030104554.GB8177@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181030104554.GB8177@hirez.programming.kicks-ass.net> 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 30/10/18 11:45, Peter Zijlstra wrote: [...] > Hurm.. right. We knew of this issue back when we did it. > I suppose now it hurts and we need to figure something out. > > By virtue of being a real-time class, we do indeed need to have deadline > on the wall-clock. But if we then don't account runtime on that same > clock, but on a potentially slower clock, we get the problem that we can > run longer than our period/deadline, which is what we're running into > here I suppose. > > And yes, at some point RT workloads need to be aware of the jitter > injected by things like IRQs and such. But I believe the rationale was > that for soft real-time workloads this current semantic was 'easier' > because we get to ignore IRQ overhead for workload estimation etc. Right. In this case the task is self injecting IRQ load, but it maybe doesn't make a big difference on how we need to treat it (supposing we can actually distinguish). > What we could maybe do is track runtime in both rq_clock_task() and > rq_clock() and detect where the rq_clock based one exceeds the period > and then push out the deadline (and add runtime). > > Maybe something along such lines; does that make sense? Yeah, I think I've got the gist of the idea. I'll play with it. Thanks, - Juri