From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8DAFD86341 for ; Sat, 7 Mar 2026 17:48:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=82.195.75.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772905713; cv=none; b=eKv+/HCyv5efKx7aIlJIcsT5ZtfxW1lvy7ZK1+36LqhfZl33ZFtMOmm4FNgJBIxNM+ZCsF1q/5Xv0LG3OwPIUKnITMcga8mRuP/nwaykS82Eb5ZgdMeKlwDJZCym2+NR0aMIQiJ4RvabshUPiuwlzPoIdY+pBDVE2H+JJdMD8aY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772905713; c=relaxed/simple; bh=OrsV1lnA3oSozjlrXi++dPH3gAOs5eUb1WVIcY/rD3o=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=BnoHjE3lJFhxLhfDKYKvFOCRlWa1oMOfTVBFKyxKrfJP6N4dL3TTV7ddTh8jjRVQ7ErmsGoyUAI0+Juu8IX03ijayGsUpwgzjNGUi2yRI8NISEcqk/fXtLpLR5qRpFSoBUVS8s1iKdtpc/Sob5EU77xOBd42tqIrt7ZoAIVm2Uw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org; spf=none smtp.mailfrom=debian.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b=ZXlwLn23; arc=none smtp.client-ip=82.195.75.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=debian.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b="ZXlwLn23" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:Cc:To:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-Id:Date:Subject:From:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=a/kzyWqjIzyOh5Y03B8q+xzZe5QODv1IuMmlzBV3Ruk=; b=ZXlwLn23zszen6FFg4s6U0uq6j 1/VSrQwJ/bFYC8mPR4kkW+sQ62vvU8S0psy8VG5Z2l90TenpBSmHElkLL8SKHErI1rUQQkg+qZixn lM9f3SM+7bqjXCwjAwW8hf2rHP6nsSlbgoxSpev56j6nIWF+GkTy7QuBJTZmhfBy6Z7k8CtNaSxU5 0YCUkhlVsI5uH9JAHg68FIL1/X6I+FLGtmbo8yIpDNRAcbAGx5KLiB5PQY73u3N551Fn+90sXpY/T gLQrK718FkNHw3zPNQfUBNEmTsQ086eM1kSEGlIJIQaCy/ukRchFxl9ZXxS8cBvedeOnGRXjl5F1l wAeyxykw==; Received: from authenticated user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1vyvlJ-000qZD-LJ; Sat, 07 Mar 2026 17:48:25 +0000 From: Breno Leitao Subject: [PATCH 0/3] workqueue: Fix table in wq_dump.py for large number of workqueues Date: Sat, 07 Mar 2026 09:47:18 -0800 Message-Id: <20260307-wqdump-v1-0-8663563c234e@debian.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAKdkrGkC/6tWKk4tykwtVrJSqFYqSi3LLM7Mz1OyUjDUUVBKz kjMS0/VzUxRslJQMjIwMjMwNjDXLS9MKc0t0DU2TkuxMLUwMEqyNFLSUVAqKEpNy6wAGxQdC+E XlyZlpSaXgHQr1dYCAN9MTDVqAAAA X-Change-ID: 20260307-wqdump-33fd85802b92 To: tj@kernel.org, jiangshanlai@gmail.com Cc: linux-kernel@vger.kernel.org, Breno Leitao , kernel-team@meta.com X-Mailer: b4 0.15-dev-363b9 X-Developer-Signature: v=1; a=openpgp-sha256; l=2091; i=leitao@debian.org; h=from:subject:message-id; bh=OrsV1lnA3oSozjlrXi++dPH3gAOs5eUb1WVIcY/rD3o=; b=owEBbQKS/ZANAwAIATWjk5/8eHdtAcsmYgBprGTlxdtMpVMb9uotYgyb1Zx5z0oNtUoiiSfBF wRpzY1k5V+JAjMEAAEIAB0WIQSshTmm6PRnAspKQ5s1o5Of/Hh3bQUCaaxk5QAKCRA1o5Of/Hh3 bQezD/9x6UaR8JpguKSjuOL+iwjB+FAfV0zy/raQfe82b5z68O3hXOKkUpgcTAc+8pGywydqSiC OEkIyiWYYHIxu8dVYDEvv1xMq/6UfajDoHt6isuZur5CU81WlD67GXC5+bGJeD0rosQvSlC3O0q Doz4y6fwYOQxzcYTAUxs5a2OGIcBYXZkRM6cE/0R6xpOVuihBqP2VZoeSQyzWM7dc/qO40M2pta +Ui3SnKiEdoM2FmUVjLfM42qf5+vTfLMQH5s54hGKDBEEp+w1rLw35Wm3z8tJAG835jxTxXddwh D3UldFu63ncgjpWRgzijwbv4FhsRX5Vx9Qsgy3RwyQwPUsndWgvzJr47dcwKSfMBholNQzV3sZ6 iJvVrG8K+F/uJ7QDZsxao7OSKTEPXAp0MlHhO+m2xnhmMOqymn/VyotnYuabCSFD4Z2Cy1Hf7+Z 97cJ8wrCKIDXvg3ojTsfWocA/I62ozQpMq76LDLe79e4IhjQDx2ZCxzgXrGWZvDKHALEqsRuceH cKREtH5QgMb9PSqNy5LKnGM4QMvpvy0ZzSXglV5nyU2fsutrzIeLlWsQI6c3HyWuIlU0usXjOKh pbifBl8jsdyf4RuGXNqp2hoP+3zcvwKbEgnrDV6Vr5dWJqdMk3N1W4Zm2QadmvzuuohSsOoxT+l 9k7uFIadiHyTOhA== X-Developer-Key: i=leitao@debian.org; a=openpgp; fpr=AC8539A6E8F46702CA4A439B35A3939FFC78776D X-Debian-User: leitao On larger machines (e.g. 316 CPUs, 2 NUMA nodes), the "Unbound workqueue -> node_nr/max_active" section of wq_dump.py has column alignment issues. Values like max_active=2048 exceed the hardcoded minimum field width of 3, causing the header and data rows to misalign. This series cleans up the formatting: 1. Remove the backslash separator from the header 2. Widen format specifiers for 4-digit values and right-align nr/max as a single string 3. Add "NODE" prefix to all node columns for clarity. * Although the original code intentionally only labeled the first column, the bare numbers for subsequent nodes create more confusion than they help. Labeling all columns makes the output self-explanatory. Before: [ workqueue \ min max NODE 0 1 dfl ] events_unbound 8 2048 0/2048 0/ 8 0/2048 netns 1 1 0/ 1 0/ 1 0/ 1 async 1024 1024 0/1024 0/1024 0/1024 cpuset_migrate_mm 1 1 0/ 1 0/ 1 0/ 1 After: [ workqueue min max NODE 0 NODE 1 dfl ] events_unbound 8 2048 0/2048 0/8 0/2048 netns 1 1 0/1 0/1 0/1 async 1024 1024 0/1024 0/1024 0/1024 cpuset_migrate_mm 1 1 0/1 0/1 0/1 Signed-off-by: Breno Leitao --- Breno Leitao (3): tools/workqueue/wq_dump.py: remove backslash separator from node_nr/max_active header tools/workqueue/wq_dump.py: fix column alignment in node_nr/max_active section tools/workqueue/wq_dump.py: add NODE prefix to all node columns tools/workqueue/wq_dump.py | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) --- base-commit: 5ee8dbf54602dc340d6235b1d6aa17c0f283f48c change-id: 20260307-wqdump-33fd85802b92 Best regards, -- Breno Leitao