Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp527211rwb; Mon, 26 Sep 2022 02:16:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4AJS9GLz7JJkbBTg7cOgLLOgNy5maBzhFAHc7yGT9ghIvjzeeAYcYRhah1BYy0ExYTaaJb X-Received: by 2002:a17:902:e548:b0:178:87d2:f29f with SMTP id n8-20020a170902e54800b0017887d2f29fmr20312768plf.142.1664183781718; Mon, 26 Sep 2022 02:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664183781; cv=none; d=google.com; s=arc-20160816; b=PGjlSMv7k5vGcFZkUv1kI5PKT0Ga0VW47tHO7OoXKZYMa4njnbayVrAEoR6OLQnCQP J3dSJTgn6YsxXZzr7bB4THWv4dlo3oVlcKwjyxrH8rELzBJHMgHMxGngeanV9CTKJ/c6 U2qzmCYzKqdNSfYLpv5dlXxc6PA7YIpgz4RXmZvU3DB4gVOHGiEyXhb7LPSc7yWNxEqX E4RjXKDqwIr13Y3eGJrPcvg3BhxMGupGZCm+odhdWBq4YU2DD3i1EpEFYTIWkqNVkYw2 +4Mf6SeG7Q8k3G35GYkgQlnc++CZcV6mXs2EL53IPIsJ3HWbMGiNGpj1/g0ivWOqPTNx Wclg== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=8KxBTyQl85/P5K+ZX1VVt+lAou+SJNnJIYiPEW/OYyg=; b=A8No58ibMc1T2EReqIW2fULBv3/UZ28ciinAGIlO3GZyYa6gOgEnz66A3ZED0zCYti vAQ2opzfHXS79h4LAFLw2wuUhHMXChJswxVmCCS19kZRYpgfphHfyxdqo9AhyASSCW0N HGYi45M1z3y9z3hhHiI6XWpxl/plPiQdbc6kfgSBxW0zkm90pTsuIqmfF7QnCfhTXAy/ bezs2z+RHTlTY8bCguEt91EuBNyAMRcdnJMQAwHiN8nrEA4UwDhdg5A5vJQ5oPqlzVst 29EbEOlkw3GueatF+skY/zAnCHPLN1aYRTy7nUDXPllnjyasLCnGLSz1+xjt7v/3QaF/ jTuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=AO9TeGQp; 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 j9-20020a17090a2a8900b001fac75257fbsi9996401pjd.161.2022.09.26.02.16.10; Mon, 26 Sep 2022 02:16:21 -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=AO9TeGQp; 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 S233173AbiIZIJM (ORCPT + 99 others); Mon, 26 Sep 2022 04:09:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232357AbiIZIIW (ORCPT ); Mon, 26 Sep 2022 04:08:22 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B01C175A0; Mon, 26 Sep 2022 01:07:35 -0700 (PDT) Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28Q7n8A7013326; Mon, 26 Sep 2022 08:07:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : from : to : cc : references : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=8KxBTyQl85/P5K+ZX1VVt+lAou+SJNnJIYiPEW/OYyg=; b=AO9TeGQp5679Q04v/9hQl7nWUSzlmirdDzniuKbOqkdIHTV5q3edVIyW3Ar2YEtByyKj 1o87aUdNcfZZGbC+Q0P2p8hUuyJRmvKyGzbktphKZW3HA4e2tRAS+PXZLP+tX+gbcwP8 MBzn/I1rC/xxjKitqJXLjMRm1lbBaQVgYFc5o3W7H8BnMrxqU+d569lktKs4xuGgSBoT vU5XQtgzr11X31Hlt0uJ2QhWEv3xM1zSLGKL0ptrH8+50R0WhgYote3/IkU8GiQHlvBW hM1oPaExBk5d51rr4w6pJXAMxTwgG/yaVXaJLRoutg2mGcvIAHcmejIOGy8+nM/a5u5/ BA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ju8160gy8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Sep 2022 08:07:05 +0000 Received: from m0098421.ppops.net (m0098421.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 28Q7oYai018412; Mon, 26 Sep 2022 08:07:04 GMT Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ju8160gw3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Sep 2022 08:07:04 +0000 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 28Q871ba008234; Mon, 26 Sep 2022 08:07:01 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma03fra.de.ibm.com with ESMTP id 3jssh91jff-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Sep 2022 08:07:01 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 28Q86xlY2621998 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Sep 2022 08:06:59 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5C0CC5204F; Mon, 26 Sep 2022 08:06:59 +0000 (GMT) Received: from [9.171.20.172] (unknown [9.171.20.172]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id B8B0E5204E; Mon, 26 Sep 2022 08:06:58 +0000 (GMT) Message-ID: Date: Mon, 26 Sep 2022 10:06:58 +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 From: Christian Borntraeger To: peterz@infradead.org 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 References: <20220822114649.055452969@infradead.org> <20220923072104.2013212-1-borntraeger@linux.ibm.com> <56576c3c-fe9b-59cf-95b8-158734320f24@linux.ibm.com> In-Reply-To: <56576c3c-fe9b-59cf-95b8-158734320f24@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: CGJVb7I0yKNYoi5kH6E6pRg6LtYaRHTF X-Proofpoint-ORIG-GUID: cqlyfogLqMsyEc2aCPyo4Kg0sROizuQN 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_06,2022-09-22_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=895 bulkscore=0 adultscore=0 spamscore=0 priorityscore=1501 mlxscore=0 impostorscore=0 malwarescore=0 phishscore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209260050 X-Spam-Status: No, score=-5.8 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 23.09.22 um 09:53 schrieb Christian Borntraeger: > Am 23.09.22 um 09:21 schrieb Christian Borntraeger: >> Peter, >> >> as a heads-up. This commit (bisected and verified) triggers a >> regression in our KVM on s390x CI. The symptom is that a specific >> testcase (start a guest with next kernel and a poky ramdisk, >> then ssh via vsock into the guest and run the reboot command) now >> takes much longer (300 instead of 20 seconds). From a first look >> it seems that the sshd takes very long to end during shutdown >> but I have not looked into that yet. >> Any quick idea? >> >> Christian > > the sshd seems to hang in virtio-serial (not vsock). FWIW, sshd does not seem to hang, instead it seems to busy loop in wait_port_writable calling into the scheduler over and over again. > > PID: 237      TASK: 81d1a100          CPU: 1    COMMAND: "sshd" >  LOWCORE INFO: >   -psw      : 0x0404e00180000000 0x0000000131ceb136 >   -function : __list_add_valid at 131ceb136 >   -prefix   : 0x00410000 >   -cpu timer: 0x7fffffd3ec4f33d4 >   -clock cmp: 0x2639f08006283e00 >   -general registers: >      0x00000008dcea2dce 0x00000001387d44b8 >      0x0000000081d1a228 0x00000001387d44b8 >      0x00000001387d44b8 0x00000001387d44b8 >      0x00000001387d3800 0x00000001387d3700 >      0x0000000081d1a100 0x00000001387d44b8 >      0x00000001387d44b8 0x0000000081d1a228 >      0x0000000081d1a100 0x0000000081d1a100 >      0x0000000131608b32 0x00000380004b7aa8 >   -access registers: >      0x000003ff 0x8fff5870 0000000000 0000000000 >      0000000000 0000000000 0000000000 0000000000 >      0000000000 0000000000 0000000000 0000000000 >      0000000000 0000000000 0000000000 0000000000 >   -control registers: >      0x00a0000014966a10 0x0000000133348007 >      0x00000000028c6140 000000000000000000 >      0x000000000000ffff 0x00000000028c6140 >      0x0000000033000000 0x0000000081f001c7 >      0x0000000000008000 000000000000000000 >      000000000000000000 000000000000000000 >      000000000000000000 0x0000000133348007 >      0x00000000db000000 0x00000000028c6000 >   -floating point registers: >      0x000003ffb82a9761 0x0000006400000000 >      0x000003ffb82a345c 000000000000000000 >      0x0000000000007fff 0x000003ffe22fe000 >      000000000000000000 0x000003ffe22fa51c >      0x000003ffb81889c0 000000000000000000 >      0x000002aa3ce2b470 000000000000000000 >      000000000000000000 000000000000000000 >      000000000000000000 000000000000000000 > >  #0 [380004b7b00] pick_next_task at 1315f2088 >  #1 [380004b7b98] __schedule at 13215e954 >  #2 [380004b7c08] schedule at 13215eeea >  #3 [380004b7c38] wait_port_writable at 3ff80149b2e [virtio_console] >  #4 [380004b7cc0] port_fops_write at 3ff8014a282 [virtio_console] >  #5 [380004b7d40] vfs_write at 131889e3c >  #6 [380004b7e00] ksys_write at 13188a2e8 >  #7 [380004b7e50] __do_syscall at 13215761c >  #8 [380004b7e98] system_call at 132166332 >  PSW:  0705000180000000 000003ff8f8f3a2a (user space) >  GPRS: 0000000000000015 000003ff00000000 ffffffffffffffda 000002aa02fc68a0 >        0000000000000015 0000000000000015 0000000000000000 000002aa02fc68a0 >        0000000000000004 000003ff8f8f3a08 0000000000000015 0000000000000000 >        000003ff8ffa9f58 0000000000000000 000002aa02365b20 000003ffdf4798d0