📝 NTFS metadata in window 7 (10 MCQs)
Metadata Files and Attributes on NTFS Volumes
NTFS metadata describes the structure, allocation, identity, and management state of a filesystem volume. It includes file records, directory indexes, allocation bitmaps, security descriptors, and journal information. Much of this information is stored through special system files and attributes, enabling NTFS to locate data, enforce permissions, track free space, and recover from interrupted updates.
Why File Data Needs Supporting Metadata
Raw data clusters alone do not identify filenames, ownership, timestamps, permissions, or directory relationships. The filesystem needs metadata to interpret allocated storage and maintain consistency as files change. Special metadata files provide organised structures for both ordinary files and volume-wide administration.
System Files and Attribute Management
The MFT records file information, while LogFile stores transaction data used for metadata recovery, and $Boot contains volume boot information. Other metadata files support security, bad-cluster tracking, uppercase mapping, and extended features. Attributes within MFT records hold filenames, timestamps, data, and other properties.
Example of Allocating a New File
When a file is created, NTFS allocates an MFT record and updates the parent directory index. It selects free clusters where needed and updates allocation metadata. Security information and timestamps are stored through file attributes. These coordinated changes allow the file to appear correctly in the directory and remain accessible.
Metadata Consistency and Storage Overhead
Metadata enables efficient file lookup, space allocation, permissions, and crash recovery. It also consumes storage and must be updated consistently. Damage to critical metadata can affect many files, even when their data clusters remain intact. NTFS journaling supports recovery of selected metadata transactions but does not replace backups.
Misconceptions About NTFS Metadata
'Metadata means only file dates and sizes' ignores allocation and security structures. 'LogFile is a user document history' is incorrect because it supports filesystem transaction recovery.
Exam Focus: Special Files and Their Functions
Identify major NTFS metadata files such as Bitmap, Boot. Explain how attributes and allocation information support file creation and access. Questions may ask which structure tracks free clusters or which metadata component assists recovery after an interrupted filesystem update.
Key Terms of NTFS Metadata
- $MFT - Stores file and directory records.
- $Bitmap - Tracks allocated volume clusters.
- $LogFile - Records metadata transactions.
- $Boot - Stores volume boot information.
- Attribute - Metadata field within an NTFS record.
📝 All NTFS metadata in window 7 MCQs
Q1. Which of the following bits are always zero for a page‑file PTE?
📖 Explanation: The page‑file PTE type is defined with its T (transition), P (present), and V (valid) bits cleared, meaning the entry does not point to a resident page. Option A correctly lists those three bits. Options B and C mention only one of the three bits, which is incomplete. Option D is wrong because protection bits are still used for access rights. Keeping these bits zero tells the VM manager the page resides on disk, not in RAM.
Q2. Why does the VM manager increment the age of pages that have not been marked as referenced since the last pass?
📖 Explanation: The age counter is used to track how long a page has gone without being referenced. Pages with higher age values are less recently used, making them prime candidates for trimming when memory pressure occurs. Option B captures this purpose. Option A confuses the goal; the manager does not immediately free space, only later when trimming. Option C is opposite—older pages get lower priority, not higher. Option D is unrelated; protection attributes are unchanged by aging.
Q3. A process has been assigned a hard limit of 200 MB of physical memory. Its working set has grown to 250 MB while the system still has abundant free RAM. What action will the VM manager most likely take?
📖 Explanation: When a process exceeds its hard limit, the VM manager enforces the restriction by trimming pages, starting with the oldest according to the LRU policy. Option C describes this behavior. Option A is incorrect because limits are not adjusted without administrator input. Option B is extreme; only selective pages are swapped, not the whole process. Option D is not how Windows handles memory limits; it trims rather than suspends.
Q4. How does the least‑recently‑used (LRU) replacement policy decide which pages to remove from a working set?
📖 Explanation: The LRU algorithm tracks how long each page has gone without a reference; the highest age indicates the longest period of inactivity, making those pages the first to be removed. Option A correctly explains this. Option B confuses protection with usage. Option C is opposite; locked pages are protected from removal. Option D focuses on dirty state, which influences write‑back but not the primary selection criterion.
Q5. A page‑file PTE reserves 32 bits for the page‑file offset. What is the maximum byte size that can be addressed if each page is 4 KB?
📖 Explanation: The offset field can represent distinct page numbers. Multiplying by the page size (4 KB = bytes) yields bytes, which equals 16 TB. Option B matches this calculation. Option A under‑estimates by ignoring the page‑size factor. Option C and D use incorrect exponent combinations, leading to 64 GB and 1 TB respectively, which do not reflect the full addressable range.
Q6. How many bits in a page‑file PTE are reserved for additional bookkeeping?
📖 Explanation: The specification states that a page‑file PTE includes 20 bits set aside for extra bookkeeping information. Option C correctly identifies this count. Options A, B, and D give lower or higher values that do not match the defined structure, making them incorrect.
Q7. When the VM manager uses heuristics to decide how much of a working set to trim, which factor has the greatest influence on the amount trimmed?
📖 Explanation: Heuristics consider several metrics, but the dominant factor is how quickly a process's working set expands; rapid growth signals potential memory pressure, prompting larger trims. Option D is the correct choice. Option A is peripheral; the number of processes does not directly dictate trim size. Option B relates to CPU, not memory management. Option C, while plausible, is less decisive than the growth rate in the Windows 7 policy described.
Q8. What does it indicate when the T, P, and V bits of a PTE are all zero?
📖 Explanation: All three bits cleared signal that the entry does not refer to a physical frame; instead, the page resides on disk in the page file. Option A captures this meaning. Option B misinterprets protection flags, which are separate from T, P, and V. Option C describes a locked state, which would set the P bit. Option D confuses allocation status with residency.
Q9. Three processes have working sets of 150 MB, 300 MB, and 500 MB. The VM manager must trim pages. Assuming ages are equal, which process's pages will be removed first?
📖 Explanation: When ages are identical, the VM manager prefers to trim from the largest working set to free the most memory with the fewest pages removed. Therefore, the 500 MB process (Option C) is selected first. Option A would free less memory, making it inefficient. Option B is intermediate and not the optimal choice. Option D contradicts the policy of targeting the biggest set first.
Q10. Why does Windows 7 trim processes that are growing rapidly even when plenty of memory is available?
📖 Explanation: Rapidly expanding working sets can delay memory allocation for other applications, causing perceived sluggishness. By trimming these aggressive processes early, Windows 7 ensures that responsive applications receive memory promptly, enhancing overall system performance. Option B describes this rationale. Option A focuses on CPU, which is not directly impacted by working‑set size. Option C addresses page‑file fragmentation, unrelated to the trimming policy. Option D suggests a fixed quota, which is not the primary reason for the proactive trimming in Windows 7.