Skip to content

Speed up sg-report-job-history

Ian Jackson xen-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest60 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/60history reporting (nfc): Do not key cache on hostname any moresg-report-host-history+5 -80 replies
2/60history reporting (nfc): Add some test runes to the notesrunes+8 -00 replies
3/60history reporting: Delete two debug printssg-report-host-history+0 -20 replies
4/60history reporting (nfc): Refactor to generalise, cache_read_existingsg-report-host-history+11 -80 replies
5/60history reporting (nfc): Make cache_write_entry into a top-level subsg-report-host-history+23 -230 replies
6/60history reporting (nfc): Rename jobquery to cacheable_querysg-report-host-history+4 -40 replies
7/60history reporting (nfc): Break out cache_row_lookup_prepsg-report-host-history+11 -50 replies
8/60history reporting (nfc): Rename "existing" to "previous"sg-report-host-history+4 -40 replies
9/60history reporting (nfc): Provide cacheable_fnsg-report-host-history+11 -40 replies
10/60history reporting (nfc): Bind by name in cacheable_querysg-report-host-history+8 -40 replies
11/60history reporting (nfc): Rename $cachehits to $rows_hitsg-report-host-history+3 -30 replies
12/60history reporting (nfc): Record query-specific statssg-report-host-history+6 -00 replies
13/60history reporting (nfc): Move cacheable_* further up the filesg-report-host-history+30 -300 replies
14/60history reporting (nfc): Use cacheable_fn for power methodssg-report-host-history+8 -120 replies
15/60history reporting (nfc): Introduce cache_set_key_colssg-report-host-history+5 -10 replies
16/60history reporting (nfc): Record more row-specific statssg-report-host-history+6 -10 replies
17/60history reporting: Cache stats reporting: Centralise and reworksg-report-host-history+12 -60 replies
18/60history reporting (nfc): Remove now-obsolete stats variablessg-report-host-history+0 -50 replies
19/60history reporting (nfc): Introduce empty HistoryReport moduleOsstest/HistoryReport.pm sg-report-host-history+44 -00 replies
20/60history reporting (nfc): Move cache code into HistoryReport moduleOsstest/HistoryReport.pm sg-report-host-history+115 -1150 replies
21/60history reporting (nfc): Rename some module variables, remove "cache"Osstest/HistoryReport.pm+6 -60 replies
22/60history reporting: Skip undefined keysOsstest/HistoryReport.pm+1 -00 replies
23/60history reporting (nfc): Documentation for the new moduleOsstest/HistoryReport.pm sg-report-host-history+28 -50 replies
24/60history reporting: Cache data limit now in History moduleOsstest/HistoryReport.pm sg-report-host-history+37 -150 replies
25/60history reporting: Print debug for cache missesOsstest/HistoryReport.pm+3 -00 replies
26/60history reporting: Improve an error message slightlyOsstest/HistoryReport.pm+2 -10 replies
27/60sg-report-host-history: Write cache entry for unfinished jobssg-report-host-history+2 -10 replies
28/60parallel by fork: Break out into HistoryReportOsstest/HistoryReport.pm sg-report-host-history+60 -400 replies
29/60parallel by fork: Disconnect $dbh_tests as well as undefing itOsstest/HistoryReport.pm+1 -00 replies
30/60parallel by fork: Fix a variable name to $taskOsstest/HistoryReport.pm+3 -30 replies
31/60sg-report-job-history: Prep for fork: Move $buildsq querysg-report-job-history+4 -40 replies
32/60sg-report-job-history: Prep for fork: Move $revisionsq querysg-report-job-history+5 -40 replies
33/60sg-report-job-history: Use fork-based parallelismsg-report-job-history+9 -40 replies
34/60sg-report-job-history: Use one child per reportsg-report-job-history+8 -70 replies
35/60sg-report-job-history (nfc): Have main program decide HTML filenamesg-report-job-history+5 -60 replies
36/60sg-report-job-history: Always write HTML outputsg-report-job-history+1 -10 replies
37/60sg-report-job-history (nfc): Remove needless conditionalsg-report-job-history+80 -820 replies
38/60history reporting (nfc): Add another test rune to the notesrunes+2 -00 replies
39/60history reporting (nfc): Make cacheable_fn work without cacheOsstest/HistoryReport.pm+1 -00 replies
40/60sg-report-job-history: Refactor "ALL" handlingsg-report-job-history+6 -40 replies
41/60sg-report-job-history (nfc): Make $ri->{Hosts} a hashsg-report-job-history+3 -30 replies
42/60sg-report-job-history (nfc): Add new hostvarcols calculationsg-report-job-history+7 -00 replies
43/60sg-report-job-history (nfc): Query hosts runvars in one gosg-report-job-history+7 -40 replies
44/60sg-report-job-history (nfc): Drop $hostsq querysg-report-job-history+1 -210 replies
45/60history reporting (nfc): Provide cache_set_task_printOsstest/HistoryReport.pm+5 -20 replies
46/60sg-report-job-history: Introduce use of cache, for hosts querysg-report-job-history+15 -50 replies
47/60history reporting (nfc): Break out url_quoteOsstest/HistoryReport.pm+7 -20 replies
48/60history reporting (nfc): Break out url_unquoteOsstest/HistoryReport.pm+7 -20 replies
49/60history reporting (nfc): Break out $url_ok_charsOsstest/HistoryReport.pm+3 -10 replies
50/60history reporting (nfc): url-quoting: quote = tooOsstest/HistoryReport.pm+1 -10 replies
51/60history reporting (nfc): Quote keys tooOsstest/HistoryReport.pm+4 -30 replies
52/60sg-report-job-history: Cache the per-flight revisionssg-report-job-history+15 -110 replies
53/60sg-report-job-history (nfc): Refactor osstestrevs codesg-report-job-history+5 -20 replies
54/60sg-report-job-history: Cache osstestrevssg-report-job-history+9 -60 replies
55/60history reporting: Break out minflight_by_timeOsstest/HistoryReport.pm sg-report-host-history+18 -110 replies
56/60sg-report-job-history (nfc): Abolish $fromstuffsg-report-job-history+2 -40 replies
57/60sg-report-job-history: Cache report_run_getinfosg-report-job-history+1 -10 replies
58/60sg-report-host-history: Cache report_run_getinfosg-report-host-history+3 -10 replies
59/60sg-report-job-history: Provide --time-limitsg-report-job-history+7 -00 replies
60/60sg-report-job-history: Increase default limitsg-report-job-history+1 -10 replies

Reviews trailers per patch

1 of 60 patches has a Reviewed-by or Acked-by.

PatchIan Jackson
1/60
2/60
3/60
4/60
5/60
6/60
7/60
8/60
9/60
10/60
11/60
12/60
13/60
14/60
15/60
16/60
17/60
18/60
19/60
20/60
21/60
22/60
23/60
24/60
25/60
26/60
27/60
28/60
29/60A-b
30/60
31/60
32/60
33/60
34/60
35/60
36/60
37/60
38/60
39/60
40/60
41/60
42/60T-b
43/60
44/60
45/60
46/60
47/60
48/60
49/60
50/60
51/60
52/60
53/60
54/60
55/60
56/60
57/60
58/60
59/60
60/60

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

Read the v1 thread

Cover letter [OSSTEST PATCH 00/60] Speed up sg-report-job-history

I think this is the final section of my work to speed up osstest's reporting db queries etc.

After this is pushed and working, I will look and see what the interval is now, between one flight finishing and the next starting, to see ig there is more to be done.

Ian Jackson (60):
history reporting (nfc): Do not key cache on hostname any more history reporting (nfc): Add some test runes to the notes history reporting: Delete two debug prints
history reporting (nfc): Refactor to generalise, cache_read_existing history reporting (nfc): Make cache_write_entry into a top-level sub history reporting (nfc): Rename jobquery to cacheable_query history reporting (nfc): Break out cache_row_lookup_prep history reporting (nfc): Rename "existing" to "previous" history reporting (nfc): Provide cacheable_fn
history reporting (nfc): Bind by name in cacheable_query history reporting (nfc): Rename $cachehits to $rows_hit history reporting (nfc): Record query-specific stats history reporting (nfc): Move cacheable_* further up the file history reporting (nfc): Use cacheable_fn for power methods history reporting (nfc): Introduce cache_set_key_cols history reporting (nfc): Record more row-specific stats history reporting: Cache stats reporting: Centralise and rework history reporting (nfc): Remove now-obsolete stats variables history reporting (nfc): Introduce empty HistoryReport module history reporting (nfc): Move cache code into HistoryReport module history reporting (nfc): Rename some module variables, remove "cache" history reporting: Skip undefined keys
history reporting (nfc): Documentation for the new module history reporting: Cache data limit now in History module history reporting: Print debug for cache misses
history reporting: Improve an error message slightly
sg-report-host-history: Write cache entry for unfinished jobs parallel by fork: Break out into HistoryReport
parallel by fork: Disconnect $dbh_tests as well as undefing it parallel by fork: Fix a variable name to $task
sg-report-job-history: Prep for fork: Move $buildsq query
sg-report-job-history: Prep for fork: Move $revisionsq query
sg-report-job-history: Use fork-based parallelism
sg-report-job-history: Use one child per report sg-report-job-history (nfc): Have main program decide HTML filename
sg-report-job-history: Always write HTML output sg-report-job-history (nfc): Remove needless conditional history reporting (nfc): Add another test rune to the notes history reporting (nfc): Make cacheable_fn work without cache
sg-report-job-history: Refactor "ALL" handling sg-report-job-history (nfc): Make $ri->{Hosts} a hash sg-report-job-history (nfc): Add new hostvarcols calculation sg-report-job-history (nfc): Query hosts runvars in one go sg-report-job-history (nfc): Drop $hostsq query
history reporting (nfc): Provide cache_set_task_print
sg-report-job-history: Introduce use of cache, for hosts query history reporting (nfc): Break out url_quote
history reporting (nfc): Break out url_unquote
history reporting (nfc): Break out $url_ok_chars
history reporting (nfc): url-quoting: quote = too
history reporting (nfc): Quote keys too
sg-report-job-history: Cache the per-flight revisions sg-report-job-history (nfc): Refactor osstestrevs code
sg-report-job-history: Cache osstestrevs
history reporting: Break out minflight_by_time sg-report-job-history (nfc): Abolish $fromstuff
sg-report-job-history: Cache report_run_getinfo
sg-report-host-history: Cache report_run_getinfo
sg-report-job-history: Provide --time-limit
sg-report-job-history: Increase default limit

 Osstest/HistoryReport.pm | 301 +++++++++++++++++++++++++++++++++++++++++++++
 runes                    |  10 ++
 sg-report-host-history   | 216 +++++++-------------------------
 sg-report-job-history    | 313 +++++++++++++++++++++++++----------------------
 4 files changed, 520 insertions(+), 320 deletions(-)
 create mode 100644 Osstest/HistoryReport.pm
Signature · 1 line
2.11.0