Determining an optimal number of threads per core in a multi-core processor complex

By optimizing thread allocation per core based on I/O operations and lock times, the method addresses inefficiencies in multi-core processor complexes, enhancing performance and reducing latency and lock contention.

DE112020004661B4Active Publication Date: 2024-10-24INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
DE112020004661
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-11-21
Filing Date
2020-11-11
Publication Date
2024-10-24
Estimated Expiration
2040-11-11

AI Technical Summary

Technical Problem

Existing methods fail to optimally determine the number of threads to run on each core in a multi-core processor complex, leading to inefficiencies in processing load and performance, particularly in managing I/O operations and lock contention.

Method used

A method that determines an optimal number of threads per core based on multiple processing measurements, including I/O operations and lock times, to adjust thread availability dynamically, optimizing performance by reducing latency and lock contention.

Benefits of technology

This approach enhances processor performance by dynamically adjusting thread availability to match varying processing loads, minimizing latency and lock contention, thereby improving system efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

A computer program product for determining a number of threads (116) to be executed in cores (108) of a processor complex (102), the computer program product comprising a computer-readable (100, 1402) storage medium on which computer-readable (100, 1402) program code (1416) is embodied, which, when executed, performs operations, the operations comprising: deciding (902) for a first processing measurement based on a greater than zero number of threads (116) to be executed on the cores (108) of the processor complex (102), each core (108) comprising a circuit for independently executing a plurality of threads (116); determining (904) an optimal number of threads (116) to be made available for execution on the cores (108) based on the first processing measurement, the optimal number being greater than zero;Decide (906) for a second processing measurement based on the number of threads (116) running on the cores (108), the first processing measurement being different from the second processing measurement; Decide (908) for an adjustment based on the second processing measurement; Apply (910) the adjustment to the optimal number of threads (116), resulting in an adjusted number of threads (116) greater than zero and different from the optimal number of threads (116) to be made available for execution on the cores (108); Allocate (912) the adjusted number of threads (116) among the cores (108) to determine an available number of threads (116) for each of the cores (108);For each core (108) of the cores (108), Perform: Specify (914) at least one of the number of threads (116) determined to be available for the core (108) as available for executing instructions (306); and Specify (914) at least one of the number of threads (116) determined to be available for the core (108) as idle (306); and Execute the instructions on the cores (108) using the number of threads (116) available.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present invention relates to a computer program product, a system and a method for determining a optimal number of threads to be made available per core in a multi-core processor complex in order to to carry out tasks. BACKGROUND

[0002] In a processor chip or complex that provides simultaneous multithreading, multiple cores can be a processor chip can implement several threads that are executed simultaneously to reduce operating loads parallelize. Each core on the processor chip requires hardware, cache such as L1 and L2 cache and pipeline Hardware for this core. The threads on a core share the core hardware. Furthermore, each thread can have dedicated resources in the core such as a subset of pipeline resources, and threads on the Cores can share caches such as the L2 and L3 caches that are available to a core. Each Core can also have a dedicated L1 cache.

[0003] The cores on the processor chip can operate in different modes to limit the number of threads on to dynamically change the cores that are available for processing or are in an idle state. Typically, a user issues commands to control how many are running on each core, which can cause the Planning of tasks that the core should process.

[0004] There is a need in the art for improved techniques for determining an optimal number of threads that running on each core in a multi-core system, and to change the available threads running on each core to achieve the optimal number of threads.

[0005] US 2005 / 0 081 204 A1 describes a method for managing a mutex in a Data processing system. For each mutex, the number of threads waiting in a queue is counted, to acquire a mutex. If a thread tries to acquire a locked mutex, it will exit depending on restrictive conditions and the number of threads waiting in a queue during the attempted acquisition, into a Spin state or a sleep state. In addition, the relative amount of time a thread needs to to remain in a waiting loop on a mutex after having already been in a sleep state on the mutex can be used to regulate the number of threads waiting on the mutex may.

[0006] US 2016 / 0 335 132 A1 describes a computer program product, a system and a method for Managing processor threads of a large number of processors. In one example, a performance parameter of the computing system, and the configurations of one or more processor nodes are determined depending on the measured performance parameters are dynamically adjusted. In this way, the number of processor threads that executed simultaneously by the multitude of processor nodes of the computer system, dynamically in real time adjusted while the system is operating to improve the performance of the system when it is under different operating conditions.

[0007] US 2014 / 0 143 789 A1 describes techniques for dynamically adjusting the number of threads for the Execution in any domain based on domain utilization. In a multiprocessor system, the The utilization of the individual domains is monitored. If the utilization of one of these domains changes, the number of of the threads for each of the domains intended for execution must be adjusted to accommodate the change to adapt. SUMMARY

[0008] The objects underlying the invention are each achieved with the features of the independent Patent claims are resolved. Embodiments of the invention are the subject of the dependent patent claims.

[0009] A computer program product, a system and a method for determining an optimal Number of threads to be made available per core in a multi-core processor complex to perform tasks A decision will be made for an initial processing measurement based on by threads running on the cores of the processor chip, each core having a circuit to independent execution of a plurality of threads. A determination of a number of threads that are cores is determined based on the first processing measurement. Decision made for a second processing measurement based on the threads running on the cores of the A decision is made to adapt to the determined number of of threads to be executed based on the second processing measurement, resulting in a adjusted number of threads. The adjusted number of threads on the cores is used to execute Instructions used.

[0010] With the above embodiment, on the basis of two different processing measurements to optimize two different processing attributes, an optimal number of threads is determined, which are based on several cores in a multi-core processor. A first processing measurement is Determining an optimal number of threads is used to optimize the first processing factor, and then a second processing measurement is used to adjust the determined optimal number of threads to work on a alternative measurement to provide two-factor optimization.

[0011] In a further embodiment, the first processing measurement comprises a number of input / output Operations (I / O operations) from threads running on the cores of the processor complex, and where the second processing measurement has a number of threads that is based on the determined number of I / O Operations should be performed on the cores.

[0012] With the above embodiment, the optimal number of threads for optimizing for a number of E / A operations, which increases the number of available threads as the number of I / O operations increases increased to maintain performance as I / O load increases.

[0013] In a further embodiment, an allocation of ranges of lock spin times and Maintain adjustments to the determined number of threads. A decision is made to adjust to the determined number of threads that fall within a range of lock times, including the determined lock time, belong to.

[0014] With the above embodiment, the optimal number is further adjusted based on the lock time and optimized to try to reduce the lock time, which affects performance. As the lock time increases the adjustment to reduce the number of threads increases to reduce available threads, thereby reducing lock contention and lock time of the entire system.

[0015] In a further embodiment, the determined number of threads executing on each core are intended to have less than a number of threads available to run independently on each core. Tasks are only scheduled to run on the determined number of threads on each core, resulting in at least a thread is left idle with a majority of cores.

[0016] With the above embodiment, threads are effectively idle by only allowing tasks to Execution on the determined number of threads and not on the idle threads. This avoids the Need to take the processor complex offline to reconfigure available threads by the processor cores are left online, but the scheduling function is used to avoid tasks be scheduled for idle cores.

[0017] In a further embodiment, the first processing measurement comprises a blocking time that determines the processing time on the cores executing threads wait to acquire locks on resources, and the second processing measurement indicates one from a number of I / O operations from the threads running on the cores and a main memory bus traffic between the cores and the core-shared main memory.

[0018] With the above embodiment, the optimal number is determined based on the blocking time for reducing Threads are selected to reduce the locking time. The optimal number can be determined depending on the number of operations to second optimization based on the number of operations can be further adjusted, for example increased.

[0019] Also provided are a computer program product, a system and a method for determining a optimal number of threads to be made available per core in a multi-core processor complex in order to Tasks are performed. A determination of the number of input / output operations (I / O operations) from threads is which are executed on the cores of the processor complex, each core having a circuit for independent execution of a plurality of threads. A determination of a number of threads that are cores is determined based on the number of I / O operations determined. The determined number of threads on the cores is used to execute instructions.

[0020] With the above embodiment, the number of threads is determined based on the I / O operations to to select an optimal number based on the level of I / O operations in the complex to increase with increasing Number of I / O operations to maintain performance.

[0021] Also provided are a computer program product, a system and a method for determining a optimal number of threads to be made available per core in a multi-core processor complex in order to Tasks are executed. A blocking time is determined that the threads running in the cores wait to acquire locks on computational resources. A determination of the number of threads waiting for the cores are to be executed, based on the determined lock time. The determined number of Threads on the cores are used to execute instructions.

[0022] With the above embodiment, the optimal number of threads is determined based on the lock time determines which threads are waiting to access computational resources to find an optimal number to reduce the lock contention and lock time, improving system performance by reducing latency to obtain locks is reduced. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 illustrates one embodiment of a data processing environment. Fig. 2 illustrates an embodiment of thread information for the cores of a Processor complex realized threads. Fig. 3 illustrates an embodiment of thread availability information for a core realized thread. Fig. 4 illustrates an embodiment of an optimal number of threads for a range of input / Output operations (I / O operations). Figure 5 illustrates an embodiment of optimal threading for a table of I / O operations. Fig. 6 illustrates an embodiment of a lock time adjustment for an optimal number of threads for a range of lock times for all threads. Figure 7 illustrates an embodiment of a table of lock time adjustments to determine the optimal number of to adjust threads. Fig. 8 illustrates an embodiment of operations for determining and using an optimal Number of threads per core based on I / O operations and lock time. Fig. 9 illustrates another embodiment of operations for determining and using a optimal number of threads per core based on the first and second processing measurements. Fig. 10 illustrates an embodiment of an optimal number of threads for a table of Blocked time areas. Fig. 11 illustrates an embodiment of a table of adjustments of I / O operations to optimal number of threads. Fig. 12 illustrates an embodiment of operations for determining and using an optimal Number of threads per core based on I / O operations. Fig. 13 illustrates an embodiment of operations for determining and using an optimal Number of threads per core based on lock times. Fig. 14 illustrates a data processing environment in which components of Fig. 1 can be implemented can. DETAILED DESCRIPTION

[0023] Described embodiments represent improvements in computer technology for determining an optimal Number of threads to be executed on cores of a processor complex to enable simultaneous Multithreading of tasks on the threads. Described embodiments determine an optimal Number of threads to be executed on cores of the processor complex that have one or more Processing measurements are taken into account in order to determine the to optimize performance.

[0024] Described embodiments further provide improvements in operations for adapting the optimal Number of threads to be made available on each processor core by entering thread Availability information the optimal number of threads per core as available and other cores as in idle, so that tasks are only scheduled on the threads that are considered to be in a core available. This avoids delays that cause cores to go offline be taken to reconfigure the threads that are available in each core or are idle by separating the available and idle threads into separate thread Availability information must be provided.

[0025] Described embodiments may provide an optimal number of threads to be made available per core that takes into account several processing measurements and attributes, such as the number of I / O operations of the threads running on the cores, cross-memory bus traffic between the cores, through the cores shared main memory, lock time that the threads running on the cores wait to acquire locks on resources, etc. In one embodiment, the optimal number of threads may be determined by First, an optimal number of threads is determined based on the determined number of I / O operations, to be executed on the cores, and then based on a determined blocking time, the threads spend waiting for locks on computational resources to become available, an adjustment to the determined optimal number of threads to be executed is determined.

[0026] Fig. 1 illustrates an embodiment of a data processing system 100 that includes a plurality of Processor complexes 102 , 102 ... 102 , which are connected via a main memory interface 104 to a common 1 2 n used main memory 106. Each processor complex 102 can have a plurality of processing cores i 108 , 108 , 108 , 108 , each having an onboard L1 cache 110 , 110 , 110 , 110. Each pair of 1 2 m-1 m 1 2 m-1 m Cores such as 108 , 108 and 108 , 108 can have an L2 cache 112 ...112 and a larger L3 cache 114 ... 1 2 m-1 m 1 m / 2 1 ® ® 114, such as the POWER9 processor from International Business Machines (IBM). Each m / 2 Processor complex 102 may comprise a single-chip module (SCM). L3 cache 114 may comprise a ii embedded dynamic random access memory (DRAM).

[0027] Each core 108 may include hardware and circuitry for independently executing threads 116i to provide i Parallelization of workloads and simultaneous multithreading of threads 116i across the cores 108 , 108 1 2 and 108 , 108 . Simultaneous multithreading allows a single core 108 , m-1 mi Allocate instructions from different threads 116 simultaneously. i

[0028] The shared main memory 106 contains program components executed by one or more of the Threads 116 are executed, including a thread manager 120 for managing the availability of the threads i 116 in the cores 108 ; a task scheduling function 122 for scheduling tasks for the threads 116 ; thread- iii Information 200, which contains information about processing I / O operations, and lock times, the threads 116 i wait to acquire locks on resources; thread availability information 300 indicating availability of the Threads 116 on the cores 108 for receiving tasks; a lock manager 124 for managing a ii Access of locks to computation resources 126 such as read / write queues, ´´Longest not used" lists (LRU = Least Recently Used), memory, processing and other computing resources in the system 100; optimal threads for I / O operations 400, which provide optimal numbers of threads required for different ranges of I / O operations are to be made available; and lock time adjustments 600, which Provide adjustments to the optimal number of threads for different ranges of lock times.

[0029] In alternative embodiments, other arrangements of the cores may be used when sharing L2 and L3 cache as shown in Fig. 1.

[0030] In the embodiment of Fig. 1, the main memory 106 is located outside the processor complexes 102 ... 1 102 . In alternative embodiments, each processor complex 102 may have a shared main memory no for all cores 108 embedded in the processor complex 102. The program components 120, 122, 124 ii and data 200, 300, 400 and 500 are shown in the shared main memory 106. For further Embodiments may store some or all of these program components and information in the L3 cache 114 or i maintained in the L2 cache 112. The L2 cache 112 can be used to cache data ii that have been removed from the L1 cache 110, and the L3 cache 114 can be used to cache data ii that were removed from the L2 cache 112. i

[0031] In one embodiment, each processor complex 102 may execute a separate instance of the program components i 120, 122, 124 and data 200, 300, 400 and 500 are maintained in the shared main memory 106. In further embodiments, a set of program components 120, 122, 124 and data 200, 300, 400 and 500 be available to allocate To manage threads across the processor complexes 102 ...102. 1 n

[0032] The term ´´processor complex´´ can also refer to a ´´processing unit´´, a ´´processor´´, a ´´processor chip´´ etc. The cores 108 can implement the threads 116 in hardware circuits to perform tasks ii in one or more integrated circuits. Furthermore, the processor complex, the cores and the Threads have virtual processing components that perform operations with respect to a virtual processor complex, virtual cores, threads, virtual memory and cache that are in a physical host, physical Processing and main memory resources are realized.

[0033] In certain embodiments, the data processing system 100 includes a memory controller that Provides access to shared non-volatile memory.

[0034] The main memory 106 may include one or more volatile or non-volatile main memory units such as a dynamic random access memory (Dynamic Random Access Memory, DRAM), a phase change memory (phase change memory (PCM), a magnetoresistive random-access memory (MRAM), a spin-transfer torque MRAM (STT-MRAM), SRAM memory units; a DRAM, a ferroelectric Ferroelectric random-access memory (FeTRAM), non-volatile nanowire memory and direct- In-line memory modules (DIMMs), a NAND memory, e.g. a flash memory, a semiconductor disk memory (solid State Drive, SSD), non-volatile RAM, etc.

[0035] Fig. 2 illustrates an embodiment of the thread information 200 used for threads 116 in cores 108 ii a processor complex 102 and includes: a total number of I / O operations performed during i a measurement period on all threads 116 ...116 in the processor complex 102; a number 1 mi used threads 204, which may have less than all threads 116 ...116, with some threads on each core 108 1 mi be left idle; a number of cores 206 on the processor complex 102; a maximum number of i threads 208 available to the processor complex 102, which are implemented in all cores 108; blocking times over ii across all threads 210, such as in processor cycles that all threads 116 ...116 have to wait to get from the 1 m Lock manager 124 to obtain a lock to access computation resources 126.

[0036] Fig. 3 illustrates an embodiment of thread availability information 300 used for a i specific core 108 and a specific thread 116, and includes: the core 302; the thread ij 304; an idle / available flag 306 indicating whether the thread 304 is idle and has no tasks receives or is available to receive tasks from the task scheduling function 122; assigned Tasks 308 assigned to thread 304 on core 406; and a task queue 310 into which assigned tasks for thread 304 are queued for execution. The task scheduling function 122 may Use load balancing to assign tasks to threads 116 in cores 108 in a processor complex 102. jii

[0037] Fig. 4 illustrates an embodiment of an entry 400 in the optimal threads for I / O operations and i includes: a range of I / O operations 402 and an adjustment 404 of the maximum threads for the range 402. For example, the adaptation 404 may have a percentage of the maximum number of threads 208, where the Percentage increased for areas with a larger number of I / O operations, as more threads are needed to larger number of I / O operations to maintain the performance of the system 100.

[0038] Fig. 5 illustrates an example of an embodiment of the table 500 of optimal threads for I / O operations such as the Table 400 provides different percentages of the maximum number of threads 208 for different areas of I / O operations, with the optimal number of threads at higher ranges of I / O operations increased.

[0039] Fig. 6 illustrates an embodiment of an entry 600 in the lock time thread adjustment table 600 and i comprises: a range of blocking times CPU cycles for all threads 602 for a measurement period; and a corresponding Adjustment to the optimal number of threads 604. The adjustment 604 can specify a percentage to reduce the determined optimal number of threads, with the percentage reduction at higher ranges of Lock time 602 increases. To reduce the latency from higher values ​​of lock times, the number in execution threads in order to reduce the extent of lock contention when accessing Computational resources 126. As the locking time for all threads increases, the Percentage reduction to the optimal number of threads to reduce the number of threads that contribute to the Contribute to the competitive situation.

[0040] Fig. 7 provides an example of an embodiment of the adjustments to the lock time thread adjustment table 600 that provides different percentage reductions to the optimal number of threads, with the percentage reduction at areas of higher percentages of CPU cycles spent waiting for locks, i.e. lock time become.

[0041] Fig. 8 illustrates an embodiment of operations performed by the thread manager 120 to determine threads to be made available to the task scheduling function 122 in order to Tasks and threads 116 in idle mode. The operations of Fig. 8 can be executed at regular intervals i be performed to adjust the number of threads 116 per core 108 in order to reduce both the processing latency at E ii / A operations as well as the lock contention situation. After initiating (at block 800) Operations to adjust the number of threads 116 for task scheduling in each core 108 are determined by the thread ij Manager 120 (at block 802) a total number of I / O operations 202 from threads 116 ...116 that were executed during a 1 m measurement period on the cores 108 ...108 of the processor complex 102. A determination of a 1 mi optimal number of threads 404 corresponding to the range of I / O operations 402, among others the determined Total number of I / O operations across threads 202 is taken (at block 804) from the table 400 of optimal Threads for I / O operations such as Table 500 (Fig. 5). The determined optimal number of threads has the maximum number of threads 208 per core 108, adjusted by the value in field 404 of the determined entry 400 ii specified percentage, which includes the range of I / O operations 402, including the determined number of I / O Operations on the 108 cores during the measurement period. i

[0042] The thread manager 120 determines (at block 806) a lock time that all the threads executed on the cores 108 ...108 1 m Threads 116 ...116 wait 210 to acquire locks on computation resources 126. A decision is made for 1 m an adjustment 604 to the determined optimal number of threads from the lock time adjustment table 600 (at block 808) based on the determined lock time. For example, entry 600 in table 600 of the i Lockout time adjustments are determined, which contains a range of lockout times 602, including the determined lockout time, the all threads 116 have waited 210, and the adjustment 604 is determined from the determined entry 600. The ii determined adjustment is applied (at block 810) to the determined optimal number of threads to obtain an adjusted optimal number of threads. The adjusted optimal number of threads, which improves both the performance of I / O Operations as well as the lock contention situation is optimized, is (at block 812) by the number of cores 206 to create an optimal number of threads available per core. For each core 108, the i Thread manager 120 (at block 814) threads as available in the thread availability information 300 for i the optimal number of available threads per core in core 108 and indicates threads as idle i located in thread availability information 300 for threads in core 108 that are not available ii For example, if there are four threads per core and three threads is the optimal number of threads per core that must be available, the thread availability information gives 300 for three threads (optimal i Number) of these threads as available in field 306, and the thread availability information 300 for a i Thread indicate this one thread as idle in field 306. The number of I / O operations on all Threads 202 and the lock time across all threads 210 are cleared (at block 816), so that new measurements for the next measurement period, which will be used in the next instance of operations of Fig. 8 to adjust the optimal number of available threads.

[0043] With the embodiment of Fig. 8, an optimal number of threads to be made available per core to determine the available number of threads to minimize latency in I / O operations optimize by increasing the number of threads as I / O operations in the system 100 increase, and the Number of threads is reduced when the locking time is increased due to an increasing lock contention situation as a result of a larger number of parallel working threads.

[0044] Further described embodiments avoid delays in adapting the processor complex 102 available optimal number of threads by using thread availability information 300 in i Main memory 106 is updated to indicate the available and idle threads. The task scheduling function 122 only schedules tasks on threads 116 that are specified in the thread availability information 300 i are indicated as available. This updates the number of threads that can be used per core i made available and are idle without the need to reconfigure the 108 cores. i

[0045] Fig. 9 illustrates another embodiment of operations performed by the thread manager 120 to determine threads that should be made available to the task scheduling function 122 to perform tasks and idle threads 116. The operations of Fig. 9 can be performed at regular intervals i to adjust the number of threads 116 per core 108 to optimize several factors ii After initiating (at block 900) operations to adjust the number of threads 116 to i Task scheduling in each core 108, the thread manager 120 (at block 802) places a first processing measurement on the j Based on threads 116 ...116 running on cores 108 ...108 of the 1 m 1 m Processor complex 102. Determining an optimal number of threads that can be executed on the cores 108 i1 ...108 are to be executed is made (at block 904) on the basis of the first processing measurement. m

[0046] The thread manager 120 sets (at block 906) a second processing measurement based on threads 116 1 ...116 that are executed on the cores 108 ...108 of the processor complex 102 during the measurement period. m 1 mi A determination of an adjustment to the determined optimal number of threads is made (at block 908) based on the second processing measurement. The determined adjustment is (at block 910) applied to the determined optimal Number of threads to generate an adjusted optimal number of threads. The adjusted optimal Number of threads optimized based on both the first and second processing measurements is (at block 912) divided by the number of cores 206 to determine an optimal number of available per core To create threads. For each core 108, the thread manager specifies 120 (at block 914) threads as available i in the thread availability information 300 for the optimal number of available threads per core in i Core 108 and indicates threads as idle in thread availability information 300 for threads in core 108 ii that are not listed as available. For example, if there are four threads per core and three i Threads are the optimal number of threads per core that must be available, the thread Availability information 300 for three threads (optimal number) these threads as available in field 306 i and the thread availability information 300 for a thread indicates that one thread as being idle i in field 306. The first and second processing measurements are deleted (at block 916) so that new measurements for the next measurement period, which will be used in the next instance of operations of Fig. 9 to adjust the optimal number of available threads.

[0047] With the embodiment of operations of Fig. 9, an optimal number of threads is determined that per core to be made available to limit the available number of threads based on several different processor measurements. In one embodiment, the first processing measurement at least one of a number of I / O operations from the threads executing on the cores, main memory bus traffic between cores, main memory operations, etc., and the second Processing measurement may show lock time that the threads running on the cores wait to acquire locks on resources. In another embodiment, the first processing measurement may include a blocking time that the threads running on the cores wait to acquire locks on resources, and the second Processing measurement indicates at least one of a number of I / O operations from those executed on the cores Threads and a cross-memory bus traffic between the cores, which is shared by the cores used main memory, etc. Additional use of computing resources that increases system performance impaired, can also be considered for the first and second processing measurements in order to To make optimizations to several processing measurements.

[0048] Figures 10 and 11 provide an embodiment of the adjustment tables when the first Processing measurement has a lock time that the threads running on the cores wait to acquire locks on resources, and the second processing measurement is the number of I / O operations from the cores executed threads. Fig. 10 shows how percentages of blocking times 1002 correspond to different numbers of optimal number of threads 1004, where the optimal number of threads is defined as a percentage of the maximum Number of threads 208 is calculated, which are available on the cores 108 ...108. The different 1 n Ranges of blocking times 1002 are thus assigned different percentages of the maximum number of threads 1004 assigned.

[0049] After calculating the optimal number of threads using Fig. 10 and the lock times, can be adapted to the optimal number of threads based on the range of I / O operations as shown in Fig. 11 Fig. 11 shows adjustments to the optimal Number of threads 1104 with different I / O areas 1102. With the increase of the areas of I / O Operations 1102, the adaptation 1104 to the determined optimal number of threads decreases, since more threads needed to maintain performance over larger ranges of I / O operations.

[0050] Fig. 12 illustrates another embodiment of operations performed by the thread manager 120 be performed to determine threads that are made available to the task scheduling function 122 to execute tasks and threads 116 based only on idle I / O operations. i Operations of Fig. 12 can be performed at regular intervals to increase the number of threads 116 per i Core 108 to reduce both I / O processing latency and lock contention. i After initiating (at block 1200) operations to adjust the number of threads 116 to i Task scheduling in each core 108, the thread manager 120 determines (at block 1202) a total number of I / O j Operations 202 from threads 116 ...116 executed during a measurement period on cores 108 ...108 of the 1 m 1 m processor complex 102. A determination of an optimal number of threads 404, which corresponds to the range of i I / O operations 402 corresponds, among other things, to the total number of I / O operations determined across threads 202 , is (at block 1204) from the table 400 of optimal threads for I / O operations such as the table in Fig. 5 The optimal number of threads determined is 208 per core, i adjusted by the percentage specified in field 404 of the determined entry 400, which represents the range of I / O operations i 402 contains, among other things, the determined number of I / O operations on the cores 108 during the measurement period. i

[0051] Fig. 13 illustrates another embodiment of operations performed by the thread manager 120 be performed to determine threads that are made available to the task scheduling function 122 to execute idle tasks and threads 116 only based on the lock time 210, all of which are based on the i Threads running on cores wait to acquire locks on computational resources. The operations of Fig. 13 can be performed at regular intervals to adjust the number of threads 116 per core 108, ii to minimize both I / O processing latency and lock contention. After the Initiating (at block 1300) operations to adjust the number of threads 116 to perform tasks in each core 108 ij schedule, the thread manager 120 determines (at block 1302) a blocking time that all the threads executed in the cores 108 ...108 1 m Threads 116 ...116 wait 210 to acquire locks on computation resources 126. From the optimal number of 1 m Threads for the blocking times 1000 (Fig. 10) a determination of a percentage of the maximum number of threads 1004 (at block 1304) which has the optimal number of threads corresponding to the range of Lock times 1002, including the lock time 120 determined across all threads 202. The determined The optimal number of threads has a maximum number of threads of 208 per core of 108, adjusted by a i Percentage shown in column 1004 of Fig. 10 for the determined blocking time range 1002, among others the lock time determined across all threads during the measurement period 210.

[0052] In the described embodiment, the variables i, j, m, n, etc., when used in connection with different elements refer to the same or a different instance of that element.

[0053] The present invention may be a system, a method and / or a computer program product The computer program product may be a computer-readable storage medium (or media) containing computer-readable program instructions for operating a processor cause aspects of the present invention to be carried out.

[0054] The computer-readable storage medium may be a material unit on which Instructions for use by a unit for the execution of instructions must be kept and stored The computer-readable storage medium may, for example, be, but is not limited to, be an electronic storage unit, a magnetic storage unit, an optical storage unit, a electromagnetic storage unit, a semiconductor storage unit or any suitable combination of A non-exhaustive list of more specific examples of the computer-readable Storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable read-only memory in the form of a compact Disc (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanically encoded device such as for example punched cards or raised structures in a groove with instructions recorded thereon or any suitable combination of the foregoing. Computer-readable storage medium as used herein shall not be interpreted as meaning volatile Signals themselves, for example radio waves or freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g. a light pulses passing through a fiber optic cable) or electrical signals transmitted via a cable.

[0055] Computer-readable program instructions described herein may be transmitted over a network, for example the Internet, a local area network, a wide area network and / or a wireless network from a Computer-readable storage medium to the relevant data processing units or to an external computer or an external storage device. The network can use copper transmission cables, Fiber optic transmission cables, wireless transmission, routers, firewalls, switches, gateway computers and / or edge servers A network adapter card or a network interface in the data processing unit receives computer-readable program instructions from the network and forwards the computer-readable program instructions readable program instructions for storage in a computer-readable storage medium within the respective data processing unit.

[0056] In computer-readable program instructions for performing operations of the present Invention can be assembly instructions, ISA instructions (ISA = Instruction Set Architecture), Machine instructions, machine-dependent instructions, microcode, firmware instructions, data for setting states or either source code or object code that can be used in any combination of one or more Programming languages ​​are written, which include an object-oriented programming language such as Java, Smalltalk, C++ or similar and conventional procedural programming languages ​​such as programming language 'C' or similar programming languages. The computer-readable Program instructions may be executed entirely on the user’s computer, partially on the user’s computer, as a standalone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can communicate with the user’s computer via a any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, via the Internet using an Internet Service Provider). In some embodiments, electronic circuits, including, for example, programmable Logic circuits, field-programmable gate arrays (FPGA) or programmable logic devices (PLAs) that execute computer-readable program instructions, by using state information from computer-readable program instructions to electronic circuit so that aspects of the present invention are carried out.

[0057] Aspects of the present invention are described herein with reference to flowchart illustrations and / or Block diagrams of methods, devices (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowcharts and / or block diagrams and Combinations of blocks in the flowcharts and / or block diagrams using computer-readable program instructions can be realized.

[0058] These computer-readable program instructions may be provided to a processor of a general-purpose computer, a special purpose computer or other programmable data processing device to provide a machine so that the instructions transmitted via the processor of the computer or other programmable Data processing devices, provide means for processing the data contained in a block or blocks of the Flowchart(s) and / or block diagram(s) specified functions / actions. These computer-readable program instructions can also be a computer-readable medium capable of supporting a computer, other programmable can instruct data processing devices or other units to function in a particular way, so that the computer-readable medium having instructions stored thereon comprises a product which Contains instructions that execute the instructions contained in a block or blocks of the flowcharts and / or block diagrams realize the specified function / action.

[0059] The computer-readable program instructions can also be written into a computer ter, into other programmable data processing devices or into other units in order to cause the computer, other programmable devices or other units to perform a series of operations to create a computer-implemented process, so that the instructions on the computer, on other programmable devices or units embodied in a block or in a implement the functions / actions specified in the blocks of the flowcharts and / or the block diagrams.

[0060] The flowcharts and block diagrams in the figures illustrate the architecture, functionality and Mode of operation of possible implementation forms of systems, methods and computer program products according to various embodiments of the present invention. In this context, each block in the Flowcharts or block diagrams represent a module, segment or section of instructions that or one or more executable instructions for implementing the specified logic function or Logic functions. In some alternative implementations, the functions specified in the block be executed in a different order than that shown in the figures. For example, two consecutive blocks are actually executed essentially simultaneously, or the blocks can be according to the functionality associated with the blocks, sometimes executed in reverse order. Furthermore, it should be noted that each block of the block diagrams and / or flowchart representations as well as combinations of blocks in the block diagrams and / or flowchart representations using dedicated hardware-supported Systems for performing the specified functions or actions or by means of combinations of dedicated hardware and dedicated computer instructions.

[0061] The calculation components Fig. 1 can be implemented in one or more computer systems such as the in Fig. 14 shown computer system 1402. The computer system / server 1402 can generally context of instructions executable on a computer system, such as Program modules that are executed by a computer system. Program modules can generally be routines, Contain programs, objects, components, logic and data structures, etc. that perform specific tasks or realize certain abstract data types. The computer system / server 1402 can be used in distributed cloud computing be practically realized in environments where tasks are performed by remote processing units connected via a data transmission network. In a distributed cloud computing environment, program modules are located on both local and remote computer system storage media, including main memory units.

[0062] As shown in Fig. 14, the computer system / server 1402 is in the form of a general purpose data processing unit The components of the computer system / server 1402 may include, but are not limited to, one or several processors or processing units 1004 such as the processor complex 102 in Fig. 1, a i System main memory 1406 such as the shared main memory 106 in Fig. 1 and a bus 1408 which connects various system components, including the system main memory 1406, to the processor 1404. The Bus 1408 represents one or more of any of various types of bus structures, including a memory bus or a memory controller, a peripheral bus, an accelerated graphics port and a processor bus or local bus, that use any of a variety of bus architectures. By way of example and not limitation, such architectures an ISA bus (ISA = Industry Standard Architecture), an MCA bus (MCA = Micro Channel Architecture), the EISA bus (EISA = Enhanced ISA), a local VESA bus (VESA = Video Electronics Standards Association) and a PCI bus (PCI = Peripheral Component Interconnects).

[0063] The computer system / server 1402 typically includes a variety of media that are supported by computer systems Such media can be any available media to which the computer system / server 1402 can access, and these media include both volatile and non-volatile Media, removable and non-removable media.

[0064] The system main memory 1406 may include computer system-readable media in the form of volatile memory such as Random Access Memory (RAM) 1410 and / or cache 1412. The Computer system / server 1402 may further include other removable / non-removable, volatile / non-volatile Computer system storage media. For example only, a storage system 1413 may be configured to read from a and writing to a non-removable, non-volatile magnetic medium (not shown and usually referred to as Although not shown, a magnetic disk drive for reading one and writing to a removable non-volatile magnetic disk (e.g. a ´´floppy disk´´) and an optical Disk drive for reading from or writing to a removable, non-volatile optical disk such as a CD- ROM, DVD-ROM or other optical media. In such cases, any of these units may be connected to the bus 1408 through one or more data media interfaces. As further shown and described below, the memory 1406 may contain at least one program product that represents a group (e.g. at least one) of program modules configured to perform the functions of embodiments of the invention.

[0065] A program / utility 1414 containing a group (at least one) of program modules 1416, may be used as an example and not as a limitation in main memory 1406 as well as in an operating system, in one or stored in several application programs or in other program modules and program data. Each of the Operating systems, one or more application programs, other program modules and program data or a A certain combination thereof may contain a form of implementation of a networking environment. Components of the computer 1402 may be implemented as program modules 1416 that generally perform the functions and / or methodologies of embodiments of the invention described herein. The systems of Fig. 1 can be one or more computer systems 1402, wherein in their implementation in several Computer systems 1402 the computer systems can exchange data over a network.

[0066] The computer system / server 1402 may also communicate with one or more external devices 1418 to exchange data exchange, for example with a keyboard, a pointing device, a display unit 1420, etc.; with one or more Units that allow a user to interact with the computer system / server 1402; and / or with any devices (e.g., network card, modem, etc.) that allow the computer system / server 1402 to communicate with a or several other data processing units. Such data exchange can be carried out via Input / output interfaces (I / O interfaces) 1422. In addition, the computer system / server 1402 exchange data with one or more networks via a network adapter 1424, for example with a local area network (LAN), with a general wide area network (WAN) and or with a public network (e.g., the Internet). As shown, the network adapter 1424 exchanges data over the bus 1408 data with the other components of the computer system / server 1402. It should be clear that, although not depicted, other hardware and / or software components in connection with the computer system / server 1402 Examples include, but are not limited to: microcode, device drivers, redundant processing units, external hard disk arrays, RAID systems (RAID = Redundant Array of Independent Disks), tape drives, data archiving storage systems, etc.

[0067] The terms an ´´embodiment´´, embodiment", ´´embodiments", ´´the embodiment´´, ´´the embodiments”, “one or more embodiments”, “some embodiments” and “a Embodiment´´ means ´´one or more (but not all) embodiments of the present invention(s)´´, unless expressly stated otherwise.

[0068] The terms ´´among others´´, ´´have / having´´, ´´has / have´´ and variations thereof mean ´´including, but not limited to´´, unless expressly stated otherwise.

[0069] All numbered lists of elements do not imply that any or all of the Elements are mutually exclusive unless expressly stated otherwise.

[0070] The terms ´´a´´ and ´´the´´ mean ´´one or more´´, unless expressly stated otherwise. unless otherwise stated.

[0071] Units that are connected to each other do not need to be continuously connected to each other unless expressly stated otherwise. In addition, related Units exchange data directly or indirectly with each other via one or more intermediary units.

[0072] A description of an embodiment in which several components are interconnected, does not imply that all these components are required. Rather, a variety of optional Components are described to illustrate the wide variety of possible embodiments of the present invention illustrate.

[0073] When a single unit or item is described herein, it will be readily apparent that more than one unit / item (regardless of whether they work together) instead of a single unit / a single item. Likewise, if more than one unit or more than one item is described herein (regardless of whether they work together), it is readily apparent that a single unit or object or other Number of units / items may be used instead of the number of units or programs shown The functionality and / or features of a unit may alternatively be provided by one or more other units that are not explicitly described as containing this functionality / features. Therefore Other embodiments of the present invention need not include the unit itself.

[0074] The above description of various embodiments of the invention has been presented for the purpose of illustration and description is presented. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of the above teachings. It is not intended to limit the scope of the invention by this detailed description, but rather by the claims appended hereto. The foregoing detailed description, examples, and data constitute complete description of the manufacture and use of the structure of the invention. Since many embodiments of the invention without departing from the scope of the invention, the invention is in the set forth in the claims attached hereto.

Claims

1. Computer program product for determining a number of threads (116) to execute in cores (108) of a Processor complex (102), wherein the computer program product is a computer (100, 1402) readable storage medium on which program code (1416) readable by a computer (100, 1402) is embodied, which when executed, performs operations, where the operations include: Deciding (902) for a first processing measurement based on a greater than zero number of Threads (116) executed on the cores (108) of the processor complex (102), each core (108) having a Circuitry for independently executing a plurality of threads (116); Determining (904) an optimal number of threads (116) to be made available for execution on the cores (108) should be calculated based on the first processing measurement, with the optimal number being greater than zero; Deciding (906) for a second processing measurement based on the number of threads (116) running on the cores (108), wherein the first processing measurement is dependent on the second processing measurement is different; Deciding (908) to make an adjustment based on the second processing measurement; Applying (910) the adjustment to the optimal number of threads (116), resulting in an adjusted number of threads (116) which is greater than zero and differs from the optimal number of threads (116) required to execute are to be made available on the cores (108); Allocating (912) the adjusted number of threads (116) among the cores (108) to provide an available number of threads (116) for each of the cores (108); for each core (108) of the cores (108), perform: Specifying (914) at least one of the available number of threads (116) determined for the core (108) as available to execute instructions (306); and Specifying (914) at least one of the available number of threads (116) determined for the core (108) as idle (306); and Executing the instructions on the cores (108) using the available number of threads (116).

2. The computer program product of claim 1, wherein the deciding for the first processing measurement comprises a Decide on a number of input / output operations (I / O operations) from the number of threads (116) executed on the cores (108), and wherein the decision for the adaptation is based on a blocking time (lock spin time) based on the number of threads (116).

3. The computer program product of claim 2, wherein determining the optimal number of threads to be executed (116) has: Maintaining an association (500) of a plurality of areas (402, 1102) of a number of I / O operations and Adaptations (404) to a maximum number (208) of threads (116) that are available for execution on the cores (108) available; Determining an adjustment (404) to the maximum number (208) of threads (116) assigned to a range (402, 1102) of I / O operations, including the determined number of I / O operations; and Calculating the optimal number of threads (116) by applying the determined adjustment (404) to the maximum Number (208) of threads (116) available to execute on the cores (108).

4. The computer program product of claim 3, wherein the adjustments comprise reducing the maximum len number (208) of threads (116) by a percentage, with the percentage increasing at higher ranges (402, 1102) of I / O operations decreases.

5. The computer program product of claim 1, wherein the deciding for the second processing measurement comprises a Decide on a lock spin time that determines the number of threads (116) executed in the cores (108) wait to acquire locks on resources (126), wherein determining the adjustment to the determined number of Threads (116) based on the determined blocking time: Maintaining an allocation of ranges (602, 1002) of lock times and adjustments to a number of threads (116); and Determining an adaptation (604) to the optimal number (1004) of threads (116) corresponding to a range (602, 1002) of Lockout times, including the determined lockout time, are associated with it.

6. Computer program product according to claim 5, wherein the adaptation to the determined optimal number (1004) of threads (116) comprises reducing the determined optimal number (1004) of threads (116) by a percentage, wherein the Percentage increases at higher ranges (602, 1002) of lock spin times.

7. The computer program product of claim 1, wherein the operations further comprise: Scheduling tasks only to run on at least one of the available number of threads (116) that as available for execution (306).

8. The computer program product of claim 1, wherein the first processing measurement comprises a blocking time that Number of threads (116) running on the cores (108) waiting to acquire locks on resources (126), and wherein the second processing measurement is one of a number of I / O operations from the processors on the cores (108) executed threads (116) and a main memory-spanning bus traffic between the cores (108) and the main memory (106, 1406) shared by the cores (108).

9. The computer program product of claim 1, wherein specifying the at least one of the components for the core (108) determined available number of threads (116) as being idle (306) indicating all of the Available threads (116) that are not available to execute instructions (306) indicated as being idle (306).

10. Computer program product for determining a number of threads (116) to execute in cores (108) of a processor complex (102), wherein the computer program product is a computer program (100, 1402) readable storage medium on which program code (1416) readable by a computer (100, 1402) which, when executed, performs operations, the operations comprising: Determining (1202) a number of input / output operations (I / O operations) from a greater than zero first number of threads (116) executed on the cores (108) of the processor complex (102), each core (108) comprises circuitry for independently executing a plurality of threads (116); Maintaining an allocation (500) of a plurality of areas (402, 1102) of I / O operations and adjustments (404) to a maximum number (208) of threads (116) available to execute on the cores (108); Determining an adjustment (404) to the maximum number (208) of threads (116) assigned to a range (402, 1102) of I / O operations, including the determined number of I / O operations; Calculating (1204) an optimal number of threads (116) by applying the determined adaptation (404) to the maximum number (208) of threads (116) available to run on the cores (108), where the optimal number is greater than zero and different from the first number of threads (116); and Execute instructions using the optimal number of threads (116) on the cores (108).

11. Computer program product for determining a number of threads (116) to execute in cores (108) of a Processor complex (102), wherein the computer program product is a computer (100, 1402) readable storage medium on which program code (1416) readable by a computer (100, 1402) is embodied, which when executed, performs operations, where the operations include: Determining (1302) a lock time based on a first number of threads (116) running in the cores (108) are running and waiting to acquire locks on computation resources (126); Maintaining an assignment of a plurality of ranges (602, 1002) of blocking times and adjustments (404) to a maximum number (208) of threads (116) available to execute on the cores (108); Determining an adaptation (404) to the maximum number (208) of threads (116) corresponding to a range (602, 1002) of Closing times, including determined blocking time, and Calculating (1304) an optimal number of threads (116) by applying the determined adaptation (404) to the maximum number (208) of threads (116) available to run on the cores (108), where the optimal number is greater than zero and different from the first number of threads (116); and Execute instructions using the optimal number of threads (116) on the cores (108).

12. System (100) comprising: A processor complex (102) having a plurality of cores (108) executing threads (116); and a storage medium readable by a computer (100, 1402) having embodied thereon, by a computer (100, 1402) contains readable code which, when executed on at least one of the cores (108), performs operations, wherein the Operations include: Deciding (902) for a first processing measurement based on a greater than zero number of Threads (116) executed on the cores (108) of the processor complex (102), each core (108) having a Circuitry for independently executing a plurality of threads (116); Determining (904) an optimal number of threads (116) to be made available for execution on the cores (108) should be calculated based on the first processing measurement, with the optimal number being greater than zero; Deciding (906) for a second processing measurement based on the first number of threads (116) running on the cores (108), wherein the first processing measurement is dependent on the second processing measurement is different; Deciding (908) to make an adjustment based on the second processing measurement; Applying (910) the adjustment to the optimal number of threads (116), resulting in an adjusted number of threads (116) which is greater than zero and differs from the optimal number of threads (116) required to execute are to be made available on the cores (108); Allocating (912) the adjusted number of threads (116) among the cores (108) to provide an available number of threads (116) for each of the cores (108); for each core (108) of the cores (108), perform: Specifying (914) at least one of the available number of threads (116) determined for the core (108) as available to execute instructions (306); and Specifying (914) at least one of the available number of threads (116) determined for the core (108) as idle (306); and Executing the instructions on the cores (108) using the available number of threads (116).

13. The system (100) of claim 12, wherein deciding for the first processing measurement comprises deciding for a Number of input / output operations (I / O operations) from the number of threads (116) running on the cores (108) are executed, and wherein the decision for the adaptation is based on a blocking time of the number of threads (116) based.

14. The system (100) of claim 13, wherein determining the optimal number of threads (116) to be executed comprises: Maintaining an association of a plurality of areas (402, 1102) with a number of I / O operations and Adaptations (404) to a maximum number (208) of threads (116) that are available for execution on the cores (108) available; Determining an adjustment (404) to the maximum number (208) of threads (116) assigned to a range (402, 1102) of I / O operations, including the determined number of I / O operations; and Calculating the optimal number of threads (116) by applying the determined adjustment (404) to the maximum Number (208) of threads (116) available to execute on the cores (108).

15. The system (100) of claim 12, wherein deciding for the second processing measurement comprises deciding for a Lock spin time, which is the number of threads (116) running in the cores (108) waiting to acquire locks to refer to resources (126), wherein determining the adaptation to the determined number of threads (116) on the The basis for the determined blocking time is: Maintaining an allocation of ranges (602, 1002) of lock times and adjustments to a number of threads (116); and Determining an adaptation (604) to the optimal number (1004) of threads (116) corresponding to a range (602, 1002) of Lockout times, including the determined lockout time, are associated with it.

16. The system (100) of claim 12, wherein the operations further comprise: Scheduling tasks only to run on at least one of the available number of threads (116) that as available for executing an instruction (306).

17. The system (100) of claim 12, wherein specifying the at least one of the parameters determined for the core (108) for Available number of threads (116) as idle (306) an indication of all the available threads (116) that are not indicated as being available to execute instructions (306), as being idle (306).

18. Method comprising: Deciding (902) for a first processing measurement based on a greater than zero number of Threads (116) executed on cores (108) of a processor complex (102), each core (108) having a Circuitry for independently executing a plurality of threads (116); Determining (904) an optimal number of threads (116) to be made available for execution on the cores (108) should be calculated based on the first processing measurement, with the optimal number being greater than zero; Deciding (906) for a second processing measurement based on the number of threads (116) running on the cores (108), wherein the first processing measurement is dependent on the second processing measurement is different; Deciding (908) to make an adjustment based on the second processing measurement; Applying (910) the adjustment to the optimal number of threads (116), resulting in an adjusted number of threads (116) which is greater than zero and differs from the optimal number of threads (116) required to execute are to be made available on the cores (108); Allocating (912) the adjusted number of threads (116) among the cores (108) to provide an available number of threads (116) for each of the cores (108); for each core (108) of the cores (108), perform: Specifying (914) at least one of the available number of threads (116) determined for the core (108) as available to execute instructions (306); and Specifying (914) at least one of the available number of threads (116) determined for the core (108) as idle (306); and Executing the instructions on the cores (108) using the available number of threads (116).

19. The method of claim 18, wherein deciding for the first processing measurement comprises deciding for a Number of input / output operations (I / O operations) from the number of threads (116) running on the cores (108) are executed, and wherein the decision for the adaptation is based on a blocking time of the number of threads (116) based.

20. The method of claim 19, wherein determining the optimal number of threads to be executed (116) comprises: Maintaining an association of a plurality of areas (402, 1102) with a number of I / O operations and Adaptations (404) to a maximum number (208) of threads (116) that are available for execution on the cores (108) available; Determining an adjustment (404) to the maximum number (208) of threads (116) assigned to a range (402, 1102) of I / O operations, including the determined number of I / O operations; and Calculating the optimal number of threads (116) by applying the determined adjustment (404) to the maximum Number (208) of threads (116) available to execute on the cores (108).

21. The method of claim 18, wherein deciding for the second processing measurement comprises deciding for a Lock spin time, which is the number of threads (116) running in the cores (108) waiting to acquire locks to refer to resources (126), wherein determining the adaptation to the determined number of threads (116) on the The basis for the determined blocking time is: Maintaining an allocation of ranges (602, 1002) of lock times and adjustments to a number of threads (116); and Determining an adaptation (604) to the optimal number (1004) of threads (116) corresponding to a range (602, 1002) of Lockout times, including the determined lockout time, are associated with it.

22. The method of claim 18, wherein the operations further comprise: Scheduling tasks only to run on at least one of the available number of threads (116) that as available for execution (306).

23. The method according to claim 18, wherein specifying the at least one of the parameters determined for the core (108) for Available number of threads (116) as idle (306) indicating all of the available threads (116) that are not specified as available to execute instructions (306) as idle (306).

Citation Information

Patent Citations

  • Method and system for dynamically bounded spinning threads on a contested mutex

    US20050081204A1

  • Adjustment of threads for execution based on over-utilization of a domain in a multi-processor system

    US20140143789A1

  • Processor thread management

    US20160335132A1