b11_ said:
Sometimes the "size on disk" of a file is much larger than the "size" of the
file. How can that be avoided? In other words, what should be done so the
"size on disk" is about the same as the "size"?
There's very little that can be done about it, unless you've some way
to ensure that each file's size is an even multiple of the partition's
cluster size.
"Size" refers to the actual total of the sizes of all of the
individual file sizes, while "Size on Disk" refers to the total amount
of disk space occupied by those files. The difference is because some
of the files do not occupy an entire cluster. For instance, a 1 Kb file
is occupying a single 4 Kb (or 8 Kb or 16 KB) cluster. Clusters cannot
be shared by different files, so there will always be some wasted space
whenever a file doesn't completely fill a cluster. If there are a lot
of small files, the wastage becomes quite noticeable.
--
Bruce Chambers
Help us help you:
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. ~Benjamin Franklin
Many people would rather die than think; in fact, most do. ~Bertrand Russell
The philosopher has never killed any priests, whereas the priest has
killed a great many philosophers.
~ Denis Diderot