Re: [OT] files/dir on windoze

new topic     » goto parent     » topic index » view thread      » older message » newer message

Bernard Ryan wrote:

> Irv:
> I found this on the internet at
>   http://www.systemsmedic.com/SoftwareEdu2.htm
>
>  This is probably what is happening :
>
> " Under the FAT system, files are always allocated an integral number
>  of clusters. On a 1.2GB hard disk with clusters of 32K, a text file
>  containing only the words "hello, world" may have a directory listing
>  of just 12 bytes, but the file will actually take up 32K of disk space.
>  The unused part of the cluster is called slack. Small files may have
>  slack equal to almost an entire cluster; on average, a file will have
>  half a cluster of slack. "

I know about this phenomenon. At least on my system, I don't think that
the problem is caused by this say "slack problem".

As I wrote previously, on my harddrive there are 4096 bytes per cluster.
So in order to create 17000 small files (smaller than one cluster),
I need 17000*4096 bytes (about 66 MB) free disk space. I have got much
more than that free space!

Also I just wrote 10,000 files with long filenames (80 characters) to my
hard disk. No problem, when I only write 5,000 files per directory. But
in *one* directory, only 8191 files were possible.
I can't imagine that this problem is caused by cluster size and slack.

Regards,
   Juergen

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu