Skip to content

Performance work

Ian Jackson xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest41 patches 6 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/41Add cperl-indent-level to .dir-locals.el.dir-locals.el+2 -10 replies
2/41SQL: Use "LIKE" rather than "like", etc.cr-ensure-disk-space cs-adjust-flight mg-force-push +4 more+13 -130 replies
3/41SQL: Fix incorrect LIKE pattern syntax (literals)mg-force-push mg-report-host-usage-collect sg-report-flight +2 more+7 -70 replies
4/41SQL: Fix incorrect LIKE pattern syntax (program variables)Osstest.pm Osstest/JobDB/Executive.pm sg-report-host-history+10 -30 replies
5/41sg-report-flight: Add a comment re same-flight search narrowingsg-report-flight+18 -00 replies
6/41sg-report-flight: Sort failures by job name as last resortsg-report-flight+1 -00 replies
7/41schema: Provide indices for sg-report-flightschema/runvars-built-index.sql schema/runvars-revision-index.sql schema/steps-job-index.sql+21 -02 replies
8/41sg-report-flight: Ask the db for flights of interestschema/runvars-built-index.sql sg-report-flight+62 -42 replies
9/41sg-report-flight: Use WITH to use best index use for $flightsqsg-report-flight+24 -150 replies
10/41sg-report-flight: Use WITH clause to use index for $anypassqschema/steps-job-index.sql sg-report-flight+13 -30 replies
11/41sg-report-flight: Use the job row from the intitial querysg-report-flight+3 -80 replies
12/41Executive: Use index for report__find_testOsstest/Executive.pm schema/runvars-revision-index.sql+9 -130 replies
13/41duration_estimator: Ignore truncated jobs unless we know the stepOsstest/Executive.pm+6 -20 replies
14/41duration_estimator: Introduce some _qtxt variablesOsstest/Executive.pm+4 -20 replies
15/41duration_estimator: Explicitly provide null in general host qOsstest/Executive.pm+2 -00 replies
16/41duration_estimator: Return job column in first queryOsstest/Executive.pm+3 -10 replies
17/41duration_estimator: Move $uptincl_testid to separate @x_paramsOsstest/Executive.pm+4 -10 replies
18/41duration_estimator: Move duration query loop into databaseOsstest/Executive.pm+20 -110 replies
19/41Executive: Drop redundant AND clauseOsstest/Executive.pm+0 -11 reply
20/41schema: Add index for quick lookup by hostschema/runvars-host-index.sql+8 -00 replies
21/41sg-report-host-history: Find flight limit by flight start datesg-report-host-history+27 -290 replies
22/41sg-report-host-history: Drop per-job debug etc.sg-report-host-history+7 -70 replies
23/41Executive: Export opendb_testsOsstest/Executive.pm+1 -10 replies
24/41sg-report-host-history: Add a debug print after sorting jobssg-report-host-history+2 -00 replies
25/41sg-report-host-history: Do the main query per hostschema/runvars-host-index.sql sg-report-host-history+10 -190 replies
26/41sg-report-host-history: Rerganisation: Make mainquery per-hostsg-report-host-history+11 -80 replies
27/41sg-report-host-history: Rerganisation: Read old logs latersg-report-host-history+4 -40 replies
28/41sg-report-host-history: Rerganisation: Change loopssg-report-host-history+2 -100 replies
29/41sg-report-host-history: Drop a redundznt AND clausesg-report-host-history+1 -20 replies
30/41sg-report-host-history: Forksg-report-host-history+40 -70 replies
31/41schema: Add index to help cs-bisection-stepschema/steps-broken-index.sql+7 -00 replies
32/41adhoc-revtuple-generator: Fix an undef warning in a debug printadhoc-revtuple-generator+1 -10 replies
33/41cs-bisection-step: Generalise qtxt_common_rev_okcs-bisection-step+10 -60 replies
34/41cs-bisection-step: Move an ANDcs-bisection-step+2 -20 replies
35/41cs-bisection-step: Break out qtxt_common_okcs-bisection-step+8 -10 replies
36/41cs-bisection-step: Use db_prepare a few times instead of ->docs-bisection-step+3 -30 replies
37/41cs-bisection-step: temporary table: Insert only rows we care aboutcs-bisection-step+6 -20 replies
38/41SQL: Change LIKE E'...\\_...' to LIKE '...\_...'cs-bisection-step sg-report-job-history+6 -60 replies
39/41cs-bisection-step: Add a debug print when we run dot(1)cs-bisection-step+1 -00 replies
40/41cs-bisection-step: Lay out the revision tuple graph oncecs-bisection-step+8 -30 replies
41/41duration_estimator: Clarify recentflights query a bitOsstest/Executive.pm+3 -31 reply

Reviews trailers per patch

8 of 41 patches have a Reviewed-by or Acked-by.

PatchGeorge Dunlap
1/41
2/41
3/41
4/41
5/41
6/41
7/41R-b
8/41R-b
9/41R-b
10/41R-b
11/41
12/41R-b
13/41
14/41
15/41
16/41
17/41
18/41R-b
19/41R-b
20/41
21/41
22/41
23/41
24/41
25/41
26/41
27/41
28/41
29/41
30/41
31/41
32/41
33/41
34/41
35/41
36/41
37/41
38/41
39/41
40/41
41/41R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [OSSTEST PATCH v2 00/41] Performance work

This is a combination of two series and some new work:
* [OSSTEST PATCH 00/14] Flight report performance improvements
* [OSSTEST PATCH 00/11] Improve performance of sg-report-host-history
* New work to improve the performance of cs-bisection-step
* Fixes to usage of SQL LIKE

Thanks to George for reviews of some of the most critical patches to the regression analyser in sg-report-flight. Where necessary I have rebased those reviewed patches over the SQL LIKE fixes, and in those cases I retained the reviewed-by. I hope that's OK.

Outstanding in my perf programme is sg-report-job-history.

Ian Jackson (41):
Add cperl-indent-level to .dir-locals.el
SQL: Use "LIKE" rather than "like", etc.
SQL: Fix incorrect LIKE pattern syntax (literals)
SQL: Fix incorrect LIKE pattern syntax (program variables)
sg-report-flight: Add a comment re same-flight search narrowing
sg-report-flight: Sort failures by job name as last resort
schema: Provide indices for sg-report-flight
sg-report-flight: Ask the db for flights of interest
sg-report-flight: Use WITH to use best index use for $flightsq
sg-report-flight: Use WITH clause to use index for $anypassq
sg-report-flight: Use the job row from the intitial query
Executive: Use index for report__find_test
duration_estimator: Ignore truncated jobs unless we know the step
duration_estimator: Introduce some _qtxt variables
duration_estimator: Explicitly provide null in general host q
duration_estimator: Return job column in first query
duration_estimator: Move $uptincl_testid to separate @x_params
duration_estimator: Move duration query loop into database
Executive: Drop redundant AND clause
schema: Add index for quick lookup by host
sg-report-host-history: Find flight limit by flight start date
sg-report-host-history: Drop per-job debug etc.
Executive: Export opendb_tests
sg-report-host-history: Add a debug print after sorting jobs
sg-report-host-history: Do the main query per host
sg-report-host-history: Rerganisation: Make mainquery per-host
sg-report-host-history: Rerganisation: Read old logs later
sg-report-host-history: Rerganisation: Change loops
sg-report-host-history: Drop a redundznt AND clause
sg-report-host-history: Fork
schema: Add index to help cs-bisection-step
adhoc-revtuple-generator: Fix an undef warning in a debug print
cs-bisection-step: Generalise qtxt_common_rev_ok
cs-bisection-step: Move an AND
cs-bisection-step: Break out qtxt_common_ok
cs-bisection-step: Use db_prepare a few times instead of ->do
cs-bisection-step: temporary table: Insert only rows we care about
SQL: Change LIKE E'...\\_...' to LIKE '...\_...'
cs-bisection-step: Add a debug print when we run dot(1)
cs-bisection-step: Lay out the revision tuple graph once
duration_estimator: Clarify recentflights query a bit

 .dir-locals.el                    |   3 +-
 Osstest.pm                        |   8 +-
 Osstest/Executive.pm              |  79 +++++++++------
 Osstest/JobDB/Executive.pm        |   2 +-
 adhoc-revtuple-generator          |   2 +-
 cr-ensure-disk-space              |   4 +-
 cs-adjust-flight                  |   2 +-
 cs-bisection-step                 |  51 +++++++---
 mg-force-push                     |   2 +-
 mg-report-host-usage-collect      |  10 +-
 ms-planner                        |   2 +-
 schema/runvars-built-index.sql    |   7 ++
 schema/runvars-host-index.sql     |   8 ++
 schema/runvars-revision-index.sql |   7 ++
 schema/steps-broken-index.sql     |   7 ++
 schema/steps-job-index.sql        |   7 ++
 sg-report-flight                  | 129 ++++++++++++++++++++----
 sg-report-host-history            | 161 +++++++++++++++++-------------
 sg-report-job-history             |   4 +-
 ts-logs-capture                   |   2 +-
 20 files changed, 344 insertions(+), 153 deletions(-)
 create mode 100644 schema/runvars-built-index.sql
 create mode 100644 schema/runvars-host-index.sql
 create mode 100644 schema/runvars-revision-index.sql
 create mode 100644 schema/steps-broken-index.sql
 create mode 100644 schema/steps-job-index.sql
Signature · 1 line
2.20.1