
























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!

























School of Engineering and Technology December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma
Wes J. Lloyd
TCSS 422: OPERATING SYSTEMS Independent study in “cloud computing” Work to collaboratively draft a proposal and submit to Dr. Nascimento, 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 ▪ Winter 2022: 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 2022 - TCSS 498/499 (ANY QUARTER) UNDERGRADUATE READING/RESEARCH IN CSS December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 2
School of Engineering and Technology Please complete the cour se evaluatio n sur vey at: TCSS 422 A - Computer Operating Systems: https://uwt.iasystem.org/sur vey/ S pecial features this quar ter in TCS S 4 2 2 : Class sessions LIVE streamed over Zoom, with all lecture recordings made available shor tly after class (use of 2 computer s) No mandator y graded in class activities this quarter to maximize attendance/par ticipation flexibility for covid and commuting – (enables mostly asynchronous par ticipation) OBS Studio software used to provide dif ferent “scenes” that integrate dif ferent screen captures with camera, chat, and displays Slide refinements to improve online deliver y Assignment 3 graded as a Quiz/Tutorial: Kernel Module programming Extra credit for paperless daily feedback sur veys Tutorial 3 on File Systems optional for extra credit Assignment 2– new assignment, single producer, single consumer, multiple buf fer provides revised scope for covid - 19, with primar y focus on pthreads, locking, and bounded buf fer December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 3 COURSE EVALUATION: TCSS 422 A FALL 2021
Assignment 3 : (Tutorial) Introduction to Linux Kernel Modules Memory Segmentation Activity + answers (available in Canvas) Quiz 4 – Page Tables Final exam – December 14 Tutorial 3 - File Systems (Optional, Extra Credit)
▪ Swapping Mechanisms, Swapping Policies
December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 4 OBJECTIVES – 12/
School of Engineering and Technology Please classify your perspective on material covered in today’s class (24 respondents): 1 - mostly review, 5-equal new/review, 10-mostly new Average – 5.80 ( - previous 6.27) Please rate the pace of today’s class: 1 - slow, 5-just right, 10-fast Average – 5.64 ( - previous 5.58) December 9, 2021 TCSS422: Computer Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 7 MATERIAL / PACE
December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 8 FEEDBACK
School of Engineering and Technology
Assignment 3 : (Tutorial) Introduction to Linux Kernel Modules Memory Segmentation Activity + answers (available in Canvas) Quiz 4 – Page Tables Final exam – December 14 Tutorial 3 - File Systems (Optional, Extra Credit)
▪ Swapping Mechanisms, Swapping Policies
December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 9 OBJECTIVES – 12/
December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 10 ASSIGNMENT 3: INTRODUCTION TO LINUX KERNEL MODULES
School of Engineering and Technology
Assignment 3 : (Tutorial) Introduction to Linux Kernel Modules Memory Segmentation Activity + answers (available in Canvas)
▪ Swapping Mechanisms, Swapping Policies
December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 13 OBJECTIVES – 12/ Tuesday December 14 from 1:30 to 3:30 pm ▪ Final (100 points) ▪ SHORT: similar number of questions as the midterm ▪ 2 - hours ▪ Focus on new content - since the midterm (~70% new, 30% before) Final Exam Review - ▪ Complete Memory Segmentation Activity ▪ Complete Quiz 4 ▪ Practice Final Exam Questions – 2 nd^ hour of Dec 9th^ class session ▪ Individual work ▪ 2 pages of notes (any sized paper), double sided ▪ Basic calculators allowed ▪ NO smartphones, laptop, book, Internet, group wowkr December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 14 FINAL EXAM – DEC 14TH
School of Engineering and Technology
Assignment 3 : (Tutorial) Introduction to Linux Kernel Modules Memory Segmentation Activity + answers (available in Canvas)
▪ Swapping Mechanisms, Swapping Policies
December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 15 OBJECTIVES – 12/
Assignment 3 : (Tutorial) Introduction to Linux Kernel Modules Memory Segmentation Activity + answers (available in Canvas)
▪ Swapping Mechanisms, Swapping Policies
December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 16 OBJECTIVES – 12/
School of Engineering and Technology
December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 19 MOTIVATION FOR EXPANDING THE ADDRESS SPACE December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 20 LATENCY TIMES
Latency numbers ever y programmer should know From: https://gist .gi th ub .c om /j bo ne r/ 2 841 83 2#f il e - la ten cy - tx t
School of Engineering and Technology
Assignment 3 : (Tutorial) Introduction to Linux Kernel Modules Memory Segmentation Activity + answers (available in Canvas)
▪ Swapping Mechanisms, Swapping Policies
December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 21 OBJECTIVES – 12/
December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 22 SWAP SPACE
School of Engineering and Technology
December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 25 PAGE LOCATION
December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 26 PAGE FAULT
School of Engineering and Technology
December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 27 PAGE REPLACEMENTS
Assignment 3 : (Tutorial) Introduction to Linux Kernel Modules Memory Segmentation Activity + answers (available in Canvas)
▪ Swapping Mechanisms, Swapping Policies
December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 28 OBJECTIVES – 12/
School of Engineering and Technology What if: ▪ We could predict the future (… with a magical oracle) ▪ All future page accesses are known ▪ Always replace the page in the cache used farthest in the future Used for a comparison Provides a “best case” replacement policy Consider a 3-element empty cache with the following page accesses:
December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 31 OPTIMAL REPLACEMENT POLICY
December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 32 FIFO REPLACEMENT
LRU incorporates historyLRU incorporates history
School of Engineering and Technology Pick a page at random to replace Simple and fast implementation Performance depends on luck of random choices
December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 33 RANDOM REPLACEMENT LRU: Least recently used Always replace page with oldest access time (front) Always move end of cache when element is read again LRU requires constant reorganization of the cache Considers temporal locality ( when pg was last accessed ) 0 1 2 0 1 3 0 3 1 2 1 December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 34 HISTORY-BASED POLICIES
School of Engineering and Technology December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 73 December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 83
School of Engineering and Technology No-Locality (Random Access) Workload ▪ Perform 10,000 random page accesses ▪ Across set of 100 memory pages December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 39 WORKLOAD EXAMPLES: NO-LOCALITY When the cache is large enough to fit the entire workload, it doesn’t matter which policy you use. 80/20 Workload ▪ Perform 10,000 page accesses, against set of 100 pages ▪ 80% of accesses are to 20% of pages (hot pages) ▪ 20% of accesses are to 80% of pages (cold pages) December 9, 2021 TCSS422: Operating Systems [Fall 2021] School of Engineering and Technology, University of Washington - Tacoma L18. 40 WORKLOAD EXAMPLES: 80/ LRU is more likely to hold onto hot pages (recalls history)