[erlang-questions] couchdb performace 10x: using NIF for file io

Joel Reymont joelr1@REDACTED
Mon Oct 25 16:55:08 CEST 2010


On Oct 25, 2010, at 3:25 PM, Paul Davis wrote:

> In your benchmark you'd basically be
> sacrificing an Erlang scheduler thread to speed up the synchronous
> writes while the other schedulers are freely available to handle
> read/write requests.

I sacrifice the schedule to make -both- read and write requests since I replaced all calls to the Erlang file module with calls to my NIFs. Well, except for trivial bits like rename and delete.

I think it should be fine to sacrifice a scheduler for small periods of time on a multicore machine.

I'll ask Mikeal for multi-database tests. 

---
http://twitter.com/wagerlabs



More information about the erlang-questions mailing list