# US 2019/0377595 A1 · Workload manager control of dynamic thread mode switch

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0377595 A1
- Document ID: US20190377595A1
- Status: Published application
- Kind: A1
- Application number: 16/546,352
- Filed: 2019-08-21
- Published: 2019-12-12
- Earliest claimed: 2017-11-30
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: CHARLES E. HACKETT
- Web page: https://patentgrep.com/patent/US20190377595A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/5044: {considering hardware capabilities}
- G06F 9/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- G06F 2209/5022: Workload threshold
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments include method, systems and computer program products for operating a computer system using a workload manager to control a dynamic thread mode switch. The method includes receiving a plurality of workloads. A workload manager determines which of the plurality of workloads are eligible to use a processor core operating in a multi-threaded mode and which workloads are response sensitive and use a processor core operating in a single-thread mode. A hypervisor determines a state of operation for one or more cores of one or more processors and causes a core switch for at least one or more cores in response to a determination that workloads eligible to use a processor core operating in a multi-threaded mode exist or workloads that are response sensitive and a determination that the state of operation for one or more cores of one or more processors should change to facilitate handling the associated workloads.

## Claims

### Claim 1

A computer-implemented method for operating a computer system using a workload manager to control a dynamic thread mode switch, the method comprising:
receiving, by the computer system, a plurality of workloads;
determining, by a workload manager, which of the plurality of workloads are eligible to use a processor core operating in a multi-threaded mode;
determining, by a hypervisor, a state of operation for one or more cores of one or more processors of the computer system;
causing, by the hypervisor, a core switch for one or more cores of one or more processors in response to: (i) a determination that workloads eligible to use a processor core operating in a multi-threaded mode; and (ii) a determination that the state of operation for one or more cores of one or more processors should change to facilitate handling the associated workloads; and
handling, by the one or more cores, the plurality of workloads.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the hypervisor also causes a core switch in response to at least one of the following: an expiration of a time period associated with a timer, an interrupt, and a service objective fail.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the one or more cores are associated with a logical partition.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein one or more other cohosted logical partitions can block a core switch for the one or more cores associated with the logical partition.

### Claim 5 (depends on 3)

The computer-implemented method of claim 3, wherein the logical partition prevents a thrashing condition.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein low priority workloads are eligible to use a processor core operating in a multi-threaded mode.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein medium and high priority workloads are workloads that are response sensitive.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the workload manager maintains a history of workload usage and core switch events.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the workload manager can limit an amount of the one or more cores of one or more processors to operate in a multi-threaded mode.

### Claim 10

A system, comprising:
one or more processors, wherein each of the one or more processors comprises one or more cores; and
a memory coupled to the one or more processors;
a workload manager, wherein the workload manager determines which of a plurality of workloads received by the system are eligible to use a processor core operating in a multi-threaded mode; and
a hypervisor, wherein the hypervisor is operable to:
determine a state of operation for the one or more cores of one or more processors of the system; and
cause a core switch for at least one or more cores of the one or more processors in response to: (i) a determination that workloads eligible to use a processor core operating in a multi-threaded mode; and (ii) a determination that the state of operation for one or more cores of one or more processors should change to facilitate handling the associated workloads;
wherein the one or more cores of the one or more processors are operable to handle the plurality of workloads.

### Claim 11 (depends on 10)

The system of claim 10, wherein the hypervisor also causes a core switch in response to at least one of the following: an expiration of a time period associated with a timer, an interrupt, and a service objective fail.

### Claim 12 (depends on 10)

The system of claim 10, wherein the one or more cores are associated with a logical partition.

### Claim 13 (depends on 12)

The system of claim 12, wherein one or more other cohosted logical partitions can block a core switch for the one or more cores associated with the logical partition.

### Claim 14 (depends on 12)

The system of claim 12, wherein the logical partition prevents a thrashing condition.

### Claim 15 (depends on 10)

The system of claim 10, wherein low priority workloads are eligible to use a processor core operating in a multi-threaded mode.

### Claim 16 (depends on 10)

The system of claim 10, wherein medium and high priority workloads are workloads that are response sensitive.

### Claim 17 (depends on 10)

The system of claim 10, wherein the workload manager maintains a history of workload usage and core switch events.

### Claim 18 (depends on 17)

The system of claim 17, wherein the workload manager uses the history of workload usage and core switch events to anticipate when a core switch should occur.

### Claim 19 (depends on 10)

The system of claim 10, wherein the workload manager can limit an amount of the one or more cores of one or more processors to operate in a multi-threaded mode.

### Claim 20

A computer program product for operating a computer system using a workload manager to control a dynamic thread mode switch, the computer program product comprising:
a non-transitory computer readable storage medium having stored thereon first program instructions executable by a processor to cause the processor to:
receive a plurality of workloads;
determine which of the plurality of workloads are eligible to use a processor core operating in a multi-threaded mode;
determine a state of operation for one or more cores of one or more processors of the computer system;
cause a core switch for at least one or more cores of one or more processors in response to: (i) a determination that workloads eligible to use a processor core operating in a multi-threaded mode; and (ii) a determination that the state of operation for one or more cores of one or more processors should change to facilitate handling the associated workloads; and
handle the plurality of workloads.
