CS FundamentalsHardGATE CS
Why do SSDs need the TRIM command and wear levelling, unlike hard disks?
- A. SSDs have a moving head that must be calibrated
- B. Flash pages cannot be overwritten in place (blocks must be erased first) and each block tolerates a limited number of erase cycles
- C. SSDs lose data without power within seconds
- D. SSDs use the FAT internally
Correct answer: B. Flash pages cannot be overwritten in place (blocks must be erased first) and each block tolerates a limited number of erase cycles
Writes go to fresh pages and old ones are erased later in large blocks; TRIM tells the drive which pages are free, and wear levelling spreads erases across blocks. Disk scheduling for seek distance is pointless on SSDs.
More Operating Systems questions
- For an SSD, which disk-scheduling algorithm is usually chosen by the OS (e.g. Linux 'none' or 'noop'), and why?
- A RAID 5 array of 5 disks loses one disk. During the rebuild, which statement is correct?
- An inode stores the file size, block pointers, permissions, owner and timestamps. Which of these is NOT stored in the inode in a classic…
- A directory has 3 entries named a, b and c that are hard links to the same inode, and the directory itself has 2 subdirectories. What are…
- Which statement about mounting is correct?
- The virtual file system (VFS) layer in Unix-like kernels exists mainly to: