Date: Sun, 21 Mar 2010 21:55:59 -0700 From: Kirk McKusick <mckusick@mckusick.com> To: Ivan Voras <ivoras@freebsd.org> Cc: freebsd-fs@freebsd.org Subject: Re: UFS files in a directory limit? Message-ID: <201003220455.o2M4txXr082327@chez.mckusick.com> In-Reply-To: <ho6ce2$1k9$1@dough.gmane.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> To: freebsd-fs@freebsd.org > From: Ivan Voras <ivoras@freebsd.org> > Date: Mon, 22 Mar 2010 01:08:31 +0100 > Subject: UFS files in a directory limit? > > hi, > > What is the limit on the number of files in a directory on UFS? I always > thought it is 32,767 (or near it) but now I see several directories on a > server with more than 36,000 files (yes it's inefficient, that's not the > point). The only limit on the size of a directory is the number of files that you can have in the filesystem. There is a limit of 2^16 directories within a directory due to the limit on the number of hard links. > On a similar topic, I presume there are no unexpected problems with > increasing vfs.ufs.dirhash_mem to ridiculous amounts like 100 MB? :) The only issue with making vfs.ufs.dirhash_mem very large is that you may exhaust the address space available to your kernel. Kirk McKusick
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003220455.o2M4txXr082327>