[erlang-questions] locking caveats in file module

Max Lapshin max.lapshin@REDACTED
Wed May 18 08:37:50 CEST 2016


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160518/de705fea/attachment.htm>


More information about the erlang-questions mailing list