




































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Information about the TCSS 422: Operating Systems course offered in Spring 2021 at the University of Washington Tacoma. It includes objectives, assignments, tutorials, quizzes, and chapters covered in the course. The document also mentions a tutorial on Pthread, locks, and conditions, and an assignment on Introduction to Linux Kernel Modules. Slides by Wes J. Lloyd are also included. The document also mentions a daily feedback quiz and extra credit for completing surveys on time.
Typology: Lecture notes
1 / 44
This page cannot be seen from the preview
Don't miss anything!
School of Engineering and Technology June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma
University of Washington - Tacoma TCSS 422: OPERATING SYSTEMS
Assignment 3: (Tutorial) Introduction to Linux Kernel Modules
Hit-to-Miss Ratios
Smaller Tables, Multi-level Page Tables, N-level Page Tables
Swapping Mechanisms, Swapping Policies June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. OBJECTIVES – 6/
School of Engineering and Technology Daily Feedback Quiz in Canvas – Available After Each Class Extra credit available for completing surveys ON TIME Tuesday surveys: due by ~ Wed @ 11:59p Thursday sur veys: due ~ Mon @ 11:59p June 1, 2021 TCSS422: Computer Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. ONLINE DAILY FEEDBACK SURVEY June 1, 2021 TCSS422: Computer Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18.
School of Engineering and Technology
June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. FEEDBACK - 2
Assignment 3: (Tutorial) Introduction to Linux Kernel Modules
Hit-to-Miss Ratios
Smaller Tables, Multi-level Page Tables, N-level Page Tables
Swapping Mechanisms, Swapping Policies June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. OBJECTIVES – 6/
School of Engineering and Technology
Assignment 3: (Tutorial) Introduction to Linux Kernel Modules
Hit-to-Miss Ratios
Smaller Tables, Multi-level Page Tables, N-level Page Tables
Swapping Mechanisms, Swapping Policies June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. OBJECTIVES – 6/
Assignment 3: (Tutorial) Introduction to Linux Kernel Modules
Hit-to-Miss Ratios
Smaller Tables, Multi-level Page Tables, N-level Page Tables
Swapping Mechanisms, Swapping Policies June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. OBJECTIVES – 6/
School of Engineering and Technology Final Exam category will have two assignments Thursday June 10 from 3:40 to 5:40 pm Final Quiz (50 points) SHORT: fewer than half the number of questions as the midterm 1-hour Focus on new content - since the midterm Tutorial: Linux File Systems and Disk I/O Available for 1-week ~June 5th^ to June 11th 50 points Presents new material in a hands-on, interactive format Complete activity and answer questions Individual work June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. ALTERNATE FINAL EXAM
Assignment 3: (Tutorial) Introduction to Linux Kernel Modules
Hit-to-Miss Ratios
Smaller Tables, Multi-level Page Tables, N-level Page Tables
Swapping Mechanisms, Swapping Policies June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. OBJECTIVES – 6/
School of Engineering and Technology
Assignment 3: (Tutorial) Introduction to Linux Kernel Modules
Hit-to-Miss Ratios
Smaller Tables, Multi-level Page Tables, N-level Page Tables
Swapping Mechanisms, Swapping Policies June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18.
June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18.
School of Engineering and Technology
Sequential array access vs. random array access
(how much history can you store?) June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. TLB EXAMPLE - 4
Assignment 3: (Tutorial) Introduction to Linux Kernel Modules
Hit-to-Miss Ratios
Smaller Tables, Multi-level Page Tables, N-level Page Tables
Swapping Mechanisms, Swapping Policies June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. OBJECTIVES – 6/
School of Engineering and Technology
June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. Consider array-based page tables:
June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18.
School of Engineering and Technology
Assignment 3: (Tutorial) Introduction to Linux Kernel Modules
Hit-to-Miss Ratios
Smaller Tables, Multi-level Page Tables, N-level Page Tables
Swapping Mechanisms, Swapping Policies June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. OBJECTIVES – 6/
June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. PAGING: USE LARGER PAGES
School of Engineering and Technology Process: 16KB Address Space w/ 1KB pages June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. PAGE TABLES: WASTED SPACE Page Table Process: 16KB Address Space w/ 1KB pages June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. PAGE TABLES: WASTED SPACE Page Table Most of the page table is unused and full of wasted space. (73%)
School of Engineering and Technology Add level of indirection, the “page directory” June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. MULTI-LEVEL PAGE TABLES - 2 Add level of indirection, the “page directory” June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. MULTI-LEVEL PAGE TABLES - 2 Two level page table: 220 pages addressed with two level-indexing (page directory index, page table index)
School of Engineering and Technology
June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. MULTI-LEVEL PAGE TABLES - 3 16KB address space, 64byte pages How large would a one-level page table need to be? 214 (address space) / 2^6 (page size) = 2^8 = 256 (pages) June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. EXAMPLE
School of Engineering and Technology 4 bits page directory index (PDI – 1st^ level) 4 bits page table index (PTI – 2nd^ level) To dereference one 64-byte memory page, We need one page directory entry (PDE) One page table Index (PTI) – can address 16 pages June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. PAGE TABLE INDEX For this example, how much space is required to store as a single-level page table with any number of PTEs? 16KB address space, 64 byte pages 256 page frames, 4 byte page size 1 ,024 bytes required (single level) How much space is required for a two-level page table with only 4 page table entries (PTEs)? Page director y = 16 entries x 4 bytes (1 x 64 byte page) Page table = 4 entries x 4 bytes (1 x 64 byte page) 128 bytes required (2 x 64 byte pages) Savings = using just 12.5% the space !!! June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18. EXAMPLE - 3
School of Engineering and Technology Consider: 32-bit address space, 4KB pages, 2^20 pages Only 4 mapped pages Single level: 4 MB (we’ve done this before) Two level: (old VPN was 20 bits, split in half) Page director y = 2^10 entries x 4 bytes = 1 x 4 KB page Page table = 4 entries x 4 bytes (mapped to 1 4KB page) 8KB (8,192 bytes) required Savings = using just .78 % the space !!! 100 sparse processes now require < 1MB for page tables June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18.
June 1, 2021 TCSS422: Operating Systems [Spring 2021] School of Engineering and Technology, University of Washington - Tacoma L18.