forked from dmonakhov/lmbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlat_syscall.8
70 lines (70 loc) · 1.42 KB
/
lat_syscall.8
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.\" $Id$
.TH LAT_SYSCALL 8 "$Date$" "(c)1994 Larry McVoy" "LMBENCH"
.SH NAME
lat_syscall - time simple entry into the operating system
.SH SYNOPSIS
.B lat_syscall
[
.I "-P <parallelism>"
]
[
.I "-W <warmups>"
]
[
.I "-N <repetitions>"
]
.I "null|read|write|stat|fstat|open"
[
.I file
]
.SH DESCRIPTION
.TP
null
measures how long it takes to do
.IR getppid ().
We chose
.IR getppid ()
because in all UNIX variants we are aware of, it requires a round-trip
to/from kernel space and the actual work required inside the kernel is
small and bounded.
.TP
read
measures how long it takes to read one byte from \f(CB/dev/zero\fP.
Note that some operating systems do not support \f(CB/dev/zero\fP.
.TP
write
times how long it takes to write one byte to \f(CB/dev/null\fP. This
is useful as a lower bound cost on anything that has to interact with
the operating system.
.TP
stat
measures how long it takes to
.IR stat ()
a file whose inode is already cached.
.TP
fstat
measures how long it takes to
.IR fstat ()
an open file whose inode is already cached.
.TP
open
measures how long it takes to
.IR open ()
and then
.IR close()
a file.
.SH OUTPUT
Output format is
.sp
.ft CB
Null syscall: 67 microseconds
.ft
.SH ACKNOWLEDGEMENT
Funding for the development of
this tool was provided by Sun Microsystems Computer Corporation.
.SH "SEE ALSO"
lmbench(8).
.SH "AUTHOR"
Carl Staelin and Larry McVoy
.PP
Comments, suggestions, and bug reports are always welcome.