From patchwork Sat Aug 24 19:10:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kent Overstreet X-Patchwork-Id: 13776491 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2C9FC52D6F for ; Sat, 24 Aug 2024 19:10:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 303F26B013B; Sat, 24 Aug 2024 15:10:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 28BF56B0196; Sat, 24 Aug 2024 15:10:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 12D366B0145; Sat, 24 Aug 2024 15:10:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id E3ECD6B04DC for ; Sat, 24 Aug 2024 15:10:31 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 5BE6916087F for ; Sat, 24 Aug 2024 19:10:31 +0000 (UTC) X-FDA: 82488080262.20.01A801D Received: from out-189.mta1.migadu.com (out-189.mta1.migadu.com [95.215.58.189]) by imf09.hostedemail.com (Postfix) with ESMTP id 9E02E140017 for ; Sat, 24 Aug 2024 19:10:29 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=PPFcy32u; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf09.hostedemail.com: domain of kent.overstreet@linux.dev designates 95.215.58.189 as permitted sender) smtp.mailfrom=kent.overstreet@linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724526562; a=rsa-sha256; cv=none; b=bE0AworocA8+LD5qd0ObBDgMNqbKam1iwKQu6kseZvDsNXvPiGMQfh/KuG2mMVEnc0/Ef9 LtNmfjk7ZlHO4O7utiJgKgMh7TmLVgZDcTcTPDbUptPDOTfYIm0SbudoKmKzC8C4I6fNtx aLqO1GMFHg2vce8AAH/fUvzItu21DFk= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=PPFcy32u; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf09.hostedemail.com: domain of kent.overstreet@linux.dev designates 95.215.58.189 as permitted sender) smtp.mailfrom=kent.overstreet@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724526562; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=dFIqub/H0W/jxga81Z+QEFiTVGOHm6eupVbndlDP2Ws=; b=xxtSkNwW10KVz6EnhAlsck+B8EJ2L54X0GBDvGKVY0l9aiNFV4sKMyHvv7fAt95/wLNyRl kJ2B/fzorT4XCgFeS2iZXLn6Av3DtoIMW5giav8Bacb26hw7rhsCptWGJ/Dma/Oag9+piX LB/hpFrZCow5dVwT6jGuRDJ4pqQrwtw= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1724526627; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=dFIqub/H0W/jxga81Z+QEFiTVGOHm6eupVbndlDP2Ws=; b=PPFcy32u+C4HIbkrM5qfR/gYiBkAIpkzJuI4bHbkvdt3Ikx0DobluDrFUa46Ya/wSK97JV F6vOL2WDPz+gtBNUWjWxGGebrWlwIaOxUfTCGJqsBx7wmfZaICqbd77whqMMyDFZcHHSZH DJLWvGNRWDLSkIVYQ0c/aL3cISSCRyo= From: Kent Overstreet To: david@fromorbit.com, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Cc: Kent Overstreet Subject: [PATCH 00/10] shrinker debugging, .to_text() report (resend) Date: Sat, 24 Aug 2024 15:10:07 -0400 Message-ID: <20240824191020.3170516-1-kent.overstreet@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 9E02E140017 X-Stat-Signature: aidiunzn5mh5qomrs7qix91tzdu9omq5 X-Rspam-User: X-HE-Tag: 1724526629-573686 X-HE-Meta: U2FsdGVkX1/fxcHAZTPEegfFMQxrTieIVmLxK83k28IeTdpiELDOfhF2aTTQenfxAnJFZybGlqbwyWfjCnmmzXrk/wIvBCBRPmcRRqe0LNsTBUSX0kG6NkFW9y2bA9gbpx6Dqy8CMz2t/jOhk1lMXRNcl5hseOVQjbBrQY5BKURM+ux1gsYWztpjLBP4ySfDaCq4F8A8M8cUw3jKC03jyuBCT/ZxH9B9HNI/q/pfSlSOXjKJm4ySajoBTSu9gcXjqIsOc2jYN371FUxfxcgP0TXSQd8j9bXWWYPPDHgqYHsoTkucgDocZB0xGY5MrjDv+I5gMSMfqR+jTzKjo9YF04IcysRZZQIgczSD6I4dRTzLIRqxFZRpV8ppV8WkhkABIAYenfLGweuQc22CoV/L8IKYCWxtsf4qelS1Fm+YnYXCyJEsPWe5sl/EII5Tgmk5HYsj31zCgJ0NqCFf44tgQiDF1/wHSrLwaen6YXu9+Xocp2XFw5CQw3Gz7T31hOp4Wm8t0WPf1/FF8C/aeC3iElYNkdBEyNncytB2ZrHQPuNJC6r7sncsX2CQ+n8fZHMkUhxIytF7Z2JblX2KlfQ/fiB0ZtkQuzNM11SMR09sxnRMWatkb+WbhYjEA/l1+wY95r3vmHMVOoDIDPQAVrGoIfGyaiyCfwMnntwITmqP/LCp5lxY44im3m1ipS/K2FGG4PU1IZJCCOZP7VPbOCicqcuV9OnzHUk8NHdv/zu19QKQy+UOSO4xzO70fwmcuNstYQhrpZYqsrXAZsONMqcVu8Q4UxVN/uga1GshIEfD80xJG3HOz877n5x2ttSUJwFFixv7gRkUm282+U4WVc7Ab0ig2y9nzY+BCtV0EZTR/YMFAH1uM3HB2U05TnMCDB14iAQDFrr4mfn5zqCktmo65jqcG8N7vmvufrwPk6WJMpZ+xefzPYrtWpRtTKviI63TgE4qVYjm52swQ88/KDE t7QN4hO8 sPUxK28onR8dta7rnLuSo51iu7Yg/F+HxlqEnA1V3N18Y4ExPgszcq6O52/Bb/Vqy48bYuCeDkwSaJJ5fAt3j7Cs/Dbn/KIFbcnzxlttveV5xuBgr0lvH1cyRBO1JeG7CeRPC3XUHOeLbJWBEa00x9/GPv78FAhC7othe X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: recently new OOMs have been cropping up, and reclaim is implicated, so I've had to dust off these patches. nothing significant has changed since the last time I posted, and they have been valuable - Dave, think we can get them in? Kent Overstreet (10): seq_buf: seq_buf_human_readable_u64() mm: shrinker: Add a .to_text() method for shrinkers mm: shrinker: Add new stats for .to_text() mm: Centralize & improve oom reporting in show_mem.c mm: shrinker: Add shrinker_to_text() to debugfs interface bcachefs: shrinker.to_text() methods percpu: per_cpu_sum() fs: Add super_block->s_inodes_nr fs/dcache: Add per-sb accounting for nr dentries fs: super_cache_to_text() fs/bcachefs/btree_cache.c | 13 +++++ fs/bcachefs/btree_key_cache.c | 14 ++++++ fs/bcachefs/util.h | 10 ---- fs/dcache.c | 18 ++----- fs/inode.c | 2 + fs/super.c | 25 ++++++++++ include/linux/fs.h | 2 + include/linux/percpu.h | 10 ++++ include/linux/seq_buf.h | 4 ++ include/linux/shrinker.h | 13 ++++- lib/seq_buf.c | 10 ++++ mm/oom_kill.c | 23 --------- mm/show_mem.c | 43 ++++++++++++++++ mm/shrinker.c | 94 ++++++++++++++++++++++++++++++++++- mm/shrinker_debug.c | 18 +++++++ mm/slab.h | 6 ++- mm/slab_common.c | 52 +++++++++++++++---- 17 files changed, 298 insertions(+), 59 deletions(-)