Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2386581pxb; Mon, 23 Aug 2021 20:24:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8IgaAoRGL3s6oCobCet9brI9jSAzR8/LVl2GrkVOzQ8OQQqTYN6Rn426MZn6MHM7pcQfx X-Received: by 2002:a92:d12:: with SMTP id 18mr10116953iln.287.1629775490213; Mon, 23 Aug 2021 20:24:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629775490; cv=none; d=google.com; s=arc-20160816; b=q/hSCjwa1wDVFZF7UAn7BTQTa3VNHOSp6f7WZAiNmnKgHnyHgAMTsY8Ri/lcJieB4S odOhFRS7Lj26y/w+coFRWgfESspa3T8YojYrJIwEpCp3ind5dASHiRkzHgTCQ9itTYwM RKw+yeBSO5MhItof0Y5vRiZQBd1Fq8hsxNxSW4WI2suHr2XS04ZIPfkn9BPphw85MOI/ xL3X3yAQMeZ9sSi4hKxHSIrHdgZIrlP6rTHitsfh5RkNNfQXQWAUqQscqjYQJbFpvZmI zlNn4eiEsLsmg8z63MfBlzrSLYqmFt5UZ73tSerOqsnvDYbSIcKsJWOU5DUU9qdIui/C AKig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:content-disposition:mime-version :mail-followup-to:message-id:subject:cc:to:from:date; bh=Ac6ImnQqxJpsb60w7psS8Cg6NXrBattisjslcvR2mAU=; b=WYyj+Slj6pb1M8QBLU3bCfzXqJhVXY0IcZ01MSzgE6TLEyI2Si+aIWwP8MPy0PPzm4 ++nVtAJBO0iBm9VEeO8QnR5RKlFLyQ2eStQgcnJAJIFJuHg6fJGFmWJIHIQrrKjBc+0+ SFV2EyTf999dCWUjFJf3YC4HJYrjXnH5uEJ/n8RpNg6ojzp4JdJ8MeZXqavq0rRlGX/U Cjs+6VORnznpadliNH+3TI9VCLqUI/HmvAUcL0vSTWHv5R1Qbho8O3Gfu+vFvKwYcI4/ T8D2zXUdAxEm5BzqWAG7q/UH96JioIB3xvMsVqFwxStz8tVGigISY2LRsqy60nHbAGfB AobA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 2si17821732iob.47.2021.08.23.20.24.38; Mon, 23 Aug 2021 20:24:50 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233681AbhHXDYn (ORCPT + 99 others); Mon, 23 Aug 2021 23:24:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232605AbhHXDYm (ORCPT ); Mon, 23 Aug 2021 23:24:42 -0400 Received: from scorn.kernelslacker.org (scorn.kernelslacker.org [IPv6:2600:3c03:e000:2fb::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F02F1C061575 for ; Mon, 23 Aug 2021 20:23:58 -0700 (PDT) Received: from [2601:196:4600:6634:ae9e:17ff:feb7:72ca] (helo=wopr.kernelslacker.org) by scorn.kernelslacker.org with esmtp (Exim 4.92) (envelope-from ) id 1mIMvh-0001LI-6c; Mon, 23 Aug 2021 23:16:49 -0400 Received: by wopr.kernelslacker.org (Postfix, from userid 1026) id B5B2C56006F; Mon, 23 Aug 2021 23:16:48 -0400 (EDT) Date: Mon, 23 Aug 2021 23:16:48 -0400 From: Dave Jones To: Linux Kernel Cc: Peter Zijlstra , Johannes Weiner , Linus Torvalds Subject: 5.14-rc breaks iotop swap io monitoring. Message-ID: <20210824031648.GA2725@codemonkey.org.uk> Mail-Followup-To: Dave Jones , Linux Kernel , Peter Zijlstra , Johannes Weiner , Linus Torvalds MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Note: SpamAssassin invocation failed Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I just noticed that in 5.14-rc running iotop, it complains on startup that "CONFIG_TASK_DELAY_ACCT not enabled in kernel, cannot determine SWAPIN and IO %" and sure enough a bunch of columns show up as 'unavailable'. My suspicion is this commit, which I've not confirmed yet as it doesn't cleanly revert. I'll poke at it some more in the morning, but figured I'd bring it up sans-evidence in the hope that I'll wake up to someone having an Ah-ha moment. Dave commit c5895d3f06cbb80ccb311f1dcb37074651030cb6 Author: Peter Zijlstra Date: Tue May 4 22:43:42 2021 +0200 sched: Simplify sched_info_on() The situation around sched_info is somewhat complicated, it is used by sched_stats and delayacct and, indirectly, kvm. If SCHEDSTATS=Y (but disabled by default) sched_info_on() is unconditionally true -- this is the case for all distro kernel configs I checked. If for some reason SCHEDSTATS=N, but TASK_DELAY_ACCT=Y, then sched_info_on() can return false when delayacct is disabled, presumably because there would be no other users left; except kvm is. Instead of complicating matters further by accurately accounting sched_stat and kvm state, simply unconditionally enable when SCHED_INFO=Y, matching the common distro case. Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Thomas Gleixner Reviewed-by: Ingo Molnar Acked-by: Johannes Weiner Link: https://lkml.kernel.org/r/20210505111525.121458839@infradead.org