Main-line Linux kernel tree http://www.kernel.org
Go to file
Wang Yong eca7de7cdc delayacct: improve the average delay precision of getdelay tool to microsecond
Improve the average delay precision of getdelay tool to microsecond.  When
using the getdelay tool, it is sometimes found that the average delay
except CPU is not 0, but display is 0, because the precison is too low. 
For example, see delay average of SWAP below when using ZRAM.

print delayacct stats ON
PID	32915
CPU             count     real total  virtual total    delay total  delay average
               339202     2793871936     9233585504        7951112          0.000ms
IO              count    delay total  delay average
                   41      419296904             10ms
SWAP            count    delay total  delay average
               242589     1045792384              0ms

This wrong display is misleading, so improve the millisecond precision of
the average delay to microsecond just like CPU.  Then user would get more
accurate information of delay time.

Link: https://lkml.kernel.org/r/202302131408087983857@zte.com.cn
Signed-off-by: Wang Yong <wang.yong12@zte.com.cn>
Reviewed-by: Yang Yang <yang.yang29@zte.com.cn>
Cc: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-04-08 13:45:36 -07:00
arch Fix uninitialised variable warning (from smatch) in the arm64 compat 2023-04-07 13:27:02 -07:00
block
certs
crypto
Documentation delayacct: improve the average delay precision of getdelay tool to microsecond 2023-04-08 13:45:36 -07:00
drivers gpio fixes for v6.3-rc6 2023-04-07 13:53:16 -07:00
fs four ksmbd server fixes, including three for stable 2023-04-07 13:10:23 -07:00
include ACPI fixes for 6.3-rc6 2023-04-07 13:32:54 -07:00
init
io_uring
ipc
kernel tracing: Free error logs of tracing instances 2023-04-05 09:54:37 -04:00
lib
LICENSES
mm
net Including fixes from wireless and can. 2023-04-06 11:39:07 -07:00
rust
samples
scripts
security
sound
tools delayacct: improve the average delay precision of getdelay tool to microsecond 2023-04-08 13:45:36 -07:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.