Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp570540imm; Thu, 13 Sep 2018 04:32:46 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdazo3Dyx/ymck8kz52Gyok5PEGhkjG7A7WdgePDw4lMPJ2x0aVxGS90zc4Gvpo9R8kJ6G1x X-Received: by 2002:a63:5904:: with SMTP id n4-v6mr6794642pgb.134.1536838365967; Thu, 13 Sep 2018 04:32:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536838365; cv=none; d=google.com; s=arc-20160816; b=nLJ+adzzjhvK4X5i4Kt3o+GnLxts/vwgsJ7IbRmYFY1N3TwmfTrzSS+DAHLEJ/x8v6 5UThr91RvuHnRkbysMv5vDjDdlfJRwKCaVKA7pQhp3WdnKyZvPavGOaXMTjztuLx9mUV vG5GMuPq3a5LbaLVO540ANiX92LlJFLEB1FdCWXd/9mVwfANv4xm5kiG/4td9/sjupHT wX+miBRKU7S4wA3m8nEKA7DIOle/0TZFUoCXApwCnEihf6551snbR3iw1OHlG2bHDLUw JzFSgz4eMf7Yts3P0lgGNvhryuY3texmDMVwvl4Lv4d2pTdAbmQb9MXHGQER6Sy6FJaL IJbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject:dkim-signature; bh=gaegV/Zb1viALxTO4IgyiMViiH3bLmaRMQ1XQ5T/BD8=; b=oSIS0MeQu9qlaR8pc4sT56zZ7T2yf4rN8pmxJWFoiw7TdVaB6xXYdNjIAUyakLcoC6 8y7Q92kZFrrCfC0mRDqg8bgBGnuDfcg2WmTcvgmfGDQ1GOYlhJ3K8Hs/hwKv38iK8PDm 5CII3WUCMbC6pc/7GBDGzb8w1Ly8t/xXHYlDcOKyBSWzWPWK4+J7d9dQ+yY3vAXZs9+v b16AkbMId5Lcvs6XteJ7reB5OcbMVHIjZun/XgiT2a1c9ARNCOa69GhiolWLE6obf3CW v3U8wQoJxobluG50qjd8yXUw2Y6qyzIYUlteHMaakLdIcCRqVBFk8TvQSxcBuLZDMKri Re9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=l+RbgSAr; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o13-v6si3186946pll.86.2018.09.13.04.32.29; Thu, 13 Sep 2018 04:32:45 -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=@amazon.de header.s=amazon201209 header.b=l+RbgSAr; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728183AbeIMQkz (ORCPT + 99 others); Thu, 13 Sep 2018 12:40:55 -0400 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:6505 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726970AbeIMQkz (ORCPT ); Thu, 13 Sep 2018 12:40:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1536838311; x=1568374311; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=gaegV/Zb1viALxTO4IgyiMViiH3bLmaRMQ1XQ5T/BD8=; b=l+RbgSArL8wdl86cZAha3GBIS/ZV22yKTas8/+DNV1vnyk4iAAn04XSj rehmUO0Z6+bK5xWpu2V7WLPU8IhA8WnmK06miY1nLaQM1ossweAxdPkgd IMDrHkSt5mXQssupeUgRaMuRHK8GtPLgqEjzh+q3po+H30Bq5lg9ncqyL 4=; X-IronPort-AV: E=Sophos;i="5.53,368,1531785600"; d="scan'208";a="738489039" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1e-17c49630.us-east-1.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 13 Sep 2018 11:31:48 +0000 Received: from u7588a65da6b65f.ant.amazon.com (iad7-ws-svc-lb50-vlan3.amazon.com [10.0.93.214]) by email-inbound-relay-1e-17c49630.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id w8DBVcV5090977 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 13 Sep 2018 11:31:45 GMT Received: from u7588a65da6b65f.ant.amazon.com (localhost [127.0.0.1]) by u7588a65da6b65f.ant.amazon.com (8.15.2/8.15.2/Debian-3) with ESMTP id w8DBVa9w013817; Thu, 13 Sep 2018 13:31:37 +0200 Subject: Re: [RFC 00/60] Coscheduling for Linux To: Nishanth Aravamudan Cc: Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org References: <20180907214047.26914-1-jschoenh@amazon.de> <20180912002449.GA21797@breakout> <20180912231535.GA1546@breakout> From: "=?UTF-8?Q?Jan_H._Sch=c3=b6nherr?=" Openpgp: preference=signencrypt Message-ID: <5490845c-3f71-8487-8580-87b18a639ecd@amazon.de> Date: Thu, 13 Sep 2018 13:31:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180912231535.GA1546@breakout> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/13/2018 01:15 AM, Nishanth Aravamudan wrote: > [...] if I just try to set machine's > cpu.scheduled to 1, with no other changes (not even changing any child > cgroup's cpu.scheduled yet), I get the following trace: > > [16052.164259] ------------[ cut here ]------------ > [16052.168973] rq->clock_update_flags < RQCF_ACT_SKIP > [16052.168991] WARNING: CPU: 59 PID: 59533 at kernel/sched/sched.h:1303 assert_clock_updated.isra.82.part.83+0x15/0x18 [snip] This goes away with the change below (which fixes patch 58/60). Thanks, Jan diff --git a/kernel/sched/cosched.c b/kernel/sched/cosched.c index a1f0d3a7b02a..a98ea11ba172 100644 --- a/kernel/sched/cosched.c +++ b/kernel/sched/cosched.c @@ -588,6 +588,7 @@ static void sdrq_update_root(struct sdrq *sdrq) /* Get proper locks */ rq_lock_irqsave(rq, &rf); + update_rq_clock(rq); sdrq->is_root = is_root; if (is_root)