Suppressing aborting a transaction beyond a threshold execution duration based on the predicted duration
AssigneeInternational Business Machines Corporation
InventorsJonathan D. Bradbury, Harold W. Cain, III, Michael Karl Gschwind, Maged M. Michael, Valentina Salapura, Chung-Lung K. Shum, Timothy J. Slegel
Life of this patent
Estimating the term…
Abstract
In a multi-processor transaction execution environment a transaction is executed a plurality of times. Based on the executions, a duration is predicted for executing the transaction. Based on the predicted duration, a threshold is determined. Pending aborts of the transaction due to memory conflicts are suppressed based on the transaction exceeding the determined threshold.
Claims12
A computer program product for predicting a duration of a transaction in a multi-processor transaction execution environment, the computer program product comprising:
- a computer readable non-transitory storage medium readable by a processing circuit and storing instructions for execution by the processing circuit, for performing a method comprising:
- executing, by a processor, the transaction a plurality of times, wherein the transaction comprises a plurality of processor-executed instructions that execute atomically on a data structure in memory, each execution determining, by a predictor component of the processor a corresponding duration of the transaction;
- based on the corresponding durations of the transactions executed, predicting, by the predictor component of the processor, a predicted duration for executing the transaction;
- based on the predicted duration, determining whether an execution of the transaction is within a threshold value less than the predicted duration;
- and
- based on determining the execution of the transaction is within the threshold value, suppressing abort events from causing the transaction to abort before completing.
A computer system for predicting a duration of a transaction in a multi-processor transaction execution environment, the computer program system comprising:
- a memory;
- and
- a processor in communications with the memory, wherein the computer system is configured to perform a method, said method comprising:
- executing, by a processor, the transaction a plurality of times, wherein the transaction comprises a plurality of processor-executed instructions that execute atomically on a data structure in memory, each execution determining, by a predictor component of the processor, a corresponding duration of the transaction;
- based on the corresponding durations of the transactions executed, predicting, by the predictor component of the processor, a predicted duration for executing the transaction;
- based on the predicted duration, determining, by the predictor component of the processor, whether an execution of the transaction is within a threshold value less than the predicted duration;
- and
- based on determining, by the predictor component of the processor, that the execution of the transaction is within the threshold value, suppressing abort events from causing the transaction to abort before completing.
Dependencies are inferred from the claim text.