Storage sizes

wraith3k

Senior member
Apr 15, 2004
310
0
76
Question about advertised vs. actual storage sizes (SSDs, HDDs, flash drives, etc)

I'm aware that size can be measured in either decimal or binary, and that you will get two different numbers. Same size just measured differently. For instance, a 300 GB hard drive will show as both 300 billion bytes and 279 GB (or GiB, measured using binary). Both numbers correct, just decimal vs. binary.

Since computers measure using the binary system, whereas manufacturers use decimal, is the drive in this example giving you the full 300 billion bytes of space? It has always been my understanding that it utilizes the full 300, though there is a lot of conflicting info out there on the subject.

Thanks
 
Last edited:

RaiderJ

Diamond Member
Apr 29, 2001
7,582
1
76
The discrepancy is the hard drive manufacturer use 1000KB = 1MB, where as file systems recognize 1MB = 1024KB. It's because computer memory is base 2, while manufacturers use base 10. You'll see computer memory sometimes listed as KiB, MiB, GiB, etc.

Both are technically correct, but you won't see any manufacturers switch over to binary measurement of capacity. Plus, even if you did, I still don't think most people would understand.
 

Mark R

Diamond Member
Oct 9, 1999
8,513
16
81
Question about advertised vs. actual storage sizes (SSDs, HDDs, flash drives, etc)

I'm aware that size can be measured in either decimal or binary, and that you will get two different numbers. Same size just measured differently. For instance, a 300 GB hard drive will show as both 300 billion bytes and 279 GB (or GiB, measured using binary). Both numbers correct, just decimal vs. binary.

Since computers measure using the binary system, whereas manufacturers use decimal, is the drive in this example giving you the full 300 billion bytes of space? It has always been my understanding that it utilizes the full 300, though there is a lot of conflicting info out there on the subject.

Thanks

279 * 1.024 * 1.024 * 1.024 = 299.574

With rounding errors, this is about as close to 300 GB (billion bytes) as you're going to get. So yes, a drive advertised as 300 GB, really does have 300 billion bytes available to the PC. You can confirm this by looking at the number of sectors on the drive - almost all drives advertise themselves as having 512 byte sectors (whether or not they actually do). For example, the WD Caviar green 3 TB makes 5,860,533,168 sectors available to the PC (5,860,533,168 * 512 = 3,000,592,982,016 bytes available).

However, in practice, not all of the capacity is available for files. Most OSs insist that the drive have 'partitions' marked onto it, and partitions have overhead. To store files, you need a 'file system' which indexes the files, organises them into folders, works out how to organise the file data on the disk, protects or restricts files, etc. File systems have more overhead - so the actual capacity the OS will make available for files will be less than advertised (but how much less will vary depending on the OS, file system, etc.)

Of course, if you decided to use your own custom partiton and formatting technique, you would have 300 billion+ bytes of functioning storage available to do with as you want.

The discrepancy in measurement units is about 7% for GB (1.024 * 1.024 * 1.024) , and about 10% for TB (1.024 * 1.024 * 1.024 * 1.024). Calculating the discrepancy for PB/PiB is left as an exercise for the reader.

Historically, the discrepancy is a lack of agreement between different groups of engineers as to the appropriateness of approximations and where the approximations are used. Historically, the binary units have always been used for RAM. However, they have almost never been used for anything else. Decimal has always been used for network/modem/serial speed, CPU speed and tape storage. Bulk storage was originally tape, and tape was specified in 'bytes (or bits) per inch' and the tape was measured in feet - so a 10 Megabyte tape would hold 10,000,000 bytes. Floppy disks were a development of tape and were often specified in decimal, but there was some variability, with a number of types of disk being specified using binary units. By and large, at this stage, most data storage systems were in the kB range - so a 2% discrepancy was barely noticable, so there was little impetus for programmers to standardise on units.

Hard drives were usually decimal, but again there was some variability with some using binary, and others using some weirdo hybrid schemes (e.g. defining 1 kB as 1024 bytes and 1 MB as 1000 kB = 1024000 bytes!!), particularly in the early days. However, once into the MB range, the discrepancy between units grew to 5% and people started noticing. The GB range made things worse.

By this stage, considerable established software had been developed using the binary unit scheme, and this convention was very powerful - Microsoft continue to use it, even in Windows 7. Interestingly, apple don't - they use decimal units.
 

wraith3k

Senior member
Apr 15, 2004
310
0
76
Thanks all. That basically confirmed what I had thought. It seems there is a lot of misinformation on the subject - people are under the impression that hard drive manufacturers are not giving consumers the full capacity as advertised on the box, which just doesn't seem to be the case because of the factors mentioned here.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |