Commit ed4d762
committed
[tworker] Speed up fuzz_task preprocess.
Attempt to make the tworkers faster so they can scale up to OSS-Fuzz.
Make the following changes based on profiling.
1. Sign URLs in parallel.
2. Don't do postprocess tasks. Pulling from a queue which we don't get anything is relatively expensive.
3. Don't clean up after tasks since preprocess doesn't change the state of the machine.
4. Don't sign delete URLs for corpus in fuzz task, we don't delete in fuzz task anyway.
5. Limit the number of upload URLs for corpus in fuzz task to the number we will actually use.
6. Memoize to avoid parsing YAML often.
7. (unrelated to preprocess) Remove overly-conservative, useless limitation on async downloads.1 parent b8b457f commit ed4d762
File tree
6 files changed
+50
-16
lines changed- src/clusterfuzz/_internal
- base
- tasks
- bot/tasks
- utasks
- google_cloud_utils
- system
6 files changed
+50
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
24 | 33 | | |
25 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
26 | 39 | | |
27 | 40 | | |
28 | 41 | | |
29 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
30 | 46 | | |
31 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | 320 | | |
325 | 321 | | |
326 | 322 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
470 | | - | |
| 470 | + | |
| 471 | + | |
471 | 472 | | |
472 | 473 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
130 | 139 | | |
131 | 140 | | |
132 | 141 | | |
| |||
1497 | 1506 | | |
1498 | 1507 | | |
1499 | 1508 | | |
1500 | | - | |
| 1509 | + | |
1501 | 1510 | | |
1502 | 1511 | | |
1503 | 1512 | | |
| |||
1572 | 1581 | | |
1573 | 1582 | | |
1574 | 1583 | | |
1575 | | - | |
| 1584 | + | |
1576 | 1585 | | |
1577 | 1586 | | |
1578 | 1587 | | |
| |||
2023 | 2032 | | |
2024 | 2033 | | |
2025 | 2034 | | |
2026 | | - | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
2027 | 2039 | | |
2028 | 2040 | | |
2029 | 2041 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1135 | 1135 | | |
1136 | 1136 | | |
1137 | 1137 | | |
| 1138 | + | |
1138 | 1139 | | |
1139 | 1140 | | |
1140 | 1141 | | |
| |||
1351 | 1352 | | |
1352 | 1353 | | |
1353 | 1354 | | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
1354 | 1360 | | |
1355 | 1361 | | |
1356 | 1362 | | |
1357 | | - | |
1358 | | - | |
1359 | | - | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
1360 | 1366 | | |
1361 | 1367 | | |
1362 | 1368 | | |
| |||
1390 | 1396 | | |
1391 | 1397 | | |
1392 | 1398 | | |
1393 | | - | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
1394 | 1402 | | |
1395 | 1403 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
| |||
0 commit comments