- 2075 Baisakh · 1+2+6+1 marks
File attributes; FS implementation ways
Short answer
File attribute: metadata (name, size, owner, permissions, timestamps). Performance indicators: throughput, response time, disk access, cache hit, utilization, fragmentation, reliability. Allocation methods: contiguous, linked, FAT, indexed (i-node). Indexed allocation has no external fragmentation, supports random access, and only keeps open inodes in memory, making it best for general systems.
What is File attribute? List the File System performance indicators. Explain all the ways how file system can be implemented and suggest which implementation of file system is better and why?
File attribute
A file attribute is metadata describing a file: name, type, size, location on disk, owner, protection (permissions) and times of creation, modification and last access.
File system performance indicators
Throughput (data rate), response time/latency, disk access time (seek + rotational delay + transfer), cache hit ratio, disk space utilization, fragmentation, number of disk accesses per operation and reliability.
Ways of implementing a file system (file allocation)
- Contiguous allocation: a file occupies consecutive blocks; directory holds start and length. Very fast access; suffers external fragmentation and is difficult to extend.
- Linked-list allocation: each block points to the next. No external fragmentation; poor random access and pointer overhead.
- Linked list with a table in memory (FAT): pointers kept in a table, which speeds up random access but the table must fit in memory.
- Indexed allocation (i-node): an index block / i-node lists all the blocks of the file (with indirect blocks for big files). Supports direct access with no external fragmentation.
Which is better and why
Indexed allocation (i-nodes) is generally the best:
- It supports both sequential and direct access efficiently.
- There is no external fragmentation, and files can grow dynamically.
- Only the i-nodes of open files are kept in memory, so memory use is small regardless of disk size (unlike FAT).
- Pointers are collected in one place, improving reliability, and the scheme scales to very large files through indirect blocks.
Contiguous allocation is faster for large read-only files (e.g. CD-ROM), but for general-purpose systems the i-node scheme (used in UNIX, Linux ext2/ext4) gives the best overall balance.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- File system performance indicators · Operating System, chapter 5
- File system layout; interface vs implementation · Operating System, chapter 5
- File attributes; directory systems; free blocks · Operating System, chapter 5
- File and attributes; allocation methods · Operating System, chapter 5
- File attributes; levels of directories · Operating System, chapter 5
- Linked list file system; block size impact · Operating System, chapter 5
- Project attributes; implementation phase activities · Project Engineering, chapter 1
- Short note: Distributed system implementation · Object Oriented Analysis and Design, chapter 4
- System implementation and conversion · Information System, chapter 6