Author Topic: Maximum number of files  (Read 1569 times)

0 Members and 1 Guest are viewing this topic.

Offline AndyBTopic starter

  • back from the North Pole ...
  • Staff Alumni
  • Freak!
  • *
  • php 5.2.3 / MySQL 5.0.27
    • View Profile
    • halfadot smallwebs
Maximum number of files
« on: December 05, 2006, 03:50:58 PM »
Assuming I have a fairly normal, reasonably current, set up on a *nix server and it's shared hosting - approximately what's the maximum number of files I can have in any single directory?  What's the maximum number of sub-directories I can have in any single directory? 
Legend has it that reading the manual never killed anyone.
My site

Offline neylitalo

  • Staff Alumni
  • Addict
  • *
  • Gender: Male
    • View Profile
    • The Netizen's Journal
Re: Maximum number of files
« Reply #1 on: December 05, 2006, 04:36:07 PM »
Well, technically, there is a limit, but it's rather unlikely that you reach that limit. According to the Wikipedia article on the Ext3 filesystem, which is likely what your host uses, the limit is V/2^13 inodes, where V is the size of the volume in bytes.

So, assuming you have 2GB of storage space, you can have a maximum of 262,144 inodes. (files and/or directories) This number is a grand total - there isn't a set restriction on files in a directory, or directories in a directory.
« Last Edit: December 05, 2006, 04:37:56 PM by neylitalo »
http://nealylitalo.net - My personal website, and home of The Netizen's Journal.

PHP Freaks Forums

« on: »

Tired of these ads? Purchase a supporter subscription to get rid of them.