ECE 677: Distributed Computing Systems. Distributed Operating Systems: Design Issues Case Studies
|
|
|
- Richard Short
- 10 years ago
- Views:
Transcription
1 ECE 677: Distributed Computing Systems Distributed Operating Systems: Design Issues Case Studies
2 Distributed Systems Design Framework (Cont) Distributed Computing Paradigms (DCP) Computation Models Communication Models Functional Parallel Data Parallel Message Passing Shared Memory System Architecture and Services (SAS) Architecture Models System Level Services Computer Networks and Protocols (CNP) Computer Networks Communication Protocols ECE 677 Salim Hariri/University of Arizona
3 Outline Operating System Services and Designs Distributed System Design Issues Case Studies ECE 677 Salim Hariri/University of Arizona
4 Operating System Services One set of operating-system services provides functions that are helpful to the user: User interface - Almost all operating systems have a user interface (UI) Varies between Command-Line (CLI), Graphics User Interface (GUI), Batch Program execution - The system must be able to load a program into memory and to run that program, end execution, either normally or abnormally (indicating error) I/O operations - A running program may require I/O, which may involve a file or an I/O device. File-system manipulation - The file system is of particular interest. Obviously, programs need to read and write files and directories, create and delete them, search them, list file Information, permission management.
5 Operating System Services (Cont.) One set of operating-system services provides functions that are helpful to the user (Cont): Communications Processes may exchange information, on the same computer or between computers over a network Communications may be via shared memory or through message passing (packets moved by the OS) Error detection OS needs to be constantly aware of possible errors May occur in the CPU and memory hardware, in I/O devices, in user program For each type of error, OS should take the appropriate action to ensure correct and consistent computing Debugging facilities can greatly enhance the user s and programmer s abilities to efficiently use the system
6 Operating System Services (Cont.) Another set of OS functions exists for ensuring the efficient operation of the system itself via resource sharing Resource allocation - When multiple users or multiple jobs running concurrently, resources must be allocated to each of them Many types of resources - Some (such as CPU cycles,mainmemory, and file storage) may have special allocation code, others (such as I/O devices) may have general request and release code. Accounting - To keep track of which users use how much and what kinds of computer resources Protection and security - The owners of information stored in a multiuser or networked computer system may want to control use of that information, concurrent processes should not interfere with each other Protection involves ensuring that all access to system resources is controlled Security of the system from outsiders requires user authentication, extends to defending external I/O devices from invalid access attempts If a system is to be protected and secure, precautions must be instituted throughout it. A chain is only as strong as its weakest link.
7 System Calls Programming interface to the services provided by the OS Typically written in a high-level language (C or C++) Mostly accessed by programs via a high-level Application Program Interface (API) rather than direct system call use Three most common APIs are Win32 API for Windows, POSIX API for POSIX-based systems (including virtually all versions of UNIX, Linux, and Mac OS X), and Java API for the Java virtual machine (JVM) Why use APIs rather than system calls? (Note that the system-call names used throughout this text are generic)
8 Example of System Calls System call sequence to copy the contents of one file to another file
9 Example of Standard API Consider the ReadFile() function in the Win32 API a function for reading from a file A description of the parameters passed to ReadFile() HANDLE file the file to be read LPVOID buffer a buffer where the data will be read into and written from DWORD bytestoread the number of bytes to be read into the buffer LPDWORD bytesread the number of bytes read during the last read LPOVERLAPPED ovl indicates if overlapped I/O is being used
10 System Call Implementation Typically, a number associated with each system call System-call interface maintains a table indexed according to these numbers The system call interface invokes intended system call in OS kernel and returns status of the system call and any return values The caller need know nothing about how the system call is implemented Just needs to obey API and understand what OS will do as a result call Most details of OS interface hidden from programmer by API Managed by run-time support library (set of functions built into libraries included with compiler)
11 API System Call OS Relationship
12 Standard C Library Example C program invoking printf() library call, which calls write() system call
13 System Call Parameter Passing Often, more information is required than simply identity of desired system call Exact type and amount of information vary according to OS and call Three general methods used to pass parameters to the OS Simplest: pass the parameters in registers In some cases, may be more parameters than registers Parameters stored in a block, or table, in memory, and address of block passed as a parameter in a register This approach taken by Linux and Solaris Parameters placed, or pushed, onto the stack by the program and popped off the stack by the operating system Block and stack methods do not limit the number or length of parameters being passed
14 Parameter Passing via Table
15 Types of System Calls Process control File management Device management Information maintenance Communications
16 MS-DOS execution (a) At system startup (b) running a program
17 FreeBSD Running Multiple Programs
18 System Programs System programs provide a convenient environment for program development and execution. They can be divided into: File manipulation Status information File modification Programming language support Program loading and execution Communications Application programs Most users view of the operation system is defined by system programs, not the actual system calls
19 System Programs Provide a convenient environment for program development and execution Some of them are simply user interfaces to system calls; others are considerably more complex File management - Create, delete, copy, rename, print, dump, list, and generally manipulate files and directories Status information Some ask the system for info - date, time, amount of available memory, disk space, number of users Others provide detailed performance, logging, and debugging information Typically, these programs format and print the output to the terminal or other output devices Some systems implement a registry - used to store and retrieve configuration information
20 System Programs (cont d) File modification Text editors to create and modify files Special commands to search contents of files or perform transformations of the text Programming-language support - Compilers, assemblers, debuggers and interpreters sometimes provided Program loading and execution- Absolute loaders, relocatable loaders, linkage editors, and overlay-loaders, debugging systems for higher-level and machine language Communications - Provide the mechanism for creating virtual connections among processes, users, and computer systems Allow users to send messages to one another s screens, browse web pages, send electronic-mail messages, log in remotely, transfer files from one machine to another
21 Operating System Design and Implementation Design and Implementation of OS not solvable, but some approaches have proven successful Internal structure of different Operating Systems can vary widely Start by defining goals and specifications Affected by choice of hardware, type of system User goals and System goals User goals operating system should be convenient to use, easy to learn, reliable, safe, and fast System goals operating system should be easy to design, implement, and maintain, as well as flexible, reliable, error-free, and efficient
22 Operating System Design and Implementation (Cont.) Important principle to separate Policy: What will be done? Mechanism: How to do it? Mechanisms determine how to do something, policies decide what will be done The separation of policy from mechanism is a very important principle, it allows maximum flexibility if policy decisions are to be changed later
23 Simple Structure MS-DOS written to provide the most functionality in the least space Not divided into modules Although MS-DOS has some structure, its interfaces and levels of functionality are not well separated
24 MS-DOS Layer Structure
25 Layered Approach The operating system is divided into a number of layers (levels), each built on top of lower layers. The bottom layer (layer 0), is the hardware; the highest (layer N) is the user interface. With modularity, layers are selected such that each uses functions (operations) and services of only lower-level layers
26 Layered Operating System
27 UNIX UNIX limited by hardware functionality, the original UNIX operating system had limited structuring. The UNIX OS consists of two separable parts Systems programs The kernel Consists of everything below the system-call interface and above the physical hardware Provides the file system, CPU scheduling, memory management, and other operating-system functions; a large number of functions for one level
28 UNIX System Structure
29 Microkernel System Structure Moves as much from the kernel into user space Communication takes place between user modules using message passing Benefits: Easier to extend a microkernel Easier to port the operating system to new architectures More reliable (less code is running in kernel mode) More secure Detriments: Performance overhead of user space to kernel space communication
30 Modules Most modern operating systems implement kernel modules Uses object-oriented approach Each core component is separate Each talks to the others over known interfaces Each is loadable as needed within the kernel Overall, similar to layers but with more flexible
31 Solaris Modular Approach
32 Virtual Machines A virtual machine takes the layered approach to its logical conclusion. It treats hardware and the operating system kernel as though they were all hardware A virtual machine provides an interface identical to the underlying bare hardware The operating system creates the illusion of multiple processes, each executing on its own processor with its own (virtual) memory
33 Virtual Machines (Cont.) The resources of the physical computer are shared to create the virtual machines CPU scheduling can create the appearance that users have their own processor Spooling and a file system can provide virtual card readers and virtual line printers A normal user time-sharing terminal serves as the virtual machine operator s console
34 Virtual Machines (Cont.) Nonvirtual Machine Virtual Machine (a) Nonvirtual machine (b) virtual machine
35 Virtual Machines (Cont.) The virtual-machine concept provides complete protection of system resources since each virtual machine is isolated from all other virtual machines. This isolation, however, permits no direct sharing of resources. A virtual-machine system is a perfect vehicle for operating-systems research and development. System development is done on the virtual machine, instead of on a physical machine and so does not disrupt normal system operation. The virtual machine concept is difficult to implement due to the effort required to provide an exact duplicate to the underlying machine
36 VMware Architecture
37 The Java Virtual Machine
38 Operating-System Operations Interrupt driven by hardware Software error or request creates exception or trap Division by zero, request for operating system service Other process problems include infinite loop, processes modifying each other or the operating system Dual-mode operation allows OS to protect itself and other system components User mode and kernel mode Mode bit provided by hardware Provides ability to distinguish when system is running user code or kernel code Some instructions designated as privileged, only executable in kernel mode System call changes mode to kernel, return from call resets it to user
39 Transition from User to Kernel Mode Timer to prevent infinite loop / process hogging resources Set interrupt after specific period Operating system decrements counter When counter zero generate an interrupt Set up before scheduling process to regain control or terminate program that exceeds allotted time
40 Process Management Activities The operating system is responsible for the following activities in connection with process management: Creating and deleting both user and system processes Suspending and resuming processes Providing mechanisms for process synchronization Providing mechanisms for process communication Providing mechanisms for deadlock handling
41 Memory Management All data in memory before and after processing All instructions in memory in order to execute Memory management determines what is in memory when Optimizing CPU utilization and computer response to users Memory management activities Keeping track of which parts of memory are currently being used and by whom Deciding which processes (or parts thereof) and data to move into and out of memory Allocating and deallocating memory space as needed
42 Storage Management OS provides uniform, logical view of information storage Abstracts physical properties to logical storage unit - file Each medium is controlled by device (i.e., disk drive, tape drive) Varying properties include access speed, capacity, data-transfer rate, access method (sequential or random) File-System management Files usually organized into directories Access control on most systems to determine who can access what OS activities include Creating and deleting files and directories Primitives to manipulate files and dirs Mapping files onto secondary storage Backup files onto stable (non-volatile) storage media
43 Mass-Storage Management Usually disks used to store data that does not fit in main memory or data that must be kept for a long period of time. Proper management is of central importance Entire speed of computer operation hinges on disk subsystem and its algorithms OS activities Free-space management Storage allocation Disk scheduling Some storage need not be fast Tertiary storage includes optical storage, magnetic tape Still must be managed Varies between WORM (write-once, read-many-times) and RW (readwrite)
44 I/O Subsystem One purpose of OS is to hide peculiarities of hardware devices from the user I/O subsystem responsible for Memory management of I/O including buffering (storing data temporarily while it is being transferred), caching (storing parts of data in faster storage for performance), spooling (the overlapping of output of one job with input of other jobs) General device-driver interface Drivers for specific hardware devices
45 Protection and Security Protection any mechanism for controlling access of processes or users to resources defined by the OS Security defense of the system against internal and external attacks Huge range, including denial-of-service, worms, viruses, identity theft, theft of service Systems generally first distinguish among users, to determine who can do what User identities (user IDs, security IDs) include name and associated number, one per user User ID then associated with all files, processes of that user to determine access control Group identifier (group ID) allows set of users to be defined and controls managed, then also associated with each process, file Privilege escalation allows user to change to effective ID with more rights
46 Distributed Operating Systems 1. Design Issues - structure, IPC, Resource Management, Security, Naming, 3. Case Studies LOCUS, Amoeba, V System, Mach, x-kernel Advanced Systems: Somberero, 2K, et al. ECE 677, DOS Lectures
47 Types of Distributed OSs System Description Main Goal DOS Tightly-coupled operating system for multiprocessors and homogeneous multicomputers Hide and manage hardware resources NOS Loosely-coupled operating system for heterogeneous multicomputers (LAN and WAN) Offer local services to remote clients Middleware Additional layer atop of NOS implementing generalpurpose services Provide distribution transparency 47
48 Multiprocessor Operating Systems Like a uniprocessor operating system Manages multiple CPUs transparently to the user Each processor has its own hardware cache Maintain consistency of cached data 48
49 Multicomputer Operating Systems
50 Network Operating System
51 Network Operating System Employs a client-server model Minimal OS kernel Additional functionality as user processes 51
52 Middleware-based Systems General structure of a distributed system as middleware
53 Comparison between Systems Item Distributed OS Multiproc. Multicomp. Network OS Middlewarebased OS Degree of transparency Very High High Low High Same OS on all nodes Yes Yes No No Number of copies of OS 1 N N N Basis for communication Resource management Shared memory Global, central Messages Files Model specific Global, distributed Per node Per node Scalability No Moderately Yes Varies Openness Closed Closed Open Open 53
54 Distributed Operating Systems Implementations 1 ) Monlithic Kernel : All operating system services implemented in one big monolithic kernel 2 ) Micro Kernel : The operating system services are structured as a collection of independent processes 3 ) Object Oriented Operating System : - Previous techniques realize OS services as a set of processes - Here the OS services are implemented as objects (data structures and operations)
55 Distributed Operating System Implementation 1. Monolithic Approach UNIX, Sprite Every system functions included in the DOS It is very complex and large (1Mbytes) Intractable Efficient process execution Server S Dynamically loaded server program Monolithic Kernel S1 S2 S Kernel code and data
56 Microkernel Only the basic services: process management, memory management, interprocess communication Other services are provided at user levels and dynamically loaded to relevant computers It is open and modular architecture Small kernel makes it easy to debug and be more efficient Microkernel Dynamically loaded server program Server S1 S2 S3 S Kernel code and data
57 Microkernel System Structure Moves as much from the kernel into user space. Communication takes place between user modules using message passing. Benefits: - easier to extend a microkernel - easier to port the operating system to new architectures - more reliable (less code is running in kernel mode) - more secure 57
58 DoS Design Issues Communication Primitives Message Passing, RPC, DSM, etc Support for error handling in case of communication failure Naming Name-location mapping can be centralized, partitioned or replicated Name space can be hierarchical or flat Typically, there is a name server to provide the mapping. 58
59 Design Issues Contd... Resource management It is impossible to gather information about utilization or availability of resources coherently. Hence these have to be calculated approximately using heuristic methods. Processor allocation Load balancing Hierarchical organization of processors. If a processor can t handle a request, ask the parent for help. Issues: Crashing of a higher level processor will result in isolation of processors attached to it. 59
60 Design Issues (contd.) Process scheduling Communication dependency has to be considered. Fault tolerance The design should consider distribution of control and data. Services provided Typical services include name, directory, file, time, etc. 60
61 Design Issues: Inter-process Communications Inter-Process Communication Types: Message Passing Remote Procedure Calls Shared Memory
62 Inter-Process Communication: Message Passing There are three fundamental design issues that must be addressed in designing an IPC scheme blocking or non-blocking, reliable or unreliable, buffered or un-buffered primitives 62
63 Inter-Process Communication: Message Passing minimize the number of communication primitives adopt request/response communication model only three communication primitives (e.g., Ameoba). The first primitive is used to send a request to a server and wait for the reply from the server The second primitive is to receive the Client requests The third primitive is to send the server reply message to the client after the request has been processed. 63
64 Inter-Process Communication: Remote Procedure Calls It has been widely accepted and used. using procedures to transfer control from one procedure to another is simple and well understood in high-level language programs running on a single computer. This mechanism has been extended to distributed operating systems RPC Design Issues how to pass parameters from the calling procedure to the called procedure. We could pass parameters by using either value or reference techniques. Passing parameters by value is easy passing parameters by reference is more complicated because we do need to have a unique and system-wide pointers Passing parameters get even more complicated if different types of computers are used 64
65 Naming Concepts Name What you call something Address Route Where it is located How one gets to it But it is not that clear anymore, it depends on perspective. A name from one perspective may be an address from another Perspective means layer of abstraction What is 65
66 What are the things we name Users To direct, and to identify Hosts (computers) High level and low level Services Service and instance Files and other objects Groups Content and repository Of any of the above 66
67 How we name things Host-Based Naming Host-name is required part of object name Global Naming Must look-up name in global database to find address Name transparency User/Object Centered Naming Namespace is centered around user or object Attribute-Based Naming Object identified by unique characteristics Related to resource discovery / search / indexes 67
68 Naming Service It is a mapping between two domains in a centralized system, we have one directory to perform the mapping Naming Servers Centralized Name Server: In this approach, we have a single name server that accepts names in one domain and simply maps them to another name normally understood by the system (e.g., In UNIX environment, this represents the mapping of an ASCII file name into its I-node number). A server or a process needs first to register its name in the database to publicly advertise the availability of the service offered by that server or process. 68
69 Naming Service- Cont. Hierarchical Name Server: divide the system into several logical domains each logical domain maintains its own mapping table. similar mapping in telephone network in which a country code followed by an area code followed by an exchange code all precede the actual user phone number. an object can be located or found based on which domain or subdomain it resides in the name server of its domain or subdomain will perform the mapping and locate the requested object or process. Use a set of pairs that will point to either the physical location of the object or the next name that might contain the physical location of the object. 69
70 Naming Service- Cont. Distributed Name Server: allow each computer or resource to implement the name service function. each machine on the network will be responsible for managing its own names. Whenever a given object is to be found, the machine requesting the name will broadcast the name on the network, if its not known in its mapping table. Each machine on the network will then search its local map to determine if there is a match. If a match exists, then a reply is sent to the requesting machine. If no match is found, then no reply is made. 70
71 Resource/Process Management Resource management is concerned with making both local and remote resources available to a user in an efficient and transparent manner the location of the resources is hidden from the user remote and local resources are accessed in the same manner. In a centralized computing system, the scheduler has full knowledge of the processes running in the system In a distributed system, there is no centralized table and even if it exists, it is very difficult to keep that database up-to-date. Lack of accurate global system status and load, make process scheduling and resource management is a challenging task Allocate processors to processes Schedule/balance loads Migrate processes 71
72 Resource Management- Processor Allocation In the case of a processor pool model, When processes are submitted there is some knowledge of the process type; whether CPU intensive, I/O intensive, its memory or resource requirements, etc. The resource manager then determines the number of processors to be allocated to the process one can organize the system processors into a logical hierarchy: master and workers A single master may oversee multiple workers and keep track of their status when a job is submitted, the master decides how the process may be split up among the workers. When several masters are used, one can designate a node or a committee of nodes the responsibility of managing all the masters in the system When a manager fails, one of the worker processors should be designated to carry the responsibilities of the failed manager. 72
73 Resource Management - Scheduling Scheduling is to maximize the utilization of the system resources and improves performance Schedule to improve reliability/availability Schedule to improve security, etc. Scheduling is even more important in distributed applications the scheduler needs to allocate the communicating tasks simultaneously on different processors in order to minimize the communication delays 73
74 Process Scheduling Time Machine Processor 1 Processor T T1 X 2T X T2 3T X X 4T T1 T2 5T X X 74
75 Resource Management - Load balancing and scheduling It aims at improving the performance by moving data, computation, or processes Load balancing has a more stringent requirement than scheduling Load balancing/scheduling techniques can be achieved by either migrating data, computation or processes. Process migration incurs high overhead 75
76 File Service There are three file system functions: disk service, flat file service, and directory service. The file system characteristics depend on how these functions are implemented One extreme approach is to implement all the functions as one program running on one computer. The other extreme is to implement each function independently so we can easily support different types of disk and file systems. this approach is inefficient because these modules will communicate with each other using the interprocess communication services. 76
77 File Service- Cont. A common file system is typically provided by file servers lower system costs, facilitate the sharing of data among users, simplify the management and administration of the file system file service can be distributed across several servers to provide a distributed file service (DFS) DFS should look to its users as a conventional file system The multiplicity of data and the geographic dispersion of data should be transparent to the users. DFS introduces new problems that the distributed operating system must address such as concurrent access, transparency and availability of the file service 77
78 Fault Tolerance Distributed systems are potentially more fault tolerant than a non-distributed system Fault tolerance enables a computing system to continue its operations successfully in-spite some failures in system components (hardware or software resources) Fault intolerance system crashes when some failure occurs There are two approaches to achieve fault tolerance: Redundancy Atomic transaction 78
79 Fault Tolerance - Redundancy Redundancy is the most widely used technique detecting faults once they occur, locating and isolating the faulty components, and then recover from the fault(s) fault detection and recovery are the most important and difficult to achieve Types of failures which may occur in the system are: hardware errors are of a Boolean nature Intermittent faults Software errors can be broken down into Specification errors Programming errors refer to the case where the program fails its specification Byzantine Faults malicious faults 79
80 Fault Tolerance - Atomic Transactions They refer to operations with a guarantee that operations will either be performed successfully until completion or non of them is executed and the system is restored to its initial state. To achieve atomic operations, the system relies careful read and write operations, stable storage, and stable processor 80
81 Fault Tolerance - Atomic Transactions Careful Disk Operations: CAREFUL_WRITE operation the data block is written to the disk a READ service is called to immediately read back the written block to make sure it was not written to a bad spot on the disk. If found persistent discrepancy after predetermined number of times, the disk spot is declared bad. Even, after writing correctly to the disk, the written spot can go bad. This is normally detected by checking the parity check field of any read block during the CAREFUL_READ operation. 81
82 Fault Tolerance - Atomic Transactions Stable Storage: attempt to mirror all data on more than one disk minimize the amount of data lost in the event of a disk failure. Writing to the stable storage abstraction first attempts a CAREFUL_WRITE to the primary disk If the operation completes without error, a CAREFUL_WRITE is attempted on the secondary disk If, on corresponding disk blocks the blocks are the same and GOOD, nothing further needs to be done with these blocks. On the other hand, if one is BAD and the other is GOOD, the BAD block is replaced by the data from the GOOD block on the other disk. If the disk blocks are both GOOD but the data is not identical, the data from the primary disk is written over the data from the secondary disk. 82
83 Fault Tolerance - Atomic Transactions Stable Processor: processes may checkpoint themselves to stable storage periodically in the event of the processor running the process crashes, the process may restore its last ckeckpointed state by reading the stable storage An atomic transaction can be implemented as: When a process wishes to make changes to a shared database, the changes are recorded in stable storage as an intention list. When all of the changes have been made, the process issues a commit request. The intention list is then written to memory. By using this method, all the intents of process are in stable storage and at any time during disk update, a crash can be recovered from by simply examining the contents of any outstanding intention list in memory each time a processor is brought up. 83
84 Security and Protection Security and protection are necessary to avoid unintentional or malicious attempts to harm the integrity of the distributed system. Security is implemented using techniques that are based on the following principles: What you have What you know What you are 84
85 Security Goals Confidentiality No one not authorize can see or access data Authentication Integrity Determining identity of principal Authenticity of document That it hasn t changes Availability Whenever you need to access your data, you can DoS attacks affect availability of services 85
86 Security Issues: Two security issues must be dealt with: authentication and authorization. Authentication: Authentication is making sure that an entity is what it claims to be. Password protection is sufficient in general systems high security systems might resort to physical identification or voice identification, cross examination, or user profiling to authenticate a user. Authorization: granting a process to do something based on the privileges it has. Privileges of a user over an entity may be expressed either as Access Control Lists (ACLs) Capabilities. 86
87 Security Policy Access Matrix Subject OBJ1 OBJ2 bcn RW R gost-group RW - obraczka R RW tyao R R Csci555 R - implemented as: Capabilities or Access Control list 87
88 Access Control Lists Advantages Easy to see who has access Easy to change/revoke access Disadvantages Time consuming to check access Extensions to ease management Groups EACLs 88
89 Extended Access Control Lists Conditional authorization Implemented as restrictions on ACL entries and embedded as restrictions in authentication and authorization credentials Principal Rights Conditions bcn RW HW-Authentication Retain Old Items gost-group RW TIME: 9AM-5PM authorization R Delegated-Access server * R Load Limit 8 Use: Non-Commercial * R Payment: $Price
90 Capabilities Advantages Easy and efficient to check access Easily propagated Disadvantages Hard to protect capabilities Hard to revoke Hybrid approach EACL s/proxies 90
91 Protecting capabilities Stored in Hidden Place Only protected calls manipulate Limitations? Works in centralized systems Distributed Systems Tokens with random or special coding Possibly protect through encryption 91
92 Distributed Operating Systems: Case Studies 1. Design Issues - Network Operating System v.s. Distributed Operating Systems - Design Issues 2. Case Studies LOCUS Amoeba V System Mach x-kernel
93 Locus : Main Goal & Features Main Goal - Distributed and reliable Unix - like operating system - High degree of location transparency, concurrency, replication and failure Features - Automatic replication of data under user control - User might be needed to produce a consist system after a network partitioning caused by computer or network failures
94 Locus : Descriptions It is compatible with Unix operating system (BSD and system V) It support DEC Vax/750, DEC PDP 11/45 and IBM PC connected by Ethernet or token ring Full Unix semantics and emulated Single tree structure File replication is made using multiple physical containers for each logical file group Atomic commit using shadow page used for redundancy management
95 Logical File Access Open(1) US Response(4) CSS SS 95
96 Amoeba : Main Goal & Advantage Main Goal - Develop a capability - based, object - based distributed operation system - make a large collection of machines (larger than the number of users) behave as a centralized time - sharing system Advantage - Transparency and high performance - Main disadvantages are inability to run existing binary Unix programs and the lack of virtual memory
97 Amoeba : Description It is a microkernel based operating system. The microkernel runs on each machine and handles communication, I/ O, low-level memory, and process management Other O.S. services are provided using servers running in user mode Most computing is done on the processor pool : a collection of CPUs that are dynamically allocated to jobs and then released Specialized servers (File servers and directory servers) handle certain system functions Each object has a global unique name, expressed through its capability The port number is generated randomly using 48 bits and stored in directories managed by a directory service To locate the service corresponding to a port, the client s kernel broadcasts a local packet
98 Amoeba : Description (cont) Bullet server supports immutable files that are stored contiguously on the disk. It achieves high throughput (800 Kbytes/sec) Directory server maps ASCI strings onto capabilities Run server handles requests to run a process and assigns it to the pool processor with the lightest load Object server handles replication in order to support fault tolerance. Processes that need fault tolerance need to register that request with the boot server Other servers include TCP/IP server, X-window server, I/O server, etc
99 Amoeba : Hardware Architecture It has four components: workstations, processor pool, specialized servers and gateways Processor pool provides most of the computing power Processors can be allocated dynamically to user applications the number of processors exceeds the number of users by an order of magnitude Gateways are used to access other Amoeba systems over a wide area networks Centralizing the computing power allows incremental growth, fault tolerance and ability to obtain a large amount of computing power temporarily
100 Amoeba : Hardware Architecture processor pool WAN gateway servers... LAN... supercomputer multicomputer... processor array :... workstations terminals
101 Amoeba : Software Architecture Object-based system using clients and servers Each object is identified and protected by a capability It identifies the set of operations that the holder can perform on the object Guessing an object capability is infeasible because of using cryptographic protection Capability are kept secret by embedding them in a huge address space Given a capability, the system can easily find a server process that manages the corresponding object Kernel manages memory, supports processes with multiple threads and handle interprocess communication All other services are provided by user-level processes
102 Amoeba : Software Architecture bits Service Port Object Number Right field Check field Structure of a capability. The service port identifies the service that manages the object. The object number specifies the object. The rights field determines which operations are permitted. The check field cryptographic protects from users tampering with the other field
103 Process capability Host descriptor Process capability Handler capability Number of segments Segment descriptor Number of threads Thread descriptor Amoeba process descriptor 103
104 Amoeba : Communications It is based on a client thread (light-weight processes) performing operations on objects A client sends a request message to a server that manages the object A server thread, accepts the message, carries out the request, and sends the reply Multiple server processes could manage a collection of objects increase performance and fault tolerance ECE 677, DOS Lectures
105 Amoeba: Remote Procedure Call The kernel provides three basic operations: do_operation : used by client to get work done, send a message to server and block until reply comes back get_request : used by servers to announce their willingness to accept messages addressed to specific ports send_reply: sends results to clients A more user-oriented interface has been built on top of these three primitives
106 Amoeba: Remote Procedure Call The Amoeba Interface language compiler generates code to marshal or un-marshal the parameters into and out of message buffers and then call the transport mechanism
107 Amoeba : Locating Objects do_operation : If the kernel knows the server address, it can locate the object. If the kernel doesn't know the server address, it uses broadcast to get the address server perform : get_request
108 Amoeba : Secure Communications Knowing the port is taken by the system as evidence that the sender has a right to communicate with the service Amoeba has two level of protection: ports for protecting access to servers capabilities for protecting access to individual objects How do we secure communications? Introduce a one-way filter that can be implemented in hardware or software
109 Amoeba : Secure Communications Intruder F get_request(f(p)) F P P = F (G) F Client do_operation(p) Get addr(g) secret Server P = get_request(g) Client, server, intruders and F-boxes
110 Amoeba : File Service Bullet Service: it stores all files contiguously both on disk and in the bullet server's memory No disk access is needed to fetch the i-node and one disk access is needed to access the whole file Supports three operations: read file, create file, and delete file => files are immutable Several advantages fast retrieval simplify administration remove inconsistency patterns File can be transferred in one (single) RPC if less than 30K
111 Amoeba : Directory Service Bullet server has no high level memory services to access a file, a person must provide the relevant capability directory service maps an ASCII string into a capability
112 Object Name Capability Owner Group Other cap games_dir cap paper.1 cap prog.c cap A directory with three user classes 112
113 Mach Distributed Operating System An earlier roots go back to Rochester Intelligent gateway (RIG) in 1975 (a message passing OS) second generation was in 1979 Mach third generation was in should be compatible with Unix (1986) Open Software Foundation (OSF) choose MACH 2.5 to be its first version of OSF/1. - a base to build other OS - support large sparse address space - transparent access to network resources - exploit parallelism in both system and applications - portable to a larger collection of machines
114 Mach : Main Goal & Advantages Main Goal - Integrate distributed and multiprocessor functionality - Full binary compatibility with Unix BSD Advantages - Good environment for distributed and parallel applications because of efficient support to : * shared memory * message passing for uniprocessor and multiprocessors * smooth transition from Unix environment to MACH
115 System Model Mach is a micro-kernel based operating system. It has been designed to provide a base for building new operating systems and emulating existing ones (e.g., UNIX, MS-Windows, etc.) Mach is based on the concepts of processes, threads, ports, and messages. The MACH kernel provides the basic critical resource management tasks: memory management, scheduling, device management, inter-process communication. The emulated operating systems (e.g., UNIX systems) run on top of the kernel as servers or applications that provide users or applications the operating system environment in a transparent manner. 115
116 Mach (cont) The abstract model for Unix emulation using Mach User processes User space Software emulator layer 4.3 BSD emulator System V emulator HP/UX emulator other emulator Microkernel Kernel space
117 Mach - Resource Management Process Management: Mach split the traditional UNIX abstraction of a process into a process and threads. A process in Mach consists primarily of an address space and a collection of threads that execute in that address space In Mach, processes are passive and are used for collecting all the resources related to a group of cooperating threads into convenient containers. The active entities in Mach are the threads that execute instructions and manipulate their registers and address spaces. Each thread belongs to exactly one process. A process cannot do anything unless it has one or more threads. A thread contains the processor state, and the contents of a machine's registers. All threads within a process share the virtual memory address space and communications privileges associated with their process. 117
118 Mach - Process Management The UNIX abstraction of a process is simulated in Mach by combining a process and a single thread. Mach allows multiprocessor threads to execute in parallel on separate processors. Mach threads are managed by the kernel, that is, they are heavyweight threads rather than lightweight threads (pure user space threads). Thread creation and destruction are performed by the kernel and involve updating kernel data structures. The primary data structure used by the Mach scheduler is the run queue A hint is maintained to indicate the probable location of the highest priority thread. Each run queue also contains a mutual exclusion lock and a count of threads currently enqueued. 118
119 Mach : Process Management Process Address space Thread A Mach process Other process properties Suspend counter Scheduling parameters Emulation address Statistics Process port Bootsttrap port Exception port Registered ports Kernel Selected process management calls in Mach : Create, Terminate, Suspend, Resume, Priority, Assign, Info, Threads.
120 Mach - Processor Allocation processor allocation approach must be flexible and portable 1) allocating processors to applications should support different languages with different programming modes; 2) allocation approach should be easily portable to different parallel and distributed architectures; 3) it should accommodate different allocation policies; 4) it should offer applications complete control over which threads execute on which processors, but it should not force implementation on applications not wanting this degree of control. 120
121 Mach - Processor Allocation Responsibility for the allocation and use of dedicated processors is divided among the application, server, and kernel. The application controls the assignment of processes and threads to processor sets. The server controls the assignment of processors to processor sets. The kernel does whatever the application and server asks it to do. In this scheme, the physical processors allocated to the processor sets of an application can be chosen to match the application requirements. Assigning threads to processor sets gives the application complete control over which threads run on which processors. isolating scheduling policy in a server, simplifies changes for different hardware architectures and site-specific usage policies. ECE 677, DOS Lectures 121
122 Mach : Memory Management It has three parts: - pmap module: sets the MMU registers and hardware page tables - machine-independent kernel code: to process page faults, managing address maps, and replacing pages - external manager (user space): management of backup store, which pages in main memory, where they are kept on disks Distributed Memory in Mach - single, linear virtual address space - shared pages are managed by one or more special memory managers - one Distributed Shared Memory (DSM) server - DSM handles all references to shared pages - readable pages are replicated at all nodes - writable pages will have only one copy
123 Communication in Mach It can handle asynchronous message passing, RPC, byte streams, and other forms The basis of all communications is a protected mailbox called ``port'' Selected port management calls in Mach : Allocate, Destroy, Deallocate, Extract_right, Insert_right, Move_member, Set_limit
124 MACH : Descriptions (cont) Every access to a port is protected by the use of capabilities Network servers provide all comm. over the network. Each host will have one network server Each network server maintains a mapping between network ports and corresponding local ports MACH provides an interface specification language (MIG) to specify interfaces between clients and servers and then generate remote procedure call stubs It is possible to share memory between multiple threads (the entities of control) and tasks (the entities of resource allocation) in a highly machine independent manner
125 MACH : Descriptions MACH runs on many platforms Interprocess Communication (IPC) : It uses ports as an abstraction to which messages can be sent asynchronously A B Sending thread Receiving thread SEND Port RECEIVE Kernel
126 The Network Management Server Communication over the network is handled by net. message servers (NMS) NMS is a multithread process that performs a variety of functions: interfacing with local threads, forward message over network, translating data types, network-wide name lookup service and authentication services
127 The Network Management Server Table mapping between local ports and network ports Local network Local network Machine A Machine B C NMS NMS S Inter-machine communication in Mach proceeds in five steps
128 CASE STUDIES:The X-Kernel Reference: A platform for accessing Internet resources, IEEE Computer, May 1990 An experimental operating system to allow uniform access to resources throughout a nationwide internet Focus is on wide-area networks rather than LANs a workstation needs to access several different file systems more protocols lead to more accessible resources X-kernel supports a library of protocols and it accesses different resources with different protocol combinations On top of X-kernel, the user-level systems provides an integrated and uniform interface to resources
129 X-Kernel - Goals and Objectives X-Kernel can be viewed as a toolkit that provides all the tools and building blocks to build and experiment with distributed operating systems configured to meet certain class of applications. The main advantages of x-kernel are x-kernel configurability its ability to provide an efficient environment to experiment with new operating systems as well as different communications protocols. 129
130 X - Kernel - System Model Kernel is a micro-kernel-based operating system configurable to support experimentation in inter-process communication and distributed programming The motivation of this approach is two fold: 1) no communication paradigm is appropriate for all applications; and 2) use the X-Kernel framework to obtain realistic performance measures. The x-kernel supports memory management lightweight processes development of different communications protocols. 130
131 X - Kernel - Resource Management An important aspect of any distributed system involves its ability to pass control and data efficiently between the kernel and user programs. In x-kernel, the transfer between user and kernel space has been made efficient by having the kernel execute in the same address space of the user data 131
132 The X-Kernel : Process and Memory an important aspect of a workstation OS involves its ability to pass control and data efficiently between the kernel and user programs user data is accessible because kernel process executes in same address space kernel process -> user process sets up user stack pushes arguments use user-stack access only user data kernel -> user (245 usec), user -> kernel 20 usec on SUN 3/75
133 The X-Kernel : Process and Memory Process stack Procsee stack USP (Private) KSP User stack Kernel stack Kernel code / data area User code / data area (Shared) (Shared) Virtual Address Space
134 X - Kernel - Inter-Process Communication There are three communication objects: protocols, sessions, and messages. A different protocol object is used for each protocol type The session object is the protocol's objects interpreter and it contains the data that represents the protocol state. The message objects are transmitted by the protocol and session objects. To communicate between processes in different address spaces or different machines the protocol objects are used and messages are sent. Processes in the same address space can synchronize using kernel semaphores. 134
135 X - Kernel - Inter-Process Communiation There are several routines which are used to provide the wide variety of protocols:. buffer manager, map manager, and event manager, The buffer manager routines uses the heap to allocate message buffers The map manager maps one identifier from a message header to capabilities used by the kernel objects. The event manager allows a protocol to provide a procedure call which is a timed event A protocol object can create a session object and demultiplex messages before sent to session object. There are three operations that the protocol object uses which are open, open_enable, and open_done 135
136 The X-Kernel : Communication Management The open creates a session object caused by a user process, the open_enable and open_done are invoked by a message from the network. The protocol object is also a demux function operation and can send any message from the network to one of the session created by the protocol object Session have two operations push and pop. Push is used by a higher session to send a message to a lower session. The pop operation is used by the demux operation of a protocol object to send a message to its session. As a message is passed between sessions, information is added to the header and sometimes the message can be split up into several messages. If a message goes from a device to the user level, it can be put into a larger message.
137 The X-Kernel : Communication Management Push Push Push Open Pop Pop Pop TCP (a) Protocol (a) and Session (b) Objects TCP Demux (b)
138 The X-Kernel : Communication Management In X-kernel, each protocol is encapsulated into a single protocol object and a collection of session objects TCP protocol is directly accessible by user programs. For a user to access one protocol, it makes itself a protocol and then access that protocol In X -kernel, the responsibility for processing the packet passes from one protocol to another by having the first protocol invoke an operation exported by the second. - no need to process switch between protocols X-kernel has a library of support routines that provides efficient solutions to programming tasks common to all protocols (message manager and map manager and event manager). Massage manger: add headers, strip headers, fragment, etc. Map manager: to switch between lower level protocols to appropriate session objects Event manger: provides an alarm (clock) for protocols
139 The X-Kernel : Communication Management NFS Xserver TFTP DNS RP C UDP TCP Psync ARP IP Protocol Suite ETH Keybrd Mouse
140 X - Kernel File System The x-kernel file system allows its users to access any x-kernel resource regardless of the user location. It provides a uniform interface by implementing a logical file system that can contain several different physical file systems. the logical file system concept allows the file system to be tailored to user`s requirements instead of being tied to a machine architecture. 140
141 The X-Kernel : Logical File System LFS UFA PNS NFS AFS FTP file protocol confguration
142 The X-Kernel : Logical File System It is defined by a per user-basis and it behaves as Unix file system Private Name Space (PNS) protocol implements the directory functions Uniform File Access (UFA) protocol implements the storage function 1 proj1 proj2.twmrc src bin doc src paper journal conf original private file hierarchy
143 The X-Kernel : Performance X-kernel supports efficient implementation of a wide variety of protocols all times are user-to-user except for Sprite RPC (kernel to kernel) Unix protocol performance is limited by socket abstraction Protocol X-kernel Other System (msec) (msec) UDP (Unix) 7.5 (Sprite) TCP (Unix) 11.0 Mach Sun RPC (Unix) Spite RPC (Sprite) Latency of various protocol
144 DISTRIBUTED OPERATING SYSTEM FEATURES Transparency Name location access replication concurrency failure Amoeba * * * * LOCUS * * * * * MACH * * * SPRITE * * * V * * Heterogeneity Name OS CPU Amoeba (UNIX) VAXs, SUN 3, (386s, SPARC) LOCUS UNIX 4.x BSD, V DEC VAX/750, PDP-11/45, IBM PC MACH UNIX 4.3 BSD VAXs, SUN 3, NS32032, MacII, I386 SPRITE UNIX 4.3 BSD SUNs, DEC&SPARCstations, Sequent Symmetry V UNIX 4.x BSD SUN 2/3, VAXstationII
145 DISTRIBUTED OPERATING SYSTEMS FEATURES Changes made Communication Connection Name new new standard specialized shared RPC pipes/ kernel kernel protocol protocol memory based VC datagram stream Amoeba * Amoeba * LOCUS * * * MACH * * * * * SPRITE * * * V * VMTP * * Semantics Naming Security Name may at most exactly object - hier- en- special capa- mutual be once once oriented archical cryption HW bilities auth. Amoeba * * * * * LOCUS * * * MACH * * * SPRITE * * V * *
146 DISTRIBUTED OPERATING SYSTEMS FEATURES Availability Failures object/ Name synchro- nested repli- recovery recovery stable orphan Process nization TA TA cation client crash server crash storage detection Mobility Amoeba * * * * LOCUS * * * * * * * MACH + + * SPRITE * + + * V * (*) (+) * ECE 677, DOS Lectures
147 Advances in D.O.S- Case Studies SOMBRERO 2K Network Hardware IS the O.S. Virtually Owned Computers-an interesting sidenote 147
148 SOMBRERO Arizona State University, 2006 Very Large Single Address Space D.O.S. Systemwide set of virtual addresses Unique address for EVERY datum in memory 64 bit Virtual Address Space Could create a 4GB object once a second for 136 years! 148
149 SOMBRERO Single Address Space reduces (eliminates) overhead Interprocess Communications File Systems Multiple Virtual Address Spaces All activities are distributed and shared by DEFAULT 149
150 SOMBRERO (cont d) Virtual Addresses Permanently and uniquely bound to all objects Spans all levels of storage Manipulated directly by the CPU- no address translation All physical storage devices are viewed as caches for the contents of virtual objects 150
151 SOMBRERO (cont d) Transparent Interprocess Communication Unified Resource Management threads may travel with no changes to address space Security by restricting OBJECT access 151
152 2K: A Component-Based Network-Centric Operating System For the next Millennium University of Illinois: Urbana-Champaign Integrated Environment to support: Dynamic instantiation Heterogeneous computing systems Distributed resource management 152
153 2K (cont d) Operates as Configurable Middleware does not rely on TCP/IP dynamically configurable reflective ORB adaptable Microkernel What you need is what you get (WYNIWYG) only those objects needed by application are loaded Object based resource management 153
154 2K (cont d) All elements represented as CORBA objects Each object has a network-wide identity Upon dynamic configuration, objects that constitute a service are assembled QOS: after negotiating a connection, applications have access to system s dynamic state 154
155 2K (cont d) Each Node executes a Local Resource Manager (LRM) Uses symbolic naming and CORBA compliant naming Access to objects is restricted to controlled CORBA interfaces 155
156 Network Hardware IS the O.S. University of Madrid, 1997 Adaptable and Flexible D.O.S. Minimal Adaptable Distributed Microkernel...build distributed-microkernel based Operating Systems instead of microkernel based distributed systems. 156
157 Network Hardware IS the O.S. Entire network is considered exported and multiplexed hardware instead of isolated entities OFF: microkernel and its abstractions are distributed and adaptable Normal microkernels multiplex local resources only OFF microkernels multiplexe local and REMOTE resources 157
158 Network Hardware IS the O.S. Only abstraction is the shuttle - program counter and stack pointer shuttle can be migrated between processors Communication handled by portals - a distributed interrupt line that behaves like active messaging 158
159 Network Hardware IS the O.S. Portals do not use buffering User determines Synchronous, Asynchronous, or RPC communication Not a Single Address Space BUT physical addresses MAY refer to remote memory locations Uses a distributed software TLB 159
160 Virtually Owned Computers University of Texas at Austin Each user owns an imaginary computera virtual computer The virtual computer is only a description and may not correspond to any real hardware components The virtual computer consists of a CPU and a scheduling algorithm 160
161 Virtually Owned Computers Each user is promised a given quality of service Services received are independent of the execution location Quality of Service is measured using response time 161
CS3600 SYSTEMS AND NETWORKS
CS3600 SYSTEMS AND NETWORKS NORTHEASTERN UNIVERSITY Lecture 2: Operating System Structures Prof. Alan Mislove ([email protected]) Operating System Services Operating systems provide an environment for
Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture
Last Class: OS and Computer Architecture System bus Network card CPU, memory, I/O devices, network card, system bus Lecture 3, page 1 Last Class: OS and Computer Architecture OS Service Protection Interrupts
Objectives. Chapter 2: Operating-System Structures. Operating System Services (Cont.) Operating System Services. Operating System Services (Cont.
Objectives To describe the services an operating system provides to users, processes, and other systems To discuss the various ways of structuring an operating system Chapter 2: Operating-System Structures
Operating System Structures
COP 4610: Introduction to Operating Systems (Spring 2015) Operating System Structures Zhi Wang Florida State University Content Operating system services User interface System calls System programs Operating
Chapter 3: Operating-System Structures. Common System Components
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation System Generation 3.1
Lesson Objectives. To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization
Lesson Objectives To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization AE3B33OSD Lesson 1 / Page 2 What is an Operating System? A
Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture
Last Class: OS and Computer Architecture System bus Network card CPU, memory, I/O devices, network card, system bus Lecture 3, page 1 Last Class: OS and Computer Architecture OS Service Protection Interrupts
Lecture 1 Operating System Overview
Lecture 1 Operating System Overview What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware. The Major Objectives of an Operating system
Example of Standard API
16 Example of Standard API System Call Implementation Typically, a number associated with each system call System call interface maintains a table indexed according to these numbers The system call interface
Operating System Components
Lecture Overview Operating system software introduction OS components OS services OS structure Operating Systems - April 24, 2001 Operating System Components Process management Memory management Secondary
Chapter 3: Operating-System Structures. System Components Operating System Services System Calls System Programs System Structure Virtual Machines
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines Operating System Concepts 3.1 Common System Components
Chapter 3 Operating-System Structures
Contents 1. Introduction 2. Computer-System Structures 3. Operating-System Structures 4. Processes 5. Threads 6. CPU Scheduling 7. Process Synchronization 8. Deadlocks 9. Memory Management 10. Virtual
System Structures. Services Interface Structure
System Structures Services Interface Structure Operating system services (1) Operating system services (2) Functions that are helpful to the user User interface Command line interpreter Batch interface
Kernel Types System Calls. Operating Systems. Autumn 2013 CS4023
Operating Systems Autumn 2013 Outline 1 2 Types of 2.4, SGG The OS Kernel The kernel is the central component of an OS It has complete control over everything that occurs in the system Kernel overview
Chapter 2 System Structures
Chapter 2 System Structures Operating-System Structures Goals: Provide a way to understand an operating systems Services Interface System Components The type of system desired is the basis for choices
Review from last time. CS 537 Lecture 3 OS Structure. OS structure. What you should learn from this lecture
Review from last time CS 537 Lecture 3 OS Structure What HW structures are used by the OS? What is a system call? Michael Swift Remzi Arpaci-Dussea, Michael Swift 1 Remzi Arpaci-Dussea, Michael Swift 2
CS420: Operating Systems OS Services & System Calls
NK YORK COLLEGE OF PENNSYLVANIA HG OK 2 YORK COLLEGE OF PENNSYLVAN OS Services & System Calls James Moscola Department of Physical Sciences York College of Pennsylvania Based on Operating System Concepts,
Distributed Operating Systems
Distributed Operating Systems Prashant Shenoy UMass Computer Science http://lass.cs.umass.edu/~shenoy/courses/677 Lecture 1, page 1 Course Syllabus CMPSCI 677: Distributed Operating Systems Instructor:
2.1 What are distributed systems? What are systems? Different kind of systems How to distribute systems? 2.2 Communication concepts
Chapter 2 Introduction to Distributed systems 1 Chapter 2 2.1 What are distributed systems? What are systems? Different kind of systems How to distribute systems? 2.2 Communication concepts Client-Server
Distributed Systems LEEC (2005/06 2º Sem.)
Distributed Systems LEEC (2005/06 2º Sem.) Introduction João Paulo Carvalho Universidade Técnica de Lisboa / Instituto Superior Técnico Outline Definition of a Distributed System Goals Connecting Users
Operating Systems 4 th Class
Operating Systems 4 th Class Lecture 1 Operating Systems Operating systems are essential part of any computer system. Therefore, a course in operating systems is an essential part of any computer science
Chapter 6, The Operating System Machine Level
Chapter 6, The Operating System Machine Level 6.1 Virtual Memory 6.2 Virtual I/O Instructions 6.3 Virtual Instructions For Parallel Processing 6.4 Example Operating Systems 6.5 Summary Virtual Memory General
Operating system Dr. Shroouq J.
3 OPERATING SYSTEM STRUCTURES An operating system provides the environment within which programs are executed. The design of a new operating system is a major task. The goals of the system must be well
OPERATING SYSTEMS STRUCTURES
S Jerry Breecher 2: OS Structures 1 Structures What Is In This Chapter? System Components System Calls How Components Fit Together Virtual Machine 2: OS Structures 2 SYSTEM COMPONENTS These are the pieces
How do Users and Processes interact with the Operating System? Services for Processes. OS Structure with Services. Services for the OS Itself
How do Users and Processes interact with the Operating System? Users interact indirectly through a collection of system programs that make up the operating system interface. The interface could be: A GUI,
Principles and characteristics of distributed systems and environments
Principles and characteristics of distributed systems and environments Definition of a distributed system Distributed system is a collection of independent computers that appears to its users as a single
Tools Page 1 of 13 ON PROGRAM TRANSLATION. A priori, we have two translation mechanisms available:
Tools Page 1 of 13 ON PROGRAM TRANSLATION A priori, we have two translation mechanisms available: Interpretation Compilation On interpretation: Statements are translated one at a time and executed immediately.
Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edition
Chapter 2: Operating-System Structures Silberschatz, Galvin and Gagne 2013 Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System
Chapter 1: Introduction. Chapter 1: Introduction. Operating System Concepts, 7th Edition. Objectives
Chapter 1: Introduction Chapter 1: Introduction 1.1 What Operating Systems Do 1.2 Computer-System Organization 1.3 Computer-System Architecture 1.4 Operating-System Structure 1.5 Operating-System Operations
Introduction. What is an Operating System?
Introduction What is an Operating System? 1 What is an Operating System? 2 Why is an Operating System Needed? 3 How Did They Develop? Historical Approach Affect of Architecture 4 Efficient Utilization
Operating System Structures
Operating System Structures Meelis ROOS [email protected] Institute of Computer Science Tartu University fall 2009 Literature A. S. Tanenbaum. Modern Operating Systems. 2nd ed. Prentice Hall. 2001. G. Nutt.
Chapter 11: File System Implementation. Operating System Concepts with Java 8 th Edition
Chapter 11: File System Implementation 11.1 Silberschatz, Galvin and Gagne 2009 Chapter 11: File System Implementation File-System Structure File-System Implementation Directory Implementation Allocation
Overview of Operating Systems Instructor: Dr. Tongping Liu
Overview of Operating Systems Instructor: Dr. Tongping Liu Thank Dr. Dakai Zhu and Dr. Palden Lama for providing their slides. 1 Lecture Outline Operating System: what is it? Evolution of Computer Systems
Operating Systems OS Architecture Models
Operating Systems OS Architecture Models ECE 344 OS Architecture Designs that have been tried in practice Monolithic systems Layered systems Virtual machines Client/server a.k.a. Microkernels Many of the
Virtual machine interface. Operating system. Physical machine interface
Software Concepts User applications Operating system Hardware Virtual machine interface Physical machine interface Operating system: Interface between users and hardware Implements a virtual machine that
Client/Server Computing Distributed Processing, Client/Server, and Clusters
Client/Server Computing Distributed Processing, Client/Server, and Clusters Chapter 13 Client machines are generally single-user PCs or workstations that provide a highly userfriendly interface to the
How To Write A Windows Operating System (Windows) (For Linux) (Windows 2) (Programming) (Operating System) (Permanent) (Powerbook) (Unix) (Amd64) (Win2) (X
(Advanced Topics in) Operating Systems Winter Term 2009 / 2010 Jun.-Prof. Dr.-Ing. André Brinkmann [email protected] Universität Paderborn PC 1 Overview Overview of chapter 3: Case Studies 3.1 Windows Architecture.....3
Chapter 18: Database System Architectures. Centralized Systems
Chapter 18: Database System Architectures! Centralized Systems! Client--Server Systems! Parallel Systems! Distributed Systems! Network Types 18.1 Centralized Systems! Run on a single computer system and
1.4 SOFTWARE CONCEPTS
22 INTRODUCTION CHAP. 1 1.4 SOFTWARE CONCEPTS Hardware for distributed systems is important, but it is software that largely determines what a distributed system actually looks like. Distributed systems
How To Make A Distributed System Transparent
Operating Systems Interface between the hardware and the rest: editors, compilers, database systems, application programs, your programs, etc. Allows portability, enables easier programming, The manager
Operating System Structure
Operating System Structure Lecture 3 Disclaimer: some slides are adopted from the book authors slides with permission Recap Computer architecture CPU, memory, disk, I/O devices Memory hierarchy Architectural
OS Concepts and structure
OS Concepts and structure Today OS services OS interface to programmers/users OS components & interconnects Structuring OSs Next time Processes Between hardware and your apps User processes Thunderbird
Amoeba Distributed Operating System
Amoeba Distributed Operating System Matt Ramsay Tim Kiegel Heath Memmer CS470 Case Study Paper 4/19/02 Amoeba Introduction The Amoeba operating system began as a research project at Vrije Universiteit
Chapter 11 I/O Management and Disk Scheduling
Operating Systems: Internals and Design Principles, 6/E William Stallings Chapter 11 I/O Management and Disk Scheduling Dave Bremer Otago Polytechnic, NZ 2008, Prentice Hall I/O Devices Roadmap Organization
A Comparison of Distributed Systems: ChorusOS and Amoeba
A Comparison of Distributed Systems: ChorusOS and Amoeba Angelo Bertolli Prepared for MSIT 610 on October 27, 2004 University of Maryland University College Adelphi, Maryland United States of America Abstract.
Operating Systems Overview
Operating Systems Overview No single definition, but many perspectives: Role in an overall system: Intermediary between computer hardware and everything else User view: Provides an environment, preferably
CSE 120 Principles of Operating Systems. Modules, Interfaces, Structure
CSE 120 Principles of Operating Systems Fall 2000 Lecture 3: Operating System Modules, Interfaces, and Structure Geoffrey M. Voelker Modules, Interfaces, Structure We roughly defined an OS as the layer
Software Concepts. Uniprocessor Operating Systems. System software structures. CIS 505: Software Systems Architectures of Distributed Systems
CIS 505: Software Systems Architectures of Distributed Systems System DOS Software Concepts Description Tightly-coupled operating system for multiprocessors and homogeneous multicomputers Main Goal Hide
CS 3530 Operating Systems. L02 OS Intro Part 1 Dr. Ken Hoganson
CS 3530 Operating Systems L02 OS Intro Part 1 Dr. Ken Hoganson Chapter 1 Basic Concepts of Operating Systems Computer Systems A computer system consists of two basic types of components: Hardware components,
Distributed Systems. REK s adaptation of Prof. Claypool s adaptation of Tanenbaum s Distributed Systems Chapter 1
Distributed Systems REK s adaptation of Prof. Claypool s adaptation of Tanenbaum s Distributed Systems Chapter 1 1 The Rise of Distributed Systems! Computer hardware prices are falling and power increasing.!
Computers: Tools for an Information Age
Computers: Tools for an Information Age Chapter 3 Operating Systems: Software in the Background Objectives of Chapter 3 Describe the functions of an Operating System Explain the basics of a personal computer
ELEC 377. Operating Systems. Week 1 Class 3
Operating Systems Week 1 Class 3 Last Class! Computer System Structure, Controllers! Interrupts & Traps! I/O structure and device queues.! Storage Structure & Caching! Hardware Protection! Dual Mode Operation
CS 377: Operating Systems. Outline. A review of what you ve learned, and how it applies to a real operating system. Lecture 25 - Linux Case Study
CS 377: Operating Systems Lecture 25 - Linux Case Study Guest Lecturer: Tim Wood Outline Linux History Design Principles System Overview Process Scheduling Memory Management File Systems A review of what
Centralized Systems. A Centralized Computer System. Chapter 18: Database System Architectures
Chapter 18: Database System Architectures Centralized Systems! Centralized Systems! Client--Server Systems! Parallel Systems! Distributed Systems! Network Types! Run on a single computer system and do
Chapter 1: Operating System Models 1 2 Operating System Models 2.1 Introduction Over the past several years, a number of trends affecting operating system design are witnessed and foremost among them is
Chapter 13 File and Database Systems
Chapter 13 File and Database Systems Outline 13.1 Introduction 13.2 Data Hierarchy 13.3 Files 13.4 File Systems 13.4.1 Directories 13.4. Metadata 13.4. Mounting 13.5 File Organization 13.6 File Allocation
Chapter 13 File and Database Systems
Chapter 13 File and Database Systems Outline 13.1 Introduction 13.2 Data Hierarchy 13.3 Files 13.4 File Systems 13.4.1 Directories 13.4. Metadata 13.4. Mounting 13.5 File Organization 13.6 File Allocation
Chapter 2: OS Overview
Chapter 2: OS Overview CmSc 335 Operating Systems 1. Operating system objectives and functions Operating systems control and support the usage of computer systems. a. usage users of a computer system:
Principles of Operating Systems CS 446/646
Principles of Operating Systems CS 446/646 1. Introduction to Operating Systems a. Role of an O/S b. O/S History and Features c. Types of O/S Mainframe systems Desktop & laptop systems Parallel systems
Distributed File Systems
Distributed File Systems Paul Krzyzanowski Rutgers University October 28, 2012 1 Introduction The classic network file systems we examined, NFS, CIFS, AFS, Coda, were designed as client-server applications.
How To Understand The Concept Of A Distributed System
Distributed Operating Systems Introduction Ewa Niewiadomska-Szynkiewicz and Adam Kozakiewicz [email protected], [email protected] Institute of Control and Computation Engineering Warsaw University of
Network Attached Storage. Jinfeng Yang Oct/19/2015
Network Attached Storage Jinfeng Yang Oct/19/2015 Outline Part A 1. What is the Network Attached Storage (NAS)? 2. What are the applications of NAS? 3. The benefits of NAS. 4. NAS s performance (Reliability
Introduction. System Calls
TDDB68 Concurrent programming and operating systems Introduction. System Calls [SGG7/8/9] Chapter 1.1-1.7 Chapter 2.3-2.5 Overview of the major operating systems components Interrupts, Dual mode, System
CHAPTER 15: Operating Systems: An Overview
CHAPTER 15: Operating Systems: An Overview The Architecture of Computer Hardware, Systems Software & Networking: An Information Technology Approach 4th Edition, Irv Englander John Wiley and Sons 2010 PowerPoint
Operating System Tutorial
Operating System Tutorial OPERATING SYSTEM TUTORIAL Simply Easy Learning by tutorialspoint.com tutorialspoint.com i ABOUT THE TUTORIAL Operating System Tutorial An operating system (OS) is a collection
Operating Systems Prof. Ashok K Agrawala
CSMC 412 Operating Systems Prof. Ashok K Agrawala 2006 Ashok Agrawala 1.1 Silberschatz, Galvin and Gagne 2005 Dayalbagh Eductional Institute Welcome Review Syllabus Today read the warning about the size
We mean.network File System
We mean.network File System Introduction: Remote File-systems When networking became widely available users wanting to share files had to log in across the net to a central machine This central machine
Microkernels, virtualization, exokernels. Tutorial 1 CSC469
Microkernels, virtualization, exokernels Tutorial 1 CSC469 Monolithic kernel vs Microkernel Monolithic OS kernel Application VFS System call User mode What was the main idea? What were the problems? IPC,
File System Management
Lecture 7: Storage Management File System Management Contents Non volatile memory Tape, HDD, SSD Files & File System Interface Directories & their Organization File System Implementation Disk Space Allocation
1 Organization of Operating Systems
COMP 730 (242) Class Notes Section 10: Organization of Operating Systems 1 Organization of Operating Systems We have studied in detail the organization of Xinu. Naturally, this organization is far from
Computer Science 4302 Operating Systems. Student Learning Outcomes
Computer Science 4302 Operating Systems Student Learning Outcomes 1. The student will learn what operating systems are, what they do, and how they are designed and constructed. The student will be introduced
OPERATING SYSTEM SERVICES
OPERATING SYSTEM SERVICES USER INTERFACE Command line interface(cli):uses text commands and a method for entering them Batch interface(bi):commands and directives to control those commands are entered
CHAPTER 2 MODELLING FOR DISTRIBUTED NETWORK SYSTEMS: THE CLIENT- SERVER MODEL
CHAPTER 2 MODELLING FOR DISTRIBUTED NETWORK SYSTEMS: THE CLIENT- SERVER MODEL This chapter is to introduce the client-server model and its role in the development of distributed network systems. The chapter
Components of a Computer System
SFWR ENG 3B04 Software Design III 1.1 3 Hardware Processor(s) Memory I/O devices Operating system Kernel System programs Components of a Computer System Application programs Users SFWR ENG 3B04 Software
Cloud Computing. Up until now
Cloud Computing Lecture 11 Virtualization 2011-2012 Up until now Introduction. Definition of Cloud Computing Grid Computing Content Distribution Networks Map Reduce Cycle-Sharing 1 Process Virtual Machines
Client/Server and Distributed Computing
Adapted from:operating Systems: Internals and Design Principles, 6/E William Stallings CS571 Fall 2010 Client/Server and Distributed Computing Dave Bremer Otago Polytechnic, N.Z. 2008, Prentice Hall Traditional
Introduction to Operating Systems. Perspective of the Computer. System Software. Indiana University Chen Yu
Introduction to Operating Systems Indiana University Chen Yu Perspective of the Computer System Software A general piece of software with common functionalities that support many applications. Example:
Distributed System: Definition
Distributed System: Definition A distributed system is a piece of software that ensures that: A collection of independent computers that appears to its users as a single coherent system Two aspects: (1)
File Management. COMP3231 Operating Systems. Kevin Elphinstone. Tanenbaum, Chapter 4
File Management Tanenbaum, Chapter 4 COMP3231 Operating Systems Kevin Elphinstone 1 Outline Files and directories from the programmer (and user) perspective Files and directories internals the operating
Chapter 16 Distributed Processing, Client/Server, and Clusters
Operating Systems: Internals and Design Principles Chapter 16 Distributed Processing, Client/Server, and Clusters Eighth Edition By William Stallings Table 16.1 Client/Server Terminology Applications Programming
Multiprogramming. IT 3123 Hardware and Software Concepts. Program Dispatching. Multiprogramming. Program Dispatching. Program Dispatching
IT 3123 Hardware and Software Concepts Operating Systems II October 26 Multiprogramming Two or more application programs in memory. Consider one CPU and more than one program. This can be generalized to
CSC 2405: Computer Systems II
CSC 2405: Computer Systems II Spring 2013 (TR 8:30-9:45 in G86) Mirela Damian http://www.csc.villanova.edu/~mdamian/csc2405/ Introductions Mirela Damian Room 167A in the Mendel Science Building [email protected]
Kernel. What is an Operating System? Systems Software and Application Software. The core of an OS is called kernel, which. Module 9: Operating Systems
Module 9: Operating Systems Objective What is an operating system (OS)? OS kernel, and basic functions OS Examples: MS-DOS, MS Windows, Mac OS Unix/Linux Features of modern OS Graphical operating system
COSC 6374 Parallel Computation. Parallel I/O (I) I/O basics. Concept of a clusters
COSC 6374 Parallel I/O (I) I/O basics Fall 2012 Concept of a clusters Processor 1 local disks Compute node message passing network administrative network Memory Processor 2 Network card 1 Network card
Linux Driver Devices. Why, When, Which, How?
Bertrand Mermet Sylvain Ract Linux Driver Devices. Why, When, Which, How? Since its creation in the early 1990 s Linux has been installed on millions of computers or embedded systems. These systems may
Chapter 1: Introduction. Operating System Concepts 9 th Edit9on
Chapter 1: Introduction Operating System Concepts 9 th Edit9on Silberschatz, Galvin and Gagne 2013 Chapter 1: Introduction What Operating Systems Do Computer-System Organization Computer-System Architecture
COMP5426 Parallel and Distributed Computing. Distributed Systems: Client/Server and Clusters
COMP5426 Parallel and Distributed Computing Distributed Systems: Client/Server and Clusters Client/Server Computing Client Client machines are generally single-user workstations providing a user-friendly
An Implementation Of Multiprocessor Linux
An Implementation Of Multiprocessor Linux This document describes the implementation of a simple SMP Linux kernel extension and how to use this to develop SMP Linux kernels for architectures other than
CS161: Operating Systems
CS161: Operating Systems Matt Welsh [email protected] Lecture 2: OS Structure and System Calls February 6, 2007 1 Lecture Overview Protection Boundaries and Privilege Levels What makes the kernel different
COSC 6374 Parallel Computation. Parallel I/O (I) I/O basics. Concept of a clusters
COSC 6374 Parallel Computation Parallel I/O (I) I/O basics Spring 2008 Concept of a clusters Processor 1 local disks Compute node message passing network administrative network Memory Processor 2 Network
COS 318: Operating Systems. Virtual Machine Monitors
COS 318: Operating Systems Virtual Machine Monitors Andy Bavier Computer Science Department Princeton University http://www.cs.princeton.edu/courses/archive/fall10/cos318/ Introduction Have been around
CS 416: Opera-ng Systems Design
Question 1 Explain the major difference between a file system that supports journaling (e.g., Linux ext4) versus a log-structured file system (e.g., YAFFS2). Operating Systems 2015 Exam 3 Review Paul Krzyzanowski
Operating System Components and Services
Operating System Components and Services Tom Kelliher, CS 311 Feb. 6, 2012 Announcements: From last time: 1. System architecture issues. 2. I/O programming. 3. Memory hierarchy. 4. Hardware protection.
Operating- System Structures
Operating- System Structures 2 CHAPTER An operating system provides the environment within which programs are executed. Internally, operating systems vary greatly in their makeup, since they are organized
Chapter 12 File Management
Operating Systems: Internals and Design Principles, 6/E William Stallings Chapter 12 File Management Dave Bremer Otago Polytechnic, N.Z. 2008, Prentice Hall Roadmap Overview File organisation and Access
Chapter 12 File Management. Roadmap
Operating Systems: Internals and Design Principles, 6/E William Stallings Chapter 12 File Management Dave Bremer Otago Polytechnic, N.Z. 2008, Prentice Hall Overview Roadmap File organisation and Access
OpenMosix Presented by Dr. Moshe Bar and MAASK [01]
OpenMosix Presented by Dr. Moshe Bar and MAASK [01] openmosix is a kernel extension for single-system image clustering. openmosix [24] is a tool for a Unix-like kernel, such as Linux, consisting of adaptive
Security Overview of the Integrity Virtual Machines Architecture
Security Overview of the Integrity Virtual Machines Architecture Introduction... 2 Integrity Virtual Machines Architecture... 2 Virtual Machine Host System... 2 Virtual Machine Control... 2 Scheduling
Chapter 15 Windows Operating Systems
Understanding Operating Systems, Fifth Edition 15-1 Chapter 15 Windows Operating Systems At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class Discussion Topics Additional
