Extra credit assignmentsHere are some options for extra credit assignments you can try. Each assignment has a percentage next to it. If you successfully finish the assignment this percentage is added to your total grade for the class. Note, you will have to pass the assignment in person. We will interview you asking to explain your solution and how you arrived to it. We will also rigorously check for plagiarism. If you intend to accomplish more than 22% worth of extra credit, let us know, we might want to talk to you (again to prevent plagiarism). Large files (+7%)Currently the size of a single file in xv6 is limited to 140 sectors, or 71,680 bytes. This limit comes from the fact that an xv6 inode contains 12 "direct" block numbers and one "singly-indirect" block number, which refers to a block that holds up to 128 more block numbers, for a total of 12+128=140. This assignment asks you to change the xv6 file system code to support a "linked-list" file addressing for files of infinite length (of course, in practice the file size will be limited by the size of your file system). Follow the instructions here: Infinite files.One page per process (+15%)Remember, that one midterm question asked you to analyze how many pages are allocated every time xv6 creates a new process. This assignment asks you to reduce the number of pages to one. You can assume that process text and data sections fit in one 4KB page. You will have to analyze how xv6 uses pages when each process is created and come up with ways to eliminate it. E.g., a single kernel stack page can be shared among multiple processes (you only need one kernel stack page per-CPU to avoid race conditions between interrupts and exceptions on different CPUs). Similar the page table can be shared among all processes.3GB user memory (+10%)Since we now know that xv6 can't provide user-processes with more than 2GBs of memory, this assignment asks you to fix this. Change both the address at which the kernel is mapped from 2GB to 3 GB, and change the memory manager to provide support for 3GB of ram.xv6 without page tables (+15%)Implement xv6 without using page tables. Instead use segments. You need to ensure process isolation, allocate process memory dynamically, i.e., grow the segment and maybe even relocate it in physical memory if it runs out of memory and starts overlapping with another segment. |
|||
Updated: November, 2017
|