public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* How many files to create in one directory?
@ 2014-01-27  7:16 Masato Minda
  2014-01-27 18:02 ` Eric Sandeen
  0 siblings, 1 reply; 6+ messages in thread
From: Masato Minda @ 2014-01-27  7:16 UTC (permalink / raw)
  To: linux-ext4

Dear Ext4 Developer;

I've copied the files from VxFS to EXT4, I saw the message “Directory
index full!”. I've checked the search engine and found these mails.

  http://www.spinics.net/lists/linux-ext4/msg25058.html
  http://www.spinics.net/lists/linux-ext4/msg25069.html

Our Ext4's block size was 1024. I've changed the block size from 1024 to
4096. Our problem was solved. But I have question.

How many files to create in one directory in 4096 block size?
I think that it is about 3 million files with perfect hashing.

  16*(4096-16)/8*(4096-8)/8*3/4= 3M

Is this correct?

Thanks in advance.

--
Masato minmin Minda <minmin@jprs.co.jp>
Japan Registry Services Co., Ltd. (JPRS)

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-01-28 21:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-27  7:16 How many files to create in one directory? Masato Minda
2014-01-27 18:02 ` Eric Sandeen
2014-01-27 19:39   ` Theodore Ts'o
2014-01-27 19:48     ` Eric Sandeen
2014-01-28  2:53       ` Masato Minda
2014-01-28 21:02       ` Andreas Dilger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox