Re: How many sub-directories ?



On 2007-04-03, Dan Espen <daneNO@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
"Robert M. Riches Jr." <spamtrap42@xxxxxxxxxxx> writes:


Based on my lurking, it depends on the filesystem you use.
The only problems I have heard of are performance issues,
where one filesystem may handle a couple orders of magnitude
more directory entries than another before seeing
significant slowdown. Of course, all bets are off if you
run out of inodes...

That's sort of misleading.

You run out of inodes when you fill the disk.

Not necessarily. When you create an ext2/3 filesystem, and
many others if I understand correctly, you create a bunch of
inodes, and the number of available inodes appears to be
essentially fixed at that point. Then, if you create a
small number of huge files, you can run out of storage
blocks on the disk without running out of inodes. Or, if
you create a huge number of very small files, you can run
out of inodes without running out of storage blocks.

Here are a few references:

http://www.bellevuelinux.org/inode.html
http://www.linuxjournal.com/article/4404
http://justlinux.com/forum/archive/index.php/t-17192.html

However, you are correct if you are speaking exclusively
about the ReiserFS.

--
Robert Riches
spamtrap42@xxxxxxxxxxx
(Yes, that is one of my email addresses.)
.



Relevant Pages

  • Re: Disk I/O performance.
    ... The number of inodes does not have any effect on disk performance. ... amount available for actual files. ... You can't change it once the filesystem is ...
    (AIX-L)
  • ufs inodes are not released on Solaris 8 for non-root users
    ... SUNW,Sun-Fire-V250) ufs inodes are not released after the corresponding ... The inodes get released after the filesystem is unmounted and mounted again, ... De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is alleen ...
    (SunManagers)
  • Re: [opensuse] No longer a GRUB problem (Was: BIOS/GRUB Problem)
    ... An ext2/3/4 filesystem has a fixed number of inodes, ... contiguously on the disk, the file has two or more "pieces". ... The second pair of numbers tells you how many blocks the filesystem ... Reserved blocks gid: 0 ...
    (SuSE)
  • Re: inodes
    ... info about a disk filesystem such as free disk space and inodes, ... If a filesystem has N inodes, ... recovered by finding superblock info? ...
    (comp.unix.programmer)
  • mipsel linux problems
    ... 4000 inodes, 16000 blocks ... Writing inode tables: done ... Writing superblocks and filesystem accounting information: ... Setting maximal mount count to 10240 ...
    (comp.os.linux.embedded)