# US 2021/0081248 A1 · Task Scheduling

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

- Number: US 2021/0081248 A1
- Document ID: US20210081248A1
- Status: Published application
- Kind: A1
- Application number: 17/104,766
- Filed: 2020-11-25
- Published: 2021-03-18
- Earliest claimed: 2019-04-09
- Assignees: Telefonaktiebolaget LM Ericsson (publ)
- Applicants: Telefonaktiebolaget LM Ericsson (publ)
- Inventors: Patrik Åberg; Bengt Wikenfalk
- Web page: https://patentgrep.com/patent/US20210081248A1

## CPC

- G06F 9/5033: {considering data affinity}
- G06F 9/4843: {by program, e.g. task dispatcher, supervisor, operating system}
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 12/084: with a shared cache
- G06F 2212/1041: Resource optimization
- G06F 2212/62: Details of cache specific to multiprocessor cache arrangements
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

There is provided mechanisms for scheduling a task from a plurality of tasks to a processor core of a cluster of processor cores. The processor cores share caches. A method is performed by a controller. The method comprises determining group-wise task relationships between the plurality of tasks based on duration of cache misses resulting from running groups of the plurality of tasks on processor cores sharing the same cache. The method comprises scheduling the task to one of the processor cores based on the group-wise task relationships of the task.

## Claims

### Claim 1

A method for scheduling a task from a plurality of tasks to a processor core of a cluster of processor cores, the processor cores sharing caches, the method being performed by a controller, the method comprising:
determining group-wise task relationships between the plurality of tasks based on duration of cache misses resulting from running groups of the plurality of tasks on processor cores sharing the same cache; and
scheduling the task to one of the processor cores based on the group-wise task relationships of the task.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the task is scheduled to the processor core corresponding to the group-wise task relationship of the task with minimum value.

### Claim 3 (depends on 1)

The method according to claim 1, wherein each group-wise task relationship is based on averaged individual task relationships.

### Claim 4 (depends on 3)

The method according to claim 3, wherein each individual task relationship is based on a ratio between the duration (tc1−tc0) of cache misses and total duration (t1−t0) of running one of the tasks.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the individual task relationship at time index n for running task A on the processor core sharing cache X depends on the individual task relationship at time index n−1 for running task A on the processor core sharing cache X.

### Claim 6 (depends on 4)

The method according to claim 4, wherein the individual task relationship at time index n for running task A on the processor core sharing cache X has a value R(A,X)[n] given by:
R(A,X)[n]=((k−1)·R(A,X)[n−1]+(tc1−tc0)/(t1−t0))/k,
where k>1 is a parameter.

### Claim 7 (depends on 3)

The method according to claim 3, wherein group-wise task relationships for all tasks using a same one of the caches are updated every time one of the individual task relationships of the same one of the caches is updated.

### Claim 8 (depends on 3)

The method according to claim 3, wherein there are as many individual task relationships per group-wise task relationship as there are processor cores per group-wise task relationship.

### Claim 9 (depends on 1)

The method according to claim 1, wherein there are as many group-wise task relationships as there are caches.

### Claim 10 (depends on 1)

The method according to claim 1, wherein all caches are shared by equally as many of the processor cores.

### Claim 11 (depends on 1)

The method according to claim 1, wherein the caches are shared by unequally as many of the processor cores.

### Claim 12 (depends on 1)

The method according to claim 1, wherein the tasks are run-to-completion tasks.

### Claim 13 (depends on 1)

The method according to claim 1, wherein the tasks are software threads.

### Claim 14 (depends on 1)

The method according to claim 1, wherein the cluster of processor cores is part of one single digital signal processor.

### Claim 15 (depends on 1)

The method according to claim 1, wherein the cluster of processor cores is part of a cloud computing system.

### Claim 16

A controller configured for scheduling a task from a plurality of tasks to a processor core of a cluster of processor cores, the processor cores sharing caches, the controller comprising processing circuitry, the processing circuitry being configured to cause the controller to:
determine group-wise task relationships between the plurality of tasks based on duration of cache misses resulting from running groups of the plurality of tasks on processor cores sharing the same cache; and
schedule the task to one of the processor cores based on the group-wise task relationships of the task.

### Claim 17

A controller configured for scheduling a task from a plurality of tasks to a processor core of a cluster of processor cores, the processor cores sharing caches, the controller comprising:
processing circuitry; and
a storage medium storing instructions that, when executed by the processing circuitry, cause the controller to:
determine group-wise task relationships between the plurality of tasks based on duration of cache misses resulting from running groups of the plurality of tasks on processor cores sharing the same cache; and
schedule the task to one of the processor cores based on the group-wise task relationships of the task.
