The Impact
of Operating
on Memory
System Structure
System Performance
J. Bradley Chen
School of Computer Science
Carnegie Mellon University
5000 Forbes Avenue
Pittsburgh, PA 15213
Brian N. Bershad
Department of Computer Science
and Engineering
University of Washington
Seattle, WA 98195
Abstract
1. Introduction
In this paper we evaluate the memory system behavior of
two distinctly
different
implementations
of the UNIX
operating system: DEC’s Ultrix, a monolithic system, and
Mach 3.0 with CMU’s UNIX server, a microkernel-based
system. In our evaluation we use combined system and
user memory reference traces of thirteen industry-standard
workloads.
We show that the microkernel-based
system
executes substantially
more non-idle system instructions
for an equivalent workload than the monolithic
system.
Furthermore, the average instruction for programs running
on Mach has a higher cost, in terms of memory cycles per
instruction, than on Ultrix. In the context of our traces, we
explore a number of popular assertions about the memory
system behavior of modern operating systems, paying special attention to the effect that Mach’s microkernel
architecture has on system performance. Our results indicate
that many, but not all of the assertions are true, and that a
few, while true, have only negligible impact on real system performance.
system behavior
In this paper we quantitatively
of two different
evaluate
the memory
implementations
of the
UNIX operating system. One system, DEC’S Ultrix, has a
monolithic
structure.
The other, Mach 3.0 with CMU’s
UNIX
server [1, 21], has a microkernel
systems are derived
nearly
identical
from
4.2 BSD
application
structure.
UNIX
programming
Both
and share a
interface,
as
well as large amounts of code. We explore these two
systems within the framework of seven popular assertions
about the memory reference behavior of modern operating
systems. These assertions, listed in Table 1-1, arise from
extrapolated
microbenchmarks
past experiences [16],
[9, 31], and extensive measurements of real systems running
real programs [3, 4, 5, 14, 15, 28, 35, 36].
Our
evaluation
relies on combined
reference
traces generated
tation of the
workloads.
systems
system and user memory
through
running
software
a broad
instrumenselection
of
Previous trace-based studies have focused on variations
in memory
system structure [2, 3,4, 10, 13, 28, 32], mul-
tiprocessors
and
subcomponents
multiprocessor
workloads
of the memory
system [30].
[35, 36],
or
In contrast,
This research was sponsored m part by the Advanced Research Projects
our goal is to explore the impact of operating
system struc-
Agency, Information
Science and Technology Office, ARPA Order Nos.
7330 and 7597, the Avionics Laboratory, Wright Research and Development Center, Aeronautical
Systems Division (AFSC), U, S. Air Force,
Wright-Patterson
AFB, OH 45433-6543
under Contract F33615-90C-1465, and Digital E@upment Corporation
Bershad was partmlly supported by a National Science Foundation Presidential Young Investigator
Award
ture
uniprocessor
memory
follows.
Permission
to
copy
provided
direct
commercial
title
of the
that
copying
specific
without
all or part
otherwise,
of this
are not made
the ACM
and its date
IS by permission
To copy
fee
the copies
advantage,
publication
Machinery.
and/or
that
copyright
appear,
and
of the Association
or to republish,
material
or distributed
/0012
a complete
system. The rest of this paper is structured as
In Section 2 we describe our trace methodology
plementations
Finally,
in the context of the assertions in Table 1-1.
in Section 5 we summarize our results.
is
for
notice
and the
2. Trace
notice
IS given
We measured the behavior of Ultrix and Mach running
the thirteen industry-standard
workloads
described in
Table 2-2. Each program and operating system was in-
for Computing
requires
a fee
permission.
SIGOPS ‘93/12 /93/N. C., USA
@ 1993 ACM o-sg791-632-8/93
of
and present a broad summary of our measurements.
In
Section 3 we discuss the major differences in system behavior and performance between Mach and Ultrix. In Section 4 we evaluate the monolithic
and microkernel
im-
The views and conclusions contained m thm document are those of the
authors and should not be interpreted as representing the ofticlal pohcies,
either expressed or implied, of the of Digital Equipment Corporation or
the U.S. Government.
granted
on the performance
overview
strumented with epoxie [10, 37], which is a program that
rewrites assembly code to record a complete address trace
. ..$5CICI
120
Assertion
Implication
1. The operating system has less instruction
than user programs [14, 15].
and data locality
The operating system isn’t getting faster as fast as user
programs.
2. System execution is more dependent on instruction
cache behavior than is user execution [35].
A balanced cache system for user programs may not be
balanced for the system.
3, Collisions between user and system references lead to
significant performance degradation in the memory
system (cache and TLB) [30, 35, 36].
A split user/system cache could improve performance.
4. Self-interference
is a problem in system instruction
reference streams [28, 35].
Increased cache associativity and/or the use of
text placement tools could improve performance.
5. System block memory operations are responsible
for a large percentage of memory system reference
costs [31 , 35].
Programs that incur many block memory operations
run more slowly than expected.
6. Write buffers are less effective for system (as
opposed to user) reference streams [5, 18].
A write buffer adequate for user code may not be
adequate for system code.
7. Virtual page mapping strategies can have
significant impact on cache performance [25, 29].
Systems should support a flexible page mapping interface,
and should avoid default strategies that are prone to
pathological behavior.
will
Table 1-1: Seven assertions about the memory behavior of operating systems.
of instruction
and memory
references.
both - within
Traces are aca single context and
system
from
across user and system contexts.
Traced addresses are
memory
system is fairly
curately
interleaved
corrected to reflect those of the original
instruction
stream.
both Ultnx
and Mach.
We collected
system, i running
and not the traced
The same traced binaries
properties
are run on
our traces on a DECstation
Ultrix
There are two main reasons for simulating
system server.
Some of the experiments
conventional,
such as an extremely
UNIX
The two operating
Both
operating
operating
call interface,
with
small TLB,
no unusual
virtually
in-
described in this
differ substantially.
consistency
program
all operating
from run to run, the system was rebooted be-
systems
systems implement
although
paper required that we run the same program several times
against different simulated memory systems. To ensure
Ultrix
is a monolithic
on Ultrix
invokes
of the DS5000/200
system
implementations
system code is implemented
running
microkernel
the UNIX
their underlying
through a system call interface.
fore every experiment.
The trace is fed into a simulation
the memory
the- DS5000/200
both run on the DS5000/200,
allowing us to verify our
simulation results against observed system behavior [11 ].
server.2 We ran the programs one at a time in single-user
mode. The only activity was due to the program itself, the
kernel, and in the case of Mach, the user-level
First,
dexed cache, or untagged cache or TLB, that would reduce
the generality of our results. Second, Mach 3.0 and Ultrix
5000/200
and Mach 3.0 with CMU’s
the DS5000/200.
system in which
in the kernel.
the operating
A
system
In contrast, Mach 3.0 is a
that exports and implements
a small number
of orthogonal
abstractions including
interprocess communication (IPC), threads, and virtual memory.
HigherIevel operating system services are implemented in a userlevel process called the UNIX server. A program running
memory system using the parameters shown in Table 2-1.
The simulator consumes user and system traces while they
are generated, and does not write them to non-volatile
storage [1 O].
on Mach 3.0 contacts the UNIX server through the Mach
kernel’s IPC interface [19], together with a user-level
transparent
emulation
library,
which
is a shared library
that is loaded into the address space of every process. The
microkernel reflects UNIX system calls back to the calling
lThe
DECstatlon
5000/200
has a 25 MHz
MIPS R3000
Our machine used CPU version 2.0 implementation
2.0 implementation
3.
‘The version numbers are: Ultnx
CMU UNIX server UX39.
V4.2
program’s
Processor
2, and FPU version
Rev. 96, Mach
emulation
library,
which converts the calls into
RPCS to the UNIX server. (Simple UNIX services such as
getpido
and signal masking are handled within the
emulation library.) Virtual memory in Ultrix is derived
3.0 MK78,
121
Workload
instruction
cache: 64 KB, direct-mapped,
physical,
15 cycle
16 byte line,
miss penalty.
write buffer: six entries, page-mode
writes complete in 1 cycle, non page-mode writes
complete
in 5 cycles; CPU reads have priority
for memory access,but wait for writes that
have already started, 4 KB page size for
sed
The UNIX stream editor run three
times over the same 17K input fde
0.58
057
egrep
The UNIX pattern search program run
three times over a 27K Input file
201
1.90
yacc
The LR( 1) parser-generator
run on an
175
1.82
gc c
The GNU C compiler (gee) translating
a 17K (preprocessed) source tile mto
optimized Sun-3 assembly code.
3.70
420
cempress
Data compression
1.32
132
112.18
98.96
6.23
6.46
5646
54.97
encoding,
wired
buffer:
entries,
Each TLB
entry
56 random/8
on TLB
Deterministic.
page used to back
a given
then uncompressed,
by the virtual
address
space identifier,
strategy
prevents
(cache
size) range
of virtual
function
any 64 KB
addresses,
kernel memory: All kernel text and most
kernel data is in unmapped physical memory.
Table 2-1:
Memory
from the original
machine-dependent.
BSD
abstractions
system which is partitioned
eqntolt
A program that converts boolean
equations to truth tables using a
1390 byte input file
6605
65.85
fPPPP
A program that does quantum
chemistry analysls. This program
is written in Fortran
2520
1678
doduc
Monte-Carlo
22.94
24,56
evolution
simulation
solved in LISP
of the time
of a nuclear reactor
component described by 8K input file,
This program is written in Fortran,
and aginto a
layer [33].
For our cross-system comparisons, the major UNIX
components of Ultrix and CMU’s server are similar but
liv
The Lwermore
tomcatv
A program that generates a
vectonzed mesh. This program is
written
not identical.
Although both systems are derived from the
same code base, they have matured in different environ-
Table 2-2:
ments. We have nevertheless attempted to eliminate obvious superficial differences between the two systems. For
example, both systems are compiled
The 8-queens problem
[6], and is relatively
and a machine-independent
boolean
run on a 30K input fde
lisp
parameters.
Mach uses a more flexible
gressive virtual memory
machine-dependent
system simulation
with
A program that minimizes
espresso
and its
The deterministic
within
Benchmark
gcc. The assembler was not
traced
page is
page number
conflicts
The Andrew
ab
The physical
virtual
using Lempel-Ziv
A 100K file is compressed
miss,
maps a 4 KB page.
page mapping
determined
64 entries,
trap to software
Ultrix
time
11K grammar
writes.
translation
Mach
time
data cache: 64 KB, direct-mapped, physical,
4 byte line, write allocate, 15 cycle read miss
penalty, read miss fetches 16 aligned bytes.
page-mode
Descrlptlon
LQops benchmark
1.24
122
139.42
155,44
in Fortran.
Experimental workloads with execution
times for a DECStation 5000/200.
Execution times (shown in seconds) in this table are for runs
of an untraced binary on an untraced system.
Except where
four
indicated, all programs are written in C. The bottom
workloads
are floating-point
intensive.
None of the programs
have been reordered or tuned for the undedymg
memory
system.
at the same optimiza-
tion level with DEC’s Ultrix compiler from MIPS Computer Systems,3 and both systems use a large file buffer
cache (12 MB).
large physical memory so that pageouts do not occur.
2.1. Sources
We
contain TLB effects by simulating
rather than tracing
those TLB misses that could be affected by memory dilation.
On the DECstation,
there are two kinds of TLB
address
(iYTLB
misses. A TLB miss on a user virtual
miss) is handled by a lightweight
miss handler.
This
routine is not traced, but is simulated using references
of distortion
A traced program is both larger (about a factor of two)
and slower (about a factor of 15) than its untraced countercan increase
part. The first effect, called memory dilation,
paging and TLB miss rates. We avoid perturbations due
to paging by collecting our traces on a machine with a
from the traces. A TLB miss to mapped kernel memory
miss) is handled by a more general TLB miss
(KTLB
handler.
The optlmizations
levels are those
3The compder M Version 21
provided by the standard system makefiles (-02), although some Ultrix
device drivers are compded without optimization.
KTLB
The KTLB
page-table
122
miss routine
is traced, but the only
misses that could be affected by tracing are those to
pages.
Each page-table
page, though,
maps a
four megabyte text segment, which is large enough to con-
Memory
tain even our largest traced program,
We
cycles
causes activity
The second effect, called time dilation,
dependent on external events to appear to complete faster
than in an uninstrumented
system. To counter this, we
have configured
standard rate.
the system clock to interrupt
at l/15th
the
We have not modified
either system’s I/O
behavior to account for time dilation,
as this would require
subtle system changes that might
themselves
introduce
other distortions.
Instead, we separate the instruction
and
idle references.
erence stream into non-idle
references, which occur during 1/0 operations
ref-
Idle
as part of a
system’s idle loop in a uniprogrammed
environment,
multiplied by the system code’s expansion factor.
addresses, yet the ac-
An address trace contains virtual
tual and simulated
cache are indexed
dresses. A third source of distortion
simulator’s
model
mapping strategy,
of the virtual
The Ultrix
are
by physical
ad-
is therefore due to the
memory
system’s
page
mapping strategy, similar to
the one described in Table 2-1, is deterministic,
In contrast, Mach’s strategy is random (a virtual page is bound to
the first free physical page on the free list), This difference
can have a measurable impact on system behavior (We
isolate the effects of the page-mapping strategies in a later
section.)
strategy
Our simulator uses the deterministic
mapping
described in Table 2-1, which improves the
repeatability
of simulation
of variability
between the two systems.
results, and eliminates
a source
cycles per instruction
use our
per
simulation
instruction
A summary
and summary
of results
system behavior is confined
is
to the kernel.
Other components
of C’PZ, such as one cycle per instruc-
tion for instruction
execution,
divide,
point operations,
and floating
by the compiler
Ultrix
server in forcing
is more conservative
than Mach’s
meta-data updates to disk,
leading
to unnecessary
disk
we have excluded
culations.
UNIX
that rely heavily
on UNIX
activity
As mentioned,
from our A4CPI cal-
The idle loop rarely misses in the cache, so a
system could achieve an artificially
ing an arbitrarily
The MCPI
low kfCPI
by execut-
large number of idle instructions.
for
each
workload
under
Ultrix
and
Mach
is
shown in Figure 2-1. Each bar is shaded to denote different A4CPI components, with the system and user contributions separated by a vertical bar. The figure shows
that data and instruction cache misses in user and system
mode are only partially responsible for the total A4CPI.
Other components include CPU write-stalls and kernel un-
penalty from writes to a full write
as well as reads that stall pending
the completion
of a five-cycle write.
A system uncached memory read
occurs when the kernel accesses memory through the uncached segment [24] such as for 1/0 or device control,
of the various programs
reflect
due to their greater reliance on the operating
small input file, has a large program
text and requires
more system
tomcatv)
On the
while
run on a relatively
loading.
The
scientific
are dominated
activity
workloads
during
~pppp,
by user activity,
liv,
program
doduc,
as shown by their
small system MCPZ component.
average, we saw about 1.4 times more 1/0 requests for
workloads under Ultrix than for Mach. Because this difference in 1/0 behavior is orthogonal to the issue of kernel
architecture, we exclude idle references from our remaining discussion.
For workloads
speed continue.
idle-loop
system, especially the file system. The gcc compiler,
Additionally,
accesses.
multiply,
for load and branch delays, remain rela-
in processor and memory
components
programs under Mach are demand-paged, whereas under
Ultrix they are loaded entirely at program startup, sometimes
during
and no-ops inserted
their internal behavior.
The programs seal, egrep, yacc,
all have relatively high system MCPI
gee, and compress
library.
For a given workload, Ultrix issues more disk requests
than Mach, resulting in greater idle instruction counts and
delays.
interlocks
tively constant even as processor cycle time decreases, In
contrast, kfCPI is a function of the ratio of memory speed
to processor speed, is less dependent on processor architecture, and will dominate overall CPI if current trends
The A4CPI components
For Mach, system behavior includes the kernel, the UNIX
server, and the emulation
of
cached memory reads. CPU write-stalls are reflected in
component, which shows the
Figure 2-1 in the wbuffer
shown in Table 2-3, with aggregate results shown in Table
2-4. For Ultrix,
memory
is the number
components of cycles per instruction
(CF’Z), which is a
metric commonly used to evaluate computer systems [22].
buffer,
of the trace results for each program
to calculate
which
CPU stall cycles due to the memory system divided by the
number of instructions executed, MCPI is one of several
average per-instruction
2.2. Workloads
results
(MCPZ),
The counts from Table 2-3 along with the A4CPIS from
Figure 2-1 can be used to estimate actual run times for
Ultrix, which uses a page mapping strategy similar to the
simulator’s.
The cycle count, ignoring arithmetic interlocks, can be approximated
services, the
idle
combined Mach system components (microkernel,
UNIX
server, and emulation library) execute more instructions
and generally require more data references than Ultrix.
cycle
count.
Assuming
by the idle cycle count
an idle loop
cycle count is then equal to the sum of
struction count multiplied
by (1 + MCPf)
123
~ non-
CPI of 1, the
the
non-idle
in-
and the idle in-
idle
instructions
non-idle
instructions
Ultrix
%s
Mach
5704
sed
egrep
43277
yacc
32799
gcc
29318
16896
compress
ab
869732
espresso
135385
lisp 1288027
eqntott
1414369
fpppp
265457
doduc
321325
liv
23008
[ tomcatv 2005703
24
7763
45029
34539
35939
19926
1198172
137806
1276619
1417868
262998
325351
23778
2005590
4
6
22
19
33
2
3
1
8
1
3
1
%s
Ultrix
Mach
5876
44
2495
7
13220
10
63684
36
5555
31
51 689324
4 21601
1005
2
1 10632
17102
7
18474
2
1585
6
1 10823
1270
sed+U
+M
Ultrix
51
43
914
2809
69
27027
485
2225
70
247969
15612
8069
187
0
222
0
126
5667
4135
4983
6239
639
134
Table 2-3:
This table shows the number
operating systems. Additionally,
data cache
reads
instruction
cache misses
21
138
%s
Mach
9’os Ultrix
70s
Mach
YOS Ultrix
96
93
149
140
98
98
1515
17
2015
38
89
42
96
52
45
61
88
21
5
166
999
215
28619
344
2004
254
3735
6292
72
326
96
71
97
73
70
54
97
19
7
98
84
8965
6893
8257
4778
223588
32034
468287
296691
139172
122009
7968
967474
3
6
12
12
26
2
2
1
2
0
2
0
9425
7283
9941
5452
295572
32652
467668
297901
139036
123020
8176
968074
93
82
Summary oftrace
%s
Mach
16
97
70
%s
98
32
8
48
11
120
27
166
23
6658
44
93
3
655
2
1 14328
131
2
550
1
17
4
0 85451
91
50
44
28
79
32
45
3
27
9
88
0
71
93
318
271
11262
168
734
14489
177
612
30
85522
97
71
71
50
86
58
68
4
47
21
96
0
program
.-
on both
results.
of non-idle memory system events, andtheuercentage
thetable
gives thenumber
ofidleinstrttctions
executed,
L--
data cache
read misses
duetosystem
behavior foreach
All counts are in thousands.
0.227
0.495
eww+u
+M
yacc+U
+M
0.129
gcc+u
+M
0.690
compress+U
+M
,
,
ab+U
+M [
0.534
,
0.041
0.068
espresso+U
+M * .,
0.015
0.038
lisp+U
+M b
eqntott+U
+M
fpppp+u e~’$#o.2:$62
+M
doduc+U
+M
liv+U
+M
r
1
E
-Es
I
0.117
0.674
0.675
tomcatv+U
+M
Figure
Thetophorizontal
tosystem
activity,
2-1:
Baseline
MCPIfor
Ultrix
and
Mach.
barofeach
pair is for U1trix(+U),
andthebottom
is for Mach (+ M). Components
totheleft
of thevertical
line are due
andthose
totheright
medueto
user activity.
Thenumber
attheright
ofeachbar
isthe MCPIfor
that workload.
strttction count. As an example, consider gcc with a cycle
x
(1
+ 0.434))
+ (63684000)
=
count of (29318000
105726012.
Dividing the cycle count by the clock speed
(25 MHz), we compute a runtime of 4.22 seconds, which
is close to the actual runtime (Table 2-2) of 4.20 seconds.
Using A4CPI to compute execution times for the Mach
workloads
is less accurate as Mach’s page mapping
strategy is non-deterministic.
3. Comparative
system
behavior
As shown in the previous section, the most significant
difference between Mach and Ultrix is the number and
cost of non-idle instructions required to run an application.
In this section we discuss the influence that major system
components have on system performance.
In Figure 3-1 we separate system overheads into 11
major components, and compare Ultrix and Mach in terms
of these components.
124
The components
are:
trap
(system
I
I
wbuffer
cycles
system is better or worse than the other,
0.07
0.07
043
008
0.08
023
0.29
0.02
0.02
0.05
007
virtual
057
000
0.00
0.00
0.01
which
are the average
call
and exception
handling),
KTLB
(kernel
miss),
virtual
virtual
memory),
memory),
TLB
Block
(the remaining
zeroes), UNIX service
microkernel,
UNIX
including
server),
and portability
(user TLB
under Mach,
For Ultrix,
category
providing
miss),
category.
interfaces.
The UNIX service
UNIX service
component
under Mach.
This
and schedul-
UNIX
tem memory cycles per system instruction).4
The first ten
categories reflect relative overheads in terms of non-idle
references.
IPC,
UNIX
from
for
(Microkernel,
occur only in Mach.
operations
overhead
Block
both the Mach
signal state to support garbage collection,
and sig-
small portion
system
Emulator,
of overall
The number at the top of each bar is system cycles as a
The Ultrix instruction counts
will
[7],
4. Seven assertions
assertions
where system activity
for example),
(doduc,
tribution
is minor.
to performance
Several
characteristics
of system behavior
In this section we evaluate
overall
have a limited
the strength
in the introduction.
of the seven
Our basic
is small
strategy is to address each assertion in the context of our
traces. In several cases we present the results of additional
are worth
simulations
in which
determine
the sensitivity
we vary
the base architecture
of system performance
to
to the
assertion in question.
is from one to three times greater for Mach
than for Ultrix.
often small
enumerated
This suggests
system con-
noting from Figure 3-1. First, memory penalty for system
instructions
trans-
focusing exclusively
on
considering other sources
such as MCPI,
have been normalized
to one for all workloads.
The
heights of the bars reflect system, but not total execution,
For workloads
Mach’s
system overhead.
impact on overall system performance
percentage of total cycles.
overheads.
within
library.
of system overhead
and the
Server.
relative to total activity
from
that microkernel
optimizations
IPC [8, 18, 20, 26, 34], without
Ops for Mach
kernel
none
modifies
Lastly, Figure 3-1 shows that the overhead of Mach’s
IPC, in terms of instructions executed, is responsible for a
The last category, S-MCPI,
system
Four of the activities
VM-mi)
includes
executed.
but almost
frequently
parent emulation
memory
in-
Mach’s
transparent
has a relative] y high
under Ultrix,
library),
(sys-
in
lisp
is because lisp
(Mach’s
relative
service category
category also includes some
services that are implemented
emulation library. For example,
nal state can be manipulated
system instructions
instruction
is larger than that
On the other hand, the Microkernel
message system), Emulator
reflects
more
indicates that there is a measurable cost for
those services through a separate set of kernel
(Mach’s
and S-MCPI
which
the UNIX
ing), IPC (the Mach kernel’s
transparent emulation
is the relative
service in Ultrix,
routines in the Ultrix
device management
since Mach’s
substantially
than Ultrix’s.
cost of UNIX
Microkernel
(machine-dependent
Microkernel
provides
cludes many machine-dependent
services such as device
management
that are counted
as part of Mach’s
(Mach’s machine independent
Ops (block memory moves and
VM-mi
and Mach
UTLB
interface
A third point of comparison
over all the workloads,
VM-md
memory
functionality
characterize
system execution
(non-idle
system cycles / nonidle system instructions)
vs. user execution
(user cycles / user
instructions).
As such, they do not reflect the impact of system
execution on overall performance.
kernel
not be taken to mean that one
tlb
cycles
Summary penalty cycles (per instruction).
These figures,
should
d-cache
cycles
Ultrix
user
Mach user
Ultrix system
Mach system
Table 2-4:
This comparison
I i-cache
cycles
The difference
(Figure
system performance
of system instructions
in the system MCPI, while
2-1 ), can contribute
substantially
4.1.
to
System
and
user locality
As cache behavior is an indication
because of the large number
executed.
of locality,
Table 2-3
supports the first assertion: the operating
system
has less
instruction
programs.
The
and
data
locality
than
user
Second, Mach’s virtual memory system executes more
instructions than the one implemented in Ultrix, which has
system can contribute
been flattened into a single machine-dependent
layer.
Mach has an additional machine-independent
layer that is
more costly than either systems’ machine-dependent layer.
contribution
is less than 10%, Given this, a disproportionately large number of instruction cache misses are due
up to 51910 of non-idle
instruction
cache references, but in most cases (17 of 26) the system
to the system (greater than 70%
workload/system pairs).
for two-thirds
of the
In terms of data references, the system contributes a
larger percentage of misses than references, again supporting the assertion that the system’s data locality is worse
4S-MCPI IS computed as the system cycles / ~y.rtem m.wucnons,
and
differs from MCPI due to the system in that It includes only system
instructions.
125
tl
S-MCPI
■ Emulator
❑ IPC
❑ Microkemel
❑ UNIX service
❑ Block Ops
❑ VM-mi
❑ VM-md
❑ KTLB
❑ UTLB
❑ Trap
Figure
3-1:
Relative system overheads forprograms
running on Ultrix
and Mach.
This fi~ure shows the relative system instruction
and system memory overheads for programs running on Ultrix (+U) and Mach (+M).
Ultrixin&ruction
counts arenorrnalized
to one. Thetopcomponent
ofeachbar
refle&s ~hesystem MCF’1, which isanaggregate
of the
klCPI for the instruction components. The number at the top of each bar is the percentage of total (instruction and memory) cycles that are
due to the system.
For programs where thesystem
isresponsible
forasmall
percentage of total cycles, system overheads are relatively
unimportant.
five of the
Even so, in only
than the user’s.
workloadlsystem
combinations does the system contribute
cache behavior between Ultrix and Mach is small.
As
Mach incurs a larger number of cache misses than Ultrix,
more than 90% of data misses, and only twelve if the
threshold is lowered to 50%. Although the system’s contribution
of instruction
and data references are com-
and as nearly every additional cache miss is due to the
system, the percentage of misses due to the system is
larger.
parable,
the
references
Mach
locality
percentage
miss
more
and Ultrix.
of
often
From
misses
than
this,
is
Instruction
not.
data references
we conclude
is worse than data locality
during
for
both
The percentage of instruction
is generally
larger
under
locality
Percentages are useful for comparing system and user
behavior, but thev cloud overall performance effects. For
cache misses for
example, although 97% of instruction
and data misses due to the
Mach
instruction
4.2.
sys{em execu-
tion.
system
System
that instruction
than Ultrix.
2-1 and Table 2-4 together show that the difference
eqntott
Figure
in user
126
under Mach are due to the system, the system in-
4.3.
struction cache miss rate is insignificant.5)
A better indicator
of the performance
is the cache’s contribution
bine our baseline
penalties
data from
for the simulated
MCPI
contributions
MCPI
due
dominates
to
from
impact of locality
Table 2-3 with
Ultrix
cache miss
memory
system to yield
the
the cache.
The component
of
system
Furthermore,
dominates
the majority
the user
on Mach
and
system
in Mach suggests that user
may run more
slowly
due to increased cache competition.
by “system”
kernel, the UNIX
64 KB
than on
To evahtate
against a simulated
that had independent
caches. Again,
instruction
cache references
that due to the user in 20 of 26 cases. In con-
cases.
between
this, we ran the workloads
system
trast, the system data cache component
thirteen
code running
In Table 4-1 we com-
to MCPI.
Competition
The increased cache activity
system
memory
and user
for Mach, we mean the Mach
server, and the emulator.
in only
of system (as
opposed to user) cache penalties is due to poor instruction
cache behavior; only five runs show greater penalties for
data than instructions, and in these runs the system’s contribution to MCPZ is small.
This behavior supports the
second assertion: system
instruction
However,
cache
execution
behavior
is more
than
many of the programs
is
dependent
user
on
execution.
in our workload
have
small working sets that fit entirely in the instruction
Larger programs such as gee, which do not fit
cache.
in the
cache, can have instruction
cache penalties that rival that
of the system.
workload
se d
egrep
yacc
gcc
compress
ab
espresso
lisp
eqntott
fpppp
doduc
liv
tomcatv
instruction
cache
Ultrix
.
.
Mach
0:1;9
Y
O~2;3 ;~O;
::5
data cache
U ltrix
Mach
Y
0:1;2
Y
0:0:1::1
0.0140.001 0.0460.001 0.0100.000
:s:3
0.0230.000
0.0690.003
0.0290.012
0.0110.011
0.103 0.145 0.2940.123 0.0270.034 0.0940.039
0.0600.002 0.1570.005 0.042 0.106 0.101 0,102
0.1390.130 0.2610.098 0.0910.024 0.1210.020
0.009 0.012 0.0260.011 0.003 0.007 0.0110.008
0.0020.001 0.0130.011 0.003 0.004 0.0060.003
0.0010.000 0.0030.000 0,005 0,147 0.0060,147
0.0500.184 0.0400.173 0.002 0.005 0.005 0.005
0.014 0.277 0,020 0.270 0.002 0.023 0.006 0,022
0.0130.000 0.0450.000 0.0100.001 0.0180.000
0.0000.000 0.0020.000 0.005 0.634 0,005 0.634
0.0280.004
Table 4-1: MCPI contributions
Without comoethion
legend:[
Figure
Table 4-1 quantifies
from the cache.
the difference
in MCPI
between
that was represented
visually
in Figure
5The system ins~ction
1417868
Similarly,
the user instruction
X
0.01
user
interference.
represent the fraction
of misses
competition
is eliminated.
that remain
The effects of user/system
competition
Figure 4-1.
fraction
of
caches. The
when
user/system
on instruction
for both systems are shown in
Each instruction
misses
that
two
rightmost
and data bar has four com-
remain
ditional fraction of system
when the cache is unified.
with
the
components
independent
show
the ad-
and user misses that occur
Although our separate user and system caches double
the effective cache size, the general dominance of the two
leftmost
with data
components
not significantly
from Table 2-3 as the number of system instruction
cache misses /
number of system instruction cache references, For example, for eqntott:
254 X 0.97
comtretition
ponents. The two leftmost components correspond to the
case of separate system and user caches, and represent the
to MCPZ.
cache miss rates can be calculated
With
system
4-1: User/system
and data cache behavior
2-1. Memory penalties due to system instruction and system data references are larger for Mach than for Ultrix,
while user memory penalties are similar.
Increased system activity in Mach, as is shown in Figure 3-1, results in
a larger cache contribution
‘“
For each workloadk.ystem pair, this figure shows interference
effects for instruction and data references for each program
under Ultrix (+U) and Mach (+M), Each bar is composed of
four regions. The two rightmost regions represent the fraction
of missesthat are due to competition. The two leftmost regions
pair, this table shows the MCPI
For each workload/system
component
due to the instruction
and data caches.
Runs for
which the system contribution
to 14CPl dominates
that of the
user are shown in boldface.
Mach and Ultrix
Uti
‘“”UW
system
in Figure 4-1 indicates
that they do
reduce miss rates relative
to a smaller
unified cache. The largest interference effects (for example, lisp) occur when the cache miss rate is low, such
that a few interference misses can result in a large relative
change. The absolute contribution
of competition misses
= 0.017
cache miss rate is nearly zero (0.0005%),
127
to A4CPI is shown in Table 4-2.
the third
assertion,
references
lead
the memory
system,
collisions
to significant
These points imply
between
user
performance
and
that
lier research has shown that this structure can cause a significant
system
degradation
increase in TLB
firms this, showing
in
is not tme for these workloads.
activity
[5, 30]. Table 4-3 con-
an order of magnitude
number of system TLB
references
increase in the
for Mach when com-
pared to Ultrix.
Ultrix
-
Mach
In terms of MCPZ, though, the absolute contribution
workload
inst
data
total
m St
data
total
se d
egrep
yacc
gcc
compress
0.010
-0.006
0.004
FO09
0.004
0.013
0.003
0.005
0.050
0.004
0.038
0.005
0.002
0.000
0.072
0.023
0.001
0.000
0.000
0.002
0.007
0.018
0.006
0.002
0,006
0.004
0.002
0.002
0.004
0.005
0.003
0.007
0.057
0.022
0.044
0.007
0.008
0.005
0.074
0.025
0.005
0.006
0.002
0.004
0.047
0.010
0,029
0,004
0.022
0.000
0.047
0.016
0.000
Q,000
0,002
0.005
0.018
0.034
0.000
0.004
0.004
0.005
0.002
0.002
0.001
0.005
0.004
0.009
0.065
0.044
0.029
0.008
0,026
0,005
0.049
0.018
0.002
0.006
ab
espresso
lisp
eqntott
fpppp
doduc
liv
tomcatv
Table 4-2:
system TLB misses to performance
of
is generally
not large,
shown by the last four columns
of Table 4-3.
Moreover,
high TLB MCPI
of poor locality,
which is
in more severe cache penalties.
Even in
also reflected
is an indication
runs with the most extreme
consistently
dominated
both Ultrix
and Mach.
behavior,
TLB
by cache penalties
System self-interference
Self-interference
occurs when
penalties
are
(Table 4-1) for
4.4.
MCPI contributions from
cache competition.
insufficient
cache
as-
sociativity results in cache misses. The impact of selfinterference
in user-code is well-understood
[23].
To
This table shows 14CP1contributions
from additional
system
misses occurring
when cache competition
with user references
is present. Tbe negative
value for sed running
on Ultrix
is
because user references
can actually
reduce the number
of
system misses due to data that is shared between the user and
evahtate the impact of system self-interference,
we simulated a two-way LRU set associative cache of the same
size as our direct-mapped
tion,
system.
user references
cache.
As in the previous
are isolated
from
sec-
the system-only
cache, although they continue to generate TLB misses and
Voluntary
context
subsequent system activity.
switches
In a client-server system such as Mach, voluntary context switches can occur every time the client and server
associativity
on instruction
interact through
bar, the light
region
IPC. For the workloads
cache miss penalty following
not significant.6
a voluntary
we consider, the
context switch is
cache miss rates are generally
text switch is amortized
This representation
the cache after a conare
tion
eliminates
a significant
on competition
effective
for instruction
the penalty
However,
clearly depends on the
Recent studies of the
client-server system in question.
X11 window server, for example, have shown that larger
programs
from
competition
and more frequent
voluntary
context
variations
in the relative
The number
in system
instruction
fraction
of misses, and is more
se~-interference
reference
is high.
TLB behavior
streams.
has the largest relative
A high MCP1
COIIteXt
from
when
implies that the cache is full, which
that cannot
be helped
by
increased
as-
where kfCPI is relatively low. Associativity
is generally
less beneficial for Mach than for Ultrix because applications on Mach tend to have a higher MCPI.
from vohmtary
impact
sociativity.
For example, seal, egrep, and liv have high
MCPIS,
but gain relatively little from associativity.
In
contrast, associativity helps most with lisp and tomcatv,
The Ultrix
kernel binary runs in unmapped kernel
memory, largely isolating it from the TLB.
In contrast,
only Mach’s microkernel component runs unmapped; the
UNIX server and emulator run in mapped memory.
Ear-
between competition
This conis a problem
MCPI is low, and the smallest relative impact when MCPI
is a situation
~We distinguish
direct-mapped
than data references.
assertion:
Self-interference
switches
a system-only
Figure 4-2 shows that the increased associativity
firms the fourth
create more severe penalties [12].
as occurs in a client-server
system, and competition
context switches, as occurs in a multitasking workload.
while the dark
by associativity.
between workloads.
of cache misses for
cache.
systems [28].
eliminated
In each
of system
at the left side of each bar is the absolute A4CP1 contribu-
already poor, limiting
the impact of interleaved
user
references. This behavior is consistent with earlier results
in client-server
the fraction
does not eliminate,
emphasizes
benefit of associativity
over a large number of instrucand data locality
and data miss rates.
region represents that fraction
low but data cache miss
On the server side, instruction
the effect of the increased system
represents
misses that associativity
On the client side, where the instruction
rates are high, the cost of reloading
tions.
Figure 4-2 illustrates
swhdv=,
involuntary
128
1 LB refs
workload
user
se d
egrep
yacc
gcc
5596
50399
37460
30093
compress
ab
espresso
17892
755092
164313
1706833
1690678
380307
438563
30123
2949614
lisp
eqn tort
fpppp
doduc
Iiv
tomcatv
Ultrix
Mach
423
546
571
1582
1079
1116
1323
2951
2085
195492
1281
986
90958
660
12974
3579
3632
899
232
4480
26783
3697
1169
2162
417
2684
U-user
0.09
0.07
0.25
32.33
82.58
1148,79
0.86
0.10
692.01
4,72
16.78
0.03
317.34
UTLB
M-user
0.49
0.39
1.26
35.87
82.06
1208.04
2.64
12.69
692,57
13,54
30,53
0.11
321.79
KTLB
misses
U Itrix
Mach
441
472
359
1521
712
95058
452
376
1321
366
402
197
1608
2132
1847
2280
3305
3982
578598
3111
8063
9760
2273
5811
701
8135
isses
Ultrix
O.O6
0,10
Table 4-3:
Mach
6.67
0.10
6.41
7,89
17.87
0.12
12.83
10.24
1457.98
0,05
7.67
15.68
24.03
0.04
0.04
0,11
0.34
0.04
0.04
0,14
TLB
9.02
18.26
2.62
25.69
UTLB
Ultrix
0.000
0.000
0,000
0.000
0.000
0.000
0.000
0.000
0,000
0.000
0.000
0.000
0.000
MCPI
Mach
0,021
0.003
0.003
0.016
0.012
0.030
0.001
0,000
0.000
0.000
0.000
0.003
0.000
KTLB
MCPI
Ukrix
Mach
0.011
0.002
0.063
0.009
0.003
0.015
0.006
0.005
0,022
0.045
0.014
0.000
0.000
0.108
0.005
0.002
0.000
0.002
0.003
0,005
0.007
0,001
0.000
0.000
0,001
0.000
activity.
This table shows TLBreferences(x
1000), UTLBmisses(x
1000), KTLBmisses(x
l), UTLBMCPl,
and KTLBMCFIfor
systemrmd
user across the various workloads.
The number of user UTLB references is the same for both svstems. as the same user code is executed.
UTLBmiss
counts depend oncompetition
from thesystenl,
sothetable
shows sepwate numbers ;or Ultrix and Mach.
KTLBmisses
do not
occur in user code.
high relative penalty for block operations because program
loading overheads dominate
measurements,
block
memory
centage
of
we conclude
operations
memory
most important
its cache behavior.
From the
that assertion
system
are responsible
system
reference
4.5.
Block
Operating
direct-mapped
Mach
%total
MCPI
%total
se d
egrep
yacc
gcc
compress
ab
espresso
lisp
0,066
0.014
0,017
0.116
0.055
0.100
0.009
0.000
0.000
0.003
0.003
0.008
0.000
29.2
39.3
25.6
26.8
22.1
23.4
21.3
0.3
0.4
1.2
0.9
7.1
0.0
0.131
26.6
0.017
0.027
0.159
0.071
0.057
0.013
0.000
0.001
0.005
0.006
0.013
0.000
20,9
20.9
23.0
17.0
10,7
19.9
0.0
0.6
2.2
1.9
7.9
0.0
MCPI from block memory operations.
In terms of MCPI,
Table 4-4 shows that block operations incur a larger absolute overhead for programs running on Mach than on Ultrix.
cache.
Table 4-5 shows that Mach
generally references more data than Ultrix in block operations, and that more of those references go through to
memory. Block operations in Mach occur within the ker-
operations
systems perform
and
true,
For each system, this table shows the J4CPI contribution of
block moves (and subsequent interference), and also the percentage of total J4CPI due to block moves.
For each workload/system pair this figure shows system selfinterference effects, as indicated by miss rates from directmapped andtwo-way associativecachesof the samesize. Each
bar is composed of two regions. The darker region represents
misses eliminated by associativity (those due to selfinterference). The lighter region represents misses that associativity does not eliminate. The number on the left end of
the bar is MCP1 for the system-only
per-
is
MCPI
Table 4-4:
System self-interference.
costs
a large
workload
eqntott
fpppp
doduc
liv
tomcatv
4-2:
for
in 1/0 intensive applications
Ultrix
Figure
five:
nel as part of the VM
block memory operations to
and IPC systems, and within
the
UNIX server as part of the file system. In contrast, Ultrix
block operations, which occur entirely within the kernel,
are due mostly to VM and file system operations.
transfer data between 1/0 devices and memory, and to
copy data between address spaces, Table 4-4 shows that
block memory operations
and their subsequent interference can be responsible for a substantial fraction of
especially for programs that perform sigtotal MCPI,
Espresso,
while not I/O intensive, pays a
nificant I/O.
129
Ultrix
workload
se d
egrep
yacc
gcc
compress
ab
espresso
lisp
eqntott
fpppp
doduc
liv
tomcatv
B-OPs
Yototal
0066
292
0.014
0.017
0116
0.055
0.100
0009
0000
0000
0.003
0.003
0008
0000
39.3
25.6
268
221
23.4
21.3
03
0.4
1.2
09
-1.1
0.0
Mach
data reads
memory
reads
acheab le u n cacheab le
total
%
B-OPs
%total
28
42
37.7
0.131
0017
0.027
0.159
0.071
0057
0.013
0.000
0.001
0.005
0.006
0.013
0.000
26.6
209
20.9
23.0
17.0
10.7
19.9
00
0.6
2.2
1.9
79
0.0
MCPI
57
88
105
53
168
16729
43
1
258
19
36
19
113
17
19
27
253
35
1897
80
2
23
63
62
8
23
42
277
68
6118
93
3
56
71
75
14
60
MCPI
400
32.3
90.3
33.5
32.9
75.7
100.0
20,0
84,8
76.5
51.1
44.5
data reads
memory
acheab le u n cacheab le
total
%
70
51
64
414
98
4442
133
0
94
44.2
36.6
39.6
78.6
43,5
40,7
57.8
1,0
132
126
136
237
180
26
15
27
289
45
10311
143
76
232
125
115
609
87
0
0
69
85
8
4
52
297
99
147
20
76
reads
404
511
732
342
25.3
Table 4-5: Block memory operations and memory reads.
For each system, this table shows the &lCPI due to block memory operations and subsequent interference, and Its percentage of total
2-1).
The table also shows the number of data reads from cacheable
and uncacheable
memory
that are due to block
operations;
the number of those reads that go to memory resulting m a CPU read stall, and the percentage of overall CPU memory stalls due
to block operations.
Reads from uncacheable
memory are due primarily
to 1/0 operations and always go through to memory. All counts are
MCP2 (Figure
in thousands.
4.6.
writes
Streaming
Operating
transfers,
in a larger number of stalls. Additionally,
the interleaved
read misses decrease the frequency of low-latency
page-
systems stream data to memory during block
such as for 1/0 and IPC, and during
switches and exception
handling.
by allowing
Write
mode writes.
context
buffers expedite
streaming
writes
memory.
The effect of streaming write operations on sys-
the CPU to run ahead of
The system’s
stall cycles per in-
the performance
can be measured by counting
due to writes.
The number
of write
4.7. Page mapping
stall cycles
tem performance
worse than user behavior,
write
buffers
supporting
are less effective
for
references.
and overlap
secutive virtual pages throughout
Mach
U ltrix
workload
system
user
system
user
0.061
0.050
0.062
0.106
0.043
0.040
0.093
0.007
0.014
0.030
0.101
0.052
0.023
0.000
0.002
0.000
0.012
0.011
0.009
0.001
0.004
0.000
0.017
0.018
0090
0033
0.076
0.065
0.000
se d
egrep
yacc
gcc
:ompress
ab
espresso
lisp
eqn tott
fpppp
doduc
liv
tomcatv
Table 4-6:
Write
buffer
per instruction
to maintain page tables so that page mappings do not
change during a given run. Figure 4-3 shows MCPI for a
In our discussion
Consequently,
buffer
fewer
to retire
memory
outstanding
cycles
and Mach reference
streams.
As previously
Ultnx
mentioned,
uses a deter-
To isolate the effect of the page mapping
we modified
our simulator
run of the workloads
compared
to Figure
with
to use random
random
2-1 (both
pairs
page
compress,
mapping,
and gee,
page
strategy,
mappings,
mapping.
perform
and
When
are on the same scale),
of the workload/system
and
most
better
with
random
eqntott,
fpppp,
doduc
show the greatest improvement.
The program
offers a good example of the effect that mapping
tomcatv
tomcatv
strategy can have on program performance,
This program
uses several matrices that are rough multiples of the cache
size, and allocated contiguously
in virtual memory.
The
are available
writes,
a deter-
strategy for both the Ultrix
list).
write
the write
so far, we have simulated
ministic
ministic strategy, while Mach’s strategy is random (a virtual page is assigned to the next physical page on the free
buffer stalls per instruction are generally
higher for Mach than for Ultrix.
Overall cache miss rates
are higher with Mach, and the DECstation
5000/200
memory system gives CPU reads priority over outstanding
writes.
the cache. For localities
tools that rearrange the layout of text and data in memory
to improve cache performance [27, 17].
bold face.
for
pages in the
smaller than the cache size, such a strategy prevents collisions in the cache. This strategy also makes possible
This table shows write buffer stall cycles per user instruction
and write buffer stall cycles per system mstructlon.
Runs m
which system behavior ]s worse than user behawor are shown m
System
of virtual
0.002
0.000
0.012
0.013
0.010
0.001
0.005
0.000
0.015
0.018
0090
0.033
0.076
0.129
0.063
0.043
0.111
0.064
0.024
0.037
0.095
0.075
0.044
stall cycles
strategy can affect
indexed cache, as it deter-
cache. As an example, the operating system can reduce
self-interference
misses for small applications by using a
virtual-to-physical
mapping that uniformly distributes con-
the sixth assertion:
system
page mapping
of a physically
mines the placement
struction for user and system code under Ultrix and Mach
is shown in Table 4-6. In most cases system behavior is
strategy
virtual
resulting
130
,, ,,...
r,.,
sed+U
+M
egrep+U
+M
1
yacc+U
+M
I
o.
0.423
i’
0.103
‘-’BS@?l
gcc+u
+M
0.470
1
0.120
compress+U
+M
0.237
1
ab+U
+M
■ 4
espresso+U
+M
0.350
.018
0.041
M
lisp+U
+M
eqntott+U
+M
I
fpppp+u
+M
0.003
0.006
0.029
0.057
W’””’”
&
doduc+U
+M
b
==s
0.012
0.036
I
liv+U
+M
0,400
0.487
[
tomcatv+U
+M
~
0.002
0.004
Figure
4-3: MCPIfor
random page mapping.
This figure showsMCPJfor Mach and Ultrix, asin Flgure2-l, but forasystem that usesrandom page mapping. Theelimination of user
This figure shows the results
cachemissesreduces memory contention, so write buffer stalls are virtually eliminated for many workloads.
ofa
single run.
Asthepage-mappings
virtual-to-physical
mapping
arerandom,
induced
strategy causes frequent collisions
behavior
canvaWsignificantly
by the deterministic
matrix elements during computation.
mapping
with
low
strategy yields a page
user cache miss rates.
amples are sed and lisp under Ultrix,
Specific
and egrep
and
ex-
liv for
both systems. In these cases the deterministic
strategy
leads to good behavior, and the random strategy can perform significantly
For the majority
of workloads
we consider, the number
and cost of non-idle
instructions
executed is substantially
higher
about operating
significant
impact
on
page
cache
system behavior
formance.
One is false. Several are sensitive to the operat-
ing system architecture.
Specifically:
the seventh asserstrategy
●
System instruction
locality.
Relative to user
behavior, system text shows less locality than
system data. However, user workloads such
as gcc with large text can have instruction
cache penalties that rival that of the operating
system.
●
User/system competition.
User/system competition is a measurable component of cache
and TLB miss rates. For these workloads,
though, system performance is not affected by
The
impact
of
userlsystem
competition.
Mach’s microkernel structure on competition
is not significant.
performance.
can have
Moreover,
are
true, although two have little or no impact on system per-
dering.
to physical
Six of the assertions
systems and memory
confirm
Our results, though, suggest that
in the absence of program reor-
these observations
than for Ultrix.
mapping
worse.
Overall,
for Mach
. System and user locality.
System locality is
measurably worse than user locality, and the
performance impact can be significant,
The
Mach microkernel-based
system has poorer
system locality than Ultrix.
such cases are infrequent
tion: virtual
runs.
5. Conclusions
between corresponding
In some cases, the deterministic
between
a
deterministic strategy can have a negative impact on performance for a direct-mapped cache when program reordering tools are not used. In such cases, a random strategy
is less likely to induce consistently poor behavior.
131
2. Anant Agarwal, Richard L, Sites, and Mark Horowitz.
ATUM: A New Technique for Capturing Address Traces Using
Microcode.
The Proceedings of the 13th International
Symposium on Computer Architecture, June, 1986. pp. 119-127.
Self-interference
System self-interference.
accounts for a significant number of system
misses, particularly in system text. However,
the cases with the worst overall behavior are
also those that benefit least from associativity.
Compared to Ultrix, associativity eliminates a
lower percentage of Mach’s cache misses because of its greater
demand
for cache
resources,
●
3. Anant Agarwal, John Hennessy, and Mark Horowitz,
“Cache Performance of Operating System and Multiprogramming Workloads”.
ACM Transactions
on Computer
Systems
4 (November 1988), pp 393-431.
Block operations.
Block operations can be
responsible for a large component of overall
MCPI, particularly
for applications that perform 1/0. Mach moves more data with block
operations and has a larger MCPI due to block
operations than Ultrix.
●
Streaming
writes.
higher
to the write
●
load
code presents
a
buffer than user code.
or
of
memory
system
locality
of system code and data is inherently
latency
changes to memory
mance
by
the
operating
microkernel-based,
taking
than
of
applications.
of
improvements
locality
sensitive
are
to
The
Ali-Reza
Li,
Adl-Tabatabai,
Stefan
Savage,
perfor-
unlikely
(February
to
to the system.
Doug
Tygar,
back
on earlier
and
Mary
Thompson
Bob
Wheeler
between
us
an
making
initial
it work.
on prior
work
tinued
throughout
Eustace,
Stodolsky,
Watson
provided
of this paper.
helped
helped
behavior
with
Terri
drafts
Alan
Daniel
Mach
and Ultrix.
version
The design
by Anita
epoxie,
Jay
Lepreau,
Mark
Swanson,
valuable
Alessandro
and
of the tracing
Borg,
Corporation
and
in I/O
provided
helpful
system
and her contributions
Western Research Laboratory,
1989
11. J. Bradley Chen. Software Methods for System Address
Tracing. The Proceedings of the Fourth Workshop on
Workstation Operating Systems, October, 1993
of Mach.
Wall
was
10. Anita Borg, R.E. Kessler, Georgia Lazana, and David
Wall
Long Address Traces from RISC Machines: Generation
and Analysis. WRL Research Report 89/14, Digital Equipment
feed-
Forin
the differences
David
1990), pp. 37-55.
9. Brian N. Bershad, Richard P. Draves, and Alessandro Forin,
Using Microbenchmarks
to Evaluate System Performance.
The
Proceedings of the Third Workshop on Workstation
Operating
Systems, April, 1992, pp 148-153.
with our instrumentation
us understand
Academic
1989.
8. Brian N, Bershad, Thomas E, Anderson, Edward
D. Lazowska and Henry M. Levy. “Lightweight
Remote Proon Computer
Systems 8, 1
cedure Call”. ACM Transactions
poor, and
6. Acknowledgements
Kai
Boston, MA,
for
Kluwer
7. Brian N. Bershad. The Increasing Irrelevance of IPC Performance for Microkernel-Based
Operating Systems. The
Proceedings of the First USENIX Microkernels
and Other Kernels Workshop, April, 1992, pp 204-211.
either
more
systems that help application
advantage
bring proportional
that
system,
is
Publishers,
Performance
6. Ozalp Babaoglu and William Joy. Converting a SwapBased System to do Paging in an Architecture Lacking PageReferenced Bits The Proceedings of the 8th ACM International Symposium on Operating System Principles, December, 1981, pp. 76-86.
Page
mapping
- Page mapping
strategy.
strategies can have a large effect on cache
performance.
The page mapping strategy is
independent of operating system architecture.
performance
and Multiprogramming.
108-120.
increased
The
Systems
Operating System Design. The Proceedings of the Fourth
International Conference on Architectural
Support for Programming Languages and Operating Systems, April, 1991, pp.
Sy stem
monolithic
Analysls
Operating
5. Thomas E. Anderson, Henry M. Levy. Brian N. Bershad,
and Edward D Lazowska. The Interaction of Architecture
and
cache MCPI results in a
larger number of write buffer stalls due to
competition
between
memory
reads and
writes.
Mach’s
of Cache
4. Anant Agarwal.
6,
12. J. Bradley Chen. Memory Behavior for an Xl 1 Window
System. The Proceedings of the Winter 1994 USENIX Conference, January, 1994.
in
is based
con-
this project.
13. J. Bradley Chen, Anita Borg, and Norman
Simulation Based Study of TLB Performance.
ings of the 19th Annual
References
May,
14.
W, Clark,
“Cache
ACM
Transactions
Douglas
VAX-1
1/780”.
(February
1. Michael J. Accetta, Robert V. Baron, William
Bolosky,
David B. Gohrb, Richard F, Rashid, Avadis Tevanian, Jr., and
Michael W. Young
Mach: A New Kernel Foundation for Unix
Development.
Proceedings of the Summer 1986 USENIX
Conference, July. 1986, pp. 93-113
International
Architecture,
1992,
P. Jouppi. A
The Proceed-
Symposium
on Computer
pp. 114-123.
Performance
in the
on Computer
Systems
1, 1
1983), pp. 24-37.
15. Douglas W. Clark and Joel S. Emer. “Performance of the
VAX 11/780 Translation Buffer: Simulation and Measureon Computer
Systems 3, 1
ment”. ACM Transactions
(February 1985), 270-301.
132
31. John K. Ousterhout. Why Operating Systems Aren’t Getting Faster As Fast As Hardware. Proceedings of the Summer
1991 USENIX Conference, June, 1991, pp. 247-256.
16. M. DeMoney, J. Moore, and J. Mashey. Operating System
Support on a RISC. Proceedings of the 31st Computer Society
International Conference (Spring Compcon ‘86), March, 1986,
pp 138-143.
32. Steven A. Przybylski. Cache Design: A Pe~ornranceMorgan-Kaufmann, San Mateo, CA,
1990.
17. Digital Equipment Corporation. cord. Ultrix manual page.
Dwected Approach.
18. Richard P. Draves, Brian N, Bershad, Richard F. Rashid
and Randall W. Dean. Using Continuations to Implement
Thread Management and Communications in Operating Systems. Proceedings of the 13th ACM Symposium on Operating
Systems Principles, October, 1991, pp. 122-136.
33. Richard Rashid, Avadis Tevanian, Jr., Michael Young,
David Gohrb, Robert Baron, David Black, William Bolosky
and Jonathan Chew. Machine-Independent Virtual Memory
Management for Paged Uniprocessor and Multiprocessor Architectures. Proceedings of the Second International Conference on Architectural Support for Programming Languages
and Operating Systems, April, 1987, pp. 31-39.
19. Richard P Draves. A Revised IPC Interface. Proceedings
of the First Mach USENIX Workshop, October, 1990, pp.
101-121.
34. M. Rozier, V. Abrossimov, F. Armand, I. Boule, M. Giend,
M. Guillemot, F. Herrmann, P. Leonard, S. Langlois, and
W. Neuhauser. “Chorus Distributed Operating Systems”.
Computing Systems 1,4 (1988), pp. 305-370.
20. Peter Druschel, Larry L. Peterson, and Norman
C. Hutchinson. Beyond Microkernel Design: Decoupling
Modularity and Protection in Lipto. The Proceedings of the
12th International Conference on Distributed Computing Systems, June, 1992.
35. Josep Torellas, Anoop Gupta, and John Hennessy. Characterizing the Caching and Synchronization Performance of a
Multiprocessor Operating System. The Proceedings of the
Fifth International Conference on Architectural Support for
Programming Languages and Operating Systems, October,
1992, pp. 162-174.
21. David Golub, Randall Dean, Alessandro Forin and Richard
Rashid. UNIX as an Application Program. Proceedings of the
Summer 1990 USENIX Conference, June, 1990, pp. 87-95.
22. John L. Hennessy and David A. Patterson. Computer
Morgan Kaufmann,
A Quantitative Approach.
Palo Alto, CA, 1990.
Architecture:
36. Bart C. Vashaw. Address Trace Collection
Driven Simulation
Ph.D. Th., Carnegie Mellon University,
1992. Department of Electrical and Computer Engineering.
Multiprocessors.
23. Mark D. Hill. Aspec~s of Cache Memory and Instruction
Ph.D. Th , Umversity of California at
Berkeley, Computer Sciences Division, November 1987. Number UCB/CSD 87/381.
R@er- Performance.
24. Gerry Kane. MIPS RLSC Architecture.
Englewood Cliffs, NJ, 1987.
and Trace
of Bus Based, Shared Memory
37. David W. Wall. Systems for Late Code Modification. In
Code Generation --- Concepts, Tools, Techniques, SpringerVerlag, 1992, pp. 275-293.
Prentice Hall,
25. R E. Kessler and Mark D. Hill. “Page Placement Algorithms for Large Real-Indexed Caches”. ACM Transactions
on Computer Systems 10, 4 (November 1992), 338-359.
26. Jay Lepreau, Mike Hibler, Bryan Ford, Jeffrey Law, and
Douglas Orr. In-Kernel Servers on Mach 3.0: Implementation
and Performance. Proceedings of the Third USENIX Mach
Symposium, April, 1993, pp. 39-56.
27. Scott McFarling. Program Optimization for Instruction
Caches. The Proceedings of the Third International Conference
on Architectural Support for Programming Languages and
Operating Systems, April, 1989, pp. 183-191.
28. Jeffrey C. Mogul and Anita Borg. The Effect of Context
Switches on Cache Performance. The Proceedings of the
Fourth International Conference on Architectural Support for
Programming Languages and Operating Systems, April, 1991,
pp. 75-84.
29. David Nagle, Richard Uhlig, and Trevor Mudge. Monster:
A Tool for Analyzing the Interaction Between Operating Systems and Computer Architectures. University of Michigan,
November, 1992. CSE-TR-147-92.
30. David Nagle, Richard Uhlig, Tim Stanley, Stuart Sechrest,
Trevor Mudge and Richard Brown. Design Tradeoffs for
Software-Managed TLBs. Proceedings of the 20th Annual
International Symposium on Computer Architecture, May,
1993, pp. 27-38.
133
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )