Re: How many directories can I have ?

From: Juhan Leemet (juhan_at_logicognosis.com)
Date: 10/27/04

  • Next message: Barry Margolin: "Re: How many directories can I have ?"
    Date: Tue, 26 Oct 2004 20:10:52 -0200
    
    

    On Tue, 26 Oct 2004 12:36:30 +0100, Tony Walton wrote:

    > User-Agent: Unison/1.5.2
    >
    > On 2004-10-26 01:23:05 +0100, Barry Margolin <barmar@alum.mit.edu> said:
    >
    >>
    >> There's no particular limit to directories.
    >
    > Except that a subdirectory creates a link to its parent. Since each
    > link increments the link count in the parent, and the link count is an
    > unsigned short, there's a hard limit of 32765 subdirectories in a
    > directory (all referring to UFS).

    Good to know!

    Say, would you know if there is a performance issue? If you have a truly
    gigantic directory, will all the directory blocks end up in disk block
    buffers (and hence scanned in memory?) or is there some kind of limit, and
    some kind of paging that will likely occur? The directory blocks are just
    "ordinary" disk content blocks, right? No special restrictions?

    I have experienced really slow handling of big directories in (hated
    name?) Linux, and that surprised me. Never really got to the bottom of it.
    Just made a point to avoid large directories (10K? 100K? entries).

    -- 
    Juhan Leemet
    Logicognosis, Inc.
    

  • Next message: Barry Margolin: "Re: How many directories can I have ?"