OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Mar 29, 2024 2:28 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: ext file system structure vs metadata
PostPosted: Tue Feb 20, 2018 1:21 pm 
Offline
Member
Member

Joined: Wed Nov 18, 2015 3:04 pm
Posts: 396
Location: San Jose San Francisco Bay Area
one of the disk benchmark tools I am working on keep saying file metadata overhead because it uses file system calls instead of disk block calls. I am assuming this is referring to generic ext2 file structure, looking at:
https://wiki.osdev.org/File_Systems

or more precisely, metadata appears to stay within he inode (create/modify time etc.) whereas metadata is not referring to complete file system overhead.
Meaning the overhead associated with inode block manipulation, calculation due to various file operation i.e. mount, write, read does not count toward the overhead associated with metadata itself.

inodes
inodes (information nodes) are a crucial design element in most Unix file systems: Each file is made of data blocks (the sectors that contains your raw data bits), index blocks (containing pointers to data blocks so that you know which sector is the nth in the sequence), and one inode block.

The inode is the root of the index blocks, and can also be the sole index block if the file is small enough. Moreover, as Unix file systems support hard links (the same file may appear several times in the directory tree), inodes are a natural place to store Metadata such as file size, owner, creation/access/modification times, locks, etc.

_________________
key takeaway after spending yrs on sw industry: big issue small because everyone jumps on it and fixes it. small issue is big since everyone ignores and it causes catastrophy later. #devilisinthedetails


Top
 Profile  
 
 Post subject: Re: ext file system structure vs metadata
PostPosted: Thu Mar 01, 2018 9:06 am 
Offline
Member
Member

Joined: Wed Jun 17, 2015 9:40 am
Posts: 501
Location: Athens, Greece
Hi,


I don't know if this document covers it, but have you looked at the inode definition of the ext2 documentation?

Note that I'm not exactly clear about what are you asking for. Could you elaborate?


Regards,
glauxosdever


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 33 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group