1828073 Members
2734 Online
109974 Solutions
New Discussion

IO Count

 
Denis Michaud
Occasional Advisor

IO Count

How can I get io count and bytes count after a backup operation on a tape device ?

Thanks

6 REPLIES 6
Garry Fruth
Trusted Contributor

Re: IO Count

You can get the IO count to the tape drive by doing "SHOW DEVICE/FUL tape" both before and after and computing the difference. If you want to see how many IOs the process did, and assuming you are using the BACKUP command (as opposed to a software package that spawns a sub process), then use "SHOW PROC/ACC" both before and after the command. The IOs to disk may be a bit more difficult, in that disk IOs may be caused by other processes.
Robert Gezelter
Honored Contributor

Re: IO Count

Denis,

You can get the operation count for a device using the F$GETDVI lexical function.

The byte count is somewhat harder. You can get the byte counts for the process, but that will be a crude approximation whose accuracy will depend on the details of file size and other factors including fragmentation.

Possibly, you could do a BACKUP/LIST command and analyze the output (both the blocksize and the number of blocks are part of the output).

I hope that the above is helpful.

- Bob Gezelter, http://www.rlgsc.com
Willem Grooters
Honored Contributor

Re: IO Count

Try the follwoing qualifiers:
/LOG
/JOURNAL [=filename]

SPAWN of a procedure that runs BACKUP, consult ACC/FULL afterwards (limit output with /SINCE=time of start /BEFORE==end of job. /TYPE=SUBPROCESS /USER= you), the output of tyhe job will show info (including somewhat more). You _could_ force SET ACC/IMAGE before and SET ACC/NOIMAGE when done and look for BACKUP.EXE itself

SHOW PROCESS/FULL to get current state, run backup and do the same; calculate

These two are not exact, but the number of IO/s and bytes written by backup will be huge compared to the numbers extra for startup and initialisation.

(Running backup/journal at the moment, will tell results when finished)
Willem Grooters
OpenVMS Developer & System Manager
comarow
Trusted Contributor

Re: IO Count

If you submit the job, the accounting information will tell you the total number of direct and buffered IOs.

If you do it interactively, you will have to search for the accounting record, and it will give you that information.
Antoniov.
Honored Contributor

Re: IO Count

It's a bit hard.
Assuming intactive backup you can store your process counter
$ SH PROC /QUOTA/OUT=myQuotaBefore.log
you can make backup and then review quotas
$ SH PROC /QUOTA/OUT=myQuotaAfter.log
However, counters are either disk either tape worths.

Antonio Vigliotti

Antonio Maria Vigliotti
Denis Michaud
Occasional Advisor

Re: IO Count

thanks