nmon for redhat 4.7(64bit)

ningzi82發表於2010-10-24

1.下載makefile http://ncu.dl.sourceforge.net/project/nmon/makefile
2.下載source code http://ncu.dl.sourceforge.net/project/nmon/lmon14a.c
3. mv lmon14a.c lmon.c
4. vi makefile add :
nmon_x86_64_rhel47:
cc -o nmon_x86_64_rhel47 $(FILE) $(CFLAGS) $(LDFLAGS)
5.CompilingNmon
# make nmon_x86_64_rhel47
cc -o nmon_x86_64_rhel47 lmon.c -g -O2 -D JFS -D GETUSER -Wall -D LARGEMEM -lncurses -g
6.test
# ls
lmon.c makefile nmon_x86_64_rhel47

# cp nmon_x86_64_rhel47 /usr/local/bin/nmon

[@more@]


# nmon
┌nmon─14a──────[H for help]───Hostname=stcsfab2─────Refresh= 2secs ───16:12.17───────────────────────────────────────────────────────────────────────────────────────────────────┐
│ CPU Utilisation ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│---------------------------+-------------------------------------------------+ │
│CPU User% Sys% Wait% Idle|0 |25 |50 |75 100| │
│ 1 0.0 0.0 0.0 100.0| > | │
│ 2 0.0 0.0 0.0 100.0| > | │
│ 3 95.5 4.5 0.0 0.0|UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUss> │
│ 4 0.0 1.0 0.0 99.0| > | │
│ 5 0.0 0.0 0.0 100.0| > | │
│ 6 0.5 0.0 0.0 99.5| > | │
│ 7 0.0 0.0 0.0 100.0| > | │
│ 8 0.0 0.0 0.0 100.0| > | │
│ 9 0.0 0.0 0.0 100.0| > | │
│ 10 0.0 0.0 0.0 100.0| > | │
│ 11 0.0 0.0 0.0 100.0| > | │
│ 12 0.0 0.0 0.0 100.0| > | │
│ 13 0.0 0.0 0.0 100.0| > | │
│ 14 0.0 0.0 0.0 100.0| > | │
│ 15 0.0 0.0 0.0 100.0| > | │
│ 16 0.0 0.0 0.0 100.0| > | │
│ 17 0.0 0.0 0.0 100.0| > | │
│ 18 0.0 0.0 0.0 100.0| > | │
│ 19 0.0 0.0 0.0 100.0| > | │
│ 20 0.0 0.0 0.0 100.0| > | │
│ 21 0.0 0.0 0.0 100.0| > | │
│ 22 0.0 0.0 0.0 100.0| > | │
│ 23 0.0 0.0 0.0 100.0| > │
│ 24 0.0 0.0 0.0 100.0| > | │
│---------------------------+-------------------------------------------------+ │
│Avg 0.9 0.1 0.0 99.0| > | │
│---------------------------+-------------------------------------------------+ │
│ Disk I/O ──/proc/diskstats────mostly in KB/s─────Warning:contains duplicates───────────────────────────────────────────────────────────────────────── │
│DiskName Busy Read WriteKB|0 |25 |50 |75 100| │
│sda 85% 4894.6 3754.6|RRRRRRRRRRRRRRRRRRRRRRRRWWWWWWWWWWWWWWWWWW> | │
│sda1 85% 4894.6 3754.6|RRRRRRRRRRRRRRRRRRRRRRRRWWWWWWWWWWWWWWWWWW> | │
│iss/c0d0 0% 0.0 0.0|> | │
│s/c0d0p1 0% 0.0 0.0|> | │
│s/c0d0p2 0% 0.0 0.0|> | │
│s/c0d0p3 0% 0.0 0.0|> | │
│sdb 0% 0.0 0.0|> | │
│sdb1 0% 0.0 0.0|> | │
│Totals Read-MB/s=9.6 Writes-MB/s=7.3 Transfers/sec=554.2 │
│ Top Processes Procs=354 mode=3 (1=Basic, 3=Perf 4=Size 5=I/O)──────────────────────────────────────────────────────────────────────────────────────────────────────────────────│
│ PID %CPU Size Res Res Res Res Shared Faults Command │
│ Used KB Set Text Data Lib KB Min Maj │
│ 18923 21.3 8005676 3462516 100348 2684 0 3310788 0 0 oracle │
│ 31098 1.0 10900 4688 104 7052 0 868 175 0 nmon_x86_64_rhe │
│ 662 0.5 90844 11680 1804 9160 0 2564 0 0 X │
│ 31919 0.5 15728 2936 216 1824 0 1260 0 0 hald │
│ 1 0.0 4772 564 32 216 0 468 0 0 init │
│ 2 0.0 0 0 0 0 0 0 0 0 migration/0 │
└─────────Warning: Some Statistics may not shown─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

具體參見:

http://www.ibm.com/developerworks/wikis/display/WikiPtype/nmon

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/789833/viewspace-1040315/,如需轉載,請註明出處,否則將追究法律責任。

相關文章