summaryrefslogtreecommitdiff
path: root/static/v10/man2/vtimes.2
blob: 5fc5a48fc904a76229db197fd865fff5eba95212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.TH VTIMES 2
.CT 2 time_man
.SH NAME
vtimes \- get usage of time, space, and paging resources
.SH SYNOPSIS
.B #include <sys/vtimes.h>
.PP
.B vtimes(par_vm, ch_vm)
.br
.B struct vtimes *par_vm, *ch_vm;
.SH DESCRIPTION
.I Vtimes
places accounting information for the current process in the
area pointed to by
.I par_vm
and for its terminated children in the
area pointed to by
.I ch_vm.
If either pointer
is 0, the corresponding information is omitted.
.PP
After the call, each area contains information in the form
.PP
.EX
.ta \w'struct 'u +\w'unsigned 'u +\w'vm_utime;  'u
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 */
};
.EE
.PP
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.
.PP
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.
.SH SEE ALSO
.IR time (2),
.IR exit (2)