精品深夜AV无码一区二区_伊人久久无码中文字幕_午夜无码伦费影视在线观看_伊人久久无码精品中文字幕

代寫GA.2250、Python/Java程序語言代做

時間:2024-08-14  來源:  作者: 我要糾錯



Programming Assignment #4 (Lab 4): IO Scheduling Professor Hubertus Franke 
Class CSCI-GA.2250-001 Summer 2024 
 
In this lab you will implement and simulate the scheduling and optimization of I/O operations for a hard disk. Applications 
submit their block IO requests (bio) to the IO subsystem [ Block Layer ] (potentially via the filesystem), where they are 
maintained in an IO-queue until the disk device is ready for servicing another request. The IO-scheduler then selects a request 
from the IO-queue and submits it to the disk device. This selection is commonly known as the strategy() routine in 
operating systems and shown in the figure below. On completion, another request can be taken from the IO-queue and 
submitted to the disk. The scheduling policies will allow for some optimization as to reduce disk head movement or overall 
wait time in the system. 
 
The schedulers that need to be implemented are FIFO (N), SSTF (S), LOOK (L), CLOOK (C), and FLOOK (F) 
(the letters in bracket define which parameter must be given in the –s program flag shown below). 
 
You are to implement these different IO-schedulers in C or C++ and submit the source code and Makefile as a *.zip, *.tar or 
*.tar.Z, which we will compile and run. Please test on linserv*.cims.nyu.edu before submission. 
 
 
Invocation is as follows: 
 ./iosched [ –s<schedalgo> | -v | -q | -f ] <inputfile> 
 
Only the “-s” option is required. The default scheduler is fifo is “-s” is not supplied. Options as usual can be in any order. 
The input file is structured as follows: Lines starting with ‘#’ are comment lines and should be ignored. 
Any other line describes an IO operation where the 1
st
 integer is the time step at which the IO operation is issued and the 2
nd
 
integer is the track that is accesses. Since IO operation latencies are largely dictated by seek delay (i.e. moving the head to the 
correct track), we ignore rotational and transfer delays for simplicity. The inputs are well formed. 
 
#io generator 
#numio=32 maxtracks=512 lambda=10.000000 
1 339 
131 401 
 
We assume that moving the head by one track will cost one time unit. As a result, your simulation can/should be done using 
integers. The disk can only consume/process one IO request at a time. Once a request is active on the disk it cannot be 
interrupted by any other incoming request. Hence these requests must be maintained in an IO queue and managed according 
to the scheduling policy. The initial direction of the LOOK algorithms is from 0-tracks to higher tracks. The head is initially 
positioned at track=0 at time=0. Note that you do not have to know the maxtrack (think SCAN vs. LOOK). Programming Assignment #4 (Lab 4): IO Scheduling Professor Hubertus Franke 
Class CSCI-GA.2250-001 Summer 2024 
 
Each simulation should print information on individual IO requests followed by a SUM line that has computed some statistics 
of the overall run. (see reference outputs). 
 
For each IO request create an info line (5 requests shown) in the order of appearance in the input file. 
 0: 1 1 431 
 1: 87 467 533 
 2: 280 431 467 
 3: 321 533 762 
 4: 505 762 791 
 
Created by 
 printf("%5d: %5d %5d %5dn", iop, req->arr_time, r->start_time, r->end_time); 
 
args: IO-op#, its arrival to the system (same as from inputfile), its disk service start time, its disk service end time 
 
Please remember “ %5d” is not “%6d” !!! For C++ formatting refer back to lab2 and lab3 where similar outputs were created. 
 
and for the statistics of the simulation provide a SUM line ( note variables printed as “%lf” are double floats ). 
 
Created by: printf("SUM: %d %d %.4lf %.2lf %.2lf %dn", 
 total_time, tot_movement, io_utilization, 
 avg_turnaround, avg_waittime, max_waittime); 
total_time: total simulated time, i.e. until the last I/O request has completed. 
tot_movement: total number of tracks the head had to be moved 
io_utilization: ratio of time_io_was_busy / total_time 
avg_turnaround: average turnaround time per operation from time of submission to time of completion 
avg_waittime: average wait time per operation (time from submission to issue of IO request to start disk operation) 
max_waittime: maximum wait time for any IO operation. 
 
10 sample inputs and outputs and runit/gradeit scripts are provided with the assignment on NYU brightspace. 
Please look at the sum results and identify what different characteristics the schedulers exhibit. 
 
You can make the following assumptions (enforced and caught by the reference program). 
- at most 10000 IO operations will be tested, so its OK (recommended) to first read all requests from file before processing. 
- all io-requests are provided in increasing time order (no sort needed) 
- you never have two IO requests arrive at the same time (so input is monotonically increasing) 
 
I strongly suggest, you do not use discrete event simulation this time. You can write a simple loop that increments simulation 
time by one and checks whether any action is to be taken. In that case you have to check in the following order. 
The code structure should look something like this (there are some edge conditions you have to consider, such as the next I/O 
is for the track the head currently is at, etc. ): 
 
 while (true) 
if a new I/O arrived at the system at this current time 
 → add request to IO-queue 
if an IO is active and completed at this time 
 → Compute relevant info and store in the IO request for final summary 
if no IO request active now 
 if requests are pending 
 → Fetch the next request from IO-queue and start the new IO. 
 else if all IO from input file processed 
 → exit simulation 
if an IO is active 
 → Move the head by one unit in the direction its going (to simulate seek) 
Increment time by 1 
 
When switching queues in FLOOK you always continue in the direction you were going from the current position, until the 
queue is empty. Then you switch direction until empty and then switch the queues continuing into that direction and so forth. 
While other variants are possible, I simply chose this one this time though other variants make also perfect sense. Programming Assignment #4 (Lab 4): IO Scheduling Professor Hubertus Franke 
Class CSCI-GA.2250-001 Summer 2024 
 
Additional Information: 
 
As usual, I provide some more detailed tracing information to help you overcome problems. Note your code only needs to 
provide the result line per IO request and the ‘SUM line’. 
 
The reference program under ~frankeh/Public/lab4/iosched on the cims machine implements three additional options: –v, -q, 
-f to debug deeper into IO tracing and IO queues. 
 
The –v execution trace contains 3 different operations (add a request to the IO-queue, issue an operation to the disk and 
finish a disk operation). Following is an example of tracking IO-op 18 through the times 1151..1307 from submission to 
completion. 
 
1151: 18 add 221 // 18 is the IO-op # (starting with 0) and 221 is the track# requested 
1239: 18 issue 221 289 // 18 is the IO-op #, 221 is the track# requested, 289 is the current track# 
1307: 18 finish 68 // 18 is the IO-op #, 68 is total length/time of the io from request to completion 
 
-q shows the details of the IO queue and direction of movement ( 1==up , -1==down) and 
–f shows additional queue information during the FLOOK. 
 
Here Queue entries are tuples during add [ ior# : #io-track ] or triplets during get [ ior# : io-track# : distance ], 
where distance is negative if it goes into the opposite direction (where applicable ). 
 
Please use these debug flags and the reference program to get more insights on debugging the ins and outs (no punt intended) 
of this assignment and answering certain “why” questions. 
 
Generating your own input for further testing: 
 
A generator program is available under ~frankeh/Public/lab4/iomake and can be used to create additional inputs if you like to 
expand your testing. You will have to run this against the reference program ~frankeh/Public/lab4/iosched yourself. 
 
Usage: iomake [-v] [-t maxtracks] [-i num_ios] [-L lambda] [-f interarrival_factor] 
 
maxtracks is the tracks the disks will have, default is 512 
num_ios is the number of ios to generate, default is 32 
lambda is parameter to create a poisson distribution, default is 1.0 ( consider ranges from 0.01 .. 10.0 ) 
interarrival_factor is time factor how rapidly IOs will arrive, default is 1.0 ( consider values 0.5 .. 1.5 ), too small and the 
system will be overloaded and too large it will be underloaded and scheduling is mute as often only one i/o is outstanding. 
 
Below are the parameters for the 10 inputs files provided in the assignment so you don’t pick the same. 
 
1. iomake -v -t 128 -i 10 -L0.11 -f 0.4 
2. iomake -v -t 512 -i 20 -L0.51 
3. iomake -v -t 128 -i 50 -L0.51 
4. iomake -v -t 512 -i 100 -L0.01 
5. iomake -v -t 256 -i 50 -L1.1 
6. iomake -v -t 256 -i 20 -L0.3 
7. iomake -v -t 512 -i 100 -L0.9 
8. iomake -v -t 300 -i 80 -L3.4 -f 0.6 
9. iomake -v -t 1000 -i 80 -L3.4 -f 0.6 
10. iomake -v -t 512 -i 500 -L2.4 -f 0.6 

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp





 

標簽:

掃一掃在手機打開當前頁
  • 上一篇:代寫MTH5510、代做Matlab程序語言
  • 下一篇:CSCI 2600代做、代寫Java設計程序
  • 無相關信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    精品深夜AV无码一区二区_伊人久久无码中文字幕_午夜无码伦费影视在线观看_伊人久久无码精品中文字幕
    <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp>
    <ul id="e4iaa"></ul>
    <blockquote id="e4iaa"><tfoot id="e4iaa"></tfoot></blockquote>
    • <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp>
      <ul id="e4iaa"></ul>
      <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp><ul id="e4iaa"></ul>
      <ul id="e4iaa"></ul>
      <th id="e4iaa"><menu id="e4iaa"></menu></th>
      亚洲激情av在线| 国产欧美一区二区精品性色超碰| 福利电影一区二区| 激情国产一区二区| 国产九色sp调教91| 国产福利一区二区三区在线视频| 国产成人精品影视| 成人成人成人在线视频| 91视频com| 欧美日韩高清一区| 精品国产青草久久久久福利| 久久久久久久久久久黄色| 久久九九99视频| 自拍偷拍亚洲综合| 亚洲成va人在线观看| 美国一区二区三区在线播放| 国产伦精品一区二区三区免费| 狠狠v欧美v日韩v亚洲ⅴ| 国产传媒欧美日韩成人| 色婷婷一区二区三区四区| 欧美日韩国产成人在线免费| 精品久久久久久久人人人人传媒| 日本一区二区免费在线| 亚洲精品欧美综合四区| 免费观看30秒视频久久| 国产高清在线观看免费不卡| 日本韩国欧美国产| 日韩三级视频在线看| 国产欧美日韩精品一区| 亚洲一区二区精品视频| 国产永久精品大片wwwapp | 久久av中文字幕片| 国产aⅴ精品一区二区三区色成熟| 色综合天天综合给合国产| 欧美蜜桃一区二区三区| 国产精品―色哟哟| 日本成人在线看| av网站免费线看精品| 日韩美一区二区三区| 中文字幕日本不卡| 国产尤物一区二区| 欧美日韩激情一区二区三区| 中文字幕欧美区| 久久成人免费网| 欧美午夜不卡在线观看免费| 国产欧美日韩综合| 美女在线观看视频一区二区| 一本大道久久a久久精二百| 精品伦理精品一区| 日韩av一级电影| 色婷婷亚洲综合| 国产精品伦一区| 久久超碰97中文字幕| 欧美色综合久久| 亚洲欧美另类综合偷拍| 国产一区二区电影| 欧美一二三区在线观看| 亚洲一区二区视频在线| a级高清视频欧美日韩| 久久只精品国产| 国精产品一区一区三区mba桃花| 欧美三级电影网站| 亚洲一区二区三区四区的| 99精品视频在线播放观看| 久久香蕉国产线看观看99| 美女精品一区二区| 日韩美女一区二区三区| 青青草视频一区| 日韩女优制服丝袜电影| 免费视频最近日韩| 欧美一区二区三区公司| 日本欧美在线看| 日韩视频国产视频| 国产原创一区二区三区| 2023国产精华国产精品| 国产一区二区三区在线观看免费视频 | 国产精品综合一区二区三区| 欧美电影免费提供在线观看| 蜜臀99久久精品久久久久久软件| 欧美福利电影网| 精品一区二区三区免费播放| 精品国产乱码久久久久久久久| 九色综合国产一区二区三区| 国产日韩综合av| eeuss鲁一区二区三区| 亚洲乱码国产乱码精品精小说| 日本韩国精品一区二区在线观看| 亚洲国产综合色| 日韩视频永久免费| 国产黄色精品网站| 综合欧美亚洲日本| 欧美区在线观看| 国产美女在线观看一区| 日韩毛片精品高清免费| 欧美日韩激情一区| 精品久久久久久最新网址| 国产91丝袜在线18| 欧美一区二区三区在线| 久久国产精品第一页| 国产日产精品1区| 色播五月激情综合网| 香蕉成人啪国产精品视频综合网| 日韩精品自拍偷拍| youjizz国产精品| 五月天视频一区| 国产精品丝袜一区| 欧美老女人第四色| 成人手机电影网| 日本成人超碰在线观看| 国产精品电影一区二区| 91精品国产一区二区三区蜜臀| 不卡在线观看av| 美女视频免费一区| 亚洲天堂免费在线观看视频| 日韩三级伦理片妻子的秘密按摩| 成人美女在线视频| 麻豆精品一区二区av白丝在线| 亚洲特黄一级片| 国产日本一区二区| 91精品国产一区二区三区香蕉| 99久久综合精品| 极品瑜伽女神91| 天天综合色天天| 亚洲欧美另类综合偷拍| 久久久精品国产免费观看同学| 欧美色偷偷大香| 99精品视频在线播放观看| 麻豆精品视频在线| 亚洲va中文字幕| 亚洲免费看黄网站| 国产精品无圣光一区二区| 精品剧情在线观看| 欧美一区二区视频观看视频| 欧美日韩一区二区在线观看视频| 9i在线看片成人免费| 高清国产一区二区| 国产一区二区成人久久免费影院| 蜜臀av一区二区在线观看| 亚洲一区中文日韩| 一区二区日韩电影| 亚洲乱码国产乱码精品精可以看| 国产精品亲子乱子伦xxxx裸| 国产欧美一区二区精品性| 精品久久久三级丝袜| 欧美一二三四区在线| 欧美一区二区在线观看| 制服.丝袜.亚洲.另类.中文 | 欧美午夜精品理论片a级按摩| av激情综合网| 91女人视频在线观看| 99久久精品国产网站| 成人高清视频免费观看| 99国产精品国产精品久久| 成人免费电影视频| 91在线精品一区二区| 91啪九色porn原创视频在线观看| 一本到一区二区三区| 色偷偷一区二区三区| 欧美日韩国产欧美日美国产精品| 欧美伦理电影网| 欧美一级夜夜爽| 国产色产综合产在线视频| 中文字幕欧美日本乱码一线二线| 国产精品久久久久久亚洲毛片 | 亚洲成av人片在www色猫咪| 亚洲国产另类av| 久久精品国产精品亚洲精品| 韩国欧美一区二区| 99麻豆久久久国产精品免费 | 亚洲va天堂va国产va久| 免费观看一级特黄欧美大片| 激情综合网天天干| 99在线热播精品免费| 精品视频全国免费看| 精品国偷自产国产一区| 中文在线资源观看网站视频免费不卡| 亚洲日本一区二区三区| 亚洲成人中文在线| 国产精品夜夜爽| 欧美三级电影网| 国产女人18水真多18精品一级做| 一区二区三区小说| 激情综合色播激情啊| 91福利资源站| 国产午夜精品理论片a级大结局 | 欧美一级生活片| 国产精品电影一区二区三区| 婷婷丁香久久五月婷婷| 国产寡妇亲子伦一区二区| 欧美视频一区在线观看| 国产亚洲一区字幕| 日产欧产美韩系列久久99| 成人av网站在线| 精品嫩草影院久久| 亚洲国产成人va在线观看天堂| 国产999精品久久久久久| 精品视频一区三区九区| 国产精品嫩草影院com| 午夜精品久久久久久久久久久 | 国产精品三级av|