×

Averting lock contention associated with core-based hardware threading in a split core environment

  • US 10,108,453 B2
  • Filed: 06/30/2016
  • Issued: 10/23/2018
  • Est. Priority Date: 06/30/2016
  • Status: Active Grant
First Claim
Patent Images

1. A method for managing lock contention in a processor, comprising:

  • tracking, in a table stored in a memory, a current total amount of time that one or more software threads are prevented from execution due to a lock;

    tracking, in the table, a current utilization of one or more hardware threads in the processor, wherein each of the hardware threads form an execution stream on a processor core;

    tracking, in the table, a current number of software threads that are dispatched to the hardware threads for execution on the processor core;

    if the current total amount of time exceeds a predetermined threshold, performing a comparison of the current total amount of time, the current utilization, and the current number of software threads to one or more past measurements;

    based on the comparison, predicting that reducing a number of active hardware threads will reduce a wait time by;

    determining that the one or more past measurements comprise a smaller number of active hardware threads compared to a current number of active hardware threads; and

    determining that the one or more past measurements associated with the smaller number of active hardware threads comprise a reduced wait time for software threads compared to the current total amount of time; and

    if reducing the number of active hardware threads will reduce the wait time, reducing the number of active hardware threads.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×