ext4 vs ext3 with mongodb

667 views
Skip to first unread message

Oded Maimon

unread,
Dec 5, 2010, 6:28:32 AM12/5/10
to mongodb-user
hi,
it seams that because mongodb uses memory mapped files anyway, using
ext4 will be better than ext3 for mongodb.
do you recommend using ext4 instead of ext3?

thanks,
Oded.

Andreas Jung

unread,
Dec 5, 2010, 6:32:44 AM12/5/10
to mongod...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Often discussed....

http://www.slideshare.net/mongodb/deployment-strategy

In particular I can not see how the usage of memory mapped files
with ext3 is different from ext4. The major advantage of ext4 over ext3
affects the pre-allocation of new database files.

- -aj

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

iQGUBAEBAgAGBQJM+3hcAAoJEADcfz7u4AZjtSwLwIo+ybCda+8Y3RzNuOSgRSfw
95K1a364C5XIfuIo/sYM1+/Z4nNtI3NY3vNW6PMXYvDWifwb3HNd6BLrOzhTdR34
fQFAv2UTHCDalcA2adSuqYfT80PJPgVVw+MY4cVEByAYeqBt0fNaOP1tmuF/RULh
r/Vdf6SwLx9yWfIz9xz2cMowmn9fldYk70SokzLl7wab/ACncdQB+bKDQXdQkppX
uAsSO49pUJxBlLyC6Y0vQSWpcK1r3hGg/wz3DwI0rOUhA9JBcq27HxYGs+MnB+mx
2gSjKAwcMSNszat8MQ9Tj4oOuEUNwjUL4g12rFOcj3qei/m84DGFVhER6GEEoaX5
ed76NvF+ChPGtKJqPOF0GrbNd1NVU1XtjVDj/4n6VwXbfVzQtjePeF7OJaK/CJtK
P76+pgQaMwzOJNsG8WXvdwmrxkNjsGkHTXH91fKrsp6s6rHYXA7sOsgAMLXIOljt
Dus8YhQbqxC0Jwuarq7ydZSJ8iMCyMQ=
=fyNT
-----END PGP SIGNATURE-----

lists.vcf

Tim Hawkins

unread,
Dec 5, 2010, 6:51:22 AM12/5/10
to mongod...@googlegroups.com
ext4 shows some issues with certain disk work patterns, the sqlite community spotted this early on.

http://phoronix-test-suite.com/pipermail/trondheim-pts_phoronix-test-suite.com/2009-March/000101.html

> --
> 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.
>
> <lists.vcf>

Markus Gattol

unread,
Dec 5, 2010, 7:56:18 AM12/5/10
to mongodb-user
As Andreas already indicated, it's file preallocation that's more
efficient, especially the fact that ext4 has posix_fallocate.
Have a look at http://www.markus-gattol.name/ws/mongodb.html#filesystem

Oded Maimon

unread,
Dec 5, 2010, 10:37:13 AM12/5/10
to mongodb-user
that also what i was thinking...

On Dec 5, 1:32 pm, Andreas Jung <li...@zopyx.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Oded Maimon wrote:
> > hi,
> > it seams that because mongodb uses memory mapped files anyway, using
> > ext4 will be better than ext3 for mongodb.
> > do you recommend using ext4 instead of ext3?
>
> Often discussed....
>
> http://www.slideshare.net/mongodb/deployment-strategy
>
> In particular I can not see how the usage of memory mapped files
> with ext3 is different from ext4. The major advantage of ext4 over ext3
> affects the pre-allocation of new database files.
>
> - -aj
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/
>
> iQGUBAEBAgAGBQJM+3hcAAoJEADcfz7u4AZjtSwLwIo+ybCda+8Y3RzNuOSgRSfw
> 95K1a364C5XIfuIo/sYM1+/Z4nNtI3NY3vNW6PMXYvDWifwb3HNd6BLrOzhTdR34
> fQFAv2UTHCDalcA2adSuqYfT80PJPgVVw+MY4cVEByAYeqBt0fNaOP1tmuF/RULh
> r/Vdf6SwLx9yWfIz9xz2cMowmn9fldYk70SokzLl7wab/ACncdQB+bKDQXdQkppX
> uAsSO49pUJxBlLyC6Y0vQSWpcK1r3hGg/wz3DwI0rOUhA9JBcq27HxYGs+MnB+mx
> 2gSjKAwcMSNszat8MQ9Tj4oOuEUNwjUL4g12rFOcj3qei/m84DGFVhER6GEEoaX5
> ed76NvF+ChPGtKJqPOF0GrbNd1NVU1XtjVDj/4n6VwXbfVzQtjePeF7OJaK/CJtK
> P76+pgQaMwzOJNsG8WXvdwmrxkNjsGkHTXH91fKrsp6s6rHYXA7sOsgAMLXIOljt
> Dus8YhQbqxC0Jwuarq7ydZSJ8iMCyMQ=
> =fyNT
> -----END PGP SIGNATURE-----
>
>  lists.vcf
> < 1KViewDownload
Reply all
Reply to author
Forward
0 new messages