30.07.2013 Views

Development and Implementation of a File System for Gannet Virtual ...

Development and Implementation of a File System for Gannet Virtual ...

Development and Implementation of a File System for Gannet Virtual ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

On the other h<strong>and</strong>, if large allocation unit is used, the reading <strong>and</strong> writing file will be<br />

faster than small allocation. Since it needs few numbers <strong>of</strong> blocks, the overhead time<br />

produced will be less comparing to small allocation blocks. However, this approach<br />

is not space efficient as it has big possibility to waste disk space. Especially, on the<br />

last block as it usually not filled fully by data. Thus, the bigger size <strong>of</strong> allocation unit,<br />

the bigger disk space to be wasted.<br />

2.2.2 <strong>File</strong> Allocation<br />

<strong>File</strong>s are stored on storage media which support direct access. However, there is a<br />

different point <strong>of</strong> view how to allocate file on a storage media concerning on utility<br />

effectiveness <strong>and</strong> accessed time aspects. Methods <strong>of</strong> allocating storage space are<br />

explained as follows.<br />

2.2.2.1 Contiguous Allocation<br />

Contiguous allocation is an allocation mechanism to store data on a contiguous run<br />

<strong>of</strong> block. This mechanism has significant advantages. Firstly, it is very simple to<br />

implement as it keeps the track <strong>of</strong> blocks <strong>of</strong> file by using two attributes: the address<br />

<strong>of</strong> the first data block on the disk <strong>and</strong> the number <strong>of</strong> blocks used. Furthermore, as<br />

this approach only remembers two attributes to manage a file written on the disk,<br />

the overhead is quite low. Second advantage, the read per<strong>for</strong>mance is very good as it<br />

only needs single operation which is a seek operation to find the first block <strong>of</strong> a file.<br />

After that, no seek operation needed as rest <strong>of</strong> file’s data blocks is stored on a<br />

contiguous run.<br />

10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!