Linux性能测试 top衍生命令 atop/htop/slaptop
1. Atop
Atop 是一个类似 top 的工具,但比 top 更有料。通过 Atop,你能够监视 Linux 系统的性能状况,包括进程活动、CPU、内存、硬盘、网络等方面的使用情况等。

2. htop
htop——一个可以让用户与之交互的进程查看器。作为文本模式的应用程序,主要用于控制台或 X 终端中。当前具有按树状方式来查看进程,支持颜色主题,可以定制等特性。
与 top 相比,htop 包含的优点有:
- 可以横向或纵向滚动浏览进程列表,以便看到所有的进程和完整的命令行。
- 在启动上,比 top 更快。
- 杀进程时不需要输入进程号。
- htop 支持鼠标操作。
- top 已经很老了。

1 [|||||||||||| Tasks: 652 total, 1 running 14.4 61 3
2 [|||| Load aver 0.16 0.16 0.17 19.5 02 0.10 0.14
Mem[|||||| 172/1009MB] Uptime: 01:37:53 3 41:36
PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command 21705 bbndserv 16 0 2356 1228 784 R 38.0 0.1 0:00.12 htop 1 bbndserv 16 0 1784 640 544 S 0.0 0.1 0:02.12 init [3]
16753 bbndserv 11 -4 1676 392 216 S 0.0 0.0 0:00.00 /sbin/udevd --daemon
16023 bbndserv 16 0 33748 28588 2424 R 5.0 2.8 5:20.42 /opt/confd/lib/confd/bin/confd -K false -B -MHe true -- -root /opt/confd/lib/confd -progname confd -- -70523 bbndserv 17 0 2356 1316 860 R 0.1 0:07.73 htop
21672 bbndserv 25158M 6456 3352 S 16 0:07.08:11.38:07.64bb/platform/bin/rvnNetSerIfTblMgr
23313 bin 16158M 249M 7856 3880 0:00.1750.8 0:11.64 /opt/bb/platform/bin/rvnNetServer
21776 rpcuser 24249M 7856 3880 544 S 0.0 0.8 0:04.23 /opt/bb/platform/bin/rvnNetServer
23238 bbndserv 16 0 199M 6932 3488 S 0.0 0.7 0:01.76 /opt/bb/platform/bin/rvnSoftwareManager
1 bbndserv 16 0 1784 640 544 S 0.0 0.1 0:02.12 init [3]
16753 bbndserv 11 -4 1676 392 216 S 0.0 0.010 port00 /sbin/udevd --daemon
16939 bbndserv 16 0 38148 2252 1188 S 0.0 0.2 0:01.67 /usr/local/bin/monit -I -c /etc/monitrc
20397 bbndserv 16524 38148 2252 1188 S 0.0 0.200 /usr/local/bin/monit -I -c /etc/monitrc
17640 bbndserv 25412 296 2448 58 S 0.0 0.0 0:00.00 smiattach -b 115200 /dev/ttyS1
17898 bin 161428 524 380 292 S 0.0 0.0 0:00.10 portmap
17916 rpcuser 18656 764 6446 460 S 0.0 0.1 0:00.00 rpc.statd
17933 bbndserv 162096 1412 108 56 S 0.0 0.0 0:00.92 /usr/sbin/rngd -r /dev/urandom
18054 bbndserv 251428 408 336 2088 S 0.0 0.0 0:00.00 /usr/sbin/acpid
18099 bbndserv 163404 660 460 600 S 0.0 0.1 0:00.00 /usr/sbin/sshd
18108 bbndserv 16096 888 7208 600 S 0.0 0.1 0:00.02 xinetd -stayalive -pidfile /var/run/xinetd.pid
18279 bbndserv 25 0 1600 160 60 S 0.0 0.0 0:00.00 rpc.mountd
18289 bbndserv 24928 192 1096 2088 S 0.0 0.0 0:00.00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
18344 bbndserv 161620 740 600 2088 S 0.0 0.100 cron
3. slabtop
1.简介:实时显示内核slab内存缓存信息
2.使用:
slabtop –delay=n, -d n 每隔n秒刷新信息
slabtop –sort=S, -s S 按照S排序,其中S为排序标准
–once, -o 显示一次并退出
Active / Total Objects (% used) : (96.15 (96.2%)
Active / Total Slabs (% used): / / (99.5
Active / Total Caches (% used) : / (58.8%)
Active / Total Size (% used): .39K022..95K (96.5 (97.2
OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME K
% .05K 919783676K buffer_head
% .14K 787273148K dentry_cache
% .27K 571142284K radix_tree_node
% .09K 16044640K vm_area_struct
% .38K 613102452K proc_inode_cache
% .19K 272201088K filp
% .03K 43113172K size-
% .53K 72580K ext3_inode_cache
% .06K 7659304K size-
% .02K 68K anon_vma
% .04K 3792148K sysfs_dir_cache
% .12K 8030320K size-
% .46K 8940K shmem_inode_cache
% .44K 9648K sock_inode_cache
% .19K 6820272K skbuff_head_cache
% .51K 7720K ext2_inode_cache
% .37K 12510500K inode_cache
% .00K 22440K size-
% .23K 7016280K ip_conntrack
% .00K 13604K s50e-
% .04K992 36K acpi_operand
% .02K4203 16K tcp_bind_bucket
% .36K 51184K ta76_struct
% .25K 4615184K size-
Linux性能测试 top衍生命令 atop/htop/slaptop的更多相关文章
- Linux性能测试 top命令
原文地址:http://www.cnblogs.com/txw1958/archive/2012/07/25/linux-top-command.html top命令是Linux下常用的性能分析工具, ...
- Linux性能测试 命令大全
Linux 系统出现问题时,我们不仅需要查看系统日志信息,而且还要使用大量的性能监测工 具来判断究竟是哪一部分(内存.CPU.硬盘……)出了问题.在 Linux 系统中,所有的运行 参数保存在虚拟目录 ...
- 性能测试 | Linux系统top命令中的io使用率,很多人都误解了它的具体含义
body{ text-align:left; width:80%; margin:10px 100px; } 最近在做连续数据流的缓冲系统,C语言代码实现后,粗略测试了下,功能上应该没有问题.那么,接 ...
- Linux的top命令
文章来自于长风破浪博主的内容,下面是该博客网址. https://www.cnblogs.com/dragonsuc/p/5512797.html 为了自己能多学习,多记忆,所以直接搬到了这里,希望小 ...
- linux下top命令参数详解
top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器.下面详细介绍它的使用方法. 内存信息.内容如下: Mem: 191272k to ...
- Linux性能测试分析命令_top
top命令动态展示系统整体资源和各个进程资源占用状况,是Linux下常用的性能分析工具. top命令语法 使用格式:top [-] [d] [b] [H] [p] [q] [c] [C] [S] [s ...
- Linux之top命令
top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器.下面详细介绍它的使用方法.top是一个动态显示过程,即可以通过用户按键来不断刷新 ...
- 图解linux下top命令的使用
top命令经常用来监控linux的系统状况,比如cpu.内存的使用,程序员基本都知道这个命令,但比较奇怪的是能用好它的人却很少,例如top监控视图中内存数值的含义就有不少的曲解. 本文通过一个运行中的 ...
- linux中top命令详解
linux的top命令里的cpu信息是什么意思呢? Cpu(s): 62.1% us, 15.9% sy,0.1% ni, 19.4% id,2.0% wa,0.1% hi,0.4% si Mem: ...
随机推荐
- python的报错
1;; //////////////////////////////////////////////////////////////////////////////////////////////// ...
- POJ 2823 Sliding Window 线段树
http://poj.org/problem?id=2823 出太阳啦~^ ^被子拿去晒了~晚上还要数学建模,刚才躺在床上休息一下就睡着了,哼,还好我强大,没有感冒. 话说今年校运会怎么没下雨!!!说 ...
- POJ 1163 The Triangle 简单DP
看题传送门门:http://poj.org/problem?id=1163 困死了....QAQ 普通做法,从下往上,可得状态转移方程为: dp[i][j]= a[i][j] + max (dp[i+ ...
- FeatureLayer,FeatureDataset,FeatureClass,Feature的区别与联系总结
duckweeds原文 FeatureLayer,FeatureDataset,FeatureClass,Feature几个概念一点点总结,欢迎指教 刚学AE,其中很多概念都模糊不清.经过一段时间的摸 ...
- [Angular2 Animation] Control Undefined Angular 2 States with void State
Each trigger starts with an “undefined” state or a “void” state which doesn’t match any of your curr ...
- h5 video 点击自动全屏
加上如下属性 https://blog.csdn.net/weixin_40974504/article/details/79639478 可阻止自动全屏播放,感谢 https://blog.csdn ...
- (十三)RabbitMQ消息队列-VirtualHost与权限管理
原文:(十三)RabbitMQ消息队列-VirtualHost与权限管理 VirtualHost 像mysql有数据库的概念并且可以指定用户对库和表等操作的权限.那RabbitMQ呢?RabbitMQ ...
- 段的创建表user_segments 分类: H2_ORACLE 2013-08-10 11:13 714人阅读 评论(0) 收藏
1.段的定义及类型 Oracle中的段(segment)是占用磁盘空间的一个对象,最常见的段类型包括: l 聚簇cluster l 表table l 表分区 tablepartition l ...
- 使用Html5开发Android和iOS应用:HBuilder、Html5Plus、MUI
活动主题:五一巨献,问答有礼,105QB送给IT互联网界的劳动人民活动时间:4月30日晚上10点~5月2日晚上10点网址: http://ask.jiutianniao.com 2014年的时候,就 ...
- Xcode经常使用插件使用及自己主动生成帮助文档
*一.Xcode 插件下载:* VVDocumenter下载:https://github.com/onevcat/VVDocumenter-Xcode Xcode经常使用插件下载:http://pa ...