The SUPER-UX accounting utility reports the usage of the process, session, job and disk. With these reports you can optimize the system.
This chapter describes the data presented by the accounting utilities. In addition, refer to the SUPER-UX System Administrator's Guide for details on the accounting utilities.
SUPER-UX process accounting displays the following data on each process:
| Home |
|---|
This data is written into the process accounting file depending on the kernel when the process terminates. See acct(2) and acct(4).
The contents of the process accounting file may be examined using the acctcom(1) command, which reads the process accounting file, and then shows the information of the processes that fill the specified requirements.
The items shown by the acctcom are as follows:
| Home |
|---|
| Home |
|---|
(user CPU time) / (total CPU time)
(total CPU time) / (elapsed time)
| DSK | I/O blocks of normal disk |
| ADK | I/O blocks of array disk |
| XMU | I/O blocks of XMU |
| MASSDPS | I/O blocks of MASS Data Processing System |
| SCD | I/O blocks of SCSI DISK |
| QT | 1/4" CGMT I/O blocks |
| HCT | 1/2" CGMT I/O blocks |
| DT | DAT I/O blocks |
| ET | 8mm CGMT I/O blocks |
| MT | 1/2" MT I/O blocks |
| SMT | SCSI MT I/O blocks |
| IMT | IMT I/O blocks |
| HMT | HIPPI MT I/O blocks |
| Home |
|---|
The following is an example of an acctcom output.
PROCESS-ID 00012 JOB-ID 00012 COMMAND NAME: jb1 USER: user1 TTYNAME: ?
GROUP: group1 ACCTCODE: proj1
SESSION ID: 100 RSG ID: 1
START TIME: 03:11:58 END TIME: 03:19:02
REAL(SECS): 424.44 CPU(SECS) SYS: 25.66 USER: 17.89
REAL(MICROS): 424436825 CPU(MICROS) SYS: 25663805 USER: 17897037
DPPGM-ID: 0
CPU FACTOR: 0.41 HOG FACTOR: 0.10
MEAN SIZE(K): 282.10 MAXMEM SIZE(K): 288.00
KCORE MIN: 204.78
CHARACTER TRANSFRD: 120844288 BLOCK R/W: 4357
TIME SLICE: 200 MEMORY PRIORITY: 20
NICE: 24 BASE PRIORITY: 0 EXEC PRIORITY: 20
SWAP COUNTS: 0 SWAP SIZE: 0 SWAP TIME: 0
EXECUTE INSTRUCT(K): 560876.06 VECTOR INSTRUCT(K): 0.00 VECTOR ELEMENT(K): 0.00
VEC-EXEC(MICROS): 41560 FLOPS: 364.05
MT-OPEN COUNTS: 3
I/O BLOCKS DSK: 23 ADK: 0 XMU: 0 MASSDPS: 0 SCD: 10
QT: 10 HCT: 0 DT: 0 ET: 0 MT: 0 SMT: 0
IMT: 0 HMT: 0
FORK/EXEC FLAG : 0 STATUS : 0
H/W CHECK: 0
MULTI/SINGLE: SINGLE
COMMAND LINE: jb1 abc
CPU RESIDENT TIME (SEC)
>= 1: 17.89
CPU RESIDENT TIME (MICROSEC)
>= 1: 17891287
PROCESS-ID 00013 JOB-ID 00000 COMMAND NAME: jb2 USER: user2 TTYNAME: ttyp3
GROUP: group2 ACCTCODE: proj2
SESSION ID: 101 RSG ID: 2
START TIME: 03:05:33 END TIME: 03:20:08
REAL(SECS):875.52 CPU(SECS) SYS: 9.35 USER: 0.32
REAL(MICROS):875517492 CPU(MICROS) SYS: 9351786 USER: 321898
DPPGM-ID: 3982
CPU FACTOR: 0.03 HOG FACTOR: 0.01
MEAN SIZE(K): 252.11 MAXMEM SIZE(K): 864.00
KCORE MIN: 40.63
CHARACTER TRANSFRD: 289 BLOCK R/W: 560
TIME SLICE: 200 MEMORY PRIORITY: 20
NICE:20 BASE PRIORITY: 0 EXEC PRIORITY: 63
SWAP COUNTS:0 SWAP SIZE: 0 SWAP TIME: 0
EXECUTE INSTRUCT(K): 4986.44 VECTOR INSTRUCT(K): 0.00 VECTOR ELEMENT(K): 0.00
VEC-EXEC(MICROS): 0 FLOPS: 0.00
MT-OPEN COUNTS: 1
I/O BLOCKS DSK: 5 ADK: 0 XMU: 3 MASSDPS: 0 SCD: 10
QT: 10 HCT: 0 DT: 0 ET: 0 MT: 0 SMT: 0
IMT: 0 HMT: 0
FORK/EXEC FLAG :0 STATUS :2
H/W CHECK: 0
MULTI/SINGLE: SINGLE
COMMAND LINE: jb2 -a -b c xyz
CPU RESIDENT TIME (SEC)
>= 1: 0.30
>= 2: 0.02
CPU RESIDENT TIME (MICROSEC)
>= 1: 300345
>= 2: 20014
|
| Home |
|---|
You can select processes to specify terminal name, user name, user ID, group name, group ID, account code, account ID, process beginning time, process termination time, command name, job ID, HOG FACTOR, CPU FACTOR, number of transferred characters and process ID.
The account utilities generate a daily report that shows the usage of system resources per day. There is a Command Summary that processes accounting summary information in a daily report. With this summary report, you can identify the most heavily used commands and, based on how those commands are used, you can gain insight on how to tune the system. The Command Summary reports the following:
(TOTAL CPU-SEC) / (TOTAL REAL-MIN*60)
| Home |
|---|
| DSK | I/O blocks of normal disk |
| ADK | I/O blocks of array disk |
| XMU | I/O blocks of XMU disk |
| MASSDPS | I/O blocks of MASS Data Processing System |
| SCD | I/O blocks of SCSI DISK |
| QT | I/O blocks of 1/4" CGMT |
| HCT | I/O blocks of 1/2" CGMT |
| DT | I/O blocks of DAT |
| ET | I/O blocks of 8mm CGMT |
| MT | I/O blocks of 1/2" MT |
| SMT | I/O blocks of SCSI TAPE |
| IMT | IMT I/O blocks |
| HMT | HIPPI MT I/O blocks |
| Home |
|---|
The following is a sample of a Command Summary report.
TOTAL COMMAND SUMMARY COMMAND NAME: TOTALS COUNTS: 3285 TOTAL-REAL: 22.18(MIN) MEAN-CPU(SEC): 0.02 TOTAL-CPU(USER/SYS): 0.38(SEC) / 60.51(SEC) TOTAL-KCOREMIN: 354.33 MEAN-SIZE(K): 379.15 HOG-FACTOR: 0.05 SWAP-COUNTS: 0 SWAP-PAGES: 0 SWAP-TIMES: 0.00(SEC) CHARS-TRNSFD: 207675744 BLOCK-R/W: 4472 MT-OPEN: 0 INSTRUCT(K): 67295.28 VECTOR-INSTRUCTS(K): 0.00 VECTOR-ELEMENTS(K): 0.00 VEC-EXEC(SECS): 0.00 FLOPS: 220109.30 I/O BLOCKS DSK: 7136 ADK: 0 XMU: 0 MASSDPS: 0 SCD: 20 QT: 0 HCT: 0 DT: 0 ET: 0 MT: 0 SMT: 0 IMT: 0 HMT: 0 COMMAND NAME: SH COUNTS: 3132 TOTAL-REAL: 16.91(MIN) MEAN-CPU(SEC): 0.02 TOTAL-CPU(USER/SYS): 0.00(SEC) / 51.74(SEC) TOTAL-KCOREMIN: 207.19 MEAN-SIZE(K): 240.29 HOG-FACTOR: 0.05 SWAP-COUNTS: 0 SWAP-PAGES: 0 SWAP-TIMES: 0.00(SEC) CHARS-TRNSFD: 54972 BLOCK-R/W: 2665 MT-OPEN: 0 INSTRUCT(K): 51025.28 VECTOR-INSTRUCTS(K): 0.00 VECTOR-ELEMENTS(K): 0.00 VEC-EXEC(SECS): 0.00 FLOPS: 75792.00 I/O BLOCKS DSK: 1102 ADK: 0 XMU: 0 MASSDPS: 0 SCD: 20 QT: 0 HCT: 0 DT: 0 ET: 0 MT: 0 SMT: 0 IMT: 0 HMT: 0 COMMAND NAME: sadc COUNTS: 77 TOTAL-REAL: 5.21(MIN) MEAN-CPU(SEC): 0.11 TOTAL-CPU(USER/SYS): 0.38(SEC) / 7.97(SEC) TOTAL-KCOREMIN: 145.10 MEAN-SIZE(K): 1042.03 HOG-FACTOR: 0.03 SWAP-COUNTS: 0 SWAP-PAGES: 0 SWAP-TIMES: 0.00(SEC) CHARS-TRNSFD: 207620650 BLOCK-R/W: 1639 MT-OPEN: 0 INSTRUCT(K): 14117.84 VECTOR-INSTRUCTS(K): 0.00 VECTOR-ELEMENTS(K): 0.00 VEC-EXEC(SECS): 0.00 FLOPS: 14758.46 I/O BLOCKS DSK: 1702 ADK: 0 XMU: 0 MASSDPS: 0 SCD: 2 QT: 0 HCT: 0 DT: 0 ET: 0 MT: 0 SMT: 0 IMT: 0 HMT: 0 COMMAND NAME: date COUNTS: 76 TOTAL-REAL: 0.06(MIN) MEAN-CPU(SEC): 0.01 TOTAL-CPU(USER/SYS): 0.00(SEC) / 0.80(SEC) TOTAL-KCOREMIN: 2.04 MEAN-SIZE(K): 152.80 HOG-FACTOR: 0.22 SWAP-COUNTS: 0 SWAP-PAGES: 0 SWAP-TIMES: 0.00(SEC) CHARS-TRNSFD: 228 BLOCK-R/W: 168 MT-OPEN: 0 INSTRUCT(K): 2152.16 VECTOR-INSTRUCTS(K): 0.00 VECTOR-ELEMENTS(K): 0.00 VEC-EXEC(SECS): 0.00 FLOPS: 3268.00 I/O BLOCKS DSK: 1090 ADK: 0 XMU: 0 MASSDPS: 0 SCD: 0 QT: 0 HCT: 0 DT: 0 ET: 0 MT: 0 SMT: 0 IMT: 0 HMT: 0 |
| Home |
|---|
The data based on job accounting is generated by NQS. acctjob(1M), supported in accounting utilities, represents a report listed by job information generated by NQS. The items output from acctjob are as follows:
| Home |
|---|
If processing accounting is enabled, you can output the following items.
| Home |
|---|
A Job Summary report is included as the job account summary information per queue in the daily report. The following information is reported:
| Home |
|---|
The following is an example of an acctjob command.
JOB-ID: 00017 REQUEST NAME: go_p1
REQUEST ID: 1470.fasx3
USER NAME: sakon HOST NAME: fasx3
ACCTCODE: A
QUEUE NAME: sw5m
NICE: 0 BASE PRIORITY: 60 TIME SLICE: 5000
INQUE PRIORITY: 31
REQUEST TIME: Oct 1 10:19:13
START TIME: Oct 1 10:19:13
END TIME: Oct 1 10:19:30
WAIT TIME: 0 (seconds)
EXIT STATUS: Normal termination [0]
H/W CHECK: 1
TOTAL
SYS CPU TIME(SECS): 0.70 USER CPU TIME(SECS): 30.28
SYS CPU TIME(MICROS): 696087.00 USER CPU TIME(MICROS): 30280922.00
REAL TIME(SECS): 17.29
REAL TIME(MICROS): 17291356.00
KCORE MIN: 13069.14 MEAN SIZE: 25372.86
MAXMEM SIZE(K): 51232
CHARACTER TRANSFRD: 1982583 BLOCK R/W: 932
EXECUTE INSTRUCT: 307302247 VECTOR INSTRUCT: 81534668
VECTOR ELEMENT: 11500286881
VEC-EXEC(SECS): 5.01 VEC-EXEC(MICROS): 5009451 FLOPS: 152042831.34
FPEC: 4601787478 CMCC(MICROS): 3711202 BCCC(MICROS): 2025
MT-OPEN COUNTS: 0
I/O BLOCKS DSK: 0 ADK: 0 XMU: 0 MASSDPS: 0 SCD: 10
QT: 0 HCT: 0 DT: 0 ET: 0 MT: 0 SMT: 0
IMT: 0 HMT: 0
NUMBER OF PROC: 3
MAX NPROC: 2
MULTI/SINGLE: MULTITASK
|
| Home |
|---|
In SUPER-UX, session connect information is provided by the init, login, and remote login daemons that write login/logoff data into the /var/sx/adm/wtmp[x] file. System reboot, shutdown, date change, run level, and accounting information are also written into the /var/sx/adm/wtmp[x] file.
Accounting utilities look over the /var/sx/adm/wtmp[x] file and create a report line in the Daily Report (see the example that follows). First, the frequency of system reboots and other events cycle until the time current accounting report is generated. Next, it reports the line utilization.
Line utilization reports the following items:
The following is an example of a daily report.
| Home |
|---|
Feb 23 02:14 1991 DAILY REPORT FOR SUPER-UX Page 1 from Wed Feb 20 20:58:34 1991 to Sat Feb 23 02:14:09 1991 31 run-level 0 12 acctg off 30 run-level S 18 system boot 10 run-level 2 1 runacct 1 acctcon1 TOTAL DURATION IS 168 MINUTES LINE MINUTES PERCENT # SESS #ON #OFF pts/0 158 94 1 1 1 pts/1 159 95 1 1 1 pts/2 156 93 3 3 7 pts/3 155 92 3 3 5 pts/4 157 93 2 2 3 pts/5 151 90 3 3 6 pts/6 153 91 1 1 1 pts/7 153 91 1 1 1 pts/8 143 85 2 2 3 pts/9 147 88 2 2 3 pts/10 144 86 1 1 1 pts/11 135 80 2 2 3 pts/12 136 81 1 1 1 pts/13 132 79 2 2 3 pts/14 131 78 1 1 1 pts/15 129 77 1 1 1 pts/16 119 71 4 4 9 pts/17 125 75 1 1 1 pts/18 126 75 1 1 1 pts/19 126 75 1 1 1 pts/20 125 74 1 1 1 pts/21 123 74 2 2 3 pts/22 124 74 1 1 1 pts/23 121 72 1 1 1 pts/24 95 57 6 6 12 pts/25 120 72 1 1 1 TOTALS 3544 -- 46 46 72 |
| Home |
|---|
Disk accounting counts the number of disk blocks used by your files. With this data, you can monitor disk usage and see how file system maintenance is being used.
Disk accounting reports the number of used blocks per user and optionally per group in every file system. The contents are as follows:
Using file transfer accounting, you can observe the following data file transfer activity.
This data is written into the file transfer accounting file (see nwacct(4)) by the file transfer command (ftp, ftpd, rcp).
The contents of the file transfer accounting file may be examined using the acctnet(1) command. The acctnet command reads the file transfer accounting file and then shows the following items.
| Home |
|---|
| Home |
|---|
| Contents | Previous Chapter | Next Chapter | Index |