Given a Ext3 filesystem that uses:
- 32 bit addresses,
- 512 byte blocks on disk,
- 16 direct addresses and
- up to a level 3 indirection
Answer the following questions:
1) How many blocks does a 12KiB file need?
2) What is the largest file size (in KiB) that does not need
indirect block references?
3) What is the largest file size (in KiB) possible using only
single indirection?
4) A file that is 1104 bytes in size, what is it's "size on disk"
(in bytes)?
NOTE! Each answer should be just the number value without post-fix (like KiB or blocks etc.).
1. Since the block size is 512 bytes = 29 bytes. Hence number of blocks a 12 KiB file need = 12*210 bytes / (29 bytes) = 24 blocks
2. Since there are 16 direct address, where each such address can be reference to an individual block, hence the largest file size that does not need indirect block references = 16*(size of blocks) = 16*512 bytes = 8*210 bytes = 8 KiB
3. Since address length = 32 bits = 4 bytes. Hence number of addresses that can be stored per block = 512/ 4 = 128
So, if only one single indirection is used, then there will be one indirect pointer to a block which will store address of all 128 blocks. Hence the largest size file possible using only single indirection = 128*64 bytes = 213 bytes = 8 KiB
4. A file will occupy space in memory which is multiple of size of blocks.
Since size of block = 64 bytes. Hence number of blocks needed by 1104 byte size file =
Hence the size on disk = 18*64 bytes = 1152 bytes
Please comment for any clarification.
Given a Ext3 filesystem that uses: - 32 bit addresses, - 512 byte blocks on disk, - 16 direct add...
A UNIX-type file-system uses a disk block size of 1KB, 128 byte inodes, and 32 bit disk addresses. If the inode contains 64 bytes of data, 8 direct, 1 indirect, 1 double-indirect, and 1 triple- indirect blocks, apart from other file information. How many disk blocks would be required for storing files of sizes (a) 1 byte (b) 1024 bytes (c) 64 KB (d) 1MB ?
Consider a file system that uses 1KB blocks and 16-bit disk addresses. If inodes hold 8 disk addresses for data blocks, one single-indirect block address, and one double-indirect block address. What is the maximum file size?
a drive has 512 sectors per track a block size of 512 bytes and spins at 12000 rpm. (a)what is the max file size in terms of blocks for a unix file system with 1024 byte blocks and 32 bit bloack addresses if every i-node has 10 direct block addresses, 1 indirect block address, 1 double indirect block address and 1 triple indirect block address. (B) consider the prefix code : b: 1111 a:1110 i:1101 j:1100 s:101 t:100 1:01 3:00...
What is the maximum file size supported by a file system with 16 direct blocks, a single, a double, and a triple indirection blocks? The block size is 1KB. Disk block numbers can be stored in 4 bytes.
Computer Science Operation System question. I will give thumb up, thank you! Consider a file system that uses inodes to represent files. This file system has 16 direct disk blocks, as well as single, double, and triple indirect disk blocks. This file system is illustrated in the below figure. Please notice that the tables pointed to by the indirect pointers are full sized blocks that only stores pointers. mode owners (2) timestamps (3) size block count data data data direct...
A system uses 27-bit addresses and it has a 32KB of direct-mapped cache with 8 bytes per block. Memory of this system is byte-addressed. How many blocks (lines) are in this cache? (don't write your answer in power of two) A/
Consider a file system that uses inodes to represent files. To locate the physical blocks of each file, its inode contains up to 12 direct disk blocks, as well as one single, one double, and one triple indirect disk blocks. a. If disk blocks are 1 KB in size, and a pointer to a disk block requires 4 bytes. What is the maximum size of a file that can be stored in this file system? Note the size of a...
please answer $5 UXIF map in the computer uses direct mapping Question 18 5 pts Suppose we have a byte-addressable computer using 2-way set associative mapping with 16-bit main memory addresses and 32 blocks of cache. Suppose also that each block contains 8 bytes. The size of the block offset field is bits, the bits. size of the set field is bits, and the size of the tag field is 5 pts Question 19 Suppose we have a byte-addressable computer...
Really don't know what its about... Course in operating system, file system Question 2. File Systems (10 marks) (a) Consider a 32GB hard disk and a FAT file system with 24 bits cluster (block) address. What is the minimum block (cluster) size in order to fully utilize all space in the hard disk? (3 marks) (b) Consider an index-based file system with the inode containing 64 direct pointers, 1 indirect pointer, and 1 double-indirect pointer. Suppose the size of a...
Question 12 Consider a magnetic disk drive with 10 double sided platters, 512(=2^9) tracks per surface, and 1024 (=2^10) sectors per track. Sector size is 2KBytes (=2^10 Bytes ). Assume the average seek time 0.02 ms, the seek time from a track to its adjacent track can be ignored. The drive rotates at 5400 rpm. Successive tracks in a cylinder can be read without head movement. Furthermore, disks can be handled independently, so multiple tracks in a cylinder can be...