Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp23002rwb; Mon, 26 Sep 2022 08:49:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7CqpTal0D3sIAZUIDTe5IOueyj8oPQ5kMcuJoXjawfI7beC+gQbziyVz+AtqwzK7ztPVtg X-Received: by 2002:a05:6a00:22cb:b0:543:7003:21a1 with SMTP id f11-20020a056a0022cb00b00543700321a1mr24387173pfj.3.1664207374248; Mon, 26 Sep 2022 08:49:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664207374; cv=none; d=google.com; s=arc-20160816; b=UQEbOxtNP2Ky3cL9bQqsYulFAnGzRg33zL262NtHMSgxUtPLCtxKXmtbsqSm8r9d9Y nPLFJpbLmcZ1Xka1EQelX+BPDukvsJ1H7yjz7//i81z2aVfeepCrgT1sJjbl7iPkgKgw P2wklRm+sNuOIdEzsmXStpalSXcKiePZAnIIcF15ult6Dmx/dyAMcrfp9X2/JgpwyBXl jlzLjPqEMqoRxi5QvLHDPOXxKZ9MgalId2eJW64NcHfBzS/OIH0E+UsIAMpWHnKmtA35 q5lwFK9FfDncn9XZWc9jlooz5gXYzfNzqCLvV9vDrG0k0XIYUj5YL9dpz8c4waeH6efE ZSFg== 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:dkim-signature; bh=OCw7jzKs12GN3xRrrfrWHP/zG+JFJWyzzk3kZopw8ZU=; b=xP1Zsq+sL5h6DAbdozheJK9Y+y5EmGUyOIicHCMDGvu62dixl6ZI+UoG+6uAo2WwzN l1eK/FK/EvJZ9Ut/suUcDzpg5WrDiZrxoIMzSX+zD/aQuO080Q5FvnSrs68KweP2hG87 73+/Ose/5lwnZbDhCI/q66+X+AndBWJkkbEmIO12V5dYuKTOI2eP7a0i9jGAjoykTn49 CcKdGjAyCEohW3pjxRz8mpdGko2eL+lSasGoOI2BL8JYQxb3uDnM77XTxKGWO4eUZyp+ 5/zClnBZRBc7Xrwsm66mv7AzfLlSC6Vf0sMJl1xmPKRXPM/mwifRyd1SBzMqTgN5zjmT d9GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=HO1gl2hg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nu3-20020a17090b1b0300b002009da5d10asi14021311pjb.128.2022.09.26.08.49.22; Mon, 26 Sep 2022 08:49:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=HO1gl2hg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235732AbiIZPO3 (ORCPT + 99 others); Mon, 26 Sep 2022 11:14:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235692AbiIZPNX (ORCPT ); Mon, 26 Sep 2022 11:13:23 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D50F2723; Mon, 26 Sep 2022 06:54:38 -0700 (PDT) Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28QChuhh013126; Mon, 26 Sep 2022 13:54:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=OCw7jzKs12GN3xRrrfrWHP/zG+JFJWyzzk3kZopw8ZU=; b=HO1gl2hgakzHeBnPzoApclnwZGbebtWy7coSKyp9MB+ZnUogLsmmPuTxDdcGmS8eJ2uc Q+mO80eAg7IjttyrFrCVqWr5tFRcHZaZ48xqJvbWfJowUeVe8Tz50p4bDetV53MjqQvR NYONikmsOV/OMWcg2abWquP1CQmnNIM67X0eC0gKMkwFsaZUicZI/fwrmHGvPtiYxvkc F/UFszezwvcEhOYK6owwU5l7TgOf9PuVgcKhkEi+AoWceMFJqXAtU1Ys2ntohzEypXyA XqdNibyAaTFrlwQCQZfs7k+d8MLPgKJfSnAxTokhxeAHhInea/n9P0l+to4MZ8kREQWe qA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3jucbja7rv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Sep 2022 13:54:17 +0000 Received: from m0098404.ppops.net (m0098404.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 28QCi29P013972; Mon, 26 Sep 2022 13:54:17 GMT Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3jucbja7qw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Sep 2022 13:54:16 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 28QDplN1008481; Mon, 26 Sep 2022 13:54:14 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma06ams.nl.ibm.com with ESMTP id 3jss5j2hax-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Sep 2022 13:54:14 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 28QDo0Kp30015872 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Sep 2022 13:50:00 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D81B8A405B; Mon, 26 Sep 2022 13:54:11 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 25731A4054; Mon, 26 Sep 2022 13:54:11 +0000 (GMT) Received: from [9.171.20.172] (unknown [9.171.20.172]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 26 Sep 2022 13:54:11 +0000 (GMT) Message-ID: <8b0e1945-d4ef-2aef-fb5d-1b6b8397b169@linux.ibm.com> Date: Mon, 26 Sep 2022 15:54:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v3 6/6] freezer,sched: Rewrite core freezer logic Content-Language: en-US To: Peter Zijlstra Cc: bigeasy@linutronix.de, dietmar.eggemann@arm.com, ebiederm@xmission.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, mgorman@suse.de, mingo@kernel.org, oleg@redhat.com, rjw@rjwysocki.net, rostedt@goodmis.org, tj@kernel.org, vincent.guittot@linaro.org, will@kernel.org, Marc Hartmayer , Amit Shah , "virtualization@lists.linux-foundation.org" References: <20220822114649.055452969@infradead.org> <20220923072104.2013212-1-borntraeger@linux.ibm.com> <56576c3c-fe9b-59cf-95b8-158734320f24@linux.ibm.com> <436fa401-e113-0393-f47a-ed23890364d7@linux.ibm.com> <39dfc425-deff-2469-7bcb-4a0e177b31d1@linux.ibm.com> <66463973-923f-624d-3041-72ce76147b3e@linux.ibm.com> From: Christian Borntraeger In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 1pJZGhh4CPicVW_aZfklCFcnxaDxcZgT X-Proofpoint-GUID: XtSpdpA3wcpKEGVzhcTkkfWfWQSghnSy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-26_08,2022-09-22_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 priorityscore=1501 mlxlogscore=999 bulkscore=0 clxscore=1015 lowpriorityscore=0 phishscore=0 adultscore=0 suspectscore=0 spamscore=0 impostorscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209260086 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 Am 26.09.22 um 15:37 schrieb Peter Zijlstra: > On Mon, Sep 26, 2022 at 03:23:10PM +0200, Christian Borntraeger wrote: >> Am 26.09.22 um 14:55 schrieb Peter Zijlstra: >> >>> Could you please test with something like the below on? I can boot that >>> with KVM, but obviously I didn't suffer any weirdness to begin with :/ >>> >>> --- >>> diff --git a/kernel/sched/core.c b/kernel/sched/core.c >>> index 4e6a6417211f..ef9ccfc3a8c0 100644 >>> --- a/kernel/sched/core.c >>> +++ b/kernel/sched/core.c >>> @@ -4051,6 +4051,8 @@ try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags) >>> unsigned long flags; >>> int cpu, success = 0; >>> + WARN_ON_ONCE(state & TASK_FREEZABLE); >>> + >>> preempt_disable(); >>> if (p == current) { >>> /* >> >> Does not seem to trigger. > > Moo -- quite the puzzle this :/ I'll go stare at it more then. In the end this is about the end of the sshd process (shutting it down). I can also trigger the problem by sending a SIGTERM so its not about the shutdown itself. Pofiling the guest I see scheduler functions like sched_clock, pick_next_entity, update_min_vruntime and so on with 100% system time.