Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp122152pxb; Tue, 9 Mar 2021 18:04:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxMEXJw9BJkRYUnn7T2UePJ23NlpDmfj7Tcokb1NoWHulu9RcWZW9Jc0Q/6oMDv8sFWCs/r X-Received: by 2002:a17:907:788e:: with SMTP id ku14mr1028725ejc.17.1615341859877; Tue, 09 Mar 2021 18:04:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615341859; cv=none; d=google.com; s=arc-20160816; b=jDM+aSj0rayowDi0xCxvKC+73QQW4lr/p6W0sTvwxRqfsH34VJF8PfNR14vZ8DUsEd dH3E8F7Ey83tsetdRzkyHgHRvVl1rUvNvnW1klN+UWH12KTJORg2i5fvUAWEJItaNu+M BICwNQ2fhlclQ1Pig9qaQSfcSd/f1kh5mk+K2KyVjUEZqy0YKtTR6LHQgC8ixS0vE6zn v4zqck8JRFCg314VlPhtJMJzFmGhs6VOBt+c5irrmBOitZ/swPEHgDerndsU5gPT4TKD hO5ZM3L4crdThRFijw9sCf6r54DXqjw1i9eG5JmPa8F4a30srGgF8erTnA8pO45ybxMs GAbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version :mail-followup-to:message-id:subject:cc:to:from:date; bh=ZgMRXnZggEHGUkE0iXd8OzEp5ZEDJcBxrW/UG1x9oUw=; b=cNjV2O7pN4cu0aB5bfLHLF6hI4wBd+1qBJrWpZiUBI3Pc86KnHJgsDgoPKPK0pRhVR Z3XMCmi6IO3QRxbQd85/2IwzN4wreKO0NwH64cNrPh4vyE5ILv6xdJ0pS7NCtmZi9szh tT1QhYOoq11KsNOf8kBT+XjX+2iLJqJ0Tdojn17Wf2ZhIV6UDGVaL07Q758AycYkXhJ5 2jvipXhLipul5oDw79JmGKtUYiq/BNV0QA3OxZc8+4QLcjv8LAd1wF8o2jXoc+shRseT ZP6/E77znxGFnIbujcj8DsvoED87rfOyYoZSUyl6COGaplItuza0KVvbj2wIXQHzwwqt C73A== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kevinlocke.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si10719960ejm.408.2021.03.09.18.03.57; Tue, 09 Mar 2021 18:04:19 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kevinlocke.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231252AbhCJCBD (ORCPT + 99 others); Tue, 9 Mar 2021 21:01:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230325AbhCJCA4 (ORCPT ); Tue, 9 Mar 2021 21:00:56 -0500 X-Greylist: delayed 306 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 09 Mar 2021 18:00:56 PST Received: from vulcan.kevinlocke.name (vulcan.kevinlocke.name [IPv6:2001:19f0:5:727:1e84:17da:7c52:5ab4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2061EC06174A; Tue, 9 Mar 2021 18:00:56 -0800 (PST) Received: from kevinolos.kevinlocke.name (host-69-145-60-23.bln-mt.client.bresnan.net [69.145.60.23]) (Authenticated sender: kevin@kevinlocke.name) by vulcan.kevinlocke.name (Postfix) with ESMTPSA id EC6F0210A6DC; Wed, 10 Mar 2021 01:55:48 +0000 (UTC) Received: by kevinolos.kevinlocke.name (Postfix, from userid 1000) id 89D311300698; Tue, 9 Mar 2021 18:55:46 -0700 (MST) Date: Tue, 9 Mar 2021 18:55:46 -0700 From: Kevin Locke To: Jens Axboe Cc: io-uring@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [v5.12-rc2 regression] io_uring: high CPU use after suspend-to-ram Message-ID: Mail-Followup-To: Kevin Locke , Jens Axboe , io-uring@vger.kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, Kevin