×

Hardware counters to track utilization in a multithreading computer system

  • US 10,102,004 B2
  • Filed: 03/27/2014
  • Issued: 10/16/2018
  • Est. Priority Date: 03/27/2014
  • Status: Active Grant
First Claim
Patent Images

1. A computer system, comprising:

  • a configuration comprising a core configured to operate in a multithreading (MT) mode, the MT mode supporting multiple threads on shared resources of the core;

    the core configured to perform a method comprising;

    resetting a plurality of utilization counters, the utilization counters comprising a plurality of sets of counters including a first set of counters and a second set of counters, each set of counters corresponding to a different number of currently active threads and each set of counters non-overlapping with each other set of counters;

    performing for each clock cycle on the core;

    selecting a set of counters from the plurality of sets of counters, the selecting based on a number of currently active threads on the core and not based on which specific threads of the multiple threads are currently active, wherein the first set of counters is selected based on exactly one of the multiple threads being currently active, and the second set of counters is selected based on exactly two of the multiple threads being currently active; and

    incrementing a counter in the selected set of counters, the incrementing based on an aggregation of one or more execution events at the multiple threads of the core; and

    providing values of the utilization counters to a software program.

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