Just curious but is there a limitation on the number of files in a directory? I am using ext3. I'm not concerned about file size just the number of files. Thanks, Jerry
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Oct 17, 2006 at 12:59:56PM -0400, Jerry Geis wrote:> Just curious but is there a limitation on the number of files in a > directory? I am using ext3. > > I'm not concerned about file size just the number of files.I don't think there is actually a hardcoded limit, but I'm not sure. I can say for certain that 20000 files will work, but that is as high as I ever got. I can also say for certain that having that many file on a single directory is slow as hell, and would never do it again. []s - -- Rodrigo Barbosa "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFNRFCpdyWzQ5b5ckRAi4yAJ93ZN5GdOxm7y5k756czRIP3vtRKgCbBr3P aL5cmhvxKLcwGl6ZxX8TeZI=1kWd -----END PGP SIGNATURE-----
On 10/17/06, Jerry Geis <geisj at pagestation.com> wrote:> Just curious but is there a limitation on the number of files in a > directory? I am using ext3.There is an upper bound for directories within a directory of around 63,000. I'm not certain if this applies to files as well. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell
There is a limitation of inode numbers in a filesystem. This implies to files and directories. You should check ext3 manuals/docs to see how can you calculate the limitation ..... Nicholas Anderson Administrador de Sistemas Unix LPIC-1 Certified Rede Fiocruz Jerry Geis wrote:> Just curious but is there a limitation on the number of files in a > directory? I am using ext3. > > I'm not concerned about file size just the number of files. > > Thanks, > > Jerry > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos
One thing I forgot to include in my previous post - be sure to read the documentation and look at NVidia's example XF86Config file (or whatever x.org calls it) - certain modules need to be disabled (dri, something else that I forget...). It's no big deal, since the nvidia module provides this functionality. -- Prentice -----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Rodrigo Barbosa Sent: Tuesday, October 17, 2006 1:22 PM To: CentOS mailing list Subject: Re: [CentOS] files in a directory limitation -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Oct 17, 2006 at 12:59:56PM -0400, Jerry Geis wrote:> Just curious but is there a limitation on the number of files in a > directory? I am using ext3. > > I'm not concerned about file size just the number of files.I don't think there is actually a hardcoded limit, but I'm not sure. I can say for certain that 20000 files will work, but that is as high as I ever got. I can also say for certain that having that many file on a single directory is slow as hell, and would never do it again. []s - -- Rodrigo Barbosa "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFNRFCpdyWzQ5b5ckRAi4yAJ93ZN5GdOxm7y5k756czRIP3vtRKgCbBr3P aL5cmhvxKLcwGl6ZxX8TeZI=1kWd -----END PGP SIGNATURE----- _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos The contents of this communication, including any attachments, may be confidential, privileged or otherwise protected from disclosure. They are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please do not read, copy, use or disclose the contents of this communication. Please notify the sender immediately and delete the communication in its entirety.
Oops. I repled to the wrong e-mail. Sorry. -- Prentice -----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Bisbal, Prentice Sent: Wednesday, October 18, 2006 11:15 AM To: CentOS mailing list Subject: RE: [CentOS] files in a directory limitation One thing I forgot to include in my previous post - be sure to read the documentation and look at NVidia's example XF86Config file (or whatever x.org calls it) - certain modules need to be disabled (dri, something else that I forget...). It's no big deal, since the nvidia module provides this functionality. -- Prentice -----Original Message----- From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Rodrigo Barbosa Sent: Tuesday, October 17, 2006 1:22 PM To: CentOS mailing list Subject: Re: [CentOS] files in a directory limitation -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Oct 17, 2006 at 12:59:56PM -0400, Jerry Geis wrote:> Just curious but is there a limitation on the number of files in a > directory? I am using ext3. > > I'm not concerned about file size just the number of files.I don't think there is actually a hardcoded limit, but I'm not sure. I can say for certain that 20000 files will work, but that is as high as I ever got. I can also say for certain that having that many file on a single directory is slow as hell, and would never do it again. []s - -- Rodrigo Barbosa "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFNRFCpdyWzQ5b5ckRAi4yAJ93ZN5GdOxm7y5k756czRIP3vtRKgCbBr3P aL5cmhvxKLcwGl6ZxX8TeZI=1kWd -----END PGP SIGNATURE----- _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos The contents of this communication, including any attachments, may be confidential, privileged or otherwise protected from disclosure. They are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please do not read, copy, use or disclose the contents of this communication. Please notify the sender immediately and delete the communication in its entirety. _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos The contents of this communication, including any attachments, may be confidential, privileged or otherwise protected from disclosure. They are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please do not read, copy, use or disclose the contents of this communication. Please notify the sender immediately and delete the communication in its entirety.
Don't know what you're after - but I've found that having over about 1024 files in a directory gets sluggish on a number of filesystems. So when I write code (EG: databases) with file attachments, I use an algorithm that results in < 1024 files per directory. -Ben On Tuesday 17 October 2006 09:59, Jerry Geis wrote:> Just curious but is there a limitation on the number of files in a > directory? I am using ext3. > > I'm not concerned about file size just the number of files. > > Thanks, > > Jerry > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. >-- "The best way to predict the future is to invent it." - XEROX PARC slogan, circa 1978