<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 20, 2017 at 1:22 AM, Renato Golin <span dir="ltr"><<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 17 February 2017 at 17:57, Rong Xu via llvm-commits<br>
<span class=""><<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br>
> Is this system very slow in file write?<br>
<br>
</span>No, it's using a SATAII SSD disk.<br>
<span class=""><br>
<br>
> I think the test tries to dump the<br>
> profile while the child process still write the file.<br>
> I have a sleep(1) b/w the end of main process and profile dump. It seems<br>
> this is no enough.<br>
<br>
</span>This doesn't make sense.<br>
<br>
If the process has ended it should have flushed the I/O. If the OS has<br>
buffered it, it won't try to access the file until it's completely<br>
written. If you can physically remove the disk (USB), then you need a<br>
sync, not a sleep. </blockquote><div><br></div><div><br></div><div>what process you are talking about? The main process finishes and write the profile without any issue.</div><div>It's the child process truncates the profiles during the profile merge. </div><div>llvm's profile is a monolithic big file and there is pretty large change of happening.</div><div><br></div><div>I do think the fix the patch works fine. I can not use wait as the child process become an orphan process after </div><div>the parent process exits. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
<br>
> Is it possible to get a temporal access to this machine?<br>
> If not, I can reduce the profile size or have a longer wait period before<br>
> profile dump.<br>
<br>
</span>Neither of these solutions seem remotely helpful, as this could break<br>
in other machines, OSs or just less often.<br>
<br>
You need to find the source of the leek and plug it.<br>
<br>
cheers,<br>
--renato<br>
</blockquote></div><br></div></div>