Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#325781 - 08/09/2009 20:17 Adding up megabytes
tanstaafl.
carpal tunnel

Registered: 08/07/1999
Posts: 5549
Loc: Ajijic, Mexico
I have a folder "A", with 24 folders "B" under it, each of those 24 folders having anywhere from 1 to 21 folders "C" under it. Each of the final layer of folders (the "C" folders) contains anywhere between one and 26 files, for a total of 83 folders (84 counting the top level "A" folder) and 577 files.

In Windows Explorer, I carefully hovered the mouse over each of the "C" folders to get the size of the folder and entered the number of megabytes into an Excel spreadsheet and summed them. The total in the Excel sheet differs by about 2.5% from what I get if I hover the mouse over the "A" folder. (Excel says 28.2 GB, Windows says 27.5 GB.) While 2.5% isn't a lot, it still amounts to 700 megabytes, more disk space than my first four or five computers had -- COMBINED.

I know that the more files I have, the more partially empty sectors there will be, but I thought that hovering over the "C" folders would take that into account.

Why doesn't the sum of the individual "C" folders add up to the total shown for the "top" "A" folder in the tree?

tanstaafl.

_________________________
"There Ain't No Such Thing As A Free Lunch"

Top
#325782 - 08/09/2009 20:32 Re: Adding up megabytes [Re: tanstaafl.]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Because the larger numbers you're adding together are ROUNDED NUMBERS, the rounding errors can tend to pile up a bit.

And yes, the entire disk size of your old computer falls within the rounding error margin of your new computer. That's the disk version of Moore's law for ya.
_________________________
Tony Fabris

Top
#325783 - 08/09/2009 20:33 Re: Adding up megabytes [Re: tanstaafl.]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
2.5% is suspiciously the difference between 1000 and 1024. Windows counts in binary MB and GB. How did you convert your Excel total in MB into GB?

Peter

Top
#325788 - 08/09/2009 23:25 Re: Adding up megabytes [Re: tanstaafl.]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Out of curiosity, what led you to compare these numbers?
_________________________
Bitt Faulk

Top
#325796 - 09/09/2009 00:34 Re: Adding up megabytes [Re: wfaulk]
gbeer
carpal tunnel

Registered: 17/12/2000
Posts: 2665
Loc: Manteca, California
Don't forget the difference between filesize and the filesize rounded up to the next allocation unit.

10 files times 1 byte each = 10 bytes
10 files times 4096 byte allocation unit = 40.960 Kbytes
_________________________
Glenn

Top
#325799 - 09/09/2009 02:59 Re: Adding up megabytes [Re: peter]
Shonky
pooh-bah

Registered: 12/01/2002
Posts: 2009
Loc: Brisbane, Australia
Originally Posted By: peter
2.5% is suspiciously the difference between 1000 and 1024. Windows counts in binary MB and GB. How did you convert your Excel total in MB into GB?

Peter

Well he did say megabytes and then later compared in gigabytes so I think you're right.

As long as the "size" or "size on disk" quantities weren't interchanged that shouldn't make a difference.
_________________________
Christian
#40104192 120Gb (no longer in my E36 M3, won't fit the E46 M3)

Top
#325855 - 10/09/2009 00:15 Re: Adding up megabytes [Re: peter]
tanstaafl.
carpal tunnel

Registered: 08/07/1999
Posts: 5549
Loc: Ajijic, Mexico
Originally Posted By: peter
2.5% is suspiciously the difference between 1000 and 1024. Windows counts in binary MB and GB. How did you convert your Excel total in MB into GB?

Peter


That's it, I think. I added up all those megabytes that Windows said each folder contained, and figured that 28,175 megabytes must be 28.2 gigabytes.

I knew better than that... I just had it in my head that since Windows was providing me with all the number that they would add up, which they do, of course. What caught me out was not thinking through the implications of Windows displaying the grand total in gigabytes but the subtotals in megabytes.

Doh!

tanstaafl.
_________________________
"There Ain't No Such Thing As A Free Lunch"

Top
#325856 - 10/09/2009 00:22 Re: Adding up megabytes [Re: wfaulk]
tanstaafl.
carpal tunnel

Registered: 08/07/1999
Posts: 5549
Loc: Ajijic, Mexico
Originally Posted By: wfaulk
Out of curiosity, what led you to compare these numbers?


Figuring how many DVD's it would take to back up the files, and how many (and which) files would go on each DVD.

Even though the DVD nominally holds 4489 MB, I have found that (with my burner, at least) anything over 4000 MB greatly increases the chances of creating coasters, so I allocate the files so as to fill up about 3900 MB.

tanstaafl.
_________________________
"There Ain't No Such Thing As A Free Lunch"

Top