Starting from:
$30

$24

Operating Systems Homework 6 Solution

Administrivia






LaTeX version of this le is here: /home/cs314/hw6.tex




Assignment



(10 points) Using the stat utility on the os server, what can you say about how renaming a le di ers from copying a le and deleting the old one, and how copying a le to a di erent directory di ers from moving the le there?



(10 points) What is the di erence between symbolic and hard links to les? On the os server, What happens when you try to create a symbolic link in /tmp to a le that is in your home directory? How about a hard link? Explain what happens and why.



(10 points) How many disk operations are maximally needed to fetch the i-node for the le /dir1/dir2/dir3/myfile? Assume that the i-node for the root directory is in memory, but nothing else along the path is in memory. Also assume that each i-node or directory ts into exactly one disk block.



(10 points) DDR3 SDRAM can read or write a word of memory with a latency of about 10 nanoseconds. Suppose that when an interrupt occurs, the program counter, PSW, and an additional 30 CPU registers are pushed onto the stack. What is the maximum number of interrupts per second that this machine can process (assume that each interrupt is handled, but does no actual work)?



(10 points) Assume that on some computer the overhead of trapping to the kernel for clock ticks is about 2 microsecond, with the handler requiring another 9 microseconds. Clock ticks typically occur at a frequency of 500Hz. What percentage of the CPU’s time is devoted to the clock?



(10 points) If a programmable clock uses a 3000 MHz crystal, what should be the value of the holding register to achieve a clock resolution of a millisecond? How about 100 microseconds?



(40 points) Answer the following with the assumption that you have a RAID array:



(10 points) Compare RAID levels 0 through 5 with respect to read performance, write performance, storage overhead, and reliability.



(15 points) Including the human involved in the process, generally describe the steps between the time of failure and restoration of normal I/O activity in a RAID-5 array.



(15 points) What RAID arrangement could allow for normal I/O activity to continue uninterrupted, regardless of the failure and the slow human? Explain.

More products