edited by
2,091 views
2 votes
2 votes
Which of the following statements are true?

S1 : Using a larger block size in fixed block size file system leads to better disk throughput but poor disk space utilization.
S2 : In index allocation of block to a file, the maximum possible size of file depends on the size of blocks, the number of blocks used for the index, and the size of the address of blocks.

    a).Only S1

    b).Only S2

    c).Both S1 and S2

    d).Neither S1 nor S2
edited by

2 Answers

Best answer
3 votes
3 votes

Statement 1 : Larger block size means less number of blocks to fetch and hence better throughput. But larger block size also means space is wasted when only small size is required.

Statement 2 : https://gateoverflow.in/852/gate2002_2-22

Hence , Option C is correct

selected by
0 votes
0 votes

OPTION C is correct
S1 : Using a larger block size in fixed block size file system leads to better disk throughput but poor disk space utilization.

By Expermintation it has found out that 512 bytes block are Best Size

why so,??

 suppose  your Block size is 1024 bytes

and you want to store data of 1024+1 bytes so to store one exttra byte 1 block is wasted this is called internal fragmentation you can't do any this for it

On an Average half of Block size is Wasted on per File

so, taking Block size large is not a good idea but it is also true that it increases throughput

Hence S1 is True

statement 2

In index allocation of block to a file, the maximum possible size of file depends on the size of blocks, the number of blocks used for the index, and the size of the address of blocks.

https://en.wikipedia.org/wiki/Inode_pointer_structure

edited by

Related questions

1 votes
1 votes
1 answer
4
Chetan28kumar asked Dec 12, 2018
982 views
Unix I-node has block size 8 KB and file possible with triple indirect is 128 GB.Number of bits disk block address contain is?