Max Unix Directories

  • Tdotwire
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jul 18, 2004
  • Posts: 486
  • Loc: Toronto
  • Status: Offline

Post October 30th, 2005, 7:16 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 30th, 2005, 7:16 pm

  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Joined: Jan 23, 2004
  • Posts: 2675
  • Loc: Somewhere outside the box in Sarasota, FL.
  • Status: Offline

Post October 31st, 2005, 5:57 am

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.
"It's always a long day, 86,400 won't fit into a short."

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 91 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.