[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any problem with having 100,000 files



On Sat, Jun 01, 2002 at 08:45:30AM -0600, J. Scott Edwards wrote:

> Are there any problems with having  100,000 files or more on the
> OpenBSD file system?

Nope:

$ df -hi
Filesystem    Size   Used  Avail Capacity iused   ifree  %iused  Mounted on
/dev/wd4a     991M   278M   663M    30%   18579  232939     7%   /
/dev/raid0a   9.6G   1.9G   7.3G    20%  181653 2439785     7%   /usr
/dev/raid0d   984M    10M   924M     1%    1087  261055     0%   /var
/dev/raid0e   984M   1.0K   935M     0%       1  262141     0%   /var/tmp
/dev/raid0f   984M   5.0K   935M     0%      18  262124     0%   /tmp
/dev/raid0g    40G   8.8G    29G    23%   93487 10720975     1%   /home

On /usr, as  you can see, I've  got 181,653 files with  room for a
couple million  more. This /home can handle  10,720,975 files--not
that I  can imagine how  I'd wind up with  that many files  on any
filesystem I'm responsible for.

Put  all those  files into  a  single directory,  now, and  you're
probably asking for  at least a bit of trouble. Look  at Squid for
one sane way  of dealing with a lot of  files; search the archives
and Google for more discussion.

b&

--
Ben Goren
 mailto:ben@trumpetpower.com
 http://www.trumpetpower.com/
 icbm:33o25'37"N_111o57'32"W

[demime 0.98d removed an attachment of type application/pgp-signature]