linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Locke <kevin@kevinlocke.name>
To: Jens Axboe <axboe@kernel.dk>
Cc: io-uring@vger.kernel.org, linux-kernel@vger.kernel.org,
	rafael.j.wysocki@intel.com
Subject: Re: [v5.12-rc2 regression] io_uring: high CPU use after suspend-to-ram
Date: Tue, 9 Mar 2021 20:23:26 -0700	[thread overview]
Message-ID: <YEg7rmuMjV3FyGBR@kevinlocke.name> (raw)
In-Reply-To: <0d333d67-9a3e-546d-ad1c-ecebfdbe9932@kernel.dk>

On Tue, 2021-03-09 at 19:48 -0700, Jens Axboe wrote:
> 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 below makes it work as expected for me - but I don't quite
> understand why we're continually running after the freeze. Adding Rafael
> to help understand this.

I can confirm that your patch resolves the high CPU usage after suspend
on my system as well.  Many thanks!

Tested-by: Kevin Locke <kevin@kevinlocke.name>

Happy to test any future revisions as well.

Thanks again,
Kevin

  reply	other threads:[~2021-03-10  3:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-10  1:55 [v5.12-rc2 regression] io_uring: high CPU use after suspend-to-ram Kevin Locke
2021-03-10  2:18 ` Jens Axboe
2021-03-10  2:48 ` Jens Axboe
2021-03-10  3:23   ` Kevin Locke [this message]
2021-03-10 14:45     ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YEg7rmuMjV3FyGBR@kevinlocke.name \
    --to=kevin@kevinlocke.name \
    --cc=axboe@kernel.dk \
    --cc=io-uring@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael.j.wysocki@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).