From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5D5BC433E6 for ; Wed, 10 Mar 2021 02:19:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ABD9B64F81 for ; Wed, 10 Mar 2021 02:19:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231963AbhCJCTN (ORCPT ); Tue, 9 Mar 2021 21:19:13 -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-Google-Smtp-Source: ABdhPJyWu/sQQK+wQ4rlIGXbSdQalPOWx0Cxcqzh5Obvk3cZkLsdZNCGPjfLt1dhW7o1G8pfVcMouQ== 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