The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 399 Weeks Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Write a program that creates a 100MB file on your local disk and then measures the time to do each of four things:
Â
(a) Sequential overwrite. Overwrite the file with 100MB of new data by writing the file from beginning to end and then calling fsync() (or the equivalent on your platform).
(b) Random buffered overwrite. Do the following 50,000 times: choose a 2KB-aligned offset in the file uniformly at random, seek to that location in the file, and write 2KB of data at that position. Then, once all 50,000 writes have been issued, call fsync() (or the equivalent on your platform).
(c) Random buffered overwrite.Do the following 50,000 times: choose a 2KB-aligned offset in the file uniformly at random, seek to that location in the file, write 2KB of data at that position, and call fsync() (or the equivalent on your platform) after each individual write.
(d) Random read. Do the following 50,000 times: choose a 2KBaligned offset in the file uniformly at random, seek to that location in the file, and read 2KB of data at that position.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on-----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be-----------