Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Suppose a file system uses i-node to store block addresses for a file. If the block size is 1 KB, and each block address

1. Suppose a file system uses i-node to store block addresses for a file. If the block size is 1 KB, and each block address takes up 4 bytes. Suppose the i-node structure stores metadata about the file (accessing mode, link count, file size, times), and addresses of the 15 disk blocks.

If the 15 disk block addresses are used to store the address of the file's blocks, what's the largest possible file size in this file system?

Without changing the i-node structure's size, we can support files of size larger than the maximum size you identified above. For example, we can use one of the 15 block address fields to point to a separate disk block which stores additional block addresses. What's the largest possible file size in this case?

2. Consider a hard disk with block size of 2048 bytes (i.e., 2KB), an average seek time of 4 msec, an average rotational delay of 4 msec, and a transfer rate of 256KB/s (256 Kilobytes per second). Answer the following two questions:

What's the total delay to read a block?

Suppose a program's address space is 1GB (i.e., $2^{30) bytes), and the OS kernel loads the whole prorgram into memory before execution. Calculate the time to load the program from disk into memory.

Step by Step Solution

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

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago