Linux??????????
???????????? ???????[ 2013/9/22 10:30:35 ] ????????
????4??iostat
????iostat??Red Hat Enterprise Linux AS????????iostat???Sysstat????????????????????????http://perso.wanadoo.fr/sebastien.godard/
???????iostat?????????????????CPU????????????uptime?????????iostat??????????????????????????????檔???????????????CPU???????????????????
????iostat????????
avg-cpu: %user %nice %system %iowait %steal %idle 0.16 0.01 0.03 0.10 0.00 99.71
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn hda 0.31 4.65 4.12 327796 290832 avg-cpu: %user %nice %system %iowait %steal %idle 1.00 0.00 0.00 0.00 0.00 100.00
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn hda 0.00 0.00 0.00 0 0 avg-cpu: %user %nice %system %iowait %steal %idle 0.00 0.00 0.00 0.00 0.00 99.01
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn hda 0.00 0.00 0.00 0 0
CPU?????????????????
????%user?????user level (applications)???CPU?????????? %nice?????user level??nice priority???CPU?????????? %sys:???system level (kernel)???CPU?????????? %idle: ???CPU???????????????? ???????????????????????? Device: ???豸??????
????tps: ???豸???I/O?????????????I/O???????????????????I/O???????????????????????????I/O???????????? Blk_read/s?? Blk_wrtn/s: ???????豸????д?????????????????С??????????1024?? 2048 ?? 4048???????????partition???С??
???????磬??????????????豸/dev/sda1 ????????С?? dumpe2fs -h /dev/sda1 |grep -F "Block size" ??????????
????dumpe2fs 1.34 (25-Jul-2003) Block size: 1024
????Blk_read?? Blk_wrtn: ???????????????????/д????????
?????????????????/proc/stat??/proc/partitions??/proc/diskstats???????
????5??vmstat
????vmstat????processes?? memory?? paging?? block I/O?? traps??CPU??????
procs -----------memory---------- ---swap-- -----io---- -system-- -----cpu------ r b swpd free buff cache si so bi bo in cs us sy id wa st 1 0 0 513072 52324 162404 0 0 2 2 261 32 0 0 100 0 0 0 0 0 513072 52324 162404 0 0 0 0 271 43 0 0 100 0 0 0 0 0 513072 52324 162404 0 0 0 0 255 27 0 0 100 0 0 0 0 0 513072 52324 162404 0 0 0 28 275 51 0 0 97 3 0 0 0 0 513072 52324 162404 0 0 0 0 255 21 0 0 100 0 0 ??????е???壺 Process
– r: The number of processes waiting for runtime.
– b: The number of processes in uninterruptable sleep. Memory
– swpd: The amount of virtual memory used (KB). – free: The amount of idle memory (KB).
– buff: The amount of memory used as buffers (KB). Swap
– si: Amount of memory swapped from the disk (KBps).
– so: Amount of memory swapped to the disk (KBps). IO
– bi: Blocks sent to a block device (blocks/s).
– bo: Blocks received from a block device (blocks/s). System
– in: The number of interrupts per second?? including the clock. – cs: The number of context switches per second. CPU (these are percentages of total CPU time)
- us: Time spent running non-kernel code (user time?? including nice time). – sy: Time spent running kernel code (system time).
– id: Time spent idle. Prior to Linux 2.5.41?? this included IO-wait time.
– wa: Time spent waiting for IO. Prior to Linux 2.5.41?? this appeared as zero.
????6??sar
????sar??Red Hat Enterprise Linux AS???е??????????????Sysstat????????????????????????????????http://perso.wanadoo.fr/sebastien.godard/
????sar????????????????????????????sar?????????????sar????????sar1??sar2?????????????????
???????sar1??sar2??????????ó?????????????????????????á????t???????/etc/crontab????????????????
????????????????????????з???????sar?????????檔
???????????????У????????????CPU??????(%user?? %nice?? %system?? %idle)????????????????I/O????????????豸???????interrupts/second liyawei:~
# sar -u 3 10
Linux 2.6.16.21-0.8-default (liyawei) 05/31/07
10:17:16 CPU %user %nice %system %iowait %idle 10:17:19 all 0.00 0.00 0.00 0.00 100.00 10:17:22 all 0.00 0.00 0.00 0.33 99.67 10:17:25 all 0.00 0.00 0.00 0.00 100.00 10:17:28 all 0.00 0.00 0.00 0.00 100.00 10:17:31 all 0.00 0.00 0.00 0.00 100.00 10:17:34 all 0.00 0.00 0.00 0.00 100.00 7??KDE System Guard
????KDE System Guard (KSysguard) ??KDE??η??????????????????????????????????????/???????????????е???????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11