RE:SUMMARY: What's the maximum numbers of files in a Unix Directo ry ???

From: German, Vinnie (Vgerman@us.nomura.com)
Date: Fri Jul 11 2003 - 11:46:33 EDT


Here is the Answer to my question below:
Thanks very much to those of you who help.

The below document is from Sun Microsystems explains that.

#################Start of doc####################

Bug ID Synopsis Date
1224920 Cannot create more than 32, 767 files in a directory 20 Aug 1996

Category kernel
Subcategory ufs
State closed
Release Summary 5.4
Integrated in Releases (none)
Patch ID (none)

Description Top

If you take a bare directory and create 32,767 files in it all is ok. Run
fsck
and it completes fine.
Add 1 more file to the directory, total now 32768 and then run fsck and the
inodes become corrupt as the link count goes negitive.

>From /usr/include/sys/param.h:
        
#define MAXLINK 32767 /* max links */

This has been reproduced in our lab by simply creating 32,767 files, adding
1
more and running fsck. Test systems 4.1.3_U1 and 2.4 with current patches.
Work Around Top

-------------
1/8/96 (rsbrown)

I suggest that the customer consider breaking down the entries in the
directory
into subdirectories. For example, /home/abcdefg could be broken down into
/home/a/abcdefg or (if necessary) /home/a/b/c/d/e/f/abcdefg.
Summary Top

################End of Doc##############

> -----Original Message-----
> From: German, Vinnie
> Sent: Friday, July 11, 2003 10:45 AM
> To: 'sunmanagers@sunmanagers.org'
> Subject: What's the maximum numbers of files in a Unix Directory ???
>
> Hello Managers:
>
> We're trying to figure out which is the maximim number of files allowed in
> a directory
> in a Unix Solaris 8 environment. If there is any document out there
> which
> explain this info in detail could you please point me to it.
>
> Thanks in advance,
> Vinnie
----- This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. If
you receive this message in error, please delete it and all copies from your
system, destroy any hard copies and notify the sender. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any part
of this message if you are not the intended recipient. Nomura Holding
America Inc., Nomura Securities International, Inc, and their respective
subsidiaries each reserve the right to monitor all e-mail communications
through its networks. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the sender
is authorized to state the views of such entity. Unless otherwise stated,
any pricing information in this message is indicative only, is subject to
change and does not constitute an offer to deal at any price quoted. Any
reference to the terms of executed transactions should be treated as
preliminary only and subject to our formal written confirmation.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:45 EDT