Which filesystem type for MongoDB?

282 views
Skip to first unread message

Andreas Jung

unread,
Aug 11, 2010, 10:15:27 AM8/11/10
to mongod...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Is there a file-system recommendation for "high-performance"
MongoDB-based sites (heavy reads and write). On IRC someone made a statement


"""
best thing i can tell you is don't use ext3
"""

What else?

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxisH8ACgkQCJIWIbr9KYzqWwCgigOfQ7u1v3VaH5E0bC+9SNky
PXwAoOXCzgXS18NozOxM5uTuxaF/u6J9
=Q/Vr
-----END PGP SIGNATURE-----

lists.vcf

Marc Seeger

unread,
Aug 11, 2010, 5:51:32 PM8/11/10
to mongodb-user
The usual candidates are XFS or JFS

On Aug 11, 4:15 pm, Andreas Jung <li...@zopyx.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Is there a file-system recommendation for "high-performance"
> MongoDB-based sites (heavy reads and write). On IRC someone made a statement
>
> """
> best thing i can tell you is don't use ext3
> """
>
> What else?
>
> Andreas
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (Darwin)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkxisH8ACgkQCJIWIbr9KYzqWwCgigOfQ7u1v3VaH5E0bC+9SNky
> PXwAoOXCzgXS18NozOxM5uTuxaF/u6J9
> =Q/Vr
> -----END PGP SIGNATURE-----
>
>  lists.vcf
> < 1KViewDownload

kevin

unread,
Aug 11, 2010, 5:52:37 PM8/11/10
to mongod...@googlegroups.com
what is wrong with ext3 or ext4?


--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.


chriskessel

unread,
Aug 11, 2010, 6:39:17 PM8/11/10
to mongodb-user
Is it a significant performance increase? I was just going to use the
standard Linux file system.

Andreas Jung

unread,
Aug 11, 2010, 11:59:30 PM8/11/10
to mongod...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

chriskessel wrote:
> Is it a significant performance increase? I was just going to use the
> standard Linux file system.

"the standard Linux file system"? Different distros using different
filesystems.

- -aj


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxjcaIACgkQCJIWIbr9KYzmjACfXJ0+arQmzWs2REHnANSB/ozn
TmMAn0SN4LCKg0t9FwcbJXcTiPmvbHql
=LEJF
-----END PGP SIGNATURE-----

lists.vcf

Eliot Horowitz

unread,
Aug 12, 2010, 12:06:27 AM8/12/10
to mongod...@googlegroups.com
We've seen the most success with ext4 and xfs.
ext3 does some very strange things with large files.
ext4 fully implements posix_fallocate, which means we can allocate
large files instantly.
i haven't tried xfs myself, but have heard good things.

nightsailer

unread,
Aug 12, 2010, 1:22:12 AM8/12/10
to mongodb-user
I suggest you use xfs, we choose it in production.

XFS performance is better than ext3, event big file.

It recovery very quick, and extend/resize handy.

note:
you should add noatime mount options.


On 8月11日, 下午10时15分, Andreas Jung <li...@zopyx.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Is there a file-system recommendation for "high-performance"
> MongoDB-based sites (heavy reads and write). On IRC someone made a statement
>
> """
> best thing i can tell you is don't use ext3
> """
>
> What else?
>
> Andreas
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (Darwin)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkxisH8ACgkQCJIWIbr9KYzqWwCgigOfQ7u1v3VaH5E0bC+9SNky
> PXwAoOXCzgXS18NozOxM5uTuxaF/u6J9
> =Q/Vr
> -----END PGP SIGNATURE-----
>
>  lists.vcf
> < 1K查看下载

chriskessel

unread,
Aug 12, 2010, 10:44:50 AM8/12/10
to mongodb-user

> "the standard Linux file system"? Different distros using different
> filesystems.

Joy, time to go learn about file systems. To be honest, the file
system is something I never think about beyond whether it's an NFS
mount. I don't think I've ever even heard any of the file system types
mentioned here.
Reply all
Reply to author
Forward
0 new messages