Amoeba Case Study
Amoeba Case Study
Amoeba Case Study
Matt Ramsay
Tim Kiegel
Heath Memmer
CS470
Case Study Paper
4/19/02
Amoeba
Introduction
(Free University) in Amsterdam. The research effort was aimed at understanding how
to connect multiple computers together in a seamless way. The basic goal of Amoeba
was to provide users with the capabilities of a single powerful timesharing system while
several computing sites. This paper will examine the characteristics of the Amoeba
operating system, give a diagram of its structure, give the pros and cons of its
History of Amoeba
The initial research done in Amsterdam led to the design and implementation of
the Amoeba Distributed Operating System, which was then used as a prototype and a
vehicle for further research both at Vrije Universiteit and at the Center for Mathematics
and Computer Science, also in Amsterdam. The goal of this further research was to
with a network operating system, in which each machine has its own identity. In a
network operating system, each user logs into a specific work station or machine, his
home machine. When the user executes a program it is run on his local machine
the user is definitely aware that multiple machines exist and has to deal with them
whole, not into any specific machine in the network. When the user runs a program, the
system decides which machine in the system should execute it. This decision is
invisible to the user. All the user sees is that his program has been executed, just as if
he had run it on his local machine. Also, there is a system-wide file system. Files that
share a directory may be located on different machines anywhere in the network. There
remote file systems. A file’s position in the directory hierarchy has no relation to its
physical location.
throughout the world, mostly in as a topic for continued research in the distributed
systems area. Although Amoeba is not widely used, it is still very interesting to study
machines can be connected together. Even more important, these machines do not
have to be all of the same kind. Most of the time, these multiple machines are spread
throughout the same building, connected through Amoeba’s high performance FLIP
(Fast Local Internet Protocol) network protocol over a LAN. However, Amoeba
machines can be located anywhere across the world and the system still works in the
In addition, Amoeba is also a parallel system. This means that a single job or
program can use multiple processors or machines to gain processing speed. This
feature makes Amoeba capable of efficiently utilizing older and slower hardware as part
discarded machines for very little cost and have them perform with equal efficiency to a
The third key goal of the Amoeba operating system was transparency. In an
Amoeba system, the users do not need to know the number or location of the machines
in the system. Similarly, the user also does not know where the files are located
throughout the system. In this type of system, there is no concept of a “home machine”.
Once a user logs into the system, remote login and remote mount operations are not
required to access files and CPU’s of remote machines in the system. The whole
data transfers between machines in the Amoeba system. This communication system
serves as the basis for implementing high performance subsystems and applications on
an Amoeba system.
Overview of System Structure
manipulates is spread across many machines[4]. This is the basic fundamental which
Amoeba is built upon. The operating system breaks up the processes which need to be
run and distributes them to multiple machines across a network. This creates parallel
computing and allows for more information to be manipulated in a shorter time than it
Amoeba achieves this distribution by breaking the OS into four main parts. The
first is the workstations, which can range from simple dumb terminals to a part of the
processor pool. Second is the main processor pool, which consists of multiple
machines connected by a LAN. The third is the specialized servers, which examples
are file servers, directory servers, and base servers. The fourth key component is the
WAN gateways, which allow Amoeba to run across a WAN and perform distance
distributed computing.[4]
Every machine running Amoeba runs the same microkernel. This is because the
kernel is very simple and takes care of things like managing processes and threads,
providing low-level memory management, thread communication and I/O. The only
difference is that some machines may run a server process, where other machines, like
windows terminal. The workstation can also be a full machine which can run the
Amoeba kernel and an X-server[4]. This is called a smart terminal because the terminal
does some processing of its own. In this mode, the workstation machine may also be a
server, in the process pool or both. This is not recommended, but in smaller
architectures: Motorola MC680x0, Intel 386(486, Pentium) and some members of the
SPARC family[2]. These machines run the Amoeba kernel which may be booted from
the hard drive, a boot server, or floppy. These machines may also run servers. This is
The specialized servers handle services which are needed by the system.
Common services include file, directory, memory and process distribution[4]. These
servers are dedicated to being only servers and are not used for processing data. Each
server machine may run multiple servers from it. This may be useful if you have a small
The WAN gateways are used to separate the Amoeba system from other
networks and their protocols, as well as allow distant distributed computing. The
gateway server is responsible for the communication scheme to allocate processors
from a distant Amoeba pool for its own use. This is done by translating the Amoeba
RPC packets to TCP/IP (for Internet) and transmit them to the remote server[4].
Processor Scheduling
space, a set of registers and a stack. Amoeba also uses threads, which share the same
address space as the main process[1]. Threads are scheduled by the kernel and are
Amoeba’s process scheduling is much like other operating systems. The kernel
implements a round robin scheduling algorithm with a given time-slice which is usually
multiple computers. At any given time, a computer may have any number of processes
running on it, with each process possibly having multiple threads. Amoeba does not,
A base server takes a user’s command and starts the execution process. The
base server next allocates processors from the pool and begins to distribute processes
to them. When the command is finished, the processors are placed back into the
distributes the processes based on each processor’s current load. The one with the
smallest load will get the next process will then be timeshared.
Thread Communication
for short. RPCs are a message-based communication scheme across a network which
process itself. This can be from a user thread to a user thread, a user thread to a kernel
The RPC creation, sending, receiving and decoding are all processed by the
kernel. There are library functions defined which give interfaces to the user program
Some examples of thread communication may be needed to get a good feel for
how the system works. A kernel-to-kernel thread may consist of a message like
“execute program x with these parameters on your processor”. This is one of the main
conduits for which the distribution of processes is handled. Another may be a user-to-
user message like “give me return data from what you just processed”. This could
happen from a user program like a compiler, in which compiled data must be passed
data types, objects are managed by server processes. Each object is named and
The Server Port identifies the machine on which the server of the object resides.
The Object field identifies which specific object needed. This field is identical to the i-
node number in UNIX. The Rights field specifies the operations that the holder of the
object can perform. And the Check Field serves as a validating the capability;
essentially protecting it from being forged by user processes which manipulate the
The file structure in Amoeba is quite different than normal operating system file
The file server in Amoeba is known as the Bullet Server, called so for being very
fast. It has a very large buffer cache and stores files contiguously, in core and on disk
to give very high performance. Files in the Bullet store are unique because they are
immutable, meaning you can not change them once they are created. This only allows
for basically two operations, read and create. Bullet files are also created atomically so
they can be created in cache but they do not officially exist until they are written to disk,
or committed [4]. Since bullet files are immutable, the size is known at creation time,
hence the contiguous file storage. This way, files can be read into memory in a single
disk operation. Bullet stores all the entries in a table at the beginning of the disk, similar
to the UNIX i-node table, which holds the disk address, size, and a random number for
Files in Amoeba, however, are not named by the file server. The general naming
graph of directories [4]. The directory server maps the ASCII names to ports with a port
for each directory leading to the directory graph. The directory server supports several
commands including: lookup, readall, makedir, recover, remove… Unlike the file server,
directories are not immutable. A directory object consists of an ASCII string and a
capability set. The entry can either have a single capability or multiple capabilities,
structure, thereby allowing each user to have his own ‘/’ directory [4]. An added degree
of fault tolerance is added to the directory server by having a duplicate of itself. Each
copy has its own set of data, and they communicate with each other to keep the data
consistent. This allows for very high reliability because if one server goes down, this is
detected by the other one, and it carries on functioning. When the failed server comes
back onboard, it is brought up to date with all the changes by the surviving one and
continue cooperation. This also allows for easy upgrading, seeing as how you can
perform upgrades to one server without halting execution of the other one. Then when
the first one is restarted with the new version, the second one can undergo the
upgrades.
I/O Scheduling
Input and output (memory, disk) is handled by the microkernel threads. To read
a block from the disk, a process does remote procedure calls to a disk I/O thread in the
kernel. The calling process does not know that the server is actually a kernel thread
because user thread interfaces are identical to kernel thread interfaces. [6] As far as file
I/O goes, having multiple threads within a process accentuates the distributed and
parallel and computing model very well. For example, when a file server receives a
request, one of the threads will accept it and if that thread then blocks for some reason,
the other threads can continue. However, with all this independent control, Amoeba
receivers get group messages in the same exact order. [6] An interesting fact about
network I/O in Amoeba is that it supports nothing but the Ethernet network medium. It
also uses terminals the same way UNIX works, however, when a user logs in, he does
Memory Management
Amoeba’s memory model, which is handled by the microkernel, is very small and
virtual addresses. These segments include, but not limited to, a text/code segment, a
data segment, and a stack segment for main/thread process. [6] When a process is
executing, all of its segments are in memory. Amoeba does not utilize virtual memory
or swapping so it can only run programs that do not exceed physical memory. This
does however keeps the management scheme simple and provides high performance.
[6]
With the knowledge that distributed operating systems are not widely used in the
Most of the more obvious reasons to use an Amoeba system have been touched on
previously in this paper. The need to control several machines from one user process
situation that could efficiently utilize a distributed system is any program that commonly
requires large computations. A more practical reason to use the Amoeba operating
system is to save money, both by utilizing old hardware and by lessening the need to
purchase expensive servers. An additional reason to use Amoeba is that the source
code for the operating system is available for free, so you can make your own version of
As was mentioned, Amoeba is not a widely used operating system. There are
distinct reasons for this. Other clustered operating systems that operate in a similar
fashion to Amoeba are more readily available and easier to use. Why would a company
Amoeba, when they could use a much more dependable system maintained and
supported by a well known software company. Another reason to avoid Amoeba is that
there is no warranty. This is due to the fact that the source code is available for each
user to edit. These reasons, along with others, make Amoeba a risky business venture.
I have very mixed feelings about Amoeba. I have a few reasons why I like it, but
I have many more as to why I do not. I like Amoeba because of how difficult it is to
understand. The system uses techniques not found in most other OSs. The RPCs, the
way it handles processes and threads and how it can take a multitude of slow machines
Mostly why I don’t like Amoeba is because of the lack of documentation and
support. When looking for documents, there was really only one repository which
contained redundant information. Also, the documents didn’t really disclose all
information like I had hoped. They left me still asking questions about how the system
hardware. I have been unable to find any information about an amoeba system running
on anything higher than a 16MHZ RISC processor, or higher than a 486 x86. This leads
I actually would like to study this idea further. As far as Amoeba itself, I do not think that
I would trust it enough to actually use it, considering its lack of documentation, testing
and support. I am really interested in seeing an Amoeba system in operation, but due
Hating to be unoriginal, I have to agree with Matt and Heath. I am finding it very
difficult to enjoy learning Amoeba due to its lack of documentation. I have, however,
always found distributed and parallel operating systems intriguing and wish that
Amoeba were more up to date with today’s processing needs. It just might be
interesting enough to mess around with when I have the time. Unfortunately, with it
being a research design, its capabilities are limited and out of date.
Conclusion
idea. It provides system administrators the power to distribute work over a variety of
machines without inconveniencing the users. Despite this and other useful features, we
predict that Amoeba will not ever become a widely used operating system. However,
the knowledge gained by the development of and research about Amoeba has helped in
#3. Tanenbaum, Andrew S. “The Amoeba Reference Manual, User Guide.” Vrije
#4. Tanenbaum, Andrew S., M. Frans Kaashoek, Robbert van Renesse and Henri E.
Universiteit, Amsterdam.
#5. Tanenbaum, Andrew S., Robbert van Renesse, Hans van Staveren and Gregory J.
Universiteit, Amerstdam.
#6. Tanenbaum, Andrew S. and Gregory J. Sharp. “The Amoeba Distributed Operating