IP Library Granted Patent US 8,739,165
Granted Patent B2
US 8,739,165 · App. 12/017,988 · Granted May 27, 2014

Shared resource based thread scheduling with affinity and/or selectable criteria

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,739,165
App. No.
12/017,988
Granted
May 27, 2014
Kind
B2
Abstract

Threads may be scheduled to be executed by one or more cores depending upon whether it is more desirable to minimize power or to maximize performance. If minimum power is desired, threads may be schedule so that the active devices are most shared; this will minimize the number of active devices at the expense of performance. On the other hand, if maximum performance is desired, threads may be scheduled so that active devices are least shared. As a result, threads will have more active devices to themselves, resulting in greater performance at the expense of additional power consumption. Thread affinity with a core may also be taken into consideration when scheduling threads in order to improve the power consumption and/or performance of an apparatus.

Claims (56)

1. A method for operating an apparatus having a plurality of processors, comprising:

determining if a thread needs to be executed on one or more of the plurality of processors;

determining if one or more of the plurality of processors is available to execute the thread, and is thus an available processor;

determining if the thread has an affinity for the available processor, wherein said determining if the thread has the affinity for the available processor comprises

counting a number of writes by one or more other threads to a cache associated with the available processor since the thread was last executed on the available processor;

if the thread has the affinity for the available processor, selecting the available processor as a chosen processor to execute the thread;

if the thread does not have the affinity for the available processor, determining a number of active devices;

if the thread does not have the affinity for the available processor, determining if minimize power is selected;

if minimize power is selected, choosing a first processor of the plurality of processors to execute the thread so that the number of active devices is minimized;

if the thread does not have the affinity for the available processor, determining if maximize performance is selected; and

if maximize performance is selected, choosing a second processor of the plurality of processors to execute the thread so that the number of active devices is maximized.

2. A method as in claim 1 , wherein said step of determining the number of active devices comprises:

monitoring one or more power states of the apparatus.

3. A method as in claim 1 , wherein said step of determining the number of active devices comprises:

monitoring one or more performance states of the apparatus.

4. A method as in claim 1 , further comprising:

if the thread has the affinity for the available processor, determining whether the affinity is less than a threshold; and

indicating that the thread does not have the affinity for the available processor if the affinity is less than the threshold.

5. A method as in claim 1 , further comprising:

executing the thread.

6. A method as in claim 1 , wherein the active devices comprise one or more of the plurality of processors.

7. A method as in claim 1 , wherein the active devices comprise one or more caches.

8. A method as in claim 1 , wherein the active devices comprise one or more non-processor circuitry used by the one or more plurality of processors.

9. A method as in claim 1 , wherein the one or more plurality of processors comprise one or more cores executing a same instruction set.

10. An apparatus, comprising:

a plurality of processors; and

control circuitry, coupled to the plurality of processors, said control circuitry comprising:

core availability circuitry for determining if a core is available to execute a thread;

core affinity circuitry for determining if the core has an affinity for the thread, wherein said determining if the core has an affinity for the thread comprises counting a number of writes by one or more other threads to a cache associated with the core since the thread was last executed by the core;

monitoring circuitry for monitoring one or more characteristics of the apparatus; and

select circuitry for selecting one or more of the plurality of processors to execute the thread based on the affinity for the thread and the one or more characteristics of the apparatus.

11. An apparatus as in claim 10 , wherein the control circuitry further comprises:

threshold circuitry for determining whether the affinity for the thread is less than a threshold; and

circuitry indicating that the core does not have the affinity for the thread if the affinity is less than the threshold.

12. An apparatus as in claim 10 , wherein the threshold circuitry comprises:

storage circuitry for storing a power minimization threshold.

13. An apparatus as in claim 10 , wherein the threshold circuitry comprises:

storage circuitry for storing a performance maximization threshold.

14. An apparatus as in claim 10 , further comprising:

a cache, coupled to one or more of the plurality of processors.

15. An apparatus as in claim 14 , wherein the cache is coupled to operate with two or more of the plurality of processors.

16. An apparatus as in claim 10 , wherein the one or more characteristics of the apparatus comprises power usage of the apparatus.

17. An apparatus, comprising:

a plurality of processors; and

control circuitry, coupled to the plurality of processors, said control circuitry comprising:

core availability circuitry for determining if a core is available to execute a thread;

core affinity circuitry for determining if the core has an affinity for the thread, wherein said determining if the core has the affinity for the thread comprises counting a number of writes by one or more other threads to a cache associated with the core since the thread was last executed by the core;

monitoring circuitry for monitoring performance of the apparatus and for monitoring power usage of the apparatus;

select circuitry for selecting one or more of the plurality of processors to execute the thread based on a selection criteria, said selection criteria comprising the affinity for the thread, a performance of the apparatus, and a power usage of the apparatus;

threshold circuitry for determining if the affinity for the thread exceeds a threshold; and

thread scheduling circuitry, coupled to the core availability circuitry, coupled to the core affinity circuitry, coupled to the monitoring circuitry, coupled to the select circuitry, coupled to the monitoring circuitry, coupled to the select circuitry, and coupled to the threshold circuitry, said thread scheduling circuitry scheduling the thread for execution.

18. An apparatus as in claim 17 , wherein the control circuitry comprises a state machine to implement one or more functions of the core availability circuitry, the core affinity circuitry, the monitoring circuitry, the select circuitry, the threshold circuitry, and the thread scheduling circuitry.

19. An apparatus as in claim 17 , wherein the control circuitry comprises software to implement one or more functions of the core availability circuitry, the core affinity circuitry, the monitoring circuitry, the select circuitry, the threshold circuitry, and the thread scheduling circuitry.

20. An apparatus as in claim 17 , wherein the threshold circuitry comprises:

storage circuitry for storing a power minimization threshold; and

storage circuitry for storing a performance maximization threshold.

Assignments (25)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 28, 2025
From: NXP USA, INC.
To: ASCALE TECHNOLOGIES LLC
Reel/Frame 070026/0838 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 11759915 AND REPLACE IT WITH APPLICATION 11759935 PREVIOUSLY RECORDED ON REEL 040925 FRAME 0001. ASSIGNOR(S) HEREBY CONFIRMS THE RELEASE OF SECURITY INTEREST. Recorded Feb 17, 2020
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP, B.V. F/K/A FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 052917/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 11759915 AND REPLACE IT WITH APPLICATION 11759935 PREVIOUSLY RECORDED ON REEL 040928 FRAME 0001. ASSIGNOR(S) HEREBY CONFIRMS THE RELEASE OF SECURITY INTEREST. Recorded Jan 17, 2020
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 052915/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 11759915 AND REPLACE IT WITH APPLICATION 11759935 PREVIOUSLY RECORDED ON REEL 037486 FRAME 0517. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS. Recorded Dec 10, 2019
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 053547/0421 →
RELEASE OF SECURITY INTEREST Recorded Sep 10, 2019
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 050744/0097 →
CORRECTIVE ASSIGNMENT TO CORRECT THE TO CORRECT THE APPLICATION NO. FROM 13,883,290 TO 13,833,290 PREVIOUSLY RECORDED ON REEL 041703 FRAME 0536. ASSIGNOR(S) HEREBY CONFIRMS THE THE ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS.. Recorded Feb 20, 2019
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: SHENZHEN XINGUODU TECHNOLOGY CO., LTD.
Reel/Frame 048734/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE NATURE OF CONVEYANCE PREVIOUSLY RECORDED AT REEL: 040632 FRAME: 0001. ASSIGNOR(S) HEREBY CONFIRMS THE MERGER AND CHANGE OF NAME. Recorded Sep 21, 2017
From: FREESCALE SEMICONDUCTOR INC.
To: NXP USA, INC.
Reel/Frame 044209/0047 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE PATENTS 8108266 AND 8062324 AND REPLACE THEM WITH 6108266 AND 8060324 PREVIOUSLY RECORDED ON REEL 037518 FRAME 0292. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS. Recorded Feb 1, 2017
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 041703/0536 →
CHANGE OF NAME Recorded Nov 8, 2016
From: FREESCALE SEMICONDUCTOR, INC.
To: NXP USA, INC.
Reel/Frame 040632/0001 →
RELEASE OF SECURITY INTEREST Recorded Nov 7, 2016
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 040928/0001 →
RELEASE OF SECURITY INTEREST Recorded Sep 21, 2016
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP, B.V., F/K/A FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 040925/0001 →
SUPPLEMENT TO THE SECURITY AGREEMENT Recorded Jun 16, 2016
From: FREESCALE SEMICONDUCTOR, INC.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 039138/0001 →
ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS Recorded Jan 13, 2016
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 037518/0292 →
ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS Recorded Jan 12, 2016
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 037486/0517 →
PATENT RELEASE Recorded Dec 21, 2015
From: CITIBANK, N.A., AS COLLATERAL AGENT
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 037354/0683 →
PATENT RELEASE Recorded Dec 21, 2015
From: CITIBANK, N.A., AS COLLATERAL AGENT
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 037356/0143 →
PATENT RELEASE Recorded Dec 21, 2015
From: CITIBANK, N.A., AS COLLATERAL AGENT
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 037354/0688 →
PATENT RELEASE Recorded Dec 21, 2015
From: CITIBANK, N.A., AS COLLATERAL AGENT
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 037356/0553 →
SECURITY AGREEMENT Recorded Nov 6, 2013
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 031591/0266 →
SECURITY AGREEMENT Recorded Jun 18, 2013
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 030633/0424 →
CORRECTIVE ASSIGNMENT TO CORRECT THE PATENT NUMBER 12017968 PREVIOUSLY RECORDED ON REEL 021194 FRAME 0594. ASSIGNOR(S) HEREBY CONFIRMS THE CORRECT NUMBER TO BE 12017988. Recorded Mar 10, 2011
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A.
Reel/Frame 025927/0517 →
SECURITY AGREEMENT Recorded May 13, 2010
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A., AS COLLATERAL AGENT
Reel/Frame 024397/0001 →
SECURITY AGREEMENT Recorded Mar 15, 2010
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A.
Reel/Frame 024085/0001 →
SECURITY AGREEMENT Recorded Jul 7, 2008
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A.
Reel/Frame 021194/0593 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 22, 2008
From: RUSSELL, ANDREW C.; MOYER, WILLIAM C.
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 020425/0643 →