Method for executing a query instruction for idle time accumulation among cores in a multithreading computer system
First Claim
1. A computer-implemented method for idle time accumulation in a computer system comprising a configuration that comprises a plurality of cores and an operating system (OS)-image configurable between a single thread (ST) mode and a multithreading (MT) mode in a logical partition, the MT mode supporting multiple threads on shared resources per core simultaneously, the method comprising:
- executing a query instruction on an initiating core of the plurality of cores, the executing comprising;
obtaining, by the OS-image, a maximum thread identification value indicating a current maximum thread identifier of the cores within the logical partition;
obtaining, by the initiating core, a multithreading idle time value for each of the cores indicating an aggregate amount of idle time of all threads enabled on each of the cores in the MT mode; and
obtaining, by the initiating core, a total-dispatch time for each of the cores as an accumulated time that each of the cores was dispatched;
based on determining that the logical partition is in the ST mode, determining an MT-disabled missed opportunity value as a sum of the total-dispatch times for all of the cores within the logical partition scaled by one less than a maximum number of threads supported per core by hardware of the computer system; and
based on determining that the logical partition is in the MT mode, determining an MT-enabled missed opportunity value as a sum of the multithreading idle time values for all of the cores within the logical partition.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments relate to idle time accumulation in a multithreading computer system. According to one aspect, a computer-implemented method for idle time accumulation in a computer system is provided. The computer system includes a configuration having a plurality of cores and an operating system (OS)-image configurable between single thread (ST) mode and a multithreading (MT) mode in a logical partition. The MT mode supports multiple threads on shared resources per core simultaneously. The method includes executing a query instruction on an initiating core of the plurality of cores. The executing includes obtaining, by the OS-image, a maximum thread identification value indicating a current maximum thread identifier of the cores within the logical partition. The initiating core also obtains a multithreading idle time value for each of the cores indicating an aggregate amount of idle time of all threads enabled on each of the cores in the MT mode.
126 Citations
6 Claims
-
1. A computer-implemented method for idle time accumulation in a computer system comprising a configuration that comprises a plurality of cores and an operating system (OS)-image configurable between a single thread (ST) mode and a multithreading (MT) mode in a logical partition, the MT mode supporting multiple threads on shared resources per core simultaneously, the method comprising:
-
executing a query instruction on an initiating core of the plurality of cores, the executing comprising; obtaining, by the OS-image, a maximum thread identification value indicating a current maximum thread identifier of the cores within the logical partition; obtaining, by the initiating core, a multithreading idle time value for each of the cores indicating an aggregate amount of idle time of all threads enabled on each of the cores in the MT mode; and obtaining, by the initiating core, a total-dispatch time for each of the cores as an accumulated time that each of the cores was dispatched; based on determining that the logical partition is in the ST mode, determining an MT-disabled missed opportunity value as a sum of the total-dispatch times for all of the cores within the logical partition scaled by one less than a maximum number of threads supported per core by hardware of the computer system; and based on determining that the logical partition is in the MT mode, determining an MT-enabled missed opportunity value as a sum of the multithreading idle time values for all of the cores within the logical partition. - View Dependent Claims (2, 3, 4, 5, 6)
-
Specification