Discussion Locked

Memory difference on a MAC

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How come when looking at how much harddrive is used it will say 1.2GB used then on the same line in parens it will have(1,097,481,216 Bytes) how come they don't match??

6 replies

by charleskin

The first number relates to the amount of space used in physical blocks. Each block (dependant on size of your harddrive), is of a certain fixed size. In this example we will say your block size is 64k. If any information is written to a block itis considered used. Even if only 16k of information was written to it. So the system looks at all blocks used, times that by 64k and it gives you how much space in BLOCKS that is used. However your system will then tell you the second number which is how much actual data you have written to your hardrive.
Hope this helps.
Charleskin

by brian

Actually it is like this...

A Megabyte is not 1000bytes and becuase of that it throws everything off a little. See below

1 kilobyte=
1024bytes (not 1000)

1 Megabyte= (1024*1024)
1,048,576bytes

1 gig=
1,073,741,824bytes

Divide thenumber of bytes by the number in a Gig (which is 1073741824)to get the actual number of GB

SO YOU ACTUALLY HAVE 1.022GB not 1.22
(1097481216/1073741824)

by brian

This question got me thinking about where the 1024 comes from and I had to look it up.

Computer thinks in binary or base 2. There are 10 digits. For example
1100001111

With 10 digits in base 2 there are 1024 possible combinations. This can be solved by putting 2 to the tenth power. (2x2x2x2x2x2x2x2x2x2)

So a Megabyte is 20 digits and a Gigabyte is 30.

This is easy to illustrate on a small scale like 2 digits. Provides four combinations. 2 squared.

1. 00
2. 01
3. 10
4. 11

This discussion is closed to new replies.