Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Sep 1998 13:47:17 -0700
From:      Studded <Studded@dal.net>
To:        gary.hall@mcg-graphics.com
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Limit to number of files in a directory
Message-ID:  <35F44655.C742952@dal.net>
References:  <35F3F483.AE59329F@mcg-graphics.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Gary Hall wrote:
> 
> Is there any limit to the number of files that can be stored in a
> directory in FreeBSD ?
> 
> We intend to use our FreeBSD machine as an FTP server to store images of
> 
> jobs on and estimate somewhere in the area of a million in a single
> directory.
> 
> Would this cause a problem ?

	To my knowledge it shouldn't cause a problem for the system, but it
will be extremely slow to access information about it through tools like
ls. Is there any reason not to break the images down into directories? 
That will make it easier for humans to keep track of too. Also, if the
images are less than 8k you will want to build a special file system for
that directory with an inode size that takes that into account.
Otherwise you will run out of inodes on that file system long before you
run out of disk space.

Good luck,

Doug
-- 
***           Chief Operations Officer, DALnet IRC network          ***

At Barry (a small town in south Wales) hidden cameras have had to be
installed to keep watch on the town's CCTV [Closed Circuit Television]
to record acts of vandalism against the CCTV. - Privacy Forum

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35F44655.C742952>