View Process IO tool iotop
Iotop–simple top-like I/o monitor
Iotop is a top class tool to monitor disk I/O usage to monitor which program uses disk IO information (requires 2.6.20 or later)
Options:
--version #显示版本号
-H,--help #显示帮助信息
- O,--only #显示进程或者线程实际上正在做的I/O, not all, can be toggled at any time by pressing O
-B,--batch #运行在非交互式的模式
- n NUM,--iter=num #在非交互式模式下, sets the number of times to display,
-D SEC,--delay=sec #设置显示的间隔秒数, supports non-integer values
-P PID,--pid=pid #只显示指定PID的信息
-u USER,--user=user #显示指定的用户的进程的信息
- p,--processes #只显示进程, typically showing all threads
-A,--accumulated #显示从iotop启动后每个线程完成了的IO总数
-K,--kilobytes #以千字节显示
-T,--time #在每一行前添加一个当前的时间
- Q,--quiet #suppress some lines of header (implies--batch). This option is specified to the three times to remove header lines.
-Q column names is only printed on the first iteration,
-qq column names is never printed,
-QQQ The I/O summary is never printed.
Available commands (press the appropriate keys after running the Iotop command):
Use left and right to change the sort (the direction key changes the sorting sequence), and you can use the following command:
r: Reverse sort,
o: Switch to option--only,
p: Switch to--processes option,
A: Switch to--accumulated option
Q: Exit
I: Change the priority of a thread
Process management Tools Htop
Command-line option (Command-Line options)
-C--no-color using a monochrome color scheme
-D--delay=delay Setting delay update time in seconds
-H--help Display htop command Help information
-U--user=username only shows a procedure for a given user
-P--pid=pid,pid ... Show only the given PIDs
-S--sort-key column to sort by
-v–version displaying version information
Interactive commands (INTERACTIVE COMMANDS)
Up or down key or pgup, PgDn Select the desired process, the left or right key or Home, End Mobile field, of course, can also be directly selected process with the mouse;
Space Mark/Unmark a process. Commands can be used for multiple processes, such as "kill", to be applied to all flagged processes
U Unmark All Processes
s Select a process, press S: System call to trace a process with strace
l Show files opened by the process: if Lsof is installed, press this key to display the files opened by the process
I Reverse the sort order, and if the sort is positive, it reverses in reverse and vice versa
+, - When in tree view mode, expand or collapse subtree. When a subtree was collapsed a "+" sign shows to the left of the process name.
A (on a multiprocessor machine) set CPU affinity: Flag which CPUs a process is allowed to use
u Show specific user processes
M Sort by memory use
P Sort by CPU usage
T use Sort by time+
F Trace process: If the sort order causes the selected process to move around the list, let the selected bar follow the process. This is useful for monitoring a process: In this way, you can keep a process visible on the screen. Using the arrow keys will stop the function.
K Show/Hide Kernel threads
H Show/Hide User threads
ctrl-l Refresh
Numbers PID lookup: Input PID, the cursor will be moved to the corresponding process
This article is from "Smile_ Youth" blog, please be sure to keep this source http://smileyouth.blog.51cto.com/7273768/1653721
Common commands for Linux monitoring