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/m.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燈, 水草

請輸入看板名稱,例如:e-shopping站內搜尋

TOP