NTU-Exam 板


LINE

课程名称︰高等作业系统 课程性质︰选修 课程教师:苏雅韵 开课学院:电资学院 开课系所︰资工所、网媒所 考试日期(年月日)︰2011.06.01 考试时限(分钟):150分钟 试题 : Advanced Operating Systems National Taiwan University Spring 2011 Exam Notes: 1. This exam lasts for 150 minutes and consists of 85 points. Budget your time accordingly. 2. This exam has 5 questions and 8 pages (including this one); check that you have all pages before starting. 3. Many questions have more than one correct answer! However, some answers are more correct than others. You should therefore use good judgment and follow solid systems principles in answering each question. 4. State your assumptions and show your intermediate work, where appropriate. 1. Short answers (16%, 4% each) (1) Given the following observation found in "Availability in the "Globally Distributed Storage Systems" paper: larger failure bursts have higher rack affinity. How would you design a replication policy for Haystack directory to determine which Haystack stores to store a newly uploaded photo to ensure your replication is effective? (2) You noticed that after you change the content of your own website, the content shows up in Google search results after just a few hours. Use the material in the Percolator paper, assume that your webpage is stored in a BigTable, and briefly describe how Google's indexing system utilizes Percolator to quickly incorporate your new content into their index? (3) In the Scheduler Activation paper, how does a user-level thread scheduler communicate to kernel to express its desired level of parallelism? (4) Provide two benefits of structuring a kernel for multicores that uses explicit message passing over shared memory for inter-core communication. 2. File system: local and distributed (24%) (1) (6%) Consider two caching strategies for distributed file systems: whole-file caching as used in AFS, and block-level caching as used in NFS (or known as remote-open in the AFS paper). Briefly explain what whole-file caching scheme is, and what block caching is. (2) (6%) In Section 5 of the AFS paper, Howard et al. argued several advantages of the whole-file caching against remote-open scheme, provide two scenarios where remote-open is a better fit. (3) (6%) In the GFS system architecture, a single master serves metadata while a large number of chunk servers handle chunk read/write operations. Describe two techniques that the GFS designers deploy to ensure the single master does not become a performance bottleneck. (4) (6%) For a workload consisting of many writes, such as compilation or downloading many small files, which local file system would perform better? fast file system or log-structured file? Why? 3. Virtual machines and kernels (20%) (1) (4%) Based on the implementation described in the Disco and Xen papers, please answer whether it is the (a) virtual machine monitor or (b) the guest operating system that is responsible in creating the illusion of a contiguous physical memory? (2) (8%) You want to apply the resource container concept on Xen to track the resource usage for each VM. Based on the implementation described in Section 3 of the paper, describe how Xen could account CPU, disk, and network usage for each virtual machine. (Assume the resource usage of each virtual machine is accounted to one resource container, and you can modify both Xen and Domain 0). Please specify where you would add the accounting mechanism. (3) (8%) You need to choose an "operating system" to host machines from multiple tenants on your multicore machines for a cloud environment, which exposes hardware interface. Would you choose an Exokernel approach or a virtual machine approach (such as Xen or Disco)? Justify your answer by providing the benefits of your chosen approach and what your design goals are. 4. Data race (20%) (1) (5%) Based on the papers covered in this semester, define what data race is. (2) (10%, 5% each) If two threads both execute the code snippet below. Based on the (a) Eraser and (b) "Bugs as Deviant Behavior" papers, answer the following questions: (1) if their system can detect data race? (2) If it can, how? If it cannot, why not? Please be specific on your answer and state your additional assumption if there is any. ┌──────────────────────────────────┐ │int u, v; │ │lock mutex; │ │ │ │thread_func(void* data) │ │{ │ │ int thread_id = (int*)data; // obtain my thread id │ │ if (thread % 2 == 0) { │ │ lock(mutex); │ │ u = v++; │ │ unlock(mutex); │ │ } else { │ │ v++; │ │ } │ │} │ └──────────────────────────────────┘ (3) (5%) Using the same code snippet as question (2), describe how Determinator prevents data race from happening? 5. Feedback (5%) Please write down your favorite and least favorite papers for the class. There is no right or wrong answer here: you will get full credits if you write any paper we covered in this class. =) --



※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 111.250.51.155
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/NTU-Exam/M.1436074623.A.A2F.html
1F:→ rod24574575 : 已收资讯系! 07/05 13:38







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:BabyMother站内搜寻

TOP