Manual Page Result
0
Command: vtimes | Section: 2 | Source: UNIX v10 | File: vtimes.2
VTIMES(2) System Calls Manual VTIMES(2)
NAME
vtimes - get usage of time, space, and paging resources
SYNOPSIS
#include <sys/vtimes.h>
vtimes(par_vm, ch_vm)
struct vtimes *par_vm, *ch_vm;
DESCRIPTION
Vtimes places accounting information for the current process in the
area pointed to by par_vm and for its terminated children in the area
pointed to by ch_vm. If either pointer is 0, the corresponding infor-
mation is omitted.
After the call, each area contains information in the form
struct vtimes {
int vm_utime; /* user time */
int vm_stime; /* system time */
/* rss = resident storage size in 512-byte pages */
unsigned vm_idsrss; /* rss time integral, data+stack */
unsigned vm_ixrss; /* rss time integral, text */
int vm_maxrss; /* maximum rss */
int vm_majflt; /* major page faults */
int vm_minflt; /* minor page faults */
int vm_nswap; /* number of swaps */
int vm_inblk; /* block reads */
int vm_oublk; /* block writes */
};
Times are expressed in clock ticks of 1/60 (or 1/50) second. The time
integrals are computed by cumulating the number of 512-byte pages in
use at each clock tick.
A major page fault involves a disk transfer; a minor fault gathers
page-reference information. Block reads and writes are file system
disk transfers; blocks found in the buffer pool are not counted.
SEE ALSO
time(2), exit(2)
VTIMES(2)