[erlang-questions] Obsolete exported functions file:raw_{read, write}_file_info/2 - why?
Joseph Norton
norton@REDACTED
Thu Sep 15 11:25:00 CEST 2011
Hi.
I'm working on a patch for the file.erl module itself. In the meantime, see the attached module as a working example. We have been using this approach for benchmarking purposes since early summer. The performance difference is dramatically better than the default file implementation.
thanks,
Joseph Norton
norton@REDACTED
-------------- next part --------------
A non-text attachment was scrubbed...
Name: basho_bench_erlang_file_alternative.erl
Type: application/octet-stream
Size: 3415 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110915/de0e1b02/attachment.obj>
-------------- next part --------------
On Sep 15, 2011, at 1:57 AM, erlang wrote:
>> I recommend reading the file.erl source. It's quite instructive to see
>> how many file I/O functions are redirected to the 'file_server_2'
>> process. For file I/O-intensive applications (e.g. Hibari and Riak I
>> know, CouchDB and RabbitMQ I'd guess), having all calls to(*)
>> file:read_file_info/1 serialized by the file server process is a source
>> of latency that we (DB authors) may desire to live without.
>
> How did you proceed to avoid these calls and reduce latency Scott?
> Any hints?
More information about the erlang-questions
mailing list