Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp130736pxb; Tue, 9 Mar 2021 18:21:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLLojKVPUzUwL8ygI3iLBkXXQ13PkaKfE6pILmLnqCaclAOWuGtHpmbZbGrpOlb3Z/BDRM X-Received: by 2002:a17:906:3881:: with SMTP id q1mr1083069ejd.490.1615342918679; Tue, 09 Mar 2021 18:21:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615342918; cv=none; d=google.com; s=arc-20160816; b=H3KcPWOcoCQ2KmtcvBpEQ3AO7D4+sHQWAT/RnXYz0kD/lC6WF0Ar0y5doGgwQYCKVZ iVFADzfXyOB1foJBN1lV/8sBHT3kaU4F/6lg28c+WE/wQH4JXzyr4IPFMsSyw6H/M1hw qSkin9Yf330jWu82l7A4qbUDXgzD6L74NaWPYg50Zv1DXX9HcyzhHpe2Fq+f+ie3UquZ w6VKnGSUyXJ0YMC1c2hhH4yaZOYGlrDeDLBwQ6MwvSyqpf91h3gAmaJuGgHMcm6vPmW1 mm+GDYu9db+D5BMBT78UV7ENx+nhxRe25nMKBf72c3/s5tNQ95+k5cZxcQ2bJ2p7/2PC QGmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=RrPzKgExLakSNfglFinl/rLo5PZVVt54ykNip4IxOYo=; b=CtyVzSF6175rbQ746U+tm8u7fcG0lLfq7gXAaoNNZ4Xge/Pl5rpEvM3XZ1jBVrVxLK JQdyxIquSNzen6+cJ3qHYcBV4BJ05mI0xn1lb3pU3wmf/E3iblS88gM57+npEK9eK41m NmMLHBxuY7BMQ/rEedn24EpeDsLFuRfxWzdSJL6T1vGsVeRwRCMbOyxHN9+zBLl03l3O 8zI/lt8apyX/WHbP4Ja76kk6zNvuKDkdA+lE31TSEzMf52IxUVm2oevpkfJXrk1xSiul KHmNnFHg61zP/xe/w87zRVbRPgECaeAETRSQy8dNzBu0Nd1e8WWsJkmBCg1nvA7EVkOR W9nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b="Z/uUQSqx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hb37si10776542ejc.81.2021.03.09.18.21.36; Tue, 09 Mar 2021 18:21:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b="Z/uUQSqx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231571AbhCJCTM (ORCPT + 99 others); Tue, 9 Mar 2021 21:19:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231299AbhCJCSh (ORCPT ); Tue, 9 Mar 2021 21:18:37 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00356C061760 for ; Tue, 9 Mar 2021 18:18:26 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id ga23-20020a17090b0397b02900c0b81bbcd4so6361615pjb.0 for ; Tue, 09 Mar 2021 18:18:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=RrPzKgExLakSNfglFinl/rLo5PZVVt54ykNip4IxOYo=; b=Z/uUQSqxocqOZX8J7RHcXC56RqQamTlEYNS62KbiW6twgpjFZ544/kkdonfB5nTB3N oz8qETeZ5ObLlpqxhJb4ih0OzVOJXFHltqVyTDDQRinuAeRpzccXp21uzeEJryERBWhZ 1pG524zmUGIcgwwQ1K6sOy6IXWY7XO86UXDwgWzWd1/x08k/Spb+wXfWmiDJ+YL/A776 HKzSyURiuO04qlsWTNaNBy8JdJvAkhl+O3F3zhM6Ph8l9EA6aqfKL5Mpro0a8iDgFfeA wHZ20pkzVOedRHswZx449PIAQvTSUOfsuo7J5DPIjK1HV7Uc9yO4k36W96Tf6/EMeozV SUqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=RrPzKgExLakSNfglFinl/rLo5PZVVt54ykNip4IxOYo=; b=f3uXn6KyY3SmcXs/37CHzAa3IAAJTK2QcLlSiF9GAMwI331O//c2drxMR1K7mM5f8x HjRVg2kFK7xeLNcEet5SE6Lyjr9uioQ36mkIYqJEuOK8vN1cPMP5eTDmHTLc/QWO87v1 yrX9xOqLwncKMrdAcE0bCRWG4OTJ/VD95drZy3OP2xLcmV/l2Oi/PZjII7CEk4dUGO2p 7OHm9S7/nasthT/RnOvxabubo0M4h1yWTDZiXSQscVCbGf11q9gOt1MIs54r4iTDsj98 47aAJf1afDOwsav10cBko9Nq4UzgaraJZm06+0akN2ApDNTCvvOEBA8avHtLdId3mZas 658A== X-Gm-Message-State: AOAM532BDrwsSdYwKKTqA29jKQS7OyOZHHR6V3m1u20bLXSInMUSKauw B1X96iE4VJO4BNAXk53tg4L+voCi07cYQA== X-Received: by 2002:a17:902:b18c:b029:e4:4cfd:1f7d with SMTP id s12-20020a170902b18cb02900e44cfd1f7dmr946005plr.84.1615342706104; Tue, 09 Mar 2021 18:18:26 -0800 (PST) Received: from [192.168.1.134] ([66.219.217.173]) by smtp.gmail.com with ESMTPSA id d124sm14698761pfa.149.2021.03.09.18.18.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Mar 2021 18:18:25 -0800 (PST) Subject: Re: [v5.12-rc2 regression] io_uring: high CPU use after suspend-to-ram To: Kevin Locke , io-uring@vger.kernel.org, linux-kernel@vger.kernel.org References: From: Jens Axboe Message-ID: <44808ad3-e4f7-8a05-9c52-a1224bf6c534@kernel.dk> Date: Tue, 9 Mar 2021 19:18:24 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/9/21 6:55 PM, Kevin Locke wrote: > With kernel 5.12-rc2 (and torvalds/master 144c79ef3353), if mpd is > playing or paused when my system is suspended-to-ram, when the system is > resumed mpd will consume ~200% CPU until killed. It continues to > produce audio and respond to pause/play commands, which do not affect > CPU usage. This occurs with either pulse (to PulseAudio or > PipeWire-as-PulseAudio) or alsa audio_output. > > The issue appears to have been introduced by a combination of two > commits: 3bfe6106693b caused freeze on suspend-to-ram when mpd is paused > or playing. e4b4a13f4941 fixed suspend-to-ram, but introduced the high > CPU on resume. > > I attempted to further diagnose using `perf record -p $(pidof mpd)`. > Running for about a minute after resume shows ~280 MMAP2 events and > almost nothing else. I'm not sure what to make of that or how to > further investigate. > > Let me know if there's anything else I can do to help diagnose/test. Thanks for the report, let me take a look and try and reproduce (and fix) it. I'll let you know if I fail in reproducing and need your help in testing a fix! -- Jens Axboe