Fwd: couchdb performace 10x: using NIF for file io

NevB neville.burnell at gmail.com
Sun Oct 24 17:05:30 EDT 2010


I came across this thread in the Erlang group and thought the Riak
team might find it interesting.

Please forgive me if its not relevant to Riak

Kind Regards


---------- Forwarded message ----------
From: Joel Reymont <joe... at gmail.com>
Date: Oct 25, 12:56 am
Subject: couchdb performace 10x: using NIF for file io
To: Erlang Programming

Simply switching to NIFs for file IO seems to have improved CouchDB
write performance more than ten-fold.

Compare the old graph


to the new graph


I was under the impression that the Erlang IO subsystem was highly
optimized but there seems to be no limit to perfection.

NIFs are a giant black hole that will subsume Erlang code as
performance has to be improved. Start at the lowest level and keep
moving up. All that will be left of Erlang in the end is 99.99999%
uptime, fault tolerance and supervision... of optimized C code. It's
swell and I'm all for it!

Patch is here:



erlang-questions (at) erlang.org mailing list.
To unsubscribe; mailto:erlang-questions-unsubscr... at erlang.org

More information about the riak-users mailing list