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.

5.2.2 Read Only Memory Evaluation<br />

In order to implement <strong>Gannet</strong>FS to a system, system designer needs to know the<br />

space required <strong>for</strong> <strong>Gannet</strong>FS. So that, an amount <strong>of</strong> memory can be reserved to<br />

implement <strong>Gannet</strong>FS file system. Based on its layout, data structures <strong>of</strong> <strong>Gannet</strong>FS<br />

can be calculated as follows.<br />

(Size) (Type) (Amount) total<br />

Size <strong>of</strong> inode stack: 1 byte (char) X 16 = 16 byte<br />

Size <strong>of</strong> block stack: 4 byte (int) X 112 = 448 byte<br />

Size <strong>of</strong> FilDesc stack: 1 byte (char) X 16 = 16 byte<br />

Array <strong>of</strong> data block: 64 byte (block) X 128 = 8192 byte<br />

FilDesc table : 12 byte (stat) X 16 = 192 byte<br />

54<br />

8864 byte<br />

At default configuration, <strong>Gannet</strong>FS has size as 8864 bytes. Furthermore, system<br />

designer also needs to have in<strong>for</strong>mation regarding the size <strong>of</strong> compiled source code<br />

<strong>of</strong> <strong>Gannet</strong>FS. Following table shows size <strong>of</strong> compiled <strong>Gannet</strong>FS files system code<br />

without operation calls.<br />

Compiled file <strong>File</strong> size<br />

<strong>File</strong><strong>System</strong>.o 19244 byte<br />

<strong>Gannet</strong><strong>File</strong><strong>System</strong>.o 10088 byte<br />

Table 5.2 Size <strong>of</strong> compiled code<br />

After <strong>Gannet</strong>FS has been implemented on a system, the actual needed space is<br />

revealed by observing the difference size between <strong>Gannet</strong> <strong>Virtual</strong> Machine with<br />

<strong>Gannet</strong>FS integrated <strong>and</strong> <strong>Gannet</strong> <strong>Virtual</strong> Machine without <strong>Gannet</strong>FS integrated.

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

Saved successfully!

Ooh no, something went wrong!