[PLUG] avoiding "Argument list too long" error.

alan alan at clueserver.org
Mon Oct 9 23:21:08 UTC 2006


On Mon, 9 Oct 2006, Paul Heinlein wrote:

> On Mon, 9 Oct 2006, Daniel Hedlund wrote:
>
>> alan wrote:
>>> It is larger now, but still starts to slow down A LOT after about
>>> 100,000 files.
>>
>> I believe this is why the '-O dir_index' option now exists in
>> mkfs.ext3/mke2fs and tune2fs: "Use hashed b-trees to speed up
>> lookups in large directories."
>>
>> I'm not sure if this is implemented implicitly with ext3 or if it
>> has to be specified explicitly.  Anyone know the answer to this?
>
> It's not the default, but I know that Red Hat's installation utility
> (also used in related distros like Fedora Core and CentOS) adds it
> when creating filesystems at install time.

Yep. You are right.  tune2fs -l will list the options on the partition. 
"dir_index" will list if the option has been set.

-- 
"Oh, Joel Miller, you've just found the marble in the oatmeal. You're a
lucky, lucky, lucky little boy. 'Cause you know why? You get to drink
from... the FIRE HOOOOOSE!"
         - The Stanley Spudoski guide to mailing list administration



More information about the PLUG mailing list