[erlang-questions] locking caveats in file module

Dmitry Kolesnikov dmkolesnikov@REDACTED
Wed May 18 08:47:31 CEST 2016


Hello,

Have you tried a raw file access?

- Dmitry

> On May 18, 2016, at 9:37 AM, Max Lapshin <max.lapshin@REDACTED> wrote:
> 
> We have been hunting a performance bug on customer installation during some time and have found that group of processes (about 300) each hour (when new archive file is opened) got locked with following stacktrace:
> 
> [{gen,do_call,4,[{file,"gen.erl"},{line,168}]},
> 
>  {gen_server,call,3,[{file,"gen_server.erl"},{line,208}]},
> 
>  {file,call,2,[{file,"file.erl"},{line,1487}]},
> 
>  {filelib,do_is_dir,2,[{file,"filelib.erl"},{line,130}]},
> 
>  {filelib,ensure_dir,1,[{file,"filelib.erl"},{line,231}]},
> 
>  {dvr_hour_storage,append1,2,...
> 
> 
> 
> 
> 
> Just a friendly reminder that most of file access functions are called via singleton process.
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list