Linux性能测试 top衍生命令 atop/htop/slaptop
2024-09-26 00:18:23
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-
最新文章
- Maven 最佳实践
- Z.ExtensionMethods 一个强大的开源扩展库
- linux 配置 ftp
- php 错误堆栈
- JTA 深度历险 - 原理与实现
- ionic教程之Win10环境下ionic+angular实现滑动菜单及列表
- MVC5 Identity 自定义用户和角色
- nginx简单反向代理和负载均衡(ubuntu)
- USACO 2013 November Contest Gold 简要题解
- ASP.NET- LinkButton 传递多个参数
- [.NET] 《Effective C#》读书笔记(二)- .NET 资源托管
- sqlDependency监控数据库数据变化,自动通知
- nfs的配置文件/etc/exports
- 基于Web的漏洞利用
- Linux cache 缓存过大
- [转]C和C++运行时库
- C#学习笔记(5)——大项目查找
- win8中的gridview和listview控件微软链接
- Spring MVC controller 被执行两次
- python易错盲点排查之+=与+的区别分析以及一些赋值运算踩过的坑