<div dir="ltr">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:<div><br></div><div>
<p class=""><span class="">[{gen,do_call,4,[{file,"gen.erl"},{line,168}]},</span></p>
<p class=""><span class=""> {gen_server,call,3,[{file,"gen_server.erl"},{line,208}]},</span></p>
<p class=""><span class=""> {file,call,2,[{file,"file.erl"},{line,1487}]},</span></p>
<p class=""><span class=""> {filelib,do_is_dir,2,[{file,"filelib.erl"},{line,130}]},</span></p>
<p class=""><span class=""> {filelib,ensure_dir,1,[{file,"filelib.erl"},{line,231}]},</span></p>
<p class=""><span class=""> {dvr_hour_storage,append1,2,...</span></p><p class=""><span class=""><br></span></p><p class=""><span class=""><br></span></p><p class=""><span class="">Just a friendly reminder that most of file access functions are called via singleton process.</span></p></div></div>