Re: [PATCH linux next] delayacct: add delay max to record delay peak

From: yang.yang29
Date: Tue Dec 03 2024 - 20:43:59 EST


On Tue, 3 Dec 2024 16:48:48 +0800 (CST) <jiang.kun2@xxxxxxxxxx> wrote:

> From: Wang Yaxin <wang.yaxin@xxxxxxxxxx>
> the 'delay max' can display delay peak since the system's startup

What about also add 'delay min' ? This could help us get to know how
large the difference is between min and max, provide clues for optimizing
potential. This is also some benchmark tools do, like stream which print:
precision of your system timer.
-------------------------------------------------------------
Function Best Rate MB/s Avg time Min time Max time
Copy: 234195.8 0.073357 0.073357 0.073357
Scale: 163856.6 0.104847 0.104847 0.104847
Add: 177791.5 0.144944 0.144944 0.144944

And please also update Documentation/accounting/delay-accounting.rst.
Other parts LGTM, thanks!