htop - an interactive process viewer for Linux
This is htop, an interactive process viewer for Linux. It is a text-mode application (for console or X terminals) and requires ncurses. Tested with Linux 2.4 and 2.6.

官方网站:http://htop.sourceforge.net/
可以进行水平或竖直滚动 (总算可以看到所有进程和全部命令行了)
可以跟踪进程 (通过集成strace实现)
主页面上显示常用功能项,很方便。top里可以要'h'一下。
支持进程树状显示
可以按名称查找进程
支持鼠标
htop很不错,但还可以做得更好,下面是我想要的功能:
显示进程打开的文件
显示进程内存映射情况
更完整的man手册(比如设置更新周期的命令行选项'-d'就没有在手册中说明)
P.S. strace是个宝贝。单独做一个strace前端本身就是个不错的项目,支持对strace结果的分类,查询等功能。
[root@mx6_bak io]# man htop
htop(1) Utils htop(1)
NAME
htop - interactive process viewer
SYNTAX
htop
DESCRIPTION
This program is a free (GPL) ncurses-based process viewer.
It is similar to top, but allows to scroll the list vertically and horizontally to see all processes and their
full command lines.
Tasks related to processes (killing, renicing) can be done without entering their PIDs.
COMMAND-LINE OPTIONS
The following flags are supported:
-d DELAY
Delay between updates, in tenths of seconds
-u USERNAME
Show only processes of a given user
--sort-key COLUMN
Sort by this column (use --sort-key help for a column list)
INTERACTIVE COMMANDS
The following commands are supported:
Arrows, PgUP, PgDn, Home, End
Scroll process list.
Space
"Tag": mark a process. Commands that can operate on multiple processes, like "kill", will then apply over
the list of tagged processes, instead of the currently highlighted one.
U "Untag" all processes (remove all tags added with the Space key).
s Trace process system calls: if strace(1) is installed, pressing this key will attach it to the currently
selected process, presenting a live update of system calls issued by the process.
l Display open files for a process: if lsof(1) is installed, pressing this key will display the list of file
descriptors opened by the process.
F1, h
Help screen
F2, S
Setup screen. There you can configure meters displayed on the top side of the screen, as well as set vari-
ous display options, choose among color schemes and select the layout of the displayed columns.
F3, /
Incremental process search: type in part of a process command line and the selection highlight will be
moved to it. While in search mode, pressing this key will cycle through matching occurrences.
F4, I
Invert sort order: if sort order is increasing, switch to decreasing, and vice-versa.
F5, t
Tree view: organize processes by parenthood, and layout the relations between them as a tree. Toggling the
key will switch between tree and your previously selected sort view. Selecting a sort view will exit tree
view.
F6, >
Select field for sorting. The sort field is indicated by a highlight in the header.
F7, ], -
Increase selected process priority (subtract from ’nice’ value). This can be done by the superuser only.
F8, [, +
Decrease selected process priority (add to ’nice’ value)
F9, k
"Kill" process: sends a signal which is selected in a menu, to one or a group of processes. If processes
were tagged, sends the signal to all tagged processes. If none is tagged, sends to the currently selected
process.
F10, q
Quit
+, - When in tree view mode, expand or collapse subtree. When a subtree is collapsed a "+" sign shows to the
left of the process name.
a (on multiprocessor machines)
Set CPU affinity: mark which CPUs a process is allowed to use.
u Show only processes owned by a specified user.
M Sort by memory usage (top compatibility key).
P Sort by processor usage (top compatibility key).
T Sort by time (top compatibility key).
F "Follow" process: if the sort order causes the currently selected process to move in the list, make the
selection bar follow it. This is useful for monitoring a process: this way, you can keep a process always
visible on screen. When a movement key is used, "follow" loses effect.
K Hide kernel threads: prevent the threads belonging the kernel to be displayed in the process list. (This
is a toggle key.)
H Hide user threads: on systems that represent them differently than ordinary processes (such as recent
NPTL-based systems), this can hide threads from userspace processes in the process list. (This is a toggle
key.)
Ctrl-L
Refresh: redraw screen and recalculate values.
Numbers
PID search: type in process ID and the selection highlight will be moved to it.
AUTHORS
htop is developed by Hisham Muhammad <loderunner@users.sourceforge.net>.
This man page was written by Bartosz Fenski <fenio@o2.pl> for the Debian GNU/Linux distribution (but it may be
used by others), and updated by Hisham Muhammad.
Bartosz Fenski <fenio@o2.pl> 0.9 htop(1)
Ex:
Using htop do the following.
htop
F5 (Tree view)
F2 (Setup)
Select columns
Select RBYTES WBYTES
F10 (Done)
And there you go, per process disk I/O, in real time.
本日志由 flyinweb 于 2011-09-27 16:39:59 发表,目前已经被浏览 576 次,评论 0 次;
引用通告:http://www.517sou.net/Article/690/Trackback.ashx
而且直接配置文件是效率最高的,通过其它驱动效率都相对较低,BDB
这个测试不太准确,看官方的测试结果:http://bind-dlz.sourceforg
为什么使用BDB时QPS这么低? 我在bind版本基本相似的环境中测试的
It is quite useful and interesting too.
VIRT 的上限是64G,也就是36位, cat /proc/cpuinfo的结果是:addre
昨天要准备用线程重写webbench,试验了下Fedora Linux 2.6.35.14
不明白您的具体的意思是什么?
已经发送到你QQ邮箱