<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Not running the LNT perf tests for binaries that haven’t changed: I don’t think there currently is a way to do that. If someone added that, I guess the most complex part will be implementing the different format(s) in which to communicate to LNT what the hash of the previous version of the tests are. There is already logic to do the build and run step separately – search for “config.build_threads” in lnt/tests/nt.py. There is also already logic to only run sub-parts of the test-suite. The logic that needs adding is filtering the tests to run based on comparing the hash values from the build step with wherever the predefined uninteresting hash values come from.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I don’t know of compiler or linker flags to not produce or remove those .comment and .note sections. It’s easy to strip them out before producing a hash, so I think stripping them is better than requiring LNT to inject the necessary command line options for all possible compilers and linkers in use.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Kristof<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Sean Silva [mailto:chisophugis@gmail.com] <br><b>Sent:</b> 08 July 2015 04:00<br><b>To:</b> Kristof Beyls<br><b>Cc:</b> Chris Matthews; Renato Golin; LLVM Developers Mailing List; llvm-commits; Smith, Kevin B; Philip Reames; Daniel Dunbar<br><b>Subject:</b> Re: Recording hash of binaries in test-suite and LNT.<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Is there a way to avoid running the perf test for binaries that haven't changed? I guess that it might be useful for a bit of redundancy, but for doing the analysis I was doing, which involved bisecting back through history to pinpoint at which revisions the hashes changed, it would be useful to avoid wasting time benchmarking programs known to be the same binary (if that matters, then there is a bug in how the perf is being measured, or it is an unrelated system problem which, while it might be interesting to dive into, may not be the focus).<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>It's interesting that you had to strip out the .comment and .note. I didn't have to do that on mac. Do you know if there is a linker flag or compiler flag on linux that we can use to avoid outputting them in the first place?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>-- Sean Silva<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Tue, Jul 7, 2015 at 11:37 AM, Kristof Beyls <<a href="mailto:kristof.beyls@arm.com" target="_blank">kristof.beyls@arm.com</a>> wrote:<o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>I've implemented a test-suite patch and an LNT patch to calculate a hash<br>function<br>for each binary in the test-suite & to store it in the LNT database.<br><br>The test-suite patch is surprisingly simple. The only thing I had to do<br>to get stable hashes is to strip out the .comment and all .note sections.<br>The attached spreadsheet shows the calculated hashes by the patch across<br>the test-suite for a range of LLVM svn revisions from last week, each<br>roughly a day apart from each other. It does show indeed that on about<br>half of the days the binaries didn't change. The hashes were collected<br>on a linux-x86_64 system.<br><br>The attached lnt patch is quite a bit bigger - adding a new type of<br>sample field (hash) and adapting the rest of LNT to make LNT's regression<br>tests pass. I didn't attempt to make use of the hash values in any of<br>LNT's analyses or reports in this patch. I've got a vague idea that maybe<br>the first easy & useful additions could be to color-code the background<br>in the run-chart with the hash-value of the binary. That way, you could<br>see which sample points were produced by identical binaries. The same<br>could be done for the spark lines on the daily report page.<br><br>Bottom line: at least on linux platforms, it seems that it's pretty<br>straightforward<br>to compute useful hashes from binaries pretty easily, see the attached<br>test-suite patch. I'm assuming that on Darwin platforms the exact same<br>patch - or maybe with some tweaks on which sections to strip - should<br>work too, but don't know enough about Darwin to know for sure.<br><br>The LNT changes are indeed more invasive. I've attached my current version<br>of the patch I've got for that.<br><br>What do you think of this approach?<br><br>Thanks,<br><br>Kristof<br><br>> -----Original Message-----<br>> From: <a href="mailto:llvmdev-bounces@cs.uiuc.edu">llvmdev-bounces@cs.uiuc.edu</a> [mailto:<a href="mailto:llvmdev-bounces@cs.uiuc.edu">llvmdev-bounces@cs.uiuc.edu</a>]<br>> On Behalf Of Chris Matthews<br>> Sent: 21 May 2015 19:25<br>> To: Renato Golin<br>> Cc: LLVM Developers Mailing List<br>> Subject: Re: [LLVMdev] Proposal: change LNT's regression detection<br>> algorithm and how it is used to reduce false positives<br>><br>> I agree this is a great idea. I think it needs to be fleshed out a<br>> little though.<br>><br>> It would still be wise to run the regression detection algorithm,<br>> because the test suite changes and the machines change, and the<br>> algorithm is not perfect yet. It would be a valuable source of<br>> information though.<br>><br>> This is not a small change to how LNT works, so I think some due<br>> diligence is necessary. Is clang *really* that deterministic,<br>> especially over successive revs? I know it is supposed to be. Does<br>> anyone have any data to show this is going to be an effective approach?<br>> It seems like there are benchmarks in the test-suite which use __DATE__<br>> and __TIME__ in them. I assume that will be a problem?<br>><br>> > On May 21, 2015, at 1:43 AM, Renato Golin <<a href="mailto:renato.golin@linaro.org">renato.golin@linaro.org</a>><br>> wrote:<br>> ><br>> > On 20 May 2015 at 23:31, Sean Silva <<a href="mailto:chisophugis@gmail.com">chisophugis@gmail.com</a>> wrote:<br>> >> In the last 10,000 revisions of LLVM+Clang, only 10 revisions<br>> >> actually caused the binary of MultiSource/Benchmarks/BitBench/five11<br>> >> to change. So if just store a hash of the binary in the database, we<br>> >> should be able to pool all samples we have collected while the binary<br>> >> is the the same as it currently is, which will let us use<br>> >> significantly more datapoints for the reference.<br>> ><br>> > +1<br>> ><br>> ><br>> >> Also, we can trivially eliminate running the regression detection<br>> >> algorithm if the binary hasn't changed.<br>> ><br>> > +2!<br>> ><br>> > --renato<br>> > _______________________________________________<br>> > LLVM Developers mailing list<br>> > <a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>> > <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>><br>><br>> _______________________________________________<br>> LLVM Developers mailing list<br>> <a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></div></div></body></html>