Re: [gentoo-user] file limit

2006-03-23 Thread JimD
On Wed, 22 Mar 2006 20:50:26 -0500
Bruce Therrien <[EMAIL PROTECTED]> wrote:

> Is there a limit to the files contained in a directory?

No.  Though the file system type can have an affect on performance if
there are a lot of files/directories.  For example, reiserfs is much
faster at handling a lot of files than ext[23].  What file system are
you using?

> we have over 19,000 in our store graphics directory
> and sometimes cannot acces it because the ftp 
> software says it's not a directory.
> It's on an IBM server running gentoo.

I would think it is the ftp software and not the file system or
server.  19,000 is not a huge number.  I have an AMD64 3200+ with 2 GB
of dual channel DDR 400 and a SATA II drive with reiserfs v3.  The
system is "speedy" but certainly nothing high end.  Here is a test I
just did:


# Touch 19,000 files
[EMAIL PROTECTED] $ mkdir /tmp/bigdir
[EMAIL PROTECTED] $ cd /tmp/bigdir
[EMAIL PROTECTED] $ time for i in $(seq 0 19000); do touch $i; done
real0m23.318s
user0m6.370s
sys 0m16.364s

# list 19,000 files
[EMAIL PROTECTED] $ time ls -l
real0m1.481s
user0m0.235s
sys 0m0.163s

# Remove 19,000 files
[EMAIL PROTECTED] $ time find . -exec rm {} \;
real0m12.555s
user0m3.834s
sys 0m8.545s

Jim
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] file limit

2006-03-22 Thread Alexander Skwar
Bruce Therrien wrote:
> Is there a limit to the files contained in a directory?

No.

> we have over 19,000 in our store graphics directory
> and sometimes cannot acces it because the ftp 
> software says it's not a directory.

Replace the ftp software.

Alexander Skwar
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] file limit

2006-03-22 Thread Glenn Enright
On Thursday 23 March 2006 13:50, Bruce Therrien wrote:
> Is there a limit to the files contained in a directory?
> we have over 19,000 in our store graphics directory
> and sometimes cannot acces it because the ftp
> software says it's not a directory.
> It's on an IBM server running gentoo.
>
More likely its a limit of the ftp server software or the underlying 
filesystem than ftp protocol, although you might anticipate timeouts if the  
transfering of file listings is over a slow connection. Does the ftp server 
have issues with any other storage spaces? Is it just one big directory or 
broken down into heirarchy? if the latter, does any particular part seem to 
be causing issues?
-- 
The heart is not a logical organ.
-- Dr. Janet Wallace, "The Deadly Years", stardate 3479.4
-- 
gentoo-user@gentoo.org mailing list