zoukankan      html  css  js  c++  java
  • 按 I/O 大小对进程排序 磁盘读写频率

     按 I/O 大小对进程排序  磁盘读写频率

    iotop

    root@h:~# iotop
    unable to set locale, falling back to the default locale
    Total DISK READ : 0.00 B/s | Total DISK WRITE : 601.26 K/s
    Actual DISK READ: 0.00 B/s | Actual DISK WRITE: 636.40 K/s
    TID PRIO USER DISK READ DISK WRITE SWAPIN IO> COMMAND
    188 be/3 root 0.00 B/s 0.00 B/s 0.00 % 0.52 % [jbd2/vda1-8]
    14758 be/4 mysql 0.00 B/s 0.00 B/s 0.00 % 0.28 % mysqld
    14759 be/4 mysql 0.00 B/s 593.45 K/s 0.00 % 0.26 % mysqld
    14750 be/4 mysql 0.00 B/s 0.00 B/s 0.00 % 0.14 % mysqld
    14764 be/4 mysql 0.00 B/s 7.81 K/s 0.00 % 0.05 % mysqld
    1 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % init
    2 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kthreadd]
    3 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [ksoftirqd/0]
    5 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kworker/0:0H]
    7 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [rcu_sched]
    8 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [rcu_bh]
    9 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [migration/0]
    10 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [watchdog/0]

    root@h:~# iotop --help
    unable to set locale, falling back to the default locale
    Usage: /usr/sbin/iotop [OPTIONS]

    DISK READ and DISK WRITE are the block I/O bandwidth used during the sampling
    period. SWAPIN and IO are the percentages of time the thread spent respectively
    while swapping in and waiting on I/O more generally. PRIO is the I/O priority at
    which the thread is running (set using the ionice command).

    Controls: left and right arrows to change the sorting column, r to invert the
    sorting order, o to toggle the --only option, p to toggle the --processes
    option, a to toggle the --accumulated option, i to change I/O priority, q to
    quit, any other key to force a refresh.

    Options:
    --version show program's version number and exit
    -h, --help show this help message and exit
    -o, --only only show processes or threads actually doing I/O
    -b, --batch non-interactive mode
    -n NUM, --iter=NUM number of iterations before ending [infinite]
    -d SEC, --delay=SEC delay between iterations [1 second]
    -p PID, --pid=PID processes/threads to monitor [all]
    -u USER, --user=USER users to monitor [all]
    -P, --processes only show processes, not all threads
    -a, --accumulated show accumulated I/O instead of bandwidth
    -k, --kilobytes use kilobytes instead of a human friendly unit
    -t, --time add a timestamp on each line (implies --batch)
    -q, --quiet suppress some lines of header (implies --batch)
    root@h:~#

    root@h:~# iotop -P
    unable to set locale, falling back to the default locale
    Total DISK READ : 0.00 B/s | Total DISK WRITE : 986.76 K/s
    Actual DISK READ: 0.00 B/s | Actual DISK WRITE: 1256.95 K/s
    PID PRIO USER DISK READ DISK WRITE SWAPIN IO> COMMAND
    188 be/3 root 0.00 B/s 0.00 B/s 0.00 % 5.64 % [jbd2/vda1-8]
    14742 be/4 mysql 0.00 B/s 986.76 K/s 0.00 % 0.05 % mysqld
    1 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % init
    2 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kthreadd]
    3 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [ksoftirqd/0]
    5 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kworker/0:0H]
    7 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [rcu_sched]
    8 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [rcu_bh]
    9 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [migration/0]
    10 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [watchdog/0]

  • 相关阅读:
    保护【大数据】应用的步骤和工具
    提高UI设计效率的4个技巧
    你学会UI设计了吗?
    Android 零散知识点整理
    PHP面试和PHP开发者都应掌握的10个问题
    MySQL 中如何存储 emoji ?
    想在网上保持匿名?教你用Linux如何实现!
    数据库入门之运行原始 SQL 查找
    PHP之取得当前时间函数方法
    【在线】使用在线软件来完成任务
  • 原文地址:https://www.cnblogs.com/rsapaper/p/15570797.html
Copyright © 2011-2022 走看看