<div dir="ltr">Hi all,<div><br></div><div>First off, let me ask one question about the use case you intend to support:</div><div><br></div><div>Is your expectation for LLVM statistics style data that this would be present for almost all runs in a database, or that it would only be present for a small subset of runs?</div><div><br></div><div><br></div><div>Second, here is my general perspective on the LNT system architecture:</div><div><br></div><div>1. It is very important to me that LNT continue to support an "turn-key" experience. In fact, I *wish* that experience would get easier, not harder, for example by moving all interactions with the server to a true admin interface. I would prefer not to introduce additional dependencies in that case.</div><div><br></div><div>I will add that I am not completely opposed to moving to a "turn-key" architecture which requires substantially more components (e.g., PostgreSQL, memcached, etc.) as long as it was packaged in such a way that it could offer a nice turn key experience. For example, if someone was willing to implement & document a Vagrant or Docker based development model, that would be ok with me, as long as there was still the option to do fully native deployments on OS X with real system administrator support.</div><div><br></div><div>2. Our internal application architecture is severely lacking. I believe the standard architecture these days would be to have (load-balancer + front-end + [load-balancer] + back-end + database), and I think partly we are suffering from missing most of that infrastructure. In particular, we are missing two important components:</div><div>- There should be a separate backend, which would allow us to implement improved caching, and a clear model for long-lived or persistent state. I filed this as: <a href="https://llvm.org/bugs/show_bug.cgi?id=27534">https://llvm.org/bugs/show_bug.cgi?id=27534</a></div><div>- This would give us a place to manage background processing tasks, for example jobs that reprocess the raw sample data for efficient queries.</div><div>If we had such a thing, we could consider using something like memcached for improving caching (particularly in a larger deployment).</div><div><br></div><div>3. My intention was always to use JSON blobs for situations where a small % of samples want to include arbitrary blobs of extra data. I think standardizing on PostgreSQL/JSON is the right approach here, given the standard PaaS support for PostgreSQL and its existing use within our deployments. SQLAlchemy has native support for this.</div><div><br></div><div>4. I don't actually think that a NoSQL database buys us much if anything (particularly when we have PostgreSQL/JSON available). We are not in a situation where we would need something like eventual consistency around writes, which leaves us wanting raw query performance over large sets of relatively well-structured data. I believe that is a situation which is best served by SQL with properly designed tables. This is also an area where having an infrastructure that could handle background processing to load query-optimized tables & indices would be valuable.</div><div><br></div><div>I think it is a mistake to believe that using NoSQL and a schema-less model without also introducing substantial caching will somehow give better performance than a real SQL database, and would be very interested to see performance data showing otherwise (e.g., compare your MongoDB implementation to one in which all data was in a full-schematized table with proper indices).</div><div><br></div><div>5. The database schema used by LNT (which is dynamically instantiated in response to test suite configurations) is admittedly unorthodox. However, I still believe this is the right answer to support a turn-key performance tracking solution that can be customized by the user based on the fields they wish to track (in fact, if Elena's data is present for almost all samples then it is exactly the designed use case). I'm not yet convinced that the right answer here isn't to improve the actual implementation of this approach; for example, we could require the definition to be created when the LNT instance is set up, which might solve some of the issues Chris mentioned. Or, we could expose improved tools or a UI for interacting with the schema via an admin interface, for example to promote individual from a JSON blob to being first class for improved performance/reporting.</div><div><br></div><div>6. To echo one of James's points, I also do think that ultimately the most complicated part of adding support for arbitrary metrics is not the database implementation, but managing the complexity in the reporting and graphing logic (which is already cumbersome). I am fine seeing a layered implementation approach where we first focus on how just to get the data in, but I do think it is worth spending some time looking at how to manage the visualizations of that data.</div><div><br></div><div> - Daniel</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 26, 2016 at 11:17 PM, Elena Lepilkina via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Of course it'll be running as now. But user will need have installed MongoDB.<br>
<br>
Installation on linux with support of .deb packages is quite easy.<br>
sudo apt-key adv --keyserver hkp://<a href="http://keyserver.ubuntu.com:80" rel="noreferrer" target="_blank">keyserver.ubuntu.com:80</a> --recv EA312927<br>
echo "deb <a href="http://repo.mongodb.org/apt/debian" rel="noreferrer" target="_blank">http://repo.mongodb.org/apt/debian</a> wheezy/mongodb-org/3.2 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list<br>
sudo apt-get update<br>
sudo apt-get install -y mongodb-org<br>
sudo service mongod start<br>
<br>
After that mongo will be running service in localhost:27017. After that user should create database<br>
mongo<br>
use <db name><br>
<br>
And set database name in config file. As additional fields will be host and port for users who will do settings for their server, which will have default values(localhost:27017).<br>
<br>
After that old steps<br>
~/mysandbox/bin/python ~/lnt/setup.py develop<br>
lnt create ~/myperfdb<br>
lnt runserver ~/myperfdb<br>
<br>
MongoDB has detailed instructions for installing for all operating systems.<br>
<br>
Extra 6-7 commands for install MongoDB, which takes about 2 minutes and should be executed once shouldn't be a great problem for new users, who would like to try LNT.<br>
<br>
Thanks,<br>
<br>
Elena.<br>
<span class="im HOEnZb"><br>
-----Original Message-----<br>
From: Kristof Beyls [mailto:<a href="mailto:Kristof.Beyls@arm.com">Kristof.Beyls@arm.com</a>]<br>
Sent: Tuesday, April 26, 2016 5:15 PM<br>
To: James Molloy <<a href="mailto:james@jamesmolloy.co.uk">james@jamesmolloy.co.uk</a>><br>
</span><span class="im HOEnZb">Cc: Elena Lepilkina <<a href="mailto:Elena.Lepilkina@synopsys.com">Elena.Lepilkina@synopsys.com</a>>; Chris Matthews <<a href="mailto:chris.matthews@apple.com">chris.matthews@apple.com</a>>; llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>>; nd <<a href="mailto:nd@arm.com">nd@arm.com</a>><br>
Subject: Re: [llvm-dev] RFC: LNT/Test-suite support for custom metrics and test parameterization<br>
<br>
</span><div class="HOEnZb"><div class="h5">I think it's important that it remains simple to get a simple local instance up and running.<br>
That will make it easier for people to give LNT a try, and also makes it easier for LNT developers to have everything they need for developing locally.<br>
I have no experience with NoSQL database engines. Would it be possible, assuming you have the MongoDB/other packages installed for your system, to just run<br>
<br>
$ ~/mysandbox/bin/python ~/lnt/setup.py develop $ lnt create ~/myperfdb $ lnt runserver ~/myperfdb<br>
<br>
and be up and running (which is roughly what is required at the moment)?<br>
Of course good documentation could go a long way if a few extra steps would be needed.<br>
<br>
I do agree with James that if there are no major concerns for using a NoSQL database, it would be easiest if we only supported one database engine.<br>
For example, I had to do quite a bit of LNT regression test mangling to make them work on both sqlite and postgres, and it remains harder than it should be to write regression tests that test the database interface.<br>
<br>
Thanks,<br>
<br>
Kristof<br>
<br>
<br>
> On 26 Apr 2016, at 11:37, James Molloy via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
><br>
> Hi Elena,<br>
><br>
> Thanks for pushing forward with this. I like the idea of using a NoSQL solution.<br>
><br>
> My primary reservation is about adding the new NoSQL stuff as an extra backend. I think the current database backend and its use of SQLAlchemy is extremely complex and is in fact the most complex part of LNT. Adding something more (as opposed to *replacing* it) would just make this worse and make it more likely that contributors wouldn't be able to test LNT very well (having three engines to test: SQLite, PostgreSQL and MongoDB).<br>
><br>
> I think it'd be far better all around, if we decide to go with the NoSQL solution, to just bite the bullet and force users who want to run a server to install MongoDB.<br>
><br>
> In my experience most of the teams I've seen using LNT have a single LNT server instance and submit results to that, rather than launching small instances to run "lnt viewcomparison".<br>
><br>
> Cheers,<br>
><br>
> James<br>
><br>
> On Tue, 26 Apr 2016 at 09:15 Elena Lepilkina via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
> Hi everyone.<br>
><br>
><br>
><br>
> Thanks to everyone who took participant in discussion of this proposal.<br>
><br>
> After discussion we understood how other users use LNT and how great datasets may be.<br>
><br>
><br>
><br>
> So there is new updated proposal.<br>
><br>
> (Google docs version with some images -<br>
> <a href="https://docs.google.com/document/d/11qHNWRIQ2gc2aWH3gNBeeCUB3-JPe7AoMt" rel="noreferrer" target="_blank">https://docs.google.com/document/d/11qHNWRIQ2gc2aWH3gNBeeCUB3-JPe7AoMt</a><br>
> n7n9JoCeY/edit?usp=sharing)<br>
><br>
><br>
><br>
> Goal is the same.<br>
><br>
> Enable LNT support of custom metrics such as: user-defined run-time and static metrics (power, etc.) and LLVM pass statistic counters. Provide integration with LLVM testsuite to automatically collect LLVM statistic counters or custom metrics.<br>
><br>
><br>
><br>
> Analysis of current Database<br>
><br>
><br>
><br>
> Limitations<br>
><br>
> 1. This structure isn’t flexible.<br>
><br>
> There is no opportunity to run another test-suite except simple one.<br>
><br>
> 2. Performance is quite bad when database has a lot of records.<br>
><br>
> For example, rendering graph is too slow. On green-dragon-07-x86_64-O3-flto:42 SingleSource/Benchmarks/Shootout/objinst compile_time need for rendering 191.8 seconds.<br>
><br>
> 3. It’s difficult to add new features which need queries to sample table in database(if we use BLOB field for custom metrics).<br>
><br>
> Queries will be needed for more complex analysis. For example, if we would like to add some additional check for tests which compile time is too long, we should get result of query where this metric is greater than some constant.<br>
><br>
> Or we would like to compare tests with different run options, so we should get only some tests but not all.<br>
><br>
> BLOB field will help to save current structure and make system a bit more flexible. But in the nearest future it will be not enough.<br>
><br>
> Getting all metrics of all tests will make work slow on great datasets. And this way isn’t enough optimal.<br>
><br>
> So we wouldn’t like to do BLOB field, which wouldn’t help to add new features and have flexible system in future.<br>
><br>
><br>
><br>
> Proposal<br>
><br>
><br>
><br>
> We suggest to do third part of LNT (as Chris Matthews suggested). This part will be used for getting custom metrics and running any test-suite.<br>
><br>
> We suggest to use NoSQL database (for example, MongoDB or JSON/JSONB extension of PostgresSQL, which let use PostgresSQL as NoSQL database) for this part. This part will be enable if there is path to NoSQL database in config file.<br>
><br>
> It helps to have one Sample table(collection in NoSQL). If we use schemaless feature in MongoDB, for example, then it’s possible to add new fields when new testsuite is running. Then there would be one table with a lot of fields, some of which are empty. At any moment of time it will be possible to change schema of table(document).<br>
><br>
> A small prototype was made with MongoDB and ORM MongoEngine. This ORM was choosen because MongoAlchemy doesn’t support schemaless features and last MongoKit version has error with last pymongo release.<br>
><br>
> I try it on virtual machine and get next results on 5 000 000 records.<br>
><br>
> Current scheme - 13.72 seconds<br>
><br>
> MongoDB – 1.35 seconds.<br>
><br>
> Results of course will be better on real server machine .<br>
><br>
><br>
><br>
> For use some test-suite user should describe fields in file with format .fields such way:<br>
><br>
> {<br>
><br>
> "Fields" : [{<br>
><br>
> "TestSuiteName" : "Bytecode",<br>
><br>
> "Type" : "integer",<br>
><br>
> "BiggerIsBetter" : 0,<br>
><br>
> "Show" : true<br>
><br>
> },<br>
><br>
> {<br>
><br>
> "TestSuiteName" : "GCC",<br>
><br>
> "Type" : "real",<br>
><br>
> "BiggerIsBetter" : 0,<br>
><br>
> "Name" : "GCC time"<br>
><br>
> },<br>
><br>
> {<br>
><br>
> "TestSuiteName" : "JIT",<br>
><br>
> "Type" : "real",<br>
><br>
> "BiggerIsBetter" : 0,<br>
><br>
> "Name" : "JIT Compile time",<br>
><br>
> "Show" : true<br>
><br>
> },<br>
><br>
> {<br>
><br>
> "TestSuiteName" : "GCC/LLC",<br>
><br>
> "Type" : "string",<br>
><br>
> "BiggerIsBetter" : 0<br>
><br>
> }]<br>
><br>
> }<br>
><br>
><br>
><br>
> There was added one field “Show” for describing if this metric should be shown by default on web page (as James Molloy suggested). Other metrics would be added to page if user chooses them in view options.<br>
><br>
><br>
><br>
> Conclusion<br>
><br>
><br>
><br>
> This change will let user to choose if he wants to use flexible powerful system or use limited version with SQLite database.<br>
><br>
> If user chooses NoSQL version his data can be copied from its old database to new one. This will help to use new features without losing old data.<br>
><br>
><br>
><br>
> The actual question is which NoSQL database will be better for LNT. We are interested in opinions of people, who know features of LNT better.<br>
><br>
><br>
><br>
> Thanks,<br>
><br>
><br>
><br>
> Elena.<br>
><br>
><br>
><br>
> From: llvm-dev [mailto:<a href="mailto:llvm-dev-bounces@lists.llvm.org">llvm-dev-bounces@lists.llvm.org</a>] On Behalf Of<br>
> Elena Lepilkina via llvm-dev<br>
> Sent: Tuesday, April 26, 2016 9:07 AM<br>
> To: <a href="mailto:chris.matthews@apple.com">chris.matthews@apple.com</a><br>
><br>
><br>
> Cc: llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>><br>
> Subject: Re: [llvm-dev] RFC: LNT/Test-suite support for custom metrics<br>
> and test parameterization<br>
><br>
><br>
><br>
> Hi, Chris.<br>
><br>
><br>
><br>
> Thank you for your answer about compile tests. As I understood during looking through code of compile tests they don’t use test suite at all. Am I right? There is lack of information and examples of running compile tests in LNT documentation.<br>
><br>
> We understood that there are two groups of users: users using servers and collecting a lot of data and SQLite users, but these users as I think wouldn’t have about millions of sample records.<br>
><br>
> I think that it’s obvious that there is no universal solution for simple installing process and flexible high-loaded system.<br>
><br>
> I will update proposal and take into consideration your suggestion about third part of test-suite.<br>
><br>
><br>
><br>
> Thanks<br>
><br>
><br>
><br>
> Elena.<br>
><br>
><br>
><br>
> From: <a href="mailto:chris.matthews@apple.com">chris.matthews@apple.com</a> [mailto:<a href="mailto:chris.matthews@apple.com">chris.matthews@apple.com</a>]<br>
> Sent: Monday, April 25, 2016 8:06 PM<br>
> To: Elena Lepilkina <<a href="mailto:Elena.Lepilkina@synopsys.com">Elena.Lepilkina@synopsys.com</a>><br>
> Cc: llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>><br>
> Subject: Re: [llvm-dev] RFC: LNT/Test-suite support for custom metrics<br>
> and test parameterization<br>
><br>
><br>
><br>
> I am really torn about this.<br>
><br>
><br>
><br>
> When I implemented the regression tracking stuff recently, it really showed me how badly we are scaling. On our production server, the run ingestion can take well over 100s. Time is mostly spent in FieldChange generation and regression grouping. Both have to access a lot of recent samples. This is not the end of the world, because it runs in a background process. Where this really sucks is when a regression has a lot indicators. The web interface renders these in a graph, and just trying to pull down 100 graphs worth of data kills the server. I ended up limiting those to a max of 10 datasets, and even that takes 30s to load.<br>
><br>
><br>
><br>
> So I do think we need some improvements to the scalability.<br>
><br>
><br>
><br>
> LNT usage is spread between two groups. Users who setup big servers, with Postgres and apache/Gunicorn. For those uses I think a NoSQL is the way to go. However, our second (and probably more common) user, is the people running little instance on their own machine to do some local compiler benchmarking. Their setup process needs to be dead simple, and I think requiring a NoSQL database to be setup on their machine first is a no starter. Like we do with sqlite, I think we need a transparent fall back for people who don’t have a NoSQL database.<br>
><br>
><br>
><br>
> Would it be helpful to anyone if I got a dump of the <a href="http://llvm.org" rel="noreferrer" target="_blank">llvm.org</a> LNT Postgres database? It is a good dataset big dataset to test with, and I assume everyone is okay with it being public, since the LNT server already is.<br>
><br>
><br>
><br>
><br>
><br>
> On Apr 25, 2016, at 4:33 AM, Elena Lepilkina via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> From: Elena Lepilkina<br>
> Sent: Monday, April 25, 2016 2:33 PM<br>
> To: 'James Molloy' <<a href="mailto:james@jamesmolloy.co.uk">james@jamesmolloy.co.uk</a>>; Kristof Beyls<br>
> <<a href="mailto:Kristof.Beyls@arm.com">Kristof.Beyls@arm.com</a>>; Mehdi Amini <<a href="mailto:mehdi.amini@apple.com">mehdi.amini@apple.com</a>><br>
> Cc: nd <<a href="mailto:nd@arm.com">nd@arm.com</a>>; Matthias Braun <<a href="mailto:matze@braunis.de">matze@braunis.de</a>><br>
> Subject: RE: [llvm-dev] RFC: LNT/Test-suite support for custom metrics<br>
> and test parameterization<br>
><br>
><br>
><br>
> Hi everyone,<br>
><br>
><br>
><br>
> Thank you for your answer. BLOB format adds some more actions for working with metrics. We know that ComparisonResult class makes analysis work. But it gets all metrics by request from database, we will need additional time for work with fields during analysis in ComparisonResult class. May be it will be better to do one Sample table for each testsuite, as it was suggested before. It should be more quickly, shouldn’t it? Moreover, next wished LNT changes will need getting some metrics separately and BLOB format will add some delay in time for queries.<br>
><br>
><br>
><br>
> As we see now problem of performance is actual, because time for rendering graph page is about 3 minutes.<br>
><br>
> <image001.png><br>
><br>
> So maybe it will be better to start working with NoSql databases? I made a small prototype with TestSuite, TestSuiteFields, Test, Run and Sample tables for getting time metrics. It works quickly. And using NoSQL helps solve problems with different fields for samples metrics fields. Then it will be possible to store different metrics for different testsuites in one table.<br>
><br>
> What do you think about this proposal?<br>
><br>
> I used MongoDB, but I know that there is NoSQL extension for<br>
> PostgresSQL with JSONB fields which are more<br>
><br>
> effective than JSON-encoded BLOB, because it can be included in queries very simply and let use indexes.<br>
><br>
><br>
><br>
> About proposal that not all metrics should be shown. It can be added as a field in JSON in .fields file, which describes fields getted from test-suite. To see other metrics user should choose them with checkboxes in view options. Will be this solution suitable?<br>
><br>
> We can make as you wrote<br>
><br>
> “I'd also suggest that if we're adding many more metrics to a test, we should create a "test sample information" page that the test link goes to instead of just the graph. This page could contain all counter/metric data, historic sparklines, the full graph and profiling links.<br>
><br>
> ”<br>
><br>
> But the render time of this page will be too great because of graph render time. In my opinion, some users wouldn’t like to wait so long for see some additional metrics.<br>
><br>
><br>
><br>
> Thanks for your suggestions,<br>
><br>
><br>
><br>
> Elena.<br>
><br>
> From: llvm-dev [mailto:<a href="mailto:llvm-dev-bounces@lists.llvm.org">llvm-dev-bounces@lists.llvm.org</a>] On Behalf Of<br>
> James Molloy via llvm-dev<br>
> Sent: Monday, April 25, 2016 12:43 PM<br>
> To: Kristof Beyls <<a href="mailto:Kristof.Beyls@arm.com">Kristof.Beyls@arm.com</a>>; Mehdi Amini<br>
> <<a href="mailto:mehdi.amini@apple.com">mehdi.amini@apple.com</a>><br>
> Cc: llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>>; nd <<a href="mailto:nd@arm.com">nd@arm.com</a>>; Matthias<br>
> Braun <<a href="mailto:matze@braunis.de">matze@braunis.de</a>><br>
> Subject: Re: [llvm-dev] RFC: LNT/Test-suite support for custom metrics<br>
> and test parameterization<br>
><br>
><br>
><br>
> Hi Sergey, Elena,<br>
><br>
><br>
><br>
> Firstly, thanks for this RFC. It's great to see more people actively using and modifying LNT and the test metrics support in general is rather weak currently.<br>
><br>
><br>
><br>
> Metrics<br>
><br>
> -------<br>
><br>
><br>
><br>
> I agree with Daniel and Kristof that your proposed schema changes have the potential to make many queries extremely slow. Certainly for the metrics enhancements, I don't see a reason why we need such a radical change in schema.<br>
><br>
><br>
><br>
> To add custom metrics on the fly, we need to change the schema for the Sample table. Currently this consists of a column for each metric, but actually we never ever query those metric values. We never query for example for "all failing tests in a run" - when we do analyses we use the ComparisonResult class which reads *all* samples from the database for a run and performs the analysis entirely in Python.<br>
><br>
><br>
><br>
> Therefore, having a semi-structured format where some fields are first-class columns and the rest are in a JSON-encoded BLOB (as Daniel suggests) seems totally acceptable. There is certainly an argument now that we're using the wrong backend storage solution and that a key-value store might be more suitable, but that's a very invasive change and I don't think we've reached the point where we need to force a move from the simplicity of SQLite.<br>
><br>
><br>
><br>
> Adding an extra BLOB column would be easy - there would just need to be logic in testsuitedb.py for reading and writing it - the Sample model class would expose the JSON-encoded fields as normal python fields so the rest of LNT would be isolated from this change.<br>
><br>
><br>
><br>
> But I think this is a small detail compared to the bigger problem of how to effectively *display* all this new data. Currently every new metric gets its own separate table in the report/run views, and this does not scale well at all.<br>
><br>
><br>
><br>
> I think we need some more concepts in the metric system to make it scaleable:<br>
><br>
><br>
><br>
> * What "attribute" of the test is this metric measuring? For example, both "exec_time" and "score" measure the same attribute; performance of the generated code. It's superfluous to have them displayed in separate tables. However mem_size and compile_time both measure completely different aspects of the test.<br>
><br>
> * Is this metric useful to display at the top level? or should it only be exposed when more data about a test result is requested?<br>
><br>
> * An example of this is the pass statistics. I don't want my daily report view cluttered by the time spent in register allocation for every test! OK, this is useful information when debugging a problem, but it should be available when requested rather than by default.<br>
><br>
><br>
><br>
> An example of why we need the above is your screenshots in your google doc. I'm looking at the last screenshot, and it's incredibly difficult to read and get useful information out of.<br>
><br>
><br>
><br>
> I'd also suggest that if we're adding many more metrics to a test, we should create a "test sample information" page that the test link goes to instead of just the graph. This page could contain all counter/metric data, historic sparklines, the full graph and profiling links.<br>
><br>
><br>
><br>
> Cheers,<br>
><br>
><br>
><br>
> James<br>
><br>
><br>
><br>
> On Fri, 22 Apr 2016 at 10:17 Kristof Beyls via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
><br>
><br>
><br>
> On 22 Apr 2016, at 11:14, Mehdi Amini <<a href="mailto:mehdi.amini@apple.com">mehdi.amini@apple.com</a>> wrote:<br>
><br>
><br>
><br>
><br>
> On Apr 22, 2016, at 12:45 AM, Kristof Beyls via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
><br>
><br>
><br>
><br>
> On 21 Apr 2016, at 17:44, Sergey Yakoushkin <<a href="mailto:sergey.yakoushkin@gmail.com">sergey.yakoushkin@gmail.com</a>> wrote:<br>
><br>
><br>
><br>
> Hi Kristof,<br>
><br>
><br>
><br>
> The way we use LNT, we would run different configuration (e.g. -O3 vs -Os) as different "machines" in LNT's model.<br>
><br>
><br>
><br>
> O2/O3 is indeed bad example. We're also using different machines for Os/O3 - such parameters apply to all tests and we don't propose major changes.<br>
><br>
> Elena was only extending LNT interface a bit to ease LLVM-testsuite execution with different compiler or HW flags.<br>
><br>
><br>
><br>
> Oh I see, this boils down to extending the lnt runtest interface to be<br>
> able to specify a set of configurations, rather than a single<br>
> configuration and making<br>
><br>
> sure configurations get submitted under different machine names? We<br>
> kick off the different configuration runs through a script invoking<br>
> lnt runtest multiple<br>
><br>
> times. I don't see a big problem with extending the lnt runtest<br>
> interface to do this, assuming it doesn't break the underlying<br>
> concepts assumed throughout<br>
><br>
> LNT. Maybe the only downside is that this will add even more command<br>
> line options to lnt runtest, which already has a lot (too many?)<br>
> command line<br>
><br>
> options.<br>
><br>
><br>
><br>
> Maybe some changes are required to analyze and compare metrics between "machines": e.g. code size/performance between Os/O2/O3.<br>
><br>
> Do you perform such comparisons?<br>
><br>
><br>
><br>
> We typically do these kinds of comparisons when we test our patches pre-commit, i.e. comparing for example '-O3' with '-O3 'mllvm -enable-my-new-pass'.<br>
><br>
> To stick with the LNT concepts, tests enabling new passes are stored as a different "machine".<br>
><br>
> The only way I know to be able to do a comparison between runs on 2<br>
> different "machine"s is to manually edit the URL for run vs run<br>
> comparison<br>
><br>
> and fill in the runids of the 2 runs you want to compare.<br>
><br>
> For example, the following URL is a comparison of green-dragon-07-x86_64-O3-flto vs green-dragon-06-x86_64-O0-g on the public <a href="http://llvm.org/perf" rel="noreferrer" target="_blank">llvm.org/perf</a> server:<br>
><br>
> <a href="http://llvm.org/perf/db_default/v4/nts/70644?compare_to=70634" rel="noreferrer" target="_blank">http://llvm.org/perf/db_default/v4/nts/70644?compare_to=70634</a><br>
><br>
> I had to manually look up and fill in the run ids 70644 and 70634.<br>
><br>
> It would be great if there was a better way to be able to do these kind of comparisons - i.e. not having to manually fill in run ids, but having a webui to easily find and pick the runs you want to compare.<br>
><br>
> (As an aside: I find it intriguing that the URL above suggests that there are quite a few cases where "-O0 -g" produces faster code than "-O3 -flto").<br>
><br>
><br>
><br>
> Can you be more explicit which ones? I don't see any regression (other than compared to the baseline, or on the compile time).<br>
><br>
><br>
><br>
> --<br>
><br>
> Mehdi<br>
><br>
><br>
><br>
> D'Oh! I was misinterpreting the compile time differences as execution time differences. Indeed, there is no unexpected result in there.<br>
><br>
> Sorry for the noise!<br>
><br>
><br>
><br>
> Kristof<br>
><br>
><br>
><br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
><br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</div></div></blockquote></div><br></div>