Does this file system have any external fragmentation

Assignment Help Mechanical Engineering
Reference no: EM131090048

Consider a file system that uses contiguous allocation to define the set of blocks allocated to each file, as shown in Figure 10.34. There are 8192 bytes on this disk made up of 256 blocks, where each block is 32 bytes. This file system is used to record important "black box" information. Therefore, the file system is initialized to empty when the device is manufactured. Each time the system is turned on, a new file is created. While running, important data are stored into that file (open file, append data at the end, close file). Files are never deleted. Block 0 contains the directory and is not available for data. Each directory entry has three fields: name, block number of the first block, and total number of bytes stored. The example in Figure 10.34 shows File A with 3 allocated blocks (1,2,3 containing 32,32,8 bytes), File B with 2 blocks (4,5 containing 32,32 bytes), and File C with 7 blocks (6,7,8,9,10,11,12 containing 32,32,32,32,32,32,8). All 32 bytes of each data block can contain data for the file.

a) Does this file system have any external fragmentation? Justify your answer.

b) Assume a file has n data blocks. It takes one block read to fetch the directory. On average, how many more block reads does it take to read a single byte at a random position in the file? What is the maximum number of additional block reads that it takes to read a single byte in the file (worst case)?

c) Describe a simple mechanism to manage free blocks in this system. Be as explicit as possible, describing how many bytes in the directory are needed to manage the free space. Describe what the free space looks like after the disk is erased/formatted. Describe what the free space looks like when the disk is full.

d) File names are a single character. How many files can be stored? Justify your answer.

e) Assume you have n files each with of random size. Quantify the number of wasted bytes due to internal fragmentation. You may assume n is less than the number determined in part d).

Figure 10.34

2368_9877bb73-fe41-47b0-ba45-6796cd46c5a1.png

Reference no: EM131090048

Questions Cloud

Will you choose them for the print job : Donald Trump says his brand is worth anywhere from $3 to $6 billion. How does he value his brand and has his entering the political arena helped or hurt his brand? Why?
Question deals with just one of these dma transfers : The processor address and control lines float; the processor responds to the DMAC that it is halted by activating its HaltAck signal.
What are the central elements of the economic theory : Based on your reading, what distinguishes the "economics of the family" (i.e., neoclassical economic approach to studying family behavior) from that of say, demography or sociology? What are the central elements of the economic theory of marriage ..
Speeches of introduction and speeches of presentation : 1.Define the following: After Dinner Speeches, Commemorative Speeches, and Speeches of Acceptance. 2.Why is it important to be prepared for an interview?
Does this file system have any external fragmentation : Does this file system have any external fragmentation
Down payment on a home : Betty has saved $60,000 for a down payment on a home. She is now actively looking for her dream house and anticipates making an offer on a home within the next two months. If the offer is accepted, it will take up to three additional months to clo..
Find the area of the triangle : If the equation of the parabola is given by y = -x2 + 4x + C, find C so that the area of the triangle ABC is equal to 32 square units.
Describe the target like it is someone that you know : describe your target market - describe the target like it is someone that you know. I want a well-defined description of the target market using the segmentation methods you listed in part b.
Countries intervene in their foreign exchange markets : 1. What is the difference between "clean" float and "dirty" float? 2. Why do countries intervene in their foreign exchange markets?

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  Package design

Package Design Brief: Assume you are the packaging engineer for a large consumer products company. In this company, the Packaging Design Briefs are initiated by the marketing group and forwarded to the Package Engineering group.

  Mechanical engineering questions

Define dynamic viscosity, Determine the centroid, Pressure due to the height of liquid, Advantage of changing the liquid, Calculate the total moment about the hinge of the seal gate.

  Automatic control

DOF system and Find the differential equation describing the system

  Write a paper on boyle''s law

Write a paper on Boyle's law and describe Compression and Combustion stroke . Also explain Charles's law and illustrate SI engine and CI engine.

  Verify the law for parallelogram of forces

To Verify the law for parallelogram of forces, law for triangle of forces and law of polygon of forces. These laws are very useful to calculate unknown forces in very short time.

  Discharge pressure of the compressor

What is the discharge revised discharge pressure of the compressor.

  The Case for Global Accounting Standards

The role of IFRS in both developing and developed capital markets.

  Wind turbine

Wind turbines are becoming more and more common as a method of energy production, wind turbines by their very nature are dynamic and are subject to and create their own internal and external kinematics and kinetics.

  Advanced design methodologies

8 x product engineering and design review (week 2 – 12), ~3 pages per item which must contain a brief description of the product then delve into concepts such as materials selection, manufacturing methods, life cycle analysis, recyclability and overa..

  Design of absorption column and the cooler

Design of absorption column and the cooler. Process design of other units should be completed along with pipe sizes.

  Determine the maximum total bending moment

Determine maximum total bending moment (static plus dynamic) of the beam under steady-state conditions.

  Force of the water on the gate

Determine the magnitude of the horizontal and vertical components of the force of the water on the gate.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd