Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp921387pxb; Wed, 6 Apr 2022 04:21:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuHgyH0a5+QeJmt/BZ26vqZDpsCgtVwWWX56OeG3wXzj/8iwNBLt8UelfCvkLhDcUJgbek X-Received: by 2002:a17:90b:1d08:b0:1c7:5523:6a1f with SMTP id on8-20020a17090b1d0800b001c755236a1fmr9473000pjb.225.1649244063266; Wed, 06 Apr 2022 04:21:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649244063; cv=none; d=google.com; s=arc-20160816; b=mfV1PSlyky0E8E+ELWTYkE5uw7aw2xK1Lv2P/mDeUmi9Yk6vzvKKD/cejmS+TPFGRQ HWFHSFf4/TbY6/WxONmA3L7EBMGlq63JTbrnnsGu0QjeADuGdejkaxygPgUNrLjdzEEb JLHbntLLra6pWj3EjnUArdxFRvF3QXNwtr6VNU9I4ZTVzdZ44wvQLw5jSMNak+WhwtzH zX39q5buSjfcvXHn6OsCwxKphCnxp60hTRPgsb/+85Dzs0YJgN7J6Rk+6w4eRKGQgjVU rEg8kWzM+Pbrf5O54pV4xEuX6q7SLtcQ347mOPI36rnWq43uXxC23VOcH5HUy6utAIGN RdFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=fSvMMw5EkMUmlezE+07kfJz1taBUvHKnh5DRn5a0Mp4=; b=ZM3Kkqwprtj7b8VK83kj1rrzbt7jWAyJQZoIoaIooHZ6GMWogfpPQfp7Cz2qaZfM8J SO5qShDDWb7kaWVQsfhjoHj+pbJO+i9JY4LoY84E+SzQRW65aX+oQoiDrqrtinZYxinJ 9wQH11rmfQ0dWJoK17Az9DV7ZDc7+YmK/auWtNmdpJaGZTTS5OsqI/C42FM9xj0kbrHY /FxLNLcYYYF6Z3NSbWpie/cG1r5WlYj0otxeJV0uwS7slmK1oW19P9OZwRNkph5XmkRX +9IDAqm4olMY7hR4g217R1ZKSPvv1DR0IGEbnJwGtMqBNPL9prLEXv0P6vroKSIk2b6Q IS/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h10-20020a17090a604a00b001ca8aa27fc1si4436167pjm.90.2022.04.06.04.21.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:21:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2A4CD5E8049; Wed, 6 Apr 2022 02:42:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353918AbiDEVK3 (ORCPT + 99 others); Tue, 5 Apr 2022 17:10:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387700AbiDENP0 (ORCPT ); Tue, 5 Apr 2022 09:15:26 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AAD1612F156 for ; Tue, 5 Apr 2022 05:21:14 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 08866D6E; Tue, 5 Apr 2022 05:21:14 -0700 (PDT) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2881B3F5A1; Tue, 5 Apr 2022 05:21:12 -0700 (PDT) Message-ID: Date: Tue, 5 Apr 2022 14:21:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [Linux 5.18-rc1] WARNING: CPU: 1 PID: 0 at kernel/sched/fair.c:3355 update_blocked_averages Content-Language: en-US To: Ammar Faizi , Linux Kernel Mailing List Cc: Ben Segall , Daniel Bristot de Oliveira , GNU/Weeb Mailing List , Ingo Molnar , Juri Lelli , Mel Gorman , Peter Zijlstra , Steven Rostedt , Vincent Guittot References: From: Dietmar Eggemann In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/04/2022 08:19, Ammar Faizi wrote: > > Hello scheduler maintainers, > > I got the following warning in Linux 5.18-rc1, I don't have the > reproducer yet, > it happens randomly. Please shed some light. Tried to recreate the issue but no success so far. I used you config file, clang-14 and a Xeon CPU E5-2690 v2 (2 sockets 40 CPUs) with 20 two-level cgoupv1 taskgroups '/X/Y' with 'hackbench (10 groups, 40 fds) + idling' running in all '/X/Y/'. What userspace are you running? There seemed to be some pressure on your machine when it happened? > <6>[13420.623334][ C7] perf: interrupt took too long (2530 > 2500), > lowering kernel.perf_event_max_sample_rate to 78900 Maybe you could split the SCHED_WARN_ON so we know which signal causes this? diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index d4bd299d67ab..0d45e09e5bfc 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -3350,9 +3350,9 @@ static inline bool cfs_rq_is_decayed(struct cfs_rq *cfs_rq) * Make sure that rounding and/or propagation of PELT values never * break this. */ - SCHED_WARN_ON(cfs_rq->avg.load_avg || - cfs_rq->avg.util_avg || - cfs_rq->avg.runnable_avg); + SCHED_WARN_ON(cfs_rq->avg.load_avg); + SCHED_WARN_ON(cfs_rq->avg.util_avg); + SCHED_WARN_ON(cfs_rq->avg.runnable_avg); return true; } [...]