如何判断Linux性能缺陷?
如何通过LR判断Linux性能缺陷?能采用WINDOW的方案吗?因为Linux系统就算内存不足也能用的好好的,而WIONDOW系统则内存怎么也要剩10%,其它数据又如何判断呢? 兄弟。你的帖子里有问题。Linux本身就有一套强大的性能检测工具, 用哪个????? 最简单的用TOP,其中每个指标都很有意义,具体看TOP命令的含义。# top
top - 17:59:10 up6:07,4 users,load average: 0.08, 0.09, 0.12
Tasks:89 total, 2 running,87 sleeping, 0 stopped, 0 zombie
Cpu(s):4.6% us,7.4% sy,0.0% ni, 87.6% id,0.0% wa,0.4% hi,0.0% si
Mem: 1034616k total, 240144k used, 794472k free, 12904k buffers
Swap:1044216k total, 160k used,1044056k free, 124116k cached
PID USER PRNIVIRTRESSHR S %CPU %MEM TIME+COMMAND
2909 root 15 0 3310412m 2540 S5.91.220:57.21 X
3233 root 2510 3069216m 9.9m R3.31.612:23.80 rhn-applet-gui
8680 root 16 02252928740 R1.00.1 0:00.13 top
2392 root 16 06244 4208 1612 S0.30.4 0:32.71 hald
3033 oracle 16 0101m 7464 3248 S0.30.7 0:39.39 ocssd.bin
1 root 16 02620556476 S0.00.1 0:01.89 init
2 root RT 0 0 0 0 S0.00.0 0:00.00 migration/0
3 root 3419 0 0 0 S0.00.0 0:00.07 ksoftirqd/0
4 root 5 -10 0 0 0 S0.00.0 0:00.84 events/0
5 root 5 -10 0 0 0 S0.00.0 0:00.01 khelper
6 root 15 -10 0 0 0 S0.00.0 0:00.00 kacpid
19 root 5 -10 0 0 0 S0.00.0 0:00.23 kblockd/0
29 root 20 0 0 0 0 S0.00.0 0:00.00 pdflush
30 root 15 0 0 0 0 S0.00.0 0:01.38 pdflush
32 root 13 -10 0 0 0 S0.00.0 0:00.00 aio/0
20 root 15 0 0 0 0 S0.00.0 0:00.00 khubd
31 root 15 0 0 0 0 S0.00.0 0:01.14 kswapd0
然后你还可以CAT 查看PROC目录下的系统信息,每一个进程以及系统的运行状况信息数据,都可以详细的查看,具体请BAIDU。
# cd /proc
# ls
1 202 2367303332003275 devices key-users slabinfo
106 20302381307532053276 diskstats kmsg stat
108221182392309732113650 dma loadavg swaps
127021692402309832124 driver locks sys
15092184244931 32145 execdomainsmdstat sysrq-trigger
156722032468310332156 fb meminfo sysvipc
156822112469310432188646 filesystemsmisc tty
158822222658310732208648 fs modules uptime
185 22522713314032228684 ide mounts version
19 2253273231413225acpi interrupts mpt vmstat
19562263273331693226asound iomem mtrr
19602305288131903228buddyinfoioports net
1981231529 31933233bus irq partitions
2 2319290931953234cmdline kallsyms pci
20 23203 31983236cpuinfo kcore scsi
2001233930 32 3239crypto keys self 哪里有LINUX的性能缺陷指标的?比如WINDOWS的CUP或者物理内存低于10%就有问题,还有换页率之类的,LINUX可以照般WINDOWS的结论吗?WIONDOWS出现500就是内部服务器错误,LINUX也是么?
页:
[1]