Re: how many files per dir possible?

Gabor Lenart (lgb@oxygene.terra.vein.hu)
Wed, 30 Jun 1999 08:58:12 +0200


On Tue, Jun 29, 1999 at 02:37:57PM +0200, Friedrich Lobenstock wrote:
> Excuse me, but I couldn't find anything about how many files a
> directory can hold. I only found something about slowing down
> if there are a lot of files.

afaik ext2 stores directory entries in a simple file-like unit, so there
is no limit for number of files in a directory only the maximum file size.
Of course system goes slow when storing lots of files since ext2 using
linear algortithm. I think eg raiserfs uses balanced trees and advanced
search algorithms based on trees to speed up this task.

-- 
 ---[ LGB/DC ]------------[ University Of Veszprém ]------[ Lénárt Gábor ]---
                       Our very last hope : the future
 ---[ 88/422022(4602) ]---[ http://lgb.hal.vein.hu ]---------[ 87/477074 ]---
finger lgb@hal2000.hal.vein.hu for more information including my PGP&GEEK code

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/