Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1435906ybl; Tue, 3 Dec 2019 07:09:41 -0800 (PST) X-Google-Smtp-Source: APXvYqxnyLMU7Q/n/zbLOdx95jVXEt6kUSaNTyMKfXACz8uYxr+0Gy15yqkLLPm4LyiW6Wvpi5lm X-Received: by 2002:aca:5143:: with SMTP id f64mr3826302oib.66.1575385781751; Tue, 03 Dec 2019 07:09:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575385781; cv=none; d=google.com; s=arc-20160816; b=vJXqW9YzTS3/KcbAM4DGuVqApl8IVjDCSfuX1DyqTLQwov17SzPjG9XgAJF4WQ/YGe N7tGta2cDFvFma4dcOCN4xjApBQMZCI0r6f/y6/j/oTBXOhcDIyemt8+e51CQZIeFqbw rMUqYMYPMY6ifpH4/oTmeD/HK/Vd37xbJJySL4fY+EMuwPUaO8qS1SGRdVYzDiFxUWz9 wjBBhMmaCD+hicejHU7X5gSkh4XMn2otlReV6FIOLQYCeTW8xN23JGvjYiWnbDC5M2qT Ht8VhOqcwHNl/mwb/pJwL5e7lo49JclSKX6weJ26yY0+4xQasETOIwZyHEWOleQFL0sY ehkw== 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:from:references:to:subject; bh=nXaRpTVBaMGVZJ//MFS7tnPpGeAE26H90g2seV06SpY=; b=rC3DQCx3nleW9TOjyGHj5RIdbHQF6PbiuFaHfOyV4UN1lXNjw9D+dsFIUOowasvE1y c3D72Vg4lltREnHbOqgQwYTOFumSjB5zvFx4FzvCi+ACrVvaXGzZQxl3IUE/Wpqd8t0U FFwBS0IxnPATgHTZ1PucN1bfVgbgjx3T60EjloxqxVIzi9AlY7hE0pgsi0YRqN2+4uN9 jQi/PqpSUk88qhCZqAYbHsmwfCO0eLk/oaHxkhNuo/oWs4QnjQ/qdv+p6Nu1YMI/K/lY KX4MlEPu0TkX01nzSclMv02xUtyXieQImS+ReBZQ5rqjZbyB+9WGczMvu/L5aIykRdtl eOcA== 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 z1si1405132otq.21.2019.12.03.07.09.27; Tue, 03 Dec 2019 07:09:41 -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 S1726645AbfLCPIi (ORCPT + 99 others); Tue, 3 Dec 2019 10:08:38 -0500 Received: from foss.arm.com ([217.140.110.172]:44090 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726138AbfLCPIi (ORCPT ); Tue, 3 Dec 2019 10:08:38 -0500 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 D5FC031B; Tue, 3 Dec 2019 07:08:37 -0800 (PST) Received: from [192.168.0.9] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0B6683F52E; Tue, 3 Dec 2019 07:08:36 -0800 (PST) Subject: Re: Crash in fair scheduler To: Valentin Schneider , "Schmid, Carsten" , "mingo@redhat.com" , "peterz@infradead.org" , "linux-kernel@vger.kernel.org" References: <1575364273836.74450@mentor.com> <564e45cb-8230-9c3d-24a8-b58e6e88349f@arm.com> <944927a7-b578-c6f9-a73d-25c5b0a39adb@arm.com> From: Dietmar Eggemann Message-ID: Date: Tue, 3 Dec 2019 16:08:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 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 03/12/2019 12:09, Valentin Schneider wrote: > On 03/12/2019 10:40, Dietmar Eggemann wrote: >> On 03/12/2019 11:30, Valentin Schneider wrote: >>> On 03/12/2019 09:11, Schmid, Carsten wrote: >> >> [...] >> >>> That looks a lot like a recent issue we've had, see >>> >>> https://lore.kernel.org/lkml/20191108131909.428842459@infradead.org/ >>> >>> The issue is caused by >>> >>> 67692435c411 ("sched: Rework pick_next_task() slow-path") >>> >>> which 5.4-rc2 has (without the fix which landed in -rc7) but 4.14 really >>> shouldn't, unless the kernel you're using has had core scheduling somehow >>> backported to it? >>> >>> I've only scraped the surface but I'd like to first ask: can you reproduce >>> the issue on v5.4 final ? >> >> Can't be. 4.14.86 does not have ("sched: Rework pick_next_task() >> slow-path"). >> > > Right, which is why I wondered if the kernel under test had had that > backported to it for some reason (e.g. core scheduling). Peter pointed out > that this is a slightly different issue (nr_running matches the rbt), so > this is probably unrelated. I can't reproduce it on Arm64 Juno running 4.14.86. I suppose that there is no extra reproducer testcase since the issue happened with prev->sched_class eq. &idle_sched_class [prev eq. swapper/X 0] in the simple path of pick_next_task_fair(). I'm running with CONFIG_SCHED_AUTOGROUP=y and CONFIG_FAIR_GROUP_SCHED=y some taskgroup related tests for hours now. So the sched_entity (se) can be a task, an autogroup or a taskgroup in the simple path. pref is either swapper/X or migration/X.