2/3 So, I'm really confused about this notion of computer science
metrics where everything's kind of 2^n, but sometimes not. For
example, if I have a 4 GIG hard drive, does that mean I have
exactly 2^32 bytes of space? Does that translate to 4000000000
bytes, or some number that's close to it? How about megahertz?
Say I have a 2.5GHz computer, does it run at exactly 2500000
hertz? Or 2^n for some multiple of n?
\_ As a few other people have said, just about everything is ordinary
decimal units now. A 4G hard drive is (about) 4,000,000,000 bytes,
and a 2.5GHz processor runs at (about) 2,500,000,000 Hertz.
Operating systems still tend to report file sizes in binary units,
though, so a 4G file is probably 4,294,967,296 bytes. (Sometimes
it's configurable: GNU du and df let you specify -h for binary
units or -H for decimal.) The only hardware still sold in binary
units is memory -- a 1G flash memory card is 1,073,741,824 bytes.
Also note that all storage devices are sold by raw capacity, not
counting filesystem overhead.
\_ I'd actually argue that in computers, all standards and measurements
are 10^n with the exception of RAM and addresses. HDDs, bandwidth,
frequency, resolution (megapixels) are all base ten.
\_ The ISO standard (IIRC) is Gibibytes for 2^30 and Gigabytes for
10^9. Memory is addressed by logic which is friendly to powers of
2. Non-memory doesn't matter.
\_ Frequencies (Hertz) are not stated in powers of two obviously.
You can usually find the exact frequency in the tech specs.
Computer data quantities are normally referred to with binary
prefixes (kilo=1024). Hard drive producers use 1000 because
they are fuckers. A frequency is not a data quantity.
\_ The whole k=1024 thing was a cute hack invented by computer
folks, but it becomes imcreasingly strained as you move into
mega- and giga- prefixes. At some point you need to admit it's
more trouble than it's worth. The computer should be the one
worrying how to address it's memory in base-2, rather than the
end user wondering how many bytes are in a gig.
\_ Memory is sized in 2^n because that's how the chips are laid out.
The capacity of a hard drive is determined by the track width
and magnetic domain size. This gives you a non-binary capacity.
It makes sense to therefore measure it using the SI system. The
fact that CS people started calling 1024 and 1048576 kilo- and
mega- when those prefixes had been in use for ages says to me
that the CS people are the fuckers, not the engineers who are
just adhereing to standard terminology. I personally count all
file and data sizes in base-10, except when refering to memory
usage. Anyway, this debate has been done to death before.
\_ so 1M is what really? 1000000 or 10^20?
\_ Officially, 10^6 (you mean 2^20, right?).
M = 10^6, Mi = 2^20
See:
http://physics.nist.gov/cuu/Units/binary.html
\_ No, it doesn't make sense when you're talking about computer
storage capacity to use a different meaning of GB than
everybody normally uses when talking about computer storage.
It's not like the drives are storing non-binary data. It's
going to have a filesystem and store vanilla kilobytes and
megabytes. Nowhere else does Gbyte refer to 1000*1000*1000.
In a computer environment, files are loaded into memory and
to disk, it's idiotic to change the terminology just because
the underlying media is different. CD and DVD storage is
referred to in binary. Sorry, you're wrong.
\_ FWIW, floppies are counted under a bastardized hybrid
system where 1.44 'megabytes' = 1440 KiB, or 1.44k-KiB
\_ No. CDs and DVDs are counted base-10, as is bandwidth.
The fact that the drives are storing binary data has no
bearing on the method you use to count the bytes, which
this debate shows, is a matter of dueling conventions, not
some underlying fact. I'm not wrong, you're just an ass.
\_ The orange book standard says a cd has a capacity
of 650*2^20 bytes.
\_ A DVD+-R(W) is 4.7*10^9
\_ Hard to argue, since they charge $5,000 for a
copy of a DVD format spec ($500 for each
additional spec) and require an NDA. Do you
actually have access to the four specs you
mention? The holder of DVD Forum's specs is
http://www.dvdfllc.co.jp |