









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma HDDs, RAID, File Systems Final Exam Review
University of Washington - Tacoma TCSS 422: OPERATING SYSTEMS This is a “cloud computing” course Previous year’s course: http://faculty.washington.edu/wlloyd/courses/tcss Course introduces major cloud computing delivery models: Infrastructure-as-a-Service (IaaS), Platform (PaaS), Functions (FaaS), Container (CaaS), Software (SaaS) Course features a software development project where we build and evaluate software entirely for the cloud Fall 2019 focus: developing serverless software: e.g. data processing pipelines Fall 2020 focus: serverless/cloud-native software, containerization, cloud services FALL 2020 - TCSS 562
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
Once as a undergraduate elective towards graduation Once as a graduate elective towards the Masters in Computer Science & Systems (MSCSS) degree June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
Independent study in “cloud computing” Work to collaboratively draft a proposal and submit to Dr. Chinn, CSS Chair for Approval Focus on variety of topics related to cloud/distributed systems Variable credits from 1 to 5 Involves participation in weekly research group meeting Spring 2020: currently Wednesday at 12:30p Usually 1 or 2 one-on-one or small group meeting during week Contact by email if interested Identify preferred quarter(s) Number of credits Can take up to 10 credits TCSS 498/499 - CSS elective credits
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19. Please complete the course evaluation survey at: TCSS 422 B - Computer Operating Systems:
New this quarter: Assignment 2– available in Java or C Tutorial 2– parallel prime number generation Assignment 3– Kernel Module programming- tutorial format Course entirely online & recorded Paperless daily feedback surveys Quizzes with multiple attempts Problem solutions w/ document cam Open book, note, and internet midterm and final exam Slide revisions & refactoring for 100% online delivery June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
CH. 37: HARD DISK DRIVES June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
Can calculate I/O transfer speed with: I/O Time: Ttransfer = DATAsize x RateI/O Rate of I/O: June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
Compare two disks:
Calculate Trotation from rpm (rpmrps, time for 1 rotation / 2) June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
There is a huge gap in drive throughput between random and sequential workloads Ttransfer = Datasize x RateI/O 4 KB 100 MB
Up to 20 TB
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
Order queue of I/O requests by nearest track June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
Keeps head local to a few tracks June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
RAID is not a backup! June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
Capacity is equal to the sum of all disks
R/W are distributed in round-robin fashion across all disks
No redundancy June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
RAID 1 tolerates HDD failure Two copies of each block across disks RAID 1 Example with 4 disks, each data block saved twice: Can suffer the loss of two disks Just not two even or odd numbered disks !! June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
Raid 5 – trades off space requirement for redundancy In a 5-disk array, you can only recover from the loss of 1 HDD 5 disk RAID 5: Capacity is 80% of 5 disks Writes rotate across disks, distributing a parity data To rebuild data blocks you only need data from 4 disks Any drive can fail, as long just one drive fails To recover need: 3 blocks + 1 parity block -or- 4 blocks June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
Capacity: Useful capacity is (n-1) disks A HDD must be dedicated as a parity disk Performance Writes are very slow: roughly = n/ Reads are equivalent to a single disk Reliability In RAID 5, a disk may fail, and the RAID keeps running Rebuilds are slow !!! Depending on disk size 8-24 hours is not unheard of RAID 6: Adds a second parity disk for increased resilience June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
CH. 39: FILESYSTEMS June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
Implemented by the OS as pure software Provide:
Many available file systems (A-Z) June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L20.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L20.
Disk is divided into blocks Block size supported by most HDDs is 51 2 bytes Typical FS block size is 4 KB An instance of a file system is typically called a par tition A single physical disk can have multiple partitions (file systems) June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L20.
Every inode has an inode number (index value) Based on inode number, disk location can be calculated Example: inode number= Offset into inode region = 32 Size of inode=256 bytes Inode number x inode size = 8192 Inode location = inode start addr + (inode no. x inode size) June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L20.
Every inode has an inode number (index value) Based on inode number, disk location can be calculated Example: inode number= Offset into inode region = 32 Size of inode=256 bytes Inode number x inode size = 8192 Inode location = inode start addr + (inode no. x inode size) June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L20.
What is the inode location? 12KB + (32 x 256) 12KB + 8KB = 20 KB Inodes store all information about a file: File type (e.g. directory, file, other) Size, and the number of blocks allocated to a file on disk R/W/X permissions Time information June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L20.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L20.
Inodes use a multi-level index First level: includes 12-direct block pointers Second level: provides 1 indirect block pointer Points to a Block: contains 1,024 x 4 byte block pointers Indirect po inter: 1 2 direct block pointers, 1 indirect block ptr to a block Maximum file size: (1 2 + 1 ,024 entries) * 4KB = (1 ,036 x 4KB) = 4,144 KB Need more space? Can have double and triple indirect block pointers June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L20.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L20.
Do uble indirect pointer First level: include 12-direct block pointers Second level: include 1 indirect block pointer Third level: include 1 indirect block pointer Maximum file size: (entries x 4KB block size) 1 2 + 1 ,024 + (1 ,024 x 1,024) * 4KB 1 ,049,612 x 4KB = 4,198,448 KB ~ 4GB Triple indirect po inter Adds another level & indirect block pointer Maximum file size: (entries x 4KB block size) 1 2 + 1 ,024 + (1024^2 ) + (1024^3 ) * 4KB = ~ 4TB June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L20.
Extents have a pointer with a stored length Each file has multiple extents A single extent would require contiguous file allocation In contrast to block pointers: Extents conserve space better than multi-level indexes, but are less agile at representing file allocations scattered across the disk Multi-level indexes excel for files w/ blocks scattered across the disk Don’t care if storage is contiguous because each block has a pointer File indexing presents a space vs. flexibility tradeoff Extents (space ef ficient, rigid), multi-level indexes (better for tracking files w/ fragmented blocks) June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L20.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L20.
TCSS 422 WILL RETURN AT ~2:35PM June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L15.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
A computer system uses a simple base/bounds register pair to virtualize address spaces. For each traces fill in the missing values of virtual addresses, physical addresses, base, and/or bounds registers. In some cases, it is not possible to provide an exact value. If so, specify a range (e.g. greater than 100), or value that is not a single number. June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
Free space management involves capturing a description of the computer’s free memory using a data structure, storing this data structure in memory, and OS support to rapidly use this structure to determine an appropriate location for new memory allocations. An efficient implementation is very important when scaling up the number of operations the OS is required to perform. Consider the use of a linked list for a free space list where each node is represented by placing the following structure in the header of the memory chunk: typedef struct __node_t { int size; struct __node_t *next; } node_t; June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
Consider the following free space list: (a) Consider the next fit allocation strategy. For this free list above, how many comparison operations must be performed to identify a free chunk of 3 0-bytes? (b) After the last free space identification, the chunk is split and the remaining free space is returned to the free space list. Now, consider the next fit allocation strategy. After finding a free space for the previous request, how many comparisons are required to identify a free chunk of 10-bytes? June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
Now, after the last free space identification the chunk is split and the remaining free space is returned to the free space list. Now consider each of the following free space allocation strategies. How many comparisons are required on the updated free space list to find a free chunk of 2 bytes using: (c) best fit? (d) worst fit? (e) first fit? June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L19.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L20.
Directory contains file name and i number (index) Extra files for the parent dir and pw d Can store dirs as linear list, often stored in inodes XFS uses B-trees to eliminate sequential search of filenames for duplicates when creating a new file June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L20.
Consider reading a file called “/foo/bar” Traverse starting at root “/” (inumber = 2) to find file Read each inode to dereference file block location on disk June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L20.
3 block file: 11 reads, 3 writes (last access time) June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L20.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L20.
June 4, 2020 TCSS422: Operating Systems [Spring 2020] School of Engineering and Technology, University of Washington - Tacoma L20.