File Management. Chapter 12
|
|
|
- Myron Hodges
- 10 years ago
- Views:
Transcription
1 Chapter 12 File Management File is the basic element of most of the applications, since the input to an application, as well as its output, is usually a file. They also typically outlive the execution of applications. Users want to access files, save them, and maintain the integrity of their data files. Hence, virtually all OS provide some sort of file management facilities. Although a file management system consists of system utility programs that run as special applications, they all need certain special services from OS, and sometimes, is simply part of the OS, such as Window Explorer, and the one embedded in unix. 1
2 Overview of file structure A field is the basic element of data. It consists of a length, together with a type, for the value it is supposed to contain. It can be of fixed length, or variable length. A record is a collection of fields that can be treated as a unit by some other programs. For example, an employee record may contain such fields as name, SSN, DOB, data of hire, etc.. A file is a collection of records. It is treated as a single entity by users and applications, and can be referenced by a unique name. Needless to say that a file can be created, deleted, and modified. Access control is usually done at the file level to give different users different access to different files. Finally, a database is a collection of related data files. (Do we really need to talk about it?) 2
3 Typical operations A file management system usually provides the following operations: Retrieve all the records of a file, e.g., when an application has to produce a summary of the information contained in a file. Retrieve one record, as frequently required in database transactions. Retrieve next(previous) record. This may be required in filling a form. Insert a new record into a file, delete an existing one from a file, or update a record in a file, or retrieve a number of records.. We saw all these in the context of a database transaction. 3
4 Objectives of a file system 1. To meet the data management needs and requirements of the user, e.g., having the ability of performing the above operations. 2. To guarantee that the data in the file are valid. 3. To optimize performance, e.g., in terms of system throughput and response time to the user. 4. To provide I/O support for a variety of devices. 5. To provide a uniform set of I/O interface routines. 6. In a multi-user system, provide corresponding I/O services. 4
5 More specifically,... for an interactive, and general-purpose file management system, it should allow each user to: 1. able to create, delete, read, and change files; 2. perhaps have access to other uses files with certain restrictions; 3. control access rights to its own files; 4. able to restructure her files to a form proper to the problem; 5. able to move data between files; 6. able to back up and restore her files in case of damage; and 7. able to get access to her files by using symbolic(logical) names. 5
6 File system architecture Below shows a typical architecture for a file management system: At the lowest level, such a system provides drivers for such storage devices as disk(direct access) and tape(sequential access). The next one, basic file system, provides a primary interface with the outside environment, concerned with placing blocks of data on the secondary storage device and on the buffering of those data inside the main memory. 6
7 The other stuff The basic I/O supervisor is responsible for all file I/O initiation and termination. It is also concerned with selecting an appropriate device to perform certain file I/O operation, based on the nature of the file to be processed. It is also responsible for various scheduling, and optimization, activities. Buffering and secondary memory allocation are also dealt with at this level. This is part of the operating system. The logical I/O piece enables users and applications to access records, instead of data blocks, which is handled by the basic file system. Finally, the level closest to the user is often called the access method, which leads to different file structures and ways of accessing to, and processing of, the data. 7
8 File organization and access methods In choosing a file organization, we have to consider the following factors: access speed, ease of update, economy of storage, simple maintenance, and last, but not least, reliability. Importance of these factors vary with applications. For example, when a file is only processed in the batch mode, with all the records accessed every time, then rapid access to a single record is not important. They may conflict with each other, as well. For example, for achieving economy of storage, there has to be minimum redundancy in the data. On the other hand, redundancy is the chief means of increasing data access, and raising reliability. 8
9 Structure of a file A file can be organized as a pile, a sequential file, an indexed sequential file, an indexed file, and a direct file. With a pile organization, data records are just collected in the way they arrive, sort of a set. Such records may have different number of fields, or even similar fields in different orders. Hence, the (maximum) length of each field for a record in a pile should be specified in a certain way. Since there is no structure, the only access method for the pile structure is via an exhaustive search. 9
10 Sequential file This is the most common form of file structure, where a fixed format is used for records. All of the records are of the same number of fixed-length in a given order. One of the fields is referred to as the key field, which is used to uniquely identify the records. Records are typically stored in the order of the key values. It is the only structure suitable for the tape media, and is the optimal method for applications that have to access to all the records. This structure does pose some issues when we have to deal with dynamic data. Typically, a log file is used and later merged with the sequential file. A linked structure, which collects all the blocks with the same key, is also a viable alternative. 10
11 Indexed sequential file Indexed sequential structure is a popular alternative. It maintains the key characteristic of the sequential structure, with two additional features: 1) An index is added to support the random access, by providing a lookup ability to the vicinity of a desired record. 2) An overflow file with a pointer mechanism so that the records in such an overflow part can be accessed via pointers from their previous records located in the main file. When only one level of index is used, an index record consists of a key and a pointer into its location in the main file. To find a specific record, the index is searched to find the highest key value that is equal to, or precedes, the desired key value, then the search continues in the main file, via the associated pointer. 11
12 An example Consider a sequential file with one million records. To look for a specific key value, with the sequential search algorithm, will take on average half a million comparisons. (You might think of sorting them out, but external sorting takes a lot more time, although in the same order.) Now assume that we add in an index with 1000 indices. If the keys in the index are more or less evenly distributed over the main file, any search for a specific record will now make on average 500 accesses to the index file, followed by another 500 accesses to the related segment of the main file to eventually find the record. This leads to a reduction of comparisons from 500,000 to 1,000 at the cost of an additional index file. 12
13 Just a bit maintenance Each record in such a file contains an invisible linker to the associated overflow file. When a record is added to an indexed sequential file, it is added to the overflow file, and the record in the main file with its key value immediately preceding that of the newly added record is updated to contain a pointer to the newly added. On the other hand, if such a record is itself contained in the overflow file, then its pointer will be changed accordingly. As with the sequential file, the overflow file is occasionally merged with the main file. Such a file is pretty flexible, and greatly increases the efficiency of file management. Multiple levels of indices can be used, which will lead to further improvement. 13
14 Another issue and its solution The indexed sequential file keeps one limitation of the sequential file. Effective access depends on one key field. It is not easily done when a search has to be carried out on an attribute other than the key field. To achieve such a flexibility, we usually use a structure containing multiple indexes, one for each type of the searchable field. Records organized in such a structure are only accessed through the corresponding indexes. Thus, it no longer matters where a record is placed, and variable-length record can be used. These types of files are referred to as indexed files, and are used in applications when timeliness is a critical issue, and data are rarely processed exhaustively. Did we go through this stuff in DB? 14
15 Direct access Finally, the direct, or hashed, file exploits the capability found on disks to access directly any block of a known address. Again, a key field is made use of, but it does not need any sequential ordering within the file. A typical process of searching for a record is to use a Hashing table, which allows constant access time, if we are not too greedy. (Still remember anything about it, such as loading factors?) This type of organization is often used when rapid access is required, where records are always accessed one at a time. Examples include price lists, name lists, schedules, etc.. 15
16 File directories Associated with any file management is a file directory structure, which contains information about files, their size, location, ownership, access rights, etc.. The directory itself is a file, owned by the OS and accessed by various file management routines. A very simple way to organize a directory is to use a list of entries, one for each file. Although it was actually used in some earlier system, it is certainly inadequate in any realistic sense. For example, a user might want to organize her files by type, by project, which calls for more sophisticated way for organization, and forces users to use different names for the same file, but of different type. 16
17 A no brainer Hence, the hierarchical, or tree, structure, as a much more flexible and natural directory structure is almost universally adopted. (Is any explanation necessary on what such a structure looks like?) As we discussed many times, the key property of such a structure is that the path between any two nodes is unique. Each directory itself, at a lower level, can be organized as a subtree, or in a sequential file; and in case of a bigger one, we can follow the approach of using a direct file. 17
18 What else? With a tree as the directory structure, the naming becomes pretty simple and logical. We simply follows the path from the root all the way down to the file itself. On the other hand, it is not very convenient to always have to use the whole path. This leads to the concept of a working directory or relative path: all references to files will then be relative to the current directory, or the working directory. I recently found out that some earlier system did not support changing of working directory (:-(). 18
19 File sharing In a multiuser system, there is almost always a requirement for allowing files to be shared among many users. To ensure the integrity of such sharing, we have to address the issues of access rights and simultaneous access. The file system should provide a number of options so that we can control the way a file is shared. Typically, users or groups of users are granted certain access rights to a file. Still remember the chmod stuff? 19
20 File sharing examples Such hierarchical rights can be none, when a user will not even be aware of the existence of such files; knowledge, when a user knows about this file, as well as its owner, thus, she might ask for the owner for additional rights; execution, when a user can load and execute the application; reading, where a user can get access to its content; appending, a user can add stuff in; updating, a user can even change things; and changing protection, when a user can change access rights granted to other users; and deletion. 20
21 Ownership, etc. One user is initially designated as the owner of a given file, who will be granted all the above rights and can also assign rights to other users, classified as follows: specific user, namely an individual user; user groups, namely, a group of users; and all, namely, everybody gets accesses to, such as public files. When access to append or update a file is granted to more than one users, the OS must make sure that only one user can get access to such a file at one time to maintain data consistency. Thus, such issues as mutual exclusion and lock, dead or alive, have to be addressed. 21
22 Record blocking Although records are the logical units of accessing a file, blocks are the units an I/O device deals with. To carry out an I/O operation, records must be grouped into blocks first. The question is thus how to block records? On most systems, blocks are of fixed length. This simplifies I/O operation, buffer allocation in main memory, as well as block organization on secondary storage. But, it may lead to internal fragmentation... We went through this in the last chapter, didn t we? (Homework 11.7) 22
23 Everything is a tradeoff. When considering the block size relative to the average record size, we notice that, the larger the block, the more records can be passed in with just one I/O operation; which is ideal with files of a sequential nature. On the other hand, if records are being accessed randomly, and no particular locality of reference exists, then a larger block leads to unnecessary transfer of unused data. Similar concerns are expressed in terms of internal(external) fragmentation in the memory management part. Also, larger blocks lead to larger buffers, which are not as easy to manage. 23
24 Actual methods With fixed blocking, fixed-length records are used, and an integral number of records are kept in a block. There may be unused space at the end of each block, leading to internal fragmentation. (512 = ) With variable-length spanned blocking, variablelength records are used and packed together to get rid of unused space. Thus, some records will span over two blocks, aided with a linker mechanism. Finally, there can be variable-length un-spanned blocking. Similar to fixed blocking technique, it can lead to wasted space, external fragmentation this time: a block too small to be useful. 24
25 The UNIX way The UNIX kernel views all files as stream of bytes. It categories files into four types: besides the usual ordinary files, it also has directory file, which collects directories, and is readonly for users; special files to access various I/O devices, e.g., stdin, stdout; and named pipes, the stuff that we ran into in Project 2. Files of all those types are managed by the UNIX in terms of inodes. An inode(information node) is a control structure that contains the key information needed by OS to manage a particular file. Several file names may be associated with an inode. But, an active inode is associated with only one file, and each file is controlled by exactly one inode. 25
26 File allocation File allocation is done based on blocks. It is dynamic, thus assigning blocks as needed. An indexed allocation method is used to keep track of each file, with index being stored in an inode. Each inode contains 39 bytes of address information, organized into 13 3-byte addresses. The first 10 refer to the first 10 blocks of the file. If there are more blocks allocated, the 11 th address points to a single indirect block, which contains pointers to succeeding blocks. If that is not enough, then the 12 th and the 13 th addresses will further point to a double, and triple, indirect block. With such a mechanism, a file can be bigger than 16GB. 26
27 I did not make that up. Below shows the structure we just went through. 27
Operating Systems CSE 410, Spring 2004. File Management. Stephen Wagner Michigan State University
Operating Systems CSE 410, Spring 2004 File Management Stephen Wagner Michigan State University File Management File management system has traditionally been considered part of the operating system. Applications
File Management. Chapter 12
File Management Chapter 12 File Management File management system is considered part of the operating system Input to applications is by means of a file Output is saved in a file for long-term storage
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
Chapter 12 File Management
Operating Systems: Internals and Design Principles, 6/E William Stallings Chapter 12 File Management Patricia Roy Manatee Community College, Venice, FL 2008, Prentice Hall File Management File management
Chapter 12 File Management
Operating Systems: Internals and Design Principles Chapter 12 File Management Eighth Edition By William Stallings Files Data collections created by users The File System is one of the most important parts
File Management. File Management
File Management 1 File Management File management system consists of system utility programs that run as privileged applications Input to applications is by means of a file Output is saved in a file for
FILE MANAGEMENT CHAPTER
M12_STAL6329_06_SE_C12.QXD 2/21/08 9:40 PM Page 551 FILE MANAGEMENT CHAPTER 12.1 Overview Files and File systems File Structure File Management Systems 12.2 File Organization and Access The Pile The Sequential
Outline. File Management Tanenbaum, Chapter 4. Files. File Management. Objectives for a File Management System
Outline File Management Tanenbaum, Chapter 4 Files and directories from the programmer (and user) perspective Files and directory internals the operating system perspective COMP3231 Operating Systems 1
Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 13-1
Slide 13-1 Chapter 13 Disk Storage, Basic File Structures, and Hashing Chapter Outline Disk Storage Devices Files of Records Operations on Files Unordered Files Ordered Files Hashed Files Dynamic and Extendible
Physical Data Organization
Physical Data Organization Database design using logical model of the database - appropriate level for users to focus on - user independence from implementation details Performance - other major factor
Two Parts. Filesystem Interface. Filesystem design. Interface the user sees. Implementing the interface
File Management Two Parts Filesystem Interface Interface the user sees Organization of the files as seen by the user Operations defined on files Properties that can be read/modified Filesystem design Implementing
Chapter 13 Disk Storage, Basic File Structures, and Hashing.
Chapter 13 Disk Storage, Basic File Structures, and Hashing. Copyright 2004 Pearson Education, Inc. Chapter Outline Disk Storage Devices Files of Records Operations on Files Unordered Files Ordered Files
Chapter 13. Disk Storage, Basic File Structures, and Hashing
Chapter 13 Disk Storage, Basic File Structures, and Hashing Chapter Outline Disk Storage Devices Files of Records Operations on Files Unordered Files Ordered Files Hashed Files Dynamic and Extendible Hashing
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 13. Chapter Outline. Disk Storage, Basic File Structures, and Hashing
Chapter 13 Disk Storage, Basic File Structures, and Hashing Copyright 2007 Ramez Elmasri and Shamkant B. Navathe Chapter Outline Disk Storage Devices Files of Records Operations on Files Unordered Files
File-System Implementation
File-System Implementation 11 CHAPTER In this chapter we discuss various methods for storing information on secondary storage. The basic issues are device directory, free space management, and space allocation
Record Storage and Primary File Organization
Record Storage and Primary File Organization 1 C H A P T E R 4 Contents Introduction Secondary Storage Devices Buffering of Blocks Placing File Records on Disk Operations on Files Files of Unordered Records
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
Storage in Database Systems. CMPSCI 445 Fall 2010
Storage in Database Systems CMPSCI 445 Fall 2010 1 Storage Topics Architecture and Overview Disks Buffer management Files of records 2 DBMS Architecture Query Parser Query Rewriter Query Optimizer Query
CHAPTER 17: File Management
CHAPTER 17: File Management The Architecture of Computer Hardware, Systems Software & Networking: An Information Technology Approach 4th Edition, Irv Englander John Wiley and Sons 2010 PowerPoint slides
Chapter 8: Structures for Files. Truong Quynh Chi [email protected]. Spring- 2013
Chapter 8: Data Storage, Indexing Structures for Files Truong Quynh Chi [email protected] Spring- 2013 Overview of Database Design Process 2 Outline Data Storage Disk Storage Devices Files of Records
INTRODUCTION The collection of data that makes up a computerized database must be stored physically on some computer storage medium.
Chapter 4: Record Storage and Primary File Organization 1 Record Storage and Primary File Organization INTRODUCTION The collection of data that makes up a computerized database must be stored physically
File Management Chapters 10, 11, 12
File Management Chapters 10, 11, 12 Requirements For long-term storage: possible to store large amount of info. info must survive termination of processes multiple processes must be able to access concurrently
COS 318: Operating Systems. File Layout and Directories. Topics. File System Components. Steps to Open A File
Topics COS 318: Operating Systems File Layout and Directories File system structure Disk allocation and i-nodes Directory and link implementations Physical layout for performance 2 File System Components
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
CHAPTER 13: DISK STORAGE, BASIC FILE STRUCTURES, AND HASHING
Chapter 13: Disk Storage, Basic File Structures, and Hashing 1 CHAPTER 13: DISK STORAGE, BASIC FILE STRUCTURES, AND HASHING Answers to Selected Exercises 13.23 Consider a disk with the following characteristics
1 File Management. 1.1 Naming. COMP 242 Class Notes Section 6: File Management
COMP 242 Class Notes Section 6: File Management 1 File Management We shall now examine how an operating system provides file management. We shall define a file to be a collection of permanent data with
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
TELE 301 Lecture 7: Linux/Unix file
Overview Last Lecture Scripting This Lecture Linux/Unix file system Next Lecture System installation Sources Installation and Getting Started Guide Linux System Administrators Guide Chapter 6 in Principles
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
Database Systems. Session 8 Main Theme. Physical Database Design, Query Execution Concepts and Database Programming Techniques
Database Systems Session 8 Main Theme Physical Database Design, Query Execution Concepts and Database Programming Techniques Dr. Jean-Claude Franchitti New York University Computer Science Department Courant
Databases and Information Systems 1 Part 3: Storage Structures and Indices
bases and Information Systems 1 Part 3: Storage Structures and Indices Prof. Dr. Stefan Böttcher Fakultät EIM, Institut für Informatik Universität Paderborn WS 2009 / 2010 Contents: - database buffer -
File Systems Management and Examples
File Systems Management and Examples Today! Efficiency, performance, recovery! Examples Next! Distributed systems Disk space management! Once decided to store a file as sequence of blocks What s the size
COS 318: Operating Systems
COS 318: Operating Systems File Performance and Reliability Andy Bavier Computer Science Department Princeton University http://www.cs.princeton.edu/courses/archive/fall10/cos318/ Topics File buffer cache
CS 464/564 Introduction to Database Management System Instructor: Abdullah Mueen
CS 464/564 Introduction to Database Management System Instructor: Abdullah Mueen LECTURE 14: DATA STORAGE AND REPRESENTATION Data Storage Memory Hierarchy Disks Fields, Records, Blocks Variable-length
Lecture 1: Data Storage & Index
Lecture 1: Data Storage & Index R&G Chapter 8-11 Concurrency control Query Execution and Optimization Relational Operators File & Access Methods Buffer Management Disk Space Management Recovery Manager
Lab 2 : Basic File Server. Introduction
Lab 2 : Basic File Server Introduction In this lab, you will start your file system implementation by getting the following FUSE operations to work: CREATE/MKNOD, LOOKUP, and READDIR SETATTR, WRITE and
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
Database 2 Lecture I. Alessandro Artale
Free University of Bolzano Database 2. Lecture I, 2003/2004 A.Artale (1) Database 2 Lecture I Alessandro Artale Faculty of Computer Science Free University of Bolzano Room: 221 [email protected] http://www.inf.unibz.it/
Topics in Computer System Performance and Reliability: Storage Systems!
CSC 2233: Topics in Computer System Performance and Reliability: Storage Systems! Note: some of the slides in today s lecture are borrowed from a course taught by Greg Ganger and Garth Gibson at Carnegie
6. Storage and File Structures
ECS-165A WQ 11 110 6. Storage and File Structures Goals Understand the basic concepts underlying different storage media, buffer management, files structures, and organization of records in files. Contents
Unit 4.3 - Storage Structures 1. Storage Structures. Unit 4.3
Storage Structures Unit 4.3 Unit 4.3 - Storage Structures 1 The Physical Store Storage Capacity Medium Transfer Rate Seek Time Main Memory 800 MB/s 500 MB Instant Hard Drive 10 MB/s 120 GB 10 ms CD-ROM
Filing Systems. Filing Systems
Filing Systems At the outset we identified long-term storage as desirable characteristic of an OS. EG: On-line storage for an MIS. Convenience of not having to re-write programs. Sharing of data in an
SMALL INDEX LARGE INDEX (SILT)
Wayne State University ECE 7650: Scalable and Secure Internet Services and Architecture SMALL INDEX LARGE INDEX (SILT) A Memory Efficient High Performance Key Value Store QA REPORT Instructor: Dr. Song
In-memory Tables Technology overview and solutions
In-memory Tables Technology overview and solutions My mainframe is my business. My business relies on MIPS. Verna Bartlett Head of Marketing Gary Weinhold Systems Analyst Agenda Introduction to in-memory
The Classical Architecture. Storage 1 / 36
1 / 36 The Problem Application Data? Filesystem Logical Drive Physical Drive 2 / 36 Requirements There are different classes of requirements: Data Independence application is shielded from physical storage
Buffer Management 5. Buffer Management
5 Buffer Management Copyright 2004, Binnur Kurt A journey of a byte Buffer Management Content 156 A journey of a byte Suppose in our program we wrote: outfile
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
White Paper. Optimizing the Performance Of MySQL Cluster
White Paper Optimizing the Performance Of MySQL Cluster Table of Contents Introduction and Background Information... 2 Optimal Applications for MySQL Cluster... 3 Identifying the Performance Issues.....
System Calls and Standard I/O
System Calls and Standard I/O Professor Jennifer Rexford http://www.cs.princeton.edu/~jrex 1 Goals of Today s Class System calls o How a user process contacts the Operating System o For advanced services
OPERATING SYSTEMS FILE SYSTEMS
OPERATING SYSTEMS FILE SYSTEMS Jerry Breecher 10: File Systems 1 FILE SYSTEMS This material covers Silberschatz Chapters 10 and 11. File System Interface The user level (more visible) portion of the file
1. Comments on reviews a. Need to avoid just summarizing web page asks you for:
1. Comments on reviews a. Need to avoid just summarizing web page asks you for: i. A one or two sentence summary of the paper ii. A description of the problem they were trying to solve iii. A summary of
External Sorting. Why Sort? 2-Way Sort: Requires 3 Buffers. Chapter 13
External Sorting Chapter 13 Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Why Sort? A classic problem in computer science! Data requested in sorted order e.g., find students in increasing
Lecture 17: Virtual Memory II. Goals of virtual memory
Lecture 17: Virtual Memory II Last Lecture: Introduction to virtual memory Today Review and continue virtual memory discussion Lecture 17 1 Goals of virtual memory Make it appear as if each process has:
System Architecture. CS143: Disks and Files. Magnetic disk vs SSD. Structure of a Platter CPU. Disk Controller...
System Architecture CS143: Disks and Files CPU Word (1B 64B) ~ 10 GB/sec Main Memory System Bus Disk Controller... Block (512B 50KB) ~ 100 MB/sec Disk 1 2 Magnetic disk vs SSD Magnetic Disk Stores data
Part III Storage Management. Chapter 11: File System Implementation
Part III Storage Management Chapter 11: File System Implementation 1 Layered File System 2 Overview: 1/4 A file system has on-disk and in-memory information. A disk may contain the following for implementing
Operating Systems. Virtual Memory
Operating Systems Virtual Memory Virtual Memory Topics. Memory Hierarchy. Why Virtual Memory. Virtual Memory Issues. Virtual Memory Solutions. Locality of Reference. Virtual Memory with Segmentation. Page
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
Physical Database Design Process. Physical Database Design Process. Major Inputs to Physical Database. Components of Physical Database Design
Physical Database Design Process Physical Database Design Process The last stage of the database design process. A process of mapping the logical database structure developed in previous stages into internal
Overview. File Management. File System Properties. File Management
File Management Lecture 15b 1 2 File Management File management system consists of system utility programs that run as privileged applications Input to applications is by means of a file Output is saved
Lecture 18: Reliable Storage
CS 422/522 Design & Implementation of Operating Systems Lecture 18: Reliable Storage Zhong Shao Dept. of Computer Science Yale University Acknowledgement: some slides are taken from previous versions of
Overview of Storage and Indexing
Overview of Storage and Indexing Chapter 8 How index-learning turns no student pale Yet holds the eel of science by the tail. -- Alexander Pope (1688-1744) Database Management Systems 3ed, R. Ramakrishnan
Query Processing C H A P T E R12. Practice Exercises
C H A P T E R12 Query Processing Practice Exercises 12.1 Assume (for simplicity in this exercise) that only one tuple fits in a block and memory holds at most 3 blocks. Show the runs created on each pass
Prof. Dr. Ing. Axel Hunger Dipl.-Ing. Bogdan Marin. Operation Systems and Computer Networks Betriebssysteme und Computer Netzwerke
Ex 2 File Systems A file is a logical collection of information and a file system is a collection of files, where the latter may also include a variety of other objects that share many of the properties
FAWN - a Fast Array of Wimpy Nodes
University of Warsaw January 12, 2011 Outline Introduction 1 Introduction 2 3 4 5 Key issues Introduction Growing CPU vs. I/O gap Contemporary systems must serve millions of users Electricity consumed
Chapter 11 I/O Management and Disk Scheduling
Operatin g Systems: Internals and Design Principle s Chapter 11 I/O Management and Disk Scheduling Seventh Edition By William Stallings Operating Systems: Internals and Design Principles An artifact can
Big Data Technology Map-Reduce Motivation: Indexing in Search Engines
Big Data Technology Map-Reduce Motivation: Indexing in Search Engines Edward Bortnikov & Ronny Lempel Yahoo Labs, Haifa Indexing in Search Engines Information Retrieval s two main stages: Indexing process
Overview of Storage and Indexing. Data on External Storage. Alternative File Organizations. Chapter 8
Overview of Storage and Indexing Chapter 8 How index-learning turns no student pale Yet holds the eel of science by the tail. -- Alexander Pope (1688-1744) Database Management Systems 3ed, R. Ramakrishnan
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.
1 Storage Devices Summary
Chapter 1 Storage Devices Summary Dependability is vital Suitable measures Latency how long to the first bit arrives Bandwidth/throughput how fast does stuff come through after the latency period Obvious
Raima Database Manager Version 14.0 In-memory Database Engine
+ Raima Database Manager Version 14.0 In-memory Database Engine By Jeffrey R. Parsons, Senior Engineer January 2016 Abstract Raima Database Manager (RDM) v14.0 contains an all new data storage engine optimized
Optional custom API wrapper. C/C++ program. M program
GT.M GT.M includes a robust, high performance, multi-paradigm, open-architecture database. Relational, object-oriented and hierarchical conceptual models can be simultaneously applied to the same data
Storing Data: Disks and Files
Storing Data: Disks and Files (From Chapter 9 of textbook) Storing and Retrieving Data Database Management Systems need to: Store large volumes of data Store data reliably (so that data is not lost!) Retrieve
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 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
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
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
PIONEER RESEARCH & DEVELOPMENT GROUP
SURVEY ON RAID Aishwarya Airen 1, Aarsh Pandit 2, Anshul Sogani 3 1,2,3 A.I.T.R, Indore. Abstract RAID stands for Redundant Array of Independent Disk that is a concept which provides an efficient way for
Chapter 6: Physical Database Design and Performance. Database Development Process. Physical Design Process. Physical Database Design
Chapter 6: Physical Database Design and Performance Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden Robert C. Nickerson ISYS 464 Spring 2003 Topic 23 Database
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
Storing Data: Disks and Files. Disks and Files. Why Not Store Everything in Main Memory? Chapter 7
Storing : Disks and Files Chapter 7 Yea, from the table of my memory I ll wipe away all trivial fond records. -- Shakespeare, Hamlet base Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Disks and
DATABASE DESIGN - 1DL400
DATABASE DESIGN - 1DL400 Spring 2015 A course on modern database systems!! http://www.it.uu.se/research/group/udbl/kurser/dbii_vt15/ Kjell Orsborn! Uppsala Database Laboratory! Department of Information
Storage and File Structure
Storage and File Structure Chapter 10: Storage and File Structure Overview of Physical Storage Media Magnetic Disks RAID Tertiary Storage Storage Access File Organization Organization of Records in Files
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
Operating Systems, 6 th ed. Test Bank Chapter 7
True / False Questions: Chapter 7 Memory Management 1. T / F In a multiprogramming system, main memory is divided into multiple sections: one for the operating system (resident monitor, kernel) and one
Algorithms and Methods for Distributed Storage Networks 7 File Systems Christian Schindelhauer
Algorithms and Methods for Distributed Storage Networks 7 File Systems Institut für Informatik Wintersemester 2007/08 Literature Storage Virtualization, Technologies for Simplifying Data Storage and Management,
Ryusuke KONISHI NTT Cyberspace Laboratories NTT Corporation
Ryusuke KONISHI NTT Cyberspace Laboratories NTT Corporation NILFS Introduction FileSystem Design Development Status Wished features & Challenges Copyright (C) 2009 NTT Corporation 2 NILFS is the Linux
Understanding EMC Avamar with EMC Data Protection Advisor
Understanding EMC Avamar with EMC Data Protection Advisor Applied Technology Abstract EMC Data Protection Advisor provides a comprehensive set of features to reduce the complexity of managing data protection
Chapter 11: File System Implementation. Chapter 11: File System Implementation. Objectives. File-System Structure
Chapter 11: File System Implementation Chapter 11: File System Implementation File-System Structure File-System Implementation Directory Implementation Allocation Methods Free-Space Management Efficiency
Computer Architecture
Computer Architecture Slide Sets WS 2013/2014 Prof. Dr. Uwe Brinkschulte M.Sc. Benjamin Betting Part 11 Memory Management Computer Architecture Part 11 page 1 of 44 Prof. Dr. Uwe Brinkschulte, M.Sc. Benjamin
Concepts of digital forensics
Chapter 3 Concepts of digital forensics Digital forensics is a branch of forensic science concerned with the use of digital information (produced, stored and transmitted by computers) as source of evidence
Storage Management for Files of Dynamic Records
Storage Management for Files of Dynamic Records Justin Zobel Department of Computer Science, RMIT, GPO Box 2476V, Melbourne 3001, Australia. [email protected] Alistair Moffat Department of Computer Science
CS 61C: Great Ideas in Computer Architecture Virtual Memory Cont.
CS 61C: Great Ideas in Computer Architecture Virtual Memory Cont. Instructors: Vladimir Stojanovic & Nicholas Weaver http://inst.eecs.berkeley.edu/~cs61c/ 1 Bare 5-Stage Pipeline Physical Address PC Inst.
Chapter 13: Query Processing. Basic Steps in Query Processing
Chapter 13: Query Processing! Overview! Measures of Query Cost! Selection Operation! Sorting! Join Operation! Other Operations! Evaluation of Expressions 13.1 Basic Steps in Query Processing 1. Parsing
External Sorting. Chapter 13. Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1
External Sorting Chapter 13 Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Why Sort? A classic problem in computer science! Data requested in sorted order e.g., find students in increasing
R-trees. R-Trees: A Dynamic Index Structure For Spatial Searching. R-Tree. Invariants
R-Trees: A Dynamic Index Structure For Spatial Searching A. Guttman R-trees Generalization of B+-trees to higher dimensions Disk-based index structure Occupancy guarantee Multiple search paths Insertions
