Results 1 to 7 of 7

Thread: recommended number of files per directory

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539

    recommended number of files per directory

    Long time ago i read somewhere that number of files that should be in a directory should be around 1024 for maximum performance of File access and other IO operations.
    anyone know a link to an article/msdn or what ever that says anything close to this statement?

    thanks

    Kovan,

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    A huge number of files in one directory ofcourse would affect access performance . I've a more than 2000 pics in one folder in a cd .It's really difficult to browse them specially when thumbnail mode on . Never heard of that recommendation by the way !

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    I don't think it's so much the # of files as it is the toal # of bytes used by the files...but then since files in the same dir aren't truly stored near the same location on the drive I don't see how that would affect things.
    At the same, as you admitted, it was a long time ago.... proably in the days when disk storage space was ata premium it might have been an issue, but nowadays...
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    I remember when I got my first 286 it said in the manual: "It is very importent to name your files with good names. Becuse when you have used your computer for a while, you can have more then 100 of them on the HD..."

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Well , what I'm sure of is that Macintosh can have 1024 files as maximam storage within one folder . kovan , maybe you messed between Windows and Macintosh .

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    All filesystem types have maximum limits on file counts both on the disk and in individual directories.

    Performance issues usually cut in a long way before that. If you have a directory with 3000 files of 2K each, behaviour will be drastically different between NTFS and FAT32, for example (NTFS does not require extra disk storage other than the index entry for small files).

    Basically, you shouldn't hit the hard limits unless you *really* go mad with it. Anyway, if you have that many files in a directory, surely you need to rethink your organisation a bit?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width