Max Unix Directories

  • Tdotwire
  • Proficient
  • Proficient
  • User avatar
  • Posts: 486
  • Loc: Toronto

Post 3+ Months Ago

Is there anyway to change the maximum number of allowed sub directories in a directory for unix.

Because I found the maximum to be around 20,000...
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

Which unix?

In HP-UX there's a tunable value of VX_MAXLINK which may be sent between LINK_MAX and INT_MAX -- though to only about 65k.

In Solaris it's set to a 'signed short', so you won't exceed ~32k. (32768)

I have to ask; why in the world would you want to exceed that limit? You understand that parsing that many subdirectories puts a serious strain on the load factor ... this wouldn't be a software delivery system application, would it?

In any case, if at all possible, limit your directory structure as much as possible.

Cheers.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 88 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.