Welcome 微信登录

首页 / 操作系统 / Linux / Linux大多数性能检测信息都来自/proc

/proc 是一个特殊的文件系统,不占用磁盘空间,该目录下的内容是根据用户请求的信息,有Linux内核实时生成的。
(2.6.32-25)一、性能分析工具
1、CPU性能分析工具:
top
ps -a -l
vmstat
time
strace
pstree

2、Memory性能分析工具:
cat /proc/meminfo
top
vmstat
strace
ipcs
ipcrm
cat /proc/slabinfo
cat /proc/<pid #>/maps (先用ps -a -l查看进程的pid 或者在程序中调用pid_t pid=getpid();)

3、I/O性能分析工具:
iostat
vmstat
quotacheck (sudo apt-get install quota)
repquota

4、Network性能分析工具:
ifconfig
netstat
wireshark(sudo apt-get install wireshark)
tshark(sudo apt-get install tshark)
iptraf (sudo apt-get install iptraf)
iwconfig
nfsstat (sudo apt-get install iptraf)
mrtg
ntop

二、Linux 性能调优工具
当通过上述工具及命令,我们发现了应用的性能瓶颈以后,我们可以通过以下工具或者命令来进行性能的调整。

1、CPU性能调优工具:
sysctl
nice / renic

2、Memory性能调优工具:
ulimit
sysctl
swapon

3、I/O性能调优工具:
sysctl
edquota
boot line:
elevator= <ioscheduler>


4、Network性能调优工具:
ifconfig
iwconfig
sysctl
  • 1
  • 2
  • 下一页
红旗Linux 桌面6.0 SP3 中的tvtime部分台没声音的解决办法Linux 内存回收机制相关资讯      Linux 
  • Linux 即将 25 岁:足够伟大 却不  (01月01日)
  • Linux 这么棒是因为开源?  (08/28/2015 09:21:02)
  • FreeBSD 和 Linux 有什么不同?  (07/31/2015 09:15:06)
  • 盘点全球“国家级” Linux 项目  (09/25/2015 06:11:28)
  • 庆祝 Linux 24 岁生日!  (08/26/2015 06:13:36)
  • 【观点】离了Linux,我就活不了!  (10/31/2013 19:39:56)
本文评论 查看全部评论 (0)
表情: 姓名: 字数