10 Replies - 31082 Views - Last Post: 26 December 2007 - 04:38 PM

#1 born2c0de   User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 187
  • View blog
  • Posts: 4,673
  • Joined: 26-November 04

Difference between Size and Size on Disk

Post icon  Posted 19 December 2005 - 07:32 AM

Hey Everyone,
I would like to know the difference between size and size on Disk in Windows XP.
I'm sort of confused.
I've attached a screenshot.
Thanks.

Attached image(s)

  • Attached Image

Is This A Good Question/Topic? 0
  • +

Replies To: Difference between Size and Size on Disk

#2 Amadeus   User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 253
  • View blog
  • Posts: 13,507
  • Joined: 12-July 02

Re: Difference between Size and Size on Disk

Posted 19 December 2005 - 08:04 AM

See the second post in this thread. It has a good explanation. Essentially size is the amount of bytes the file takes up. Size on disk refers to the cluster allocation.
Was This Post Helpful? 0
  • +
  • -

#3 Datalus   User is offline

  • D.I.C Head
  • member icon

Reputation: 0
  • View blog
  • Posts: 235
  • Joined: 18-December 05

Re: Difference between Size and Size on Disk

Posted 19 December 2005 - 01:41 PM

Yeah, your filesystem is like a book. After you write something small on the first page, you have to start a second page for the next thing. Basically:

Size on disk = the number of bytes worth of pages this file takes up.
Size = the actual size in bytes of the file
Was This Post Helpful? 0
  • +
  • -

#4 born2c0de   User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 187
  • View blog
  • Posts: 4,673
  • Joined: 26-November 04

Re: Difference between Size and Size on Disk

Posted 20 December 2005 - 01:40 AM

Thanks.
That really helped a lot.
Was This Post Helpful? 0
  • +
  • -

#5 Roshan10043   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 27-September 07

Re: Difference between Size and Size on Disk

Posted 27 September 2007 - 06:33 AM

Can anyone help me how to reduce the file size or size on disk.

Which one is more important to us or which one should we take care of?

Regards
Roshan
Was This Post Helpful? 0
  • +
  • -

#6 born2c0de   User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 187
  • View blog
  • Posts: 4,673
  • Joined: 26-November 04

Re: Difference between Size and Size on Disk

Posted 27 September 2007 - 09:06 AM

Quote

Can anyone help me how to reduce the file size or size on disk.

Any compression utility like WinZIP or WinRAR can be used to reduce the file size of any file.
Was This Post Helpful? 0
  • +
  • -

#7 jjhaag   User is offline

  • me editor am smartastic
  • member icon

Reputation: 49
  • View blog
  • Posts: 1,789
  • Joined: 18-September 07

Re: Difference between Size and Size on Disk

Posted 27 September 2007 - 01:30 PM

View PostRoshan10043, on 27 Sep, 2007 - 06:33 AM, said:

Which one is more important to us or which one should we take care of?


well, they're pretty closely related. if you have one very large file, generally the numbers aren't too far off, because although the file spans many clusters, pretty much every one of them will be filled, until you reach the end of the file (it's more complex than that, but it's a starting point).

if you have a ton of little files, then you might have problems with wasted space because of the cluster allocation issue.

the use of a compression utility as born2code suggests can do a couple of things:

for large files, using compression can substantially reduce both size and size on disk, because the program will seek out redundant or repetitious information, and store information on how to put the file back together. this reduces the size of the file, which in turn can reduce the size on disk.

for a ton of small files, the same premise holds. however, there is also the additional benefit that all of your 1000's of tiny files are now contained in a single archive, so that you don't need a separate cluster for each file - the operating system only "sees" the single archive file, and so writes it across clusters without wasted space. this will reduce both the total size of all the files, as well as substantially reduce size on disk. in fact, many compression utilities have an archive or storage option, which uses no compression (total size remains the same), but allows for a reduction of the cluster allocation problem (size on disk can go way down).

remember, though, that you take a performance hit when using a compressed archive - the more compressed it is, the longer it will take to extract a single file from it. the archive or storage option is usually pretty quick, but can still incur a performance penalty.

hope that helps,

-jjh
Was This Post Helpful? 1

#8 mvenkat1903   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 23-December 07

Re: Difference between Size and Size on Disk

Posted 23 December 2007 - 11:49 PM

Hi all,

Can anyone tell me which size should i consider when i want to write that file in a cd or a dvd?
Was This Post Helpful? 0
  • +
  • -

#9 1lacca   User is offline

  • code.rascal
  • member icon

Reputation: 44
  • View blog
  • Posts: 3,822
  • Joined: 11-August 05

Re: Difference between Size and Size on Disk

Posted 24 December 2007 - 02:06 AM

None :)
If you've just a couple of (big) files they would be roughly the same anyway (give or take some kB).
If you have a lot of small files, then the cluster size of the DVD or CD filesystem would kick in. I think it is 2K, that is smaller than usual cluster size for a hdd, so the final size would be somewhere between the size and size on disk. Also, there is some errror correction code that gives also a small overhead, so the easiest way is to check what your burning application writes out.
Was This Post Helpful? 0
  • +
  • -

#10 mvenkat1903   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 23-December 07

Re: Difference between Size and Size on Disk

Posted 24 December 2007 - 11:26 PM

ok... i've got it... thank you
Was This Post Helpful? 0
  • +
  • -

#11 lockdown   User is offline

  • D.I.C Regular
  • member icon

Reputation: 6
  • View blog
  • Posts: 394
  • Joined: 29-September 07

Re: Difference between Size and Size on Disk

Posted 26 December 2007 - 04:38 PM

View PostRoshan10043, on 27 Sep, 2007 - 06:33 AM, said:

Can anyone help me how to reduce the file size or size on disk.

Which one is more important to us or which one should we take care of?

Regards
Roshan


Any windows NT architecture (Win NT, 2k, XP, 2k3) have built in file compression that can be managed. Like jjhaad said if you compress a file it will take longer to uncompress that file when you need to uses it.

In my suggestion I would not turn on file compression on your system unless its pre configured with it. Having it configured can cause windows to load slower (since it must open all files needed to start and uncompress them) and will cause your system to slow down in general.

A better way to manage the space on your system is to compress particular file (documents, program installs, videos) that you do not uses on a regular basis. You can uses WinZip or WinRAR which are two different compress formates but reduce the size about the same amount. WARNING: DO NOT COMPRESS PROGRAM FILES OR WINDOWS SYSTEM FILES this will cause many issues since windows dose not know to extract them properly when opening a program or system file. Also look at purchasing a 2nd hard drive (internal or external) suggest external since it is portable if you want to connect to a laptop or friends computer.

This post has been edited by lockdown: 26 December 2007 - 04:39 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1