* Severe VFS Performance Issues 2.6 with > 95000 directory entries
@ 2005-11-13 3:48 Jeff V. Merkey
2005-11-13 12:45 ` Nikita Danilov
0 siblings, 1 reply; 8+ messages in thread
From: Jeff V. Merkey @ 2005-11-13 3:48 UTC (permalink / raw)
To: LKML
The subject line speaks for itself. This is using standard VFS readdir
and lookup calls through the VFSwith ftp. Very poor.
It appears dcache related since longer file names proportionately take
longer based on the size of the name. My lookup routines use static
pinned tables in memory, and are very fast. VFS peformance non-ftp are
reasonable, but still have problems with the number of entries
in a directory gets above 50,000.
Jeff
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Severe VFS Performance Issues 2.6 with > 95000 directory entries
2005-11-13 3:48 Severe VFS Performance Issues 2.6 with > 95000 directory entries Jeff V. Merkey
@ 2005-11-13 12:45 ` Nikita Danilov
2005-11-13 21:01 ` jmerkey
0 siblings, 1 reply; 8+ messages in thread
From: Nikita Danilov @ 2005-11-13 12:45 UTC (permalink / raw)
To: Jeff V. Merkey; +Cc: Linux Kernel Mailing List
Jeff V. Merkey writes:
>
> The subject line speaks for itself. This is using standard VFS readdir
> and lookup calls through the VFSwith ftp. Very poor.
Reiser4 works fine with 100M entries in a directory, so VFS is not a
bottleneck here.
[...]
>
> Jeff
Nikita.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Severe VFS Performance Issues 2.6 with > 95000 directory entries
2005-11-13 12:45 ` Nikita Danilov
@ 2005-11-13 21:01 ` jmerkey
2005-11-13 21:34 ` Nikita Danilov
2005-11-13 21:50 ` Douglas McNaught
0 siblings, 2 replies; 8+ messages in thread
From: jmerkey @ 2005-11-13 21:01 UTC (permalink / raw)
To: Nikita Danilov; +Cc: Linux Kernel Mailing List
Nikita Danilov wrote:
>Jeff V. Merkey writes:
> >
> > The subject line speaks for itself. This is using standard VFS readdir
> > and lookup calls through the VFSwith ftp. Very poor.
>
>Reiser4 works fine with 100M entries in a directory, so VFS is not a
>bottleneck here.
>
>
how about with ftp running on top? Try running FTP in directory with
100M entries. See how long it takes to return the data to
the remote client for a dir listing.
Jeff
>[...]
>
> >
> > Jeff
>
>Nikita.
>
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Severe VFS Performance Issues 2.6 with > 95000 directory entries
2005-11-13 21:34 ` Nikita Danilov
@ 2005-11-13 21:24 ` jmerkey
0 siblings, 0 replies; 8+ messages in thread
From: jmerkey @ 2005-11-13 21:24 UTC (permalink / raw)
To: Nikita Danilov; +Cc: Linux Kernel Mailing List
Nikita Danilov wrote:
>jmerkey writes:
> > Nikita Danilov wrote:
> >
> > >Jeff V. Merkey writes:
> > > >
> > > > The subject line speaks for itself. This is using standard VFS readdir
> > > > and lookup calls through the VFSwith ftp. Very poor.
> > >
> > >Reiser4 works fine with 100M entries in a directory, so VFS is not a
> > >bottleneck here.
> > >
> > >
> >
> > how about with ftp running on top? Try running FTP in directory with
> > 100M entries. See how long it takes to return the data to
> > the remote client for a dir listing.
>
>Why are you thinking that it is VFS that is causing performance
>degradation here?
>
>
Because I see the same degredation local vs. remote. My path for readdir
and lookup are short. I dynamically (via math) create
the file names on the fly and lookup simply reads a static table in
memory for inode number. One thing I can check are calls
to igetblk inside of lookup.
Jeff
> >
> > Jeff
> >
> > >[...]
> > >
> > > >
> > > > Jeff
> > >
>
>Nikita.
>
> > >
> > >
> > >
>
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Severe VFS Performance Issues 2.6 with > 95000 directory entries
2005-11-13 21:50 ` Douglas McNaught
@ 2005-11-13 21:28 ` jmerkey
2005-11-13 21:37 ` Jeff V. Merkey
1 sibling, 0 replies; 8+ messages in thread
From: jmerkey @ 2005-11-13 21:28 UTC (permalink / raw)
To: Douglas McNaught; +Cc: Nikita Danilov, Linux Kernel Mailing List
Douglas McNaught wrote:
>jmerkey <jmerkey@soleranetworks.com> writes:
>
>
>
>>Nikita Danilov wrote:
>>
>>
>>
>>>Jeff V. Merkey writes:
>>>
>>>
>>>>>The subject line speaks for itself. This is using standard VFS
>>>>>
>>>>>
>>>readdir > and lookup calls through the VFSwith ftp. Very poor.
>>>
>>>Reiser4 works fine with 100M entries in a directory, so VFS is not a
>>>bottleneck here.
>>>
>>>
>>>
>>>
>>how about with ftp running on top? Try running FTP in directory with
>>100M entries. See how long it takes to return the data to
>>the remote client for a dir listing.
>>
>>
>
>What filesystem are you using? If it's ext3 without dirindex turned
>on, that would definitely explain it.
>
>-Doug
>
>
>
Thanks. I'll enable dirindex.
Jeff
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Severe VFS Performance Issues 2.6 with > 95000 directory entries
2005-11-13 21:01 ` jmerkey
@ 2005-11-13 21:34 ` Nikita Danilov
2005-11-13 21:24 ` jmerkey
2005-11-13 21:50 ` Douglas McNaught
1 sibling, 1 reply; 8+ messages in thread
From: Nikita Danilov @ 2005-11-13 21:34 UTC (permalink / raw)
To: jmerkey; +Cc: Linux Kernel Mailing List
jmerkey writes:
> Nikita Danilov wrote:
>
> >Jeff V. Merkey writes:
> > >
> > > The subject line speaks for itself. This is using standard VFS readdir
> > > and lookup calls through the VFSwith ftp. Very poor.
> >
> >Reiser4 works fine with 100M entries in a directory, so VFS is not a
> >bottleneck here.
> >
> >
>
> how about with ftp running on top? Try running FTP in directory with
> 100M entries. See how long it takes to return the data to
> the remote client for a dir listing.
Why are you thinking that it is VFS that is causing performance
degradation here?
>
> Jeff
>
> >[...]
> >
> > >
> > > Jeff
> >
Nikita.
> >
> >
> >
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Severe VFS Performance Issues 2.6 with > 95000 directory entries
2005-11-13 21:50 ` Douglas McNaught
2005-11-13 21:28 ` jmerkey
@ 2005-11-13 21:37 ` Jeff V. Merkey
1 sibling, 0 replies; 8+ messages in thread
From: Jeff V. Merkey @ 2005-11-13 21:37 UTC (permalink / raw)
To: Douglas McNaught; +Cc: jmerkey, Nikita Danilov, Linux Kernel Mailing List
Douglas McNaught wrote:
>jmerkey <jmerkey@soleranetworks.com> writes:
>
>
>
>>Nikita Danilov wrote:
>>
>>
>>
>>>Jeff V. Merkey writes:
>>>
>>>
>>>>>The subject line speaks for itself. This is using standard VFS
>>>>>
>>>>>
>>>readdir > and lookup calls through the VFSwith ftp. Very poor.
>>>
>>>Reiser4 works fine with 100M entries in a directory, so VFS is not a
>>>bottleneck here.
>>>
>>>
>>>
>>>
>>how about with ftp running on top? Try running FTP in directory with
>>100M entries. See how long it takes to return the data to
>>the remote client for a dir listing.
>>
>>
>
>What filesystem are you using? If it's ext3 without dirindex turned
>on, that would definitely explain it.
>
>
>
I just noticed the I_NEW flag for iget which prevents multiple calls to
refresh the inode. There's another code section where I update the
filesize field
after I call iget from lookup. This does not explain it either since I
use math here to hash and post into the inode. I am still convinced that
either in userspace
or in the kernel VFS, there's still a case where readdit goes linear and
starts to exhibit (O)(Log 2(N)) behavior as the directory gets large
(above 50,000 entries).
Jeff
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Severe VFS Performance Issues 2.6 with > 95000 directory entries
2005-11-13 21:01 ` jmerkey
2005-11-13 21:34 ` Nikita Danilov
@ 2005-11-13 21:50 ` Douglas McNaught
2005-11-13 21:28 ` jmerkey
2005-11-13 21:37 ` Jeff V. Merkey
1 sibling, 2 replies; 8+ messages in thread
From: Douglas McNaught @ 2005-11-13 21:50 UTC (permalink / raw)
To: jmerkey; +Cc: Nikita Danilov, Linux Kernel Mailing List
jmerkey <jmerkey@soleranetworks.com> writes:
> Nikita Danilov wrote:
>
>>Jeff V. Merkey writes:
>> > > The subject line speaks for itself. This is using standard VFS
>> readdir > and lookup calls through the VFSwith ftp. Very poor.
>>
>>Reiser4 works fine with 100M entries in a directory, so VFS is not a
>>bottleneck here.
>>
>>
>
> how about with ftp running on top? Try running FTP in directory with
> 100M entries. See how long it takes to return the data to
> the remote client for a dir listing.
What filesystem are you using? If it's ext3 without dirindex turned
on, that would definitely explain it.
-Doug
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-11-13 22:03 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-13 3:48 Severe VFS Performance Issues 2.6 with > 95000 directory entries Jeff V. Merkey
2005-11-13 12:45 ` Nikita Danilov
2005-11-13 21:01 ` jmerkey
2005-11-13 21:34 ` Nikita Danilov
2005-11-13 21:24 ` jmerkey
2005-11-13 21:50 ` Douglas McNaught
2005-11-13 21:28 ` jmerkey
2005-11-13 21:37 ` Jeff V. Merkey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox