lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250622154847.f7ea3c8c5b2c1193bf9bcbcf@linux-foundation.org>
Date: Sun, 22 Jun 2025 15:48:47 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: <jiang.kun2@....com.cn>
Cc: <bsingharora@...il.com>, <david@...hat.com>, <yang.yang29@....com.cn>,
 <linux-kernel@...r.kernel.org>, <linux-mm@...ck.org>,
 <linux-doc@...r.kernel.org>, <wang.yong12@....com.cn>,
 <wang.yaxin@....com.cn>, <fan.yu9@....com.cn>, <he.peilin@....com.cn>,
 <tu.qiang35@....com.cn>, <qiu.yutan@....com.cn>, <zhang.yunkai@....com.cn>,
 <ye.xingchen@....com.cn>, <xu.xin16@....com.cn>
Subject: Re: [PATCH linux next] tools/accounting/delaytop: add delaytop  to
 record top-n task delay

On Thu, 19 Jun 2025 21:18:43 +0800 (CST) <jiang.kun2@....com.cn> wrote:

> From: Yaxin Wang <wang.yaxin@....com.cn>
> 
> Problem
> =======
> The "getdelays" can only display the latency of a single task
> by specifying a PID, but it has the following limitations:
> 1. single-task perspective: only supports querying the
> latency (CPU, I/O, memory, etc.) of an individual task via
> PID and cannot provide a global analysis of high-latency
> processes across the system.
> 2. lack of High-Latency process awareness: when the overall
> system latency is high (e.g., a spike in CPU latency), there
> is no way to quickly identify the top N processes contributing
> to the highest latency.
> 3. poor interactivity: It lacks dynamic sorting and refresh
> capabilities (similar to top), making it difficult to monitor
> latency changes in real time.
> 
> Solution
> ========
> To address these limitations, we introduce the "delaytop" with
> the following capabilities:
> 1. system view: monitors latency metrics (CPU, I/O, memory, IRQ,
> etc.) for all system processes
> 2. supports field-based sorting (e.g., default sort by CPU latency
> in descending order)
> 3. dynamic interactive interface:
> focus on specific processes with --pid;
> limit displayed entries with --processes 20;
> control monitoring duration with --iterations;
> 
> Use case
> ========
> bash# ./delaytop

Looks nice, thanks.

>  tools/accounting/Makefile   |   2 +-
>  tools/accounting/delaytop.c | 673 ++++++++++++++++++++++++++++++++++++
>  2 files changed, 674 insertions(+), 1 deletion(-)
>  create mode 100644 tools/accounting/delaytop.c

Some documentation would be nicer ;)

hp2:/usr/src/25> grep -rli getdelays Documentation 
Documentation/translations/zh_CN/accounting/delay-accounting.rst
Documentation/translations/zh_CN/accounting/taskstats.rst
Documentation/accounting/delay-accounting.rst
Documentation/accounting/cgroupstats.rst
Documentation/accounting/taskstats.rst


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ