Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

FILE SYSTEMS Q13) (File Systems) One way to use contiguous allocation of the disk and not suffer from holes is to compact (defragment) the disk

FILE SYSTEMS

Q13) (File Systems) One way to use contiguous allocation of the disk and not suffer from holes is to compact (defragment) the disk every time a file is removed. Since all files are contiguous, copying a file requires a seek and rotational delay to read the file, followed by the transfer at fullspeed. Writing the file back requires the same work. Assuming:

  • a seek time of 5 msec,
  • a rotational delay of 5 msec,
  • a transfer rate of 100 MB/sec,
  • and an average file size of 8KB,

a) (10 pts) How long does it take to read a file into main memory and then write it back to the disk at a new location?

b) (15 pts)Using these numbers, how long would it take to compact the half of a 16-GB disk assuming that the disk is completely full and half of the data needs to be moved during compaction?

Step by Step Solution

3.47 Rating (150 Votes )

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Operating Systems

Authors: Andrew S. Tanenbaum, Herbert Bos

4th edition

013359162X, 978-0133591620

Students also viewed these Operating System questions