MrHoffman wrote:
zooth wrote:
Of course the default block size is 512 bytes NOT kb! Was increasing the block size to the mega range a bit of a quantum leap? Perhaps I need to experiment with some value in the kilo range!
Hard disk drives used to have various different sector sizes and of which 512 eventually became the most common choice. Some old hard disks supported multiple sizes including 512 bytes, though only one could be selected at a time. After several decades or so of hard disks with 512-byte sectors, and with different sector sizes introduced for CD and DVD media (usually 2048 bytes), hard disk drives began to migrate to 4096-byte sector sizes, as that reduced the sizes of the mapping tables, at the cost of wasting roughly half of a 4096-byte sector per file on average. Most storage stuff still supports 512-byte writes for compatibility with older apps and tools, though modern disks usually expect 4096 byte sectors. Writing larger byte counts usually means larger I/O sizes, which makes for fewer and faster transfers. Probably way more than you wanted to know, too.
Larger sector sizes also reduced the prefix sector header and suffix trailer on each recored by 1/8th, which allowed for even more data to be stored. For example if the header/trailer took up 16 bytes, that would be 34,359,738,368 bytes (32GB) for a 1TB drive with 512 bytes sectors. Change that to 4K sectors, and the header/trailer takes up 4,294,967,296 bytes (4GB), making an additional 24GB of storage available. NOTE: the header/trailer size may be different for different manufactures and recording technologies.
What is in a sector header/trailer. Sector address, alternate address (if it is a bad sector), ECC (error correcting codes).
Also in the good old days I had users whining that 512 byte sector sizes wasted too much space when used with small files (VAX/VMS 780 days). Those were the days when disks were typically 50-100 megabytes, and a big disk was 250 megabytes, on a shared system with a few hundred developers sharing the system and storage.
Moving to 4K sectors is noise when the storage device is often a terabyte or more, and a small file these days is several megabytes (a picture most likely for a typical user).