Related Experiment Video
Updated: Sep 23, 2025

Analysis and Specification of Starch Granule Size Distributions
Published on: March 4, 2021
On the choice of the best chunk size for the speculative execution of loops
Alvaro Estebanez1, Diego R Llanos1, David Orden2
1Dpto. de Informática, Universidad de Valladolid, Valladolid, Spain.
Abstract:
Loops are a rich source of parallelism. Unfortunately, many loops cannot be safely parallelized at compile time because the compiler is not able to guarantee that there will be no dependence violations. Thread-Level Speculation (TLS) techniques, either hardware or software-based, allow the parallel execution of non-analyzable loops, issuing the execution of blocks of consecutive iterations (called chunks) while a hardware or software monitor ensures that no dependence violations arise. If such a dependence violation occurs, the chunk that was fed with incorrect values is discarded and re-started, in order to consume the correct information. In the speculative execution of non-analyzable loops, it is very important to correctly choose the chunk size, because this choice dramatically affects the performance of the parallel execution. Bigger chunks imply less scheduling overheads, but smaller chunks allow fewer calculations to be discarded in the event of a dependence violation. To find a good chunk size is not a simple task, because loops may present dependencies that cannot be detected at compile time. In this paper, we present a comprehensive evaluation of different scheduling methods to estimate the optimal chunk size in the speculative execution of non-analyzable loops. This evaluation ranges from the simple, classical methods originally devised to achieve load balancing in loops with no dependencies, to methods that make some assumptions on the distribution pattern of dependencies, such as Meseta and Just-in-Time scheduling. We also propose and evaluate a general, more complex method called Moody Scheduling, that does not require a-priori assumptions to achieve the highest performance.
Related Concept Videos
Chunking
The principle behind chunking...
Maximum Size of Aggregate
Sample Size Calculation
The sample size for the given experiment or sampling effort is fundamental to any study design. Sample size decides the number of...
Precipitate Formation and Particle Size Control
The obtained precipitate should be either a pure substance of known composition or easily converted to one by a simple process, such as ignition or drying. In addition, the precipitate should be insoluble and easily filterable. In general, filterability...
Parallel Processing
Choosing Between z and t Distribution

