US9760404B2 - Dynamic tuning of multiprocessor/multicore computing systems - Google Patents
Dynamic tuning of multiprocessor/multicore computing systems Download PDFInfo
- Publication number
- US9760404B2 US9760404B2 US14/842,359 US201514842359A US9760404B2 US 9760404 B2 US9760404 B2 US 9760404B2 US 201514842359 A US201514842359 A US 201514842359A US 9760404 B2 US9760404 B2 US 9760404B2
- Authority
- US
- United States
- Prior art keywords
- application
- scalability problem
- resource
- processors
- utilization
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active, expires
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3006—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3024—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3442—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for planning or managing the needed capacity
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5061—Partitioning or combining of resources
- G06F9/5066—Algorithms for mapping a plurality of inter-dependent sub-tasks onto a plurality of physical CPUs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3495—Performance evaluation by tracing or monitoring for systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/81—Threshold
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/865—Monitoring of software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/88—Monitoring involving counting
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- 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
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Definitions
- the present disclosure relates to multiprocessor and multicore computing systems, and more particularly, to dynamic tuning of multiprocessor and multicore computing systems to improve application performance and scalability.
- Computer and communications systems including mobile platforms, are being offered with increasing numbers of processors (e.g., Central Processing Units or CPUs) and increasing numbers of processor cores (e.g., hardware cores) integrated on those CPUs. This is generally done to provide greater computing power through increased parallelism.
- processors e.g., Central Processing Units or CPUs
- processor cores e.g., hardware cores
- Each hardware core may also include multiple hardware threads (also referred to as logical cores or hyperthreading) to further increase the number of parallel operations.
- software applications are often not designed to take advantage of this parallelism and, in fact, may actually suffer in performance as hardware is upgraded to offer more parallel processing capability. This can be caused, for example, by relatively inefficient synchronization between the various components of the software (e.g., processes and/or software threads) that are partitioned out for parallel execution. It may also be caused by the need to share limited resources among those components.
- FIG. 1 illustrates a top level system diagram of an example embodiment consistent with the present disclosure
- FIG. 2 illustrates a block diagram of one example embodiment consistent with the present disclosure
- FIG. 3 illustrates a block diagram of another example embodiment consistent with the present disclosure
- FIG. 4 illustrates a flowchart of operations of one example embodiment consistent with the present disclosure
- FIG. 5 illustrates a flowchart of operations of another example embodiment consistent with the present disclosure.
- FIG. 6 illustrates a system diagram of a platform of another example embodiment consistent with the present disclosure.
- this disclosure provides systems, devices, methods and computer readable media for dynamic tuning of multiprocessor and multicore computing systems, including hyperthreading systems, to improve application performance and scalability and to decrease system power consumption.
- scaling refers to the existence of a relationship (e.g., some degree of proportionality or linearity) between the performance or throughput of a software application and the measured utilization of the processors. Performance or throughput represents some measure of the work accomplished by the software application.
- the software application may be distributed for execution over multiple CPUs, processor cores and hardware threads (or logical cores) to execute in a parallel fashion, to at least some degree. These parallel executing components may include, for example, processes and software threads.
- the execution of the application may be profiled or monitored to evaluate performance and detect scalability problems. A scalability problem may be determined to exist if the processor utilization increases at a faster rate than the application throughput, as will be explained in greater detail below. This may occur, for example, if the application software is not written to handle synchronization issues in a relatively efficient manner, and thus consumes processing cycles waiting for synchronization rather than accomplishing its intended functions.
- Access contention may include, for example, lock contention or data access conflicts between the parallel components of the application, where locks (for example spin locks or other such suitable mechanisms) are employed to provide synchronization between the components.
- Constrained resources may include, for example, memory caches, execution pipeline buffers and other hardware resources of the CPUs and/or cores. Dynamic tuning (also referred to as balancing or re-balancing) may be performed, based on this analysis, to include re-binding of the application to fewer CPUs, disabling hyperthreading, and/or disabling some cores of a CPU, as will be discussed herein.
- FIG. 1 illustrates a top level system diagram 100 of one example embodiment consistent with the present disclosure.
- a user 102 may interact with a local client system 104 to gain access to a remote server system 106 over a network 110 .
- the server system 106 may be configured to host and execute one or more software applications 108 .
- a software application 108 may be a business/enterprise software application including, but not limited to, for example, Customer Relationship Management software, Enterprise Resource Planning software, Human Capital Management software and Business Intelligence software.
- the server 106 may be configured to provide access to this enterprise application software 108 to many users 102 and client systems 104 .
- the user may submit requests to the enterprise application software 108 deployed on the server 106 and the enterprise application executes the requests and communicates results back to the user.
- the enterprise application software 108 may also communicate with other servers 112 , such as, for example, database servers.
- the other servers 112 may be remote to the server 106 and thus communication between them may also be over the network 110 .
- the server 106 may include multiple CPUs and processing cores any of which may further be configured for hyperthreading operation.
- the server 106 is also shown to include dynamic tuning circuitry 114 , configured to monitor application performance/throughput, determine whether scalability problems exist (due to contention or constraint issues), and balance or re-balance the distribution of the software applications across the CPUs and cores, as will be described below.
- the tuning is referred to as dynamic because it may be performed while the application is executing (e.g., in real-time).
- server 106 may be any type of multiprocessor/multicore computation or communication platform and that the software may be any type of software that involves some degree of network communication.
- FIG. 2 illustrates a block diagram 200 of one example embodiment consistent with the present disclosure.
- the server 106 is shown to include a Kernel or Operating System (OS) 206 , a network interface 208 , one or more software applications 108 and the dynamic tuning circuitry 114 .
- the dynamic tuning circuitry 114 may further include profiling (or monitoring) circuitry 202 and scheduling circuitry 204 , the operations of which will be described in greater detail below.
- the server 106 is also shown to include a number (N) of CPUs 210 , each of which may include a number (M) of processing cores 212 .
- Each core in turn may be configured to execute multiple hardware threads (e.g., logical cores or hyperthreading).
- the software applications 108 may thus be distributed into component parts (e.g., processes, software threads, etc.) that execute in parallel, to at least some degree, on each CPU, core and/or logical core.
- the kernel 206 may be configured to manage the execution of the software applications 108 and to distribute the component processes of those applications among the various CPUs 210 and cores 212 .
- the kernel 206 may maintain various data structures, such as, for example, a run queue for each CPU listing processes that may be run on that CPU. Additionally, the kernel may maintain a register or bit mask associated with each process, to indicate which cores that process may execute on.
- the network interface 208 may be configured to transmit and receive packets, for example data and/or control packets, over the network 110 allowing for communication between the software applications 108 on server 106 and other remote servers or systems.
- the network interface 208 may also be configured to measure network traffic (e.g., the number of packets transmitted and/or received over a given time period).
- the CPUs 210 are shown to include multiple cores 212 , each core further including multiple (K) hardware threads or logical cores 302 .
- the CPUs 210 may be configured to provide common resources 310 to be shared, for example, by the cores 212 of that CPU.
- the cores 212 may be configured to provide common resources 304 to be shared, for example, by the hardware (HW) threads 302 of that core.
- Examples of shared core resources 304 may include micro-architecture instruction pipeline resources such as, but not limited to, reorder buffers, load buffers, reservation stations, and level 1 and level 2 caches.
- Examples of shared CPU resources 310 may include the last level cache (LLC).
- Performance counters 320 may also be provided for each CPU 210 and configured to provide event counts, or other statistics, related to various types of hardware utilization events or conditions in a given time period.
- the performance counters may be implemented as part of a hardware performance monitoring unit (PMU) integrated with the CPU and the counters may be embodied in registers and/or memory locations that are updated by the PMU and readable by the profiling circuitry 202 .
- PMU hardware performance monitoring unit
- counters may be provided to indicate the utilization (or available capacity) of any of the instruction pipeline resources (buffers, caches, etc.) which may be associated with instruction pipeline stalling.
- counters may be provided to count cache snoop responses indicating that the cache is in a modified state, which may be associated with memory conflicts and possible lock contention.
- Other counters may be provided to count cache miss rates which may indicate cache capacity constraints or cache conflicts, depending on the values of other performance counters.
- Still other counters may be provided to track conflicts in address spaces mapped to memory controllers that facilitate sharing of the LLC between cores.
- performance counters may be employed and the above list is not meant to be exhaustive. Some types of counters may indicate that resources are being constrained (e.g., instruction reorder buffer is full) while other types of counters may indicate contention (e.g., cache snoop modified state). In some cases, combinations of different counters may be used to determine if a scalability problem is related to contention or constraints. For example, if the cache miss rate increases, but the cache snoop modified state counter remains at a relatively low level, then the cache miss is more likely due to a capacity constraint than an access conflict.
- network interface 208 may be configured to provide counters to indicate the number of packets received and/or transmitted to measure network traffic.
- the throughput or performance of the application may be estimated based on a measurement of network traffic associated with that application, which generally correlates with the quantity of work being accomplished by the application (e.g., page downloads per second, transactions per second, jobs per second, user requests processed per second, etc.). This is particularly true for business/enterprise software applications.
- the use of measured network traffic associated with an application, as an indicator of application throughput avoids the need for any a priori knowledge of the specific behavior, inner workings or purpose of the application, which may be difficult to obtain as a general matter.
- this method of estimating application throughput may be applied to any application (that employs network communications), from any software vendor, without the need for collaboration with that vendor or an analysis of the application software design.
- Profiling circuitry 202 may be configured to: measure CPU utilization (e.g., the percentage of time that the CPU is not idle); to estimate application throughput (e.g., based on network throughput) so as to identify the presence of a scalability issue; and to read and analyze one or more of the performance counters 320 to determine the cause of the scalability issue.
- the profiling circuitry 202 may be implemented as a software driver component of the kernel 206 or as a component of the kernel scheduler.
- the profiling circuitry 202 may obtain information by directly sampling the performance counters (or PMU) or using existing profiling tools such as “EMON,” provided by Intel, or “perf,” provided by the Linux OS.
- the operation of the profiling circuitry 202 is described in greater detail below in connection with FIG. 4 and in particular in connection with operations 404 , 406 , 408 , 410 and 414 .
- Scheduling circuitry 204 may be configured to dynamically balance or re-balance the distribution of the software application components (e.g., processes, software threads, etc.) across the CPUs, cores and logical cores based on the analysis provided by the profiling circuitry 202 . This may be accomplished, for example, by re-binding of the application to fewer CPUs, disabling hyperthreading, and/or disabling some cores of a CPU.
- the operation of the scheduling circuitry 204 is described in greater detail below in connection with FIG. 4 and in particular in connection with operations 412 , 416 , and 418 .
- FIG. 4 illustrates a flowchart of operations 400 of one example embodiment consistent with the present disclosure.
- the software application is executing.
- the CPU utilization is measured and compared to a threshold utilization value.
- the threshold utilization value may be in the range of 45 to 55 percent utilization. If the utilization is less than the threshold value, the load on the system may be small enough that dynamic tuning may not provide sufficient performance improvement to justify its use, and so the application is permitted to continue execution without modification.
- system profiling and analysis may be initiated at operation 406 .
- This may include an estimation of the application's throughput, which may be based, for example, on measured network traffic as described previously.
- the estimated application throughput, from operation 406 is tracked over a selected time period and compared to CPU utilization. If the CPU utilization, or load on the system, is found to be increasing at a faster rate than the application throughput, then a scalability problem may exist. For example, if the measured utilization increases from 52% to 89% (an approximately 70 percent increase), but the estimated application throughput increases by only 40 percent, then it may be determined that a scalability problem exists. In other words, some degree of proportionality or linear relationship may be expected between utilization and throughput when an application scales well, and deviation from that degree of proportionality may indicate a scalability problem.
- the difference between the rate of increase of CPU utilization and the rate of increase of application throughput required to trigger detection of a scalability problem may be determined based on heuristics, experimentation or other suitable methods. This difference between rates of increase may be expressed as a scale factor, and a threshold scale factor may be selected to trigger detection of a scalability problem if the threshold is exceeded.
- the threshold scale factor may be set to a value in the range of 1.2 to 1.3 to account for the fact that, although a theoretical value of 1.0 might be expected (indicating perfect proportionality between rate of increase of CPU utilization and the rate of increase of application throughput), in practice there may be measurement variations and noise.
- hardware performance counters may be accessed and read to obtain statistics about conflicts versus constraints and how they relate to the application execution, as described previously in connection with FIG. 3 . If it is determined that scalability is being impacted by contention problem, then at operation 412 , the application may be re-bound to a lesser number of CPUs. This reduces the opportunity for contention between CPUs executing components of the same application (e.g., reducing inter-CPU communication for locks, etc.).
- This rebinding may be accomplished, for example under some kernels, by modifying a bit mask associated with the processes of the application.
- the application After tuning the application execution, as for example, at any of operations 412 , 416 or 418 , the application is allowed to continue execution, at operation 402 .
- the application continues to be monitored and additional tuning or re-balancing may be performed as necessary, for example if conditions vary between contention and resource constraint. Furthermore, in some embodiments, if it is determined that tuning changes have an adverse (or relatively negligible) effect on performance, those changes can be rolled back or reversed.
- FIG. 5 illustrates a flowchart of operations 500 of another example embodiment consistent with the present disclosure.
- the operations provide a method for dynamic tuning of multiprocessor and multicore computing systems.
- the existence of a scalability problem associated with the execution of an application on the multiprocessor computing system is detected.
- a determination is made as to whether the scalability problem is associated with an access contention or a resource constraint.
- the application is re-bound to a lesser number of processors of the multiprocessor computing system.
- FIG. 6 illustrates a system diagram 600 of one example embodiment consistent with the present disclosure.
- the system 600 may be a computing platform 610 such as, for example, a server, workstation or desktop computer. It will be appreciated, however, that embodiments of the system described herein are not limited to computing platforms, and in some embodiments, the system 600 may be a communication, entertainment or any other suitable type of device such as, for example, a smart phone, smart tablet, personal digital assistant (PDA), mobile Internet device (MID), convertible tablet, notebook or laptop computer.
- PDA personal digital assistant
- MID mobile Internet device
- the device may generally present various interfaces to a user via a display element 660 such as, for example, a touch screen, liquid crystal display (LCD) or any other suitable display type.
- LCD liquid crystal display
- the system 600 is shown to include a processor system 602 that may further include any number of processors 620 and memory 630 .
- the processors 620 may be implemented as any number of processor cores (e.g., HW cores).
- the processor (or processor cores) may be any type of processor, such as, for example, a general purpose processor, a micro-processor, an embedded processor, a digital signal processor (DSP), a graphics processor (GPU), a network processor, a field programmable gate array or other device configured to execute code.
- the processors may be multithreaded cores in that the HW cores may include more than one hardware thread context (or “logical core”) per HW core.
- the memory 630 may be coupled to the processors.
- the memory 630 may be any of a wide variety of memories (including various layers of memory hierarchy and/or memory caches) as are known or otherwise available to those of skill in the art. It will be appreciated that the processors and memory may be configured to store, host and/or execute one or more user applications or other software. These applications may include, but not be limited to, for example, any type of business/enterprise, computation, communication, data management, data storage and/or user interface task. In some embodiments, these applications may employ or interact with any other components of the platform 610 .
- System 600 is also shown to include network interface circuitry 208 which may include wired or wireless communication capabilities, such as, for example, Ethernet, cellular communications, Wireless Fidelity (WiFi), Bluetooth®, and/or Near Field Communication (NFC).
- the network communications may conform to or otherwise be compatible with any existing or yet to be developed communication standards including past, current and future version of Ethernet, Bluetooth®, Wi-Fi and mobile phone communication standards.
- System 600 is also shown to include an input/output (IO) system or controller 650 which may be configured to enable or manage data communication between processor 620 and other elements of system 600 or other elements (not shown) external to system 600 .
- System 600 is also shown to include a storage system 640 , which may be configured, for example, as one or more hard disk drives (HDDs) or solid state drives (SSDs).
- HDDs hard disk drives
- SSDs solid state drives
- System 600 is also shown to include dynamic tuning circuitry 114 , coupled to the processor system 602 , and configured to perform profiling/monitoring and scheduling/re-balancing of software applications, as described previously.
- the various components of the system 600 may be combined in a system-on-a-chip (SoC) architecture.
- the components may be hardware components, firmware components, software components or any suitable combination of hardware, firmware or software.
- Circuitry may comprise, for example, singly or in any combination, hardwired circuitry, programmable circuitry such as computer processors comprising one or more individual instruction processing cores, state machine circuitry, and/or firmware that stores instructions executed by programmable circuitry.
- the circuitry may include a processor and/or controller configured to execute one or more instructions to perform one or more operations described herein.
- the instructions may be embodied as, for example, an application, software, firmware, etc. configured to cause the circuitry to perform any of the aforementioned operations.
- Software may be embodied as a software package, code, instructions, instruction sets and/or data recorded on a computer-readable storage device.
- Software may be embodied or implemented to include any number of processes, and processes, in turn, may be embodied or implemented to include any number of threads, etc., in a hierarchical fashion.
- Firmware may be embodied as code, instructions or instruction sets and/or data that are hard-coded (e.g., nonvolatile) in memory devices.
- the circuitry may, collectively or individually, be embodied as circuitry that forms part of a larger system, for example, an integrated circuit (IC), an application-specific integrated circuit (ASIC), a system on-chip (SoC), desktop computers, laptop computers, tablet computers, servers, smart phones, etc.
- Other embodiments may be implemented as software executed by a programmable control device.
- various embodiments may be implemented using hardware elements, software elements, or any combination thereof.
- hardware elements may include processors, microprocessors, circuits, circuit elements (e.g., transistors, resistors, capacitors, inductors, and so forth), integrated circuits, application specific integrated circuits (ASIC), programmable logic devices (PLD), digital signal processors (DSP), field programmable gate array (FPGA), logic gates, registers, semiconductor device, chips, microchips, chip sets, and so forth.
- any of the operations described herein may be implemented in one or more storage devices having stored thereon, individually or in combination, instructions that when executed by one or more processors perform one or more operations. Also, it is intended that the operations described herein may be performed individually or in any sub-combination. Thus, not all of the operations (for example, of any of the flow charts) need to be performed, and the present disclosure expressly intends that all sub-combinations of such operations are enabled as would be understood by one of ordinary skill in the art. Also, it is intended that operations described herein may be distributed across a plurality of physical devices, such as processing structures at more than one different physical location.
- the storage devices may include any type of tangible device, for example, any type of disk including hard disks, floppy disks, optical disks, compact disk read-only memories (CD-ROMs), compact disk rewritables (CD-RWs), and magneto-optical disks, semiconductor devices such as read-only memories (ROMs), random access memories (RAMs) such as dynamic and static RAMs, erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), flash memories, Solid State Disks (SSDs), magnetic or optical cards, or any type of media suitable for storing electronic instructions.
- ROMs read-only memories
- RAMs random access memories
- EPROMs erasable programmable read-only memories
- EEPROMs electrically erasable programmable read-only memories
- SSDs Solid State Disks
- the present disclosure provides systems, devices, methods and computer readable media for dynamic tuning of multiprocessor and multicore computing systems to improve application performance and scalability and decrease system power consumption.
- the following examples pertain to further embodiments.
- Example 1 there is provided a system for multiprocessor tuning.
- the system may include: a plurality of processing units (CPUs); profiling circuitry to detect existence of a scalability problem associated with the execution of an application on the plurality of CPUs and determine if the scalability problem is associated with an access contention or a resource constraint; and scheduling circuitry to bind the application to a subset of the plurality of CPUs if the scalability problem is associated with the access contention.
- CPUs processing units
- profiling circuitry to detect existence of a scalability problem associated with the execution of an application on the plurality of CPUs and determine if the scalability problem is associated with an access contention or a resource constraint
- scheduling circuitry to bind the application to a subset of the plurality of CPUs if the scalability problem is associated with the access contention.
- Example 2 may include the subject matter of Example 1, and the profiling circuitry is further to determine if the resource is shared by multiple processing cores of one of the CPUs, if the scalability problem is associated with the resource constraint; and the scheduling circuitry is further to disable a subset of the multiple processing cores, if the resource sharing determination is true.
- Example 3 may include the subject matter of Examples 1 and 2, and the profiling circuitry is further to determine if the resource is limited to a processing core of one of the CPUs, if the scalability problem is associated with the resource constraint; and the scheduling circuitry is further to disable hyperthreading on the processor core, if the resource limiting determination is true.
- Example 4 may include the subject matter of Examples 1-3, and the profiling circuitry is further to detect existence of a scalability problem based on: measurement of a rate of increase of utilization of at least one of the CPUs; measurement of a rate of increase of throughput of the application; and determination that the rate of increase of utilization exceeds the rate of increase of throughput by a threshold scale factor.
- Example 5 may include the subject matter of Examples 1-4, and the profiling circuitry is further to detect existence of a scalability problem based on determination that utilization of the at least one of the CPUs exceeds a threshold utilization value.
- Example 6 may include the subject matter of Examples 1-5, and the throughput of the application is estimated based on measured network traffic associated with the application.
- Example 7 may include the subject matter of Examples 1-6, and the access contention is a data access conflict or contention for a synchronization lock.
- Example 8 may include the subject matter of Examples 1-7, and the resource constraint is associated with capacity of instruction pipeline buffers or capacity of cache memories.
- Example 9 may include the subject matter of Examples 1-8, further including one or more performance counters to track events associated with hardware performance, and the profiling circuitry is further to determine if the scalability problem is associated with an access contention or a resource constraint based on a reading of one or more of the performance counters.
- Example 10 there is provided a method for tuning a multiprocessor computing system.
- the method may include: detecting existence of a scalability problem associated with the execution of an application on a number of processors of the multiprocessor computing system; determining if the scalability problem is associated with an access contention or a resource constraint; and if the scalability problem is associated with the access contention, binding the application to a lesser number of the processors of the multiprocessor computing system.
- Example 11 may include the subject matter of Example 10, further including, if the scalability problem is associated with the resource constraint: determining if the resource is shared by multiple processing cores of one of the processors; and if the determination is true, disabling a subset of the multiple processing cores.
- Example 12 may include the subject matter of Examples 10 and 11, further including, if the scalability problem is associated with the resource constraint: determining if the resource is limited to a processing core of one of the processors; and if the determination is true, disabling hyperthreading on the processing core.
- Example 13 may include the subject matter of Examples 10-12, and the detecting existence of a scalability problem further includes: measuring a rate of increase of utilization of at least one of the processors; measuring a rate of increase of throughput of the application; and determining that the rate of increase of utilization exceeds the rate of increase of throughput by a threshold scale factor.
- Example 14 may include the subject matter of Examples 10-13, and the detecting existence of a scalability problem further includes determining that utilization of the at least one of the processors exceeds a threshold utilization value.
- Example 15 may include the subject matter of Examples 10-14, and the throughput of the application is estimated based on measured network traffic associated with the application.
- Example 16 may include the subject matter of Examples 10-15, and the access contention is a data access conflict or contention for a synchronization lock.
- Example 17 may include the subject matter of Examples 10-16, and the resource constraint is associated with capacity of instruction pipeline buffers or capacity of cache memories.
- Example 18 may include the subject matter of Examples 10-17, and the determining if the scalability problem is associated with an access contention or a resource constraint further includes reading one or more counters to track events associated with hardware performance.
- Example 19 there is provided at least one computer-readable storage medium having instructions stored thereon which when executed by a processor result in the following operations for tuning a multiprocessor computing system.
- the operations may include: detecting existence of a scalability problem associated with the execution of an application on a number of processors of the multiprocessor computing system; determining if the scalability problem is associated with an access contention or a resource constraint; and if the scalability problem is associated with the access contention, binding the application to a lesser number of the processors of the multiprocessor computing system.
- Example 20 may include the subject matter of Example 19, further including, if the scalability problem is associated with the resource constraint: determining if the resource is shared by multiple processing cores of one of the processors; and if the determination is true, disabling a subset of the multiple processing cores.
- Example 21 may include the subject matter of Examples 19 and 20, further including, if the scalability problem is associated with the resource constraint: determining if the resource is limited to a processing core of one of the processors; and if the determination is true, disabling hyperthreading on the processing core.
- Example 22 may include the subject matter of Examples 19-21, and the detecting existence of a scalability problem further includes: measuring a rate of increase of utilization of at least one of the processors; measuring a rate of increase of throughput of the application; and determining that the rate of increase of utilization exceeds the rate of increase of throughput by a threshold scale factor.
- Example 23 may include the subject matter of Examples 19-22, and the detecting existence of a scalability problem further includes determining that utilization of the at least one of the processors exceeds a threshold utilization value.
- Example 24 may include the subject matter of Examples 19-23, and the throughput of the application is estimated based on measured network traffic associated with the application.
- Example 25 may include the subject matter of Examples 19-24, and the access contention is a data access conflict or contention for a synchronization lock.
- Example 26 may include the subject matter of Examples 19-25, and the resource constraint is associated with capacity of instruction pipeline buffers or capacity of cache memories.
- Example 27 may include the subject matter of Examples 19-26, and the determining if the scalability problem is associated with an access contention or a resource constraint further includes reading one or more counters to track events associated with hardware performance.
- Example 28 there is provided a system for tuning a multiprocessor computing system.
- the system may include: means for detecting existence of a scalability problem associated with the execution of an application on a number of processors of the multiprocessor computing system; means for determining if the scalability problem is associated with an access contention or a resource constraint; and if the scalability problem is associated with the access contention, means for binding the application to a lesser number of the processors of the multiprocessor computing system.
- Example 29 may include the subject matter of Example 28, further including, if the scalability problem is associated with the resource constraint: means for determining if the resource is shared by multiple processing cores of one of the processors; and if the determination is true, means for disabling a subset of the multiple processing cores.
- Example 30 may include the subject matter of Examples 28 and 29, further including, if the scalability problem is associated with the resource constraint: means for determining if the resource is limited to a processing core of one of the processors; and if the determination is true, means for disabling hyperthreading on the processing core.
- Example 31 may include the subject matter of Examples 28-30, and the detecting existence of a scalability problem further includes: means for measuring a rate of increase of utilization of at least one of the processors; means for measuring a rate of increase of throughput of the application; and means for determining that the rate of increase of utilization exceeds the rate of increase of throughput by a threshold scale factor.
- Example 32 may include the subject matter of Examples 28-31, and the detecting existence of a scalability problem further includes means for determining that utilization of the at least one of the processors exceeds a threshold utilization value.
- Example 33 may include the subject matter of Examples 28-32, and the throughput of the application is estimated based on measured network traffic associated with the application.
- Example 34 may include the subject matter of Examples 28-33, and the access contention is a data access conflict or contention for a synchronization lock.
- Example 35 may include the subject matter of Examples 28-34, and the resource constraint is associated with capacity of instruction pipeline buffers or capacity of cache memories.
- Example 36 may include the subject matter of Examples 28-35, and the determining if the scalability problem is associated with an access contention or a resource constraint further includes means for reading one or more counters to track events associated with hardware performance.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computing Systems (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Generally, this disclosure provides systems, devices, methods and computer readable media for dynamic tuning of multiprocessor and multicore computing systems to improve application performance and scalability. A system may include a number of processing units (CPUs) and profiling circuitry configured to detect the existence of a scalability problem associated with the execution of an application on CPUs and to determine if the scalability problem is associated with an access contention or a resource constraint. The system may also include scheduling circuitry configured to bind the application to a subset of the total number of CPUs if the scalability problem is associated with access contention.
Description
The present disclosure relates to multiprocessor and multicore computing systems, and more particularly, to dynamic tuning of multiprocessor and multicore computing systems to improve application performance and scalability.
Computer and communications systems, including mobile platforms, are being offered with increasing numbers of processors (e.g., Central Processing Units or CPUs) and increasing numbers of processor cores (e.g., hardware cores) integrated on those CPUs. This is generally done to provide greater computing power through increased parallelism. Each hardware core may also include multiple hardware threads (also referred to as logical cores or hyperthreading) to further increase the number of parallel operations. Unfortunately, software applications are often not designed to take advantage of this parallelism and, in fact, may actually suffer in performance as hardware is upgraded to offer more parallel processing capability. This can be caused, for example, by relatively inefficient synchronization between the various components of the software (e.g., processes and/or software threads) that are partitioned out for parallel execution. It may also be caused by the need to share limited resources among those components. These difficulties may thus limit the scalability of software applications to handle increasing workloads or throughput based only on increased computational power.
Features and advantages of embodiments of the claimed subject matter will become apparent as the following Detailed Description proceeds, and upon reference to the Drawings, wherein like numerals depict like parts, and in which:
Although the following Detailed Description will proceed with reference being made to illustrative embodiments, many alternatives, modifications, and variations thereof will be apparent to those skilled in the art.
Generally, this disclosure provides systems, devices, methods and computer readable media for dynamic tuning of multiprocessor and multicore computing systems, including hyperthreading systems, to improve application performance and scalability and to decrease system power consumption. The term “scalability,” as used herein, refers to the existence of a relationship (e.g., some degree of proportionality or linearity) between the performance or throughput of a software application and the measured utilization of the processors. Performance or throughput represents some measure of the work accomplished by the software application.
The software application may be distributed for execution over multiple CPUs, processor cores and hardware threads (or logical cores) to execute in a parallel fashion, to at least some degree. These parallel executing components may include, for example, processes and software threads. The execution of the application may be profiled or monitored to evaluate performance and detect scalability problems. A scalability problem may be determined to exist if the processor utilization increases at a faster rate than the application throughput, as will be explained in greater detail below. This may occur, for example, if the application software is not written to handle synchronization issues in a relatively efficient manner, and thus consumes processing cycles waiting for synchronization rather than accomplishing its intended functions.
Analysis may be performed to determine if the cause of those scalability problems is related to access contention or to sharing of constrained resources. Access contention may include, for example, lock contention or data access conflicts between the parallel components of the application, where locks (for example spin locks or other such suitable mechanisms) are employed to provide synchronization between the components. Constrained resources may include, for example, memory caches, execution pipeline buffers and other hardware resources of the CPUs and/or cores. Dynamic tuning (also referred to as balancing or re-balancing) may be performed, based on this analysis, to include re-binding of the application to fewer CPUs, disabling hyperthreading, and/or disabling some cores of a CPU, as will be discussed herein.
The server 106 may include multiple CPUs and processing cores any of which may further be configured for hyperthreading operation. The server 106 is also shown to include dynamic tuning circuitry 114, configured to monitor application performance/throughput, determine whether scalability problems exist (due to contention or constraint issues), and balance or re-balance the distribution of the software applications across the CPUs and cores, as will be described below. The tuning is referred to as dynamic because it may be performed while the application is executing (e.g., in real-time).
Although discussions of various embodiments herein may refer to a server system executing business/enterprise application software, it will be appreciated that the server 106 may be any type of multiprocessor/multicore computation or communication platform and that the software may be any type of software that involves some degree of network communication.
The kernel 206 may be configured to manage the execution of the software applications 108 and to distribute the component processes of those applications among the various CPUs 210 and cores 212. The kernel 206 may maintain various data structures, such as, for example, a run queue for each CPU listing processes that may be run on that CPU. Additionally, the kernel may maintain a register or bit mask associated with each process, to indicate which cores that process may execute on.
The network interface 208 may be configured to transmit and receive packets, for example data and/or control packets, over the network 110 allowing for communication between the software applications 108 on server 106 and other remote servers or systems. The network interface 208 may also be configured to measure network traffic (e.g., the number of packets transmitted and/or received over a given time period).
Referring now to FIG. 3 , the CPUs 210 are shown to include multiple cores 212, each core further including multiple (K) hardware threads or logical cores 302. The CPUs 210 may be configured to provide common resources 310 to be shared, for example, by the cores 212 of that CPU. The cores 212 may be configured to provide common resources 304 to be shared, for example, by the hardware (HW) threads 302 of that core.
Examples of shared core resources 304 may include micro-architecture instruction pipeline resources such as, but not limited to, reorder buffers, load buffers, reservation stations, and level 1 and level 2 caches. Examples of shared CPU resources 310 may include the last level cache (LLC).
Performance counters 320 (also referred to as hardware counters) may also be provided for each CPU 210 and configured to provide event counts, or other statistics, related to various types of hardware utilization events or conditions in a given time period. In some embodiments, the performance counters may be implemented as part of a hardware performance monitoring unit (PMU) integrated with the CPU and the counters may be embodied in registers and/or memory locations that are updated by the PMU and readable by the profiling circuitry 202. For example counters may be provided to indicate the utilization (or available capacity) of any of the instruction pipeline resources (buffers, caches, etc.) which may be associated with instruction pipeline stalling. Other counters may be provided to count cache snoop responses indicating that the cache is in a modified state, which may be associated with memory conflicts and possible lock contention. Other counters may be provided to count cache miss rates which may indicate cache capacity constraints or cache conflicts, depending on the values of other performance counters. Still other counters may be provided to track conflicts in address spaces mapped to memory controllers that facilitate sharing of the LLC between cores.
Many types of performance counters may be employed and the above list is not meant to be exhaustive. Some types of counters may indicate that resources are being constrained (e.g., instruction reorder buffer is full) while other types of counters may indicate contention (e.g., cache snoop modified state). In some cases, combinations of different counters may be used to determine if a scalability problem is related to contention or constraints. For example, if the cache miss rate increases, but the cache snoop modified state counter remains at a relatively low level, then the cache miss is more likely due to a capacity constraint than an access conflict.
Additionally, network interface 208 may be configured to provide counters to indicate the number of packets received and/or transmitted to measure network traffic. The throughput or performance of the application may be estimated based on a measurement of network traffic associated with that application, which generally correlates with the quantity of work being accomplished by the application (e.g., page downloads per second, transactions per second, jobs per second, user requests processed per second, etc.). This is particularly true for business/enterprise software applications. The use of measured network traffic associated with an application, as an indicator of application throughput, avoids the need for any a priori knowledge of the specific behavior, inner workings or purpose of the application, which may be difficult to obtain as a general matter. Thus, this method of estimating application throughput may be applied to any application (that employs network communications), from any software vendor, without the need for collaboration with that vendor or an analysis of the application software design.
If the CPU utilization exceeds the threshold, however, then system profiling and analysis may be initiated at operation 406. This may include an estimation of the application's throughput, which may be based, for example, on measured network traffic as described previously.
At operation 408, a determination is made as to whether the application scales at an acceptable level or whether it exhibits scalability problems. The estimated application throughput, from operation 406, is tracked over a selected time period and compared to CPU utilization. If the CPU utilization, or load on the system, is found to be increasing at a faster rate than the application throughput, then a scalability problem may exist. For example, if the measured utilization increases from 52% to 89% (an approximately 70 percent increase), but the estimated application throughput increases by only 40 percent, then it may be determined that a scalability problem exists. In other words, some degree of proportionality or linear relationship may be expected between utilization and throughput when an application scales well, and deviation from that degree of proportionality may indicate a scalability problem. The difference between the rate of increase of CPU utilization and the rate of increase of application throughput required to trigger detection of a scalability problem may be determined based on heuristics, experimentation or other suitable methods. This difference between rates of increase may be expressed as a scale factor, and a threshold scale factor may be selected to trigger detection of a scalability problem if the threshold is exceeded. In some embodiments, the threshold scale factor may be set to a value in the range of 1.2 to 1.3 to account for the fact that, although a theoretical value of 1.0 might be expected (indicating perfect proportionality between rate of increase of CPU utilization and the rate of increase of application throughput), in practice there may be measurement variations and noise.
If a scaling issue is detected, then at operation 410, a determination is made as to whether the scaling issue is caused by contention or by constrained resource sharing. In some embodiments, hardware performance counters may be accessed and read to obtain statistics about conflicts versus constraints and how they relate to the application execution, as described previously in connection with FIG. 3 . If it is determined that scalability is being impacted by contention problem, then at operation 412, the application may be re-bound to a lesser number of CPUs. This reduces the opportunity for contention between CPUs executing components of the same application (e.g., reducing inter-CPU communication for locks, etc.). This may also free up some of those CPUs to execute other processes associated with other applications (which may improve overall system efficiency) or allow them to be idle (which may improve power consumption). This rebinding may be accomplished, for example under some kernels, by modifying a bit mask associated with the processes of the application.
If, however, it is determined that scalability is being impacted by resource constraints, then at operation 414, a further determination is made as to whether the identified resources are shared by multiple threads on the same core or by multiple cores on the same CPU. In the case of sharing by multiple threads on the same core (e.g., the shared resource is limited to a processing core), than at operation 416, hyperthreading is disabled. Otherwise, at operation 418, some of the cores on the CPU are disabled.
After tuning the application execution, as for example, at any of operations 412, 416 or 418, the application is allowed to continue execution, at operation 402. The application continues to be monitored and additional tuning or re-balancing may be performed as necessary, for example if conditions vary between contention and resource constraint. Furthermore, in some embodiments, if it is determined that tuning changes have an adverse (or relatively negligible) effect on performance, those changes can be rolled back or reversed.
The system 600 is shown to include a processor system 602 that may further include any number of processors 620 and memory 630. In some embodiments, the processors 620 may be implemented as any number of processor cores (e.g., HW cores). The processor (or processor cores) may be any type of processor, such as, for example, a general purpose processor, a micro-processor, an embedded processor, a digital signal processor (DSP), a graphics processor (GPU), a network processor, a field programmable gate array or other device configured to execute code. The processors may be multithreaded cores in that the HW cores may include more than one hardware thread context (or “logical core”) per HW core. The memory 630 may be coupled to the processors. The memory 630 may be any of a wide variety of memories (including various layers of memory hierarchy and/or memory caches) as are known or otherwise available to those of skill in the art. It will be appreciated that the processors and memory may be configured to store, host and/or execute one or more user applications or other software. These applications may include, but not be limited to, for example, any type of business/enterprise, computation, communication, data management, data storage and/or user interface task. In some embodiments, these applications may employ or interact with any other components of the platform 610.
It will be appreciated that in some embodiments, the various components of the system 600 may be combined in a system-on-a-chip (SoC) architecture. In some embodiments, the components may be hardware components, firmware components, software components or any suitable combination of hardware, firmware or software.
“Circuitry,” as used in any embodiment herein, may comprise, for example, singly or in any combination, hardwired circuitry, programmable circuitry such as computer processors comprising one or more individual instruction processing cores, state machine circuitry, and/or firmware that stores instructions executed by programmable circuitry. The circuitry may include a processor and/or controller configured to execute one or more instructions to perform one or more operations described herein. The instructions may be embodied as, for example, an application, software, firmware, etc. configured to cause the circuitry to perform any of the aforementioned operations. Software may be embodied as a software package, code, instructions, instruction sets and/or data recorded on a computer-readable storage device. Software may be embodied or implemented to include any number of processes, and processes, in turn, may be embodied or implemented to include any number of threads, etc., in a hierarchical fashion. Firmware may be embodied as code, instructions or instruction sets and/or data that are hard-coded (e.g., nonvolatile) in memory devices. The circuitry may, collectively or individually, be embodied as circuitry that forms part of a larger system, for example, an integrated circuit (IC), an application-specific integrated circuit (ASIC), a system on-chip (SoC), desktop computers, laptop computers, tablet computers, servers, smart phones, etc. Other embodiments may be implemented as software executed by a programmable control device. As described herein, various embodiments may be implemented using hardware elements, software elements, or any combination thereof. Examples of hardware elements may include processors, microprocessors, circuits, circuit elements (e.g., transistors, resistors, capacitors, inductors, and so forth), integrated circuits, application specific integrated circuits (ASIC), programmable logic devices (PLD), digital signal processors (DSP), field programmable gate array (FPGA), logic gates, registers, semiconductor device, chips, microchips, chip sets, and so forth.
Any of the operations described herein may be implemented in one or more storage devices having stored thereon, individually or in combination, instructions that when executed by one or more processors perform one or more operations. Also, it is intended that the operations described herein may be performed individually or in any sub-combination. Thus, not all of the operations (for example, of any of the flow charts) need to be performed, and the present disclosure expressly intends that all sub-combinations of such operations are enabled as would be understood by one of ordinary skill in the art. Also, it is intended that operations described herein may be distributed across a plurality of physical devices, such as processing structures at more than one different physical location. The storage devices may include any type of tangible device, for example, any type of disk including hard disks, floppy disks, optical disks, compact disk read-only memories (CD-ROMs), compact disk rewritables (CD-RWs), and magneto-optical disks, semiconductor devices such as read-only memories (ROMs), random access memories (RAMs) such as dynamic and static RAMs, erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), flash memories, Solid State Disks (SSDs), magnetic or optical cards, or any type of media suitable for storing electronic instructions.
Thus, the present disclosure provides systems, devices, methods and computer readable media for dynamic tuning of multiprocessor and multicore computing systems to improve application performance and scalability and decrease system power consumption. The following examples pertain to further embodiments.
According to Example 1 there is provided a system for multiprocessor tuning. The system may include: a plurality of processing units (CPUs); profiling circuitry to detect existence of a scalability problem associated with the execution of an application on the plurality of CPUs and determine if the scalability problem is associated with an access contention or a resource constraint; and scheduling circuitry to bind the application to a subset of the plurality of CPUs if the scalability problem is associated with the access contention.
Example 2 may include the subject matter of Example 1, and the profiling circuitry is further to determine if the resource is shared by multiple processing cores of one of the CPUs, if the scalability problem is associated with the resource constraint; and the scheduling circuitry is further to disable a subset of the multiple processing cores, if the resource sharing determination is true.
Example 3 may include the subject matter of Examples 1 and 2, and the profiling circuitry is further to determine if the resource is limited to a processing core of one of the CPUs, if the scalability problem is associated with the resource constraint; and the scheduling circuitry is further to disable hyperthreading on the processor core, if the resource limiting determination is true.
Example 4 may include the subject matter of Examples 1-3, and the profiling circuitry is further to detect existence of a scalability problem based on: measurement of a rate of increase of utilization of at least one of the CPUs; measurement of a rate of increase of throughput of the application; and determination that the rate of increase of utilization exceeds the rate of increase of throughput by a threshold scale factor.
Example 5 may include the subject matter of Examples 1-4, and the profiling circuitry is further to detect existence of a scalability problem based on determination that utilization of the at least one of the CPUs exceeds a threshold utilization value.
Example 6 may include the subject matter of Examples 1-5, and the throughput of the application is estimated based on measured network traffic associated with the application.
Example 7 may include the subject matter of Examples 1-6, and the access contention is a data access conflict or contention for a synchronization lock.
Example 8 may include the subject matter of Examples 1-7, and the resource constraint is associated with capacity of instruction pipeline buffers or capacity of cache memories.
Example 9 may include the subject matter of Examples 1-8, further including one or more performance counters to track events associated with hardware performance, and the profiling circuitry is further to determine if the scalability problem is associated with an access contention or a resource constraint based on a reading of one or more of the performance counters.
According to Example 10 there is provided a method for tuning a multiprocessor computing system. The method may include: detecting existence of a scalability problem associated with the execution of an application on a number of processors of the multiprocessor computing system; determining if the scalability problem is associated with an access contention or a resource constraint; and if the scalability problem is associated with the access contention, binding the application to a lesser number of the processors of the multiprocessor computing system.
Example 11 may include the subject matter of Example 10, further including, if the scalability problem is associated with the resource constraint: determining if the resource is shared by multiple processing cores of one of the processors; and if the determination is true, disabling a subset of the multiple processing cores.
Example 12 may include the subject matter of Examples 10 and 11, further including, if the scalability problem is associated with the resource constraint: determining if the resource is limited to a processing core of one of the processors; and if the determination is true, disabling hyperthreading on the processing core.
Example 13 may include the subject matter of Examples 10-12, and the detecting existence of a scalability problem further includes: measuring a rate of increase of utilization of at least one of the processors; measuring a rate of increase of throughput of the application; and determining that the rate of increase of utilization exceeds the rate of increase of throughput by a threshold scale factor.
Example 14 may include the subject matter of Examples 10-13, and the detecting existence of a scalability problem further includes determining that utilization of the at least one of the processors exceeds a threshold utilization value.
Example 15 may include the subject matter of Examples 10-14, and the throughput of the application is estimated based on measured network traffic associated with the application.
Example 16 may include the subject matter of Examples 10-15, and the access contention is a data access conflict or contention for a synchronization lock.
Example 17 may include the subject matter of Examples 10-16, and the resource constraint is associated with capacity of instruction pipeline buffers or capacity of cache memories.
Example 18 may include the subject matter of Examples 10-17, and the determining if the scalability problem is associated with an access contention or a resource constraint further includes reading one or more counters to track events associated with hardware performance.
According to Example 19 there is provided at least one computer-readable storage medium having instructions stored thereon which when executed by a processor result in the following operations for tuning a multiprocessor computing system. The operations may include: detecting existence of a scalability problem associated with the execution of an application on a number of processors of the multiprocessor computing system; determining if the scalability problem is associated with an access contention or a resource constraint; and if the scalability problem is associated with the access contention, binding the application to a lesser number of the processors of the multiprocessor computing system.
Example 20 may include the subject matter of Example 19, further including, if the scalability problem is associated with the resource constraint: determining if the resource is shared by multiple processing cores of one of the processors; and if the determination is true, disabling a subset of the multiple processing cores.
Example 21 may include the subject matter of Examples 19 and 20, further including, if the scalability problem is associated with the resource constraint: determining if the resource is limited to a processing core of one of the processors; and if the determination is true, disabling hyperthreading on the processing core.
Example 22 may include the subject matter of Examples 19-21, and the detecting existence of a scalability problem further includes: measuring a rate of increase of utilization of at least one of the processors; measuring a rate of increase of throughput of the application; and determining that the rate of increase of utilization exceeds the rate of increase of throughput by a threshold scale factor.
Example 23 may include the subject matter of Examples 19-22, and the detecting existence of a scalability problem further includes determining that utilization of the at least one of the processors exceeds a threshold utilization value.
Example 24 may include the subject matter of Examples 19-23, and the throughput of the application is estimated based on measured network traffic associated with the application.
Example 25 may include the subject matter of Examples 19-24, and the access contention is a data access conflict or contention for a synchronization lock.
Example 26 may include the subject matter of Examples 19-25, and the resource constraint is associated with capacity of instruction pipeline buffers or capacity of cache memories.
Example 27 may include the subject matter of Examples 19-26, and the determining if the scalability problem is associated with an access contention or a resource constraint further includes reading one or more counters to track events associated with hardware performance.
According to Example 28 there is provided a system for tuning a multiprocessor computing system. The system may include: means for detecting existence of a scalability problem associated with the execution of an application on a number of processors of the multiprocessor computing system; means for determining if the scalability problem is associated with an access contention or a resource constraint; and if the scalability problem is associated with the access contention, means for binding the application to a lesser number of the processors of the multiprocessor computing system.
Example 29 may include the subject matter of Example 28, further including, if the scalability problem is associated with the resource constraint: means for determining if the resource is shared by multiple processing cores of one of the processors; and if the determination is true, means for disabling a subset of the multiple processing cores.
Example 30 may include the subject matter of Examples 28 and 29, further including, if the scalability problem is associated with the resource constraint: means for determining if the resource is limited to a processing core of one of the processors; and if the determination is true, means for disabling hyperthreading on the processing core.
Example 31 may include the subject matter of Examples 28-30, and the detecting existence of a scalability problem further includes: means for measuring a rate of increase of utilization of at least one of the processors; means for measuring a rate of increase of throughput of the application; and means for determining that the rate of increase of utilization exceeds the rate of increase of throughput by a threshold scale factor.
Example 32 may include the subject matter of Examples 28-31, and the detecting existence of a scalability problem further includes means for determining that utilization of the at least one of the processors exceeds a threshold utilization value.
Example 33 may include the subject matter of Examples 28-32, and the throughput of the application is estimated based on measured network traffic associated with the application.
Example 34 may include the subject matter of Examples 28-33, and the access contention is a data access conflict or contention for a synchronization lock.
Example 35 may include the subject matter of Examples 28-34, and the resource constraint is associated with capacity of instruction pipeline buffers or capacity of cache memories.
Example 36 may include the subject matter of Examples 28-35, and the determining if the scalability problem is associated with an access contention or a resource constraint further includes means for reading one or more counters to track events associated with hardware performance.
The terms and expressions which have been employed herein are used as terms of description and not of limitation, and there is no intention, in the use of such terms and expressions, of excluding any equivalents of the features shown and described (or portions thereof), and it is recognized that various modifications are possible within the scope of the claims. Accordingly, the claims are intended to cover all such equivalents. Various features, aspects, and embodiments have been described herein. The features, aspects, and embodiments are susceptible to combination with one another as well as to variation and modification, as will be understood by those having skill in the art. The present disclosure should, therefore, be considered to encompass such combinations, variations, and modifications.
Claims (24)
1. A system comprising:
a plurality of processing units (CPUs);
profiling circuitry to detect existence of a scalability problem associated with the execution of an application on said plurality of CPUs and determine if said scalability problem is associated with an access contention or a resource constraint; and
scheduling circuitry to bind said application to a subset of said plurality of CPUs if said scalability problem is associated with said access contention;
wherein said profiling circuitry is further to determine if said resource is limited to a processing core of one of said CPUs, if said scalability problem is associated with said resource constraint; and said scheduling circuitry is further to disable hyperthreading on said processor core, when said resource limiting determination is true.
2. The system of claim 1 , wherein said profiling circuitry is further to determine if said resource is shared by multiple processing cores of one of said CPUs when said scalability problem is associated with said resource constraint; and said scheduling circuitry is further to disable a subset of said multiple processing cores when said resource sharing determination is true.
3. The system of claim 1 , wherein said profiling circuitry is further to detect existence of a scalability problem based on:
measurement of a rate of increase of utilization of at least one of said CPUs;
measurement of a rate of increase of throughput of said application; and
determination that said rate of increase of utilization exceeds said rate of increase of throughput by a threshold scale factor.
4. The system of claim 3 , wherein said profiling circuitry is further to detect existence of a scalability problem based on determination that utilization of said at least one of said CPUs exceeds a threshold utilization value.
5. The system of claim 3 , wherein said throughput of said application is estimated based on measured network traffic associated with said application.
6. The system of claim 1 , wherein said access contention is a data access conflict or contention for a synchronization lock.
7. The system of claim 1 , wherein said resource constraint is associated with capacity of instruction pipeline buffers or capacity of cache memories.
8. The system of claim 1 , further comprising one or more performance counters to track events associated with hardware performance, wherein said profiling circuitry is further to determine if said scalability problem is associated with an access contention or a resource constraint based on a reading of one or more of said performance counters.
9. A method for tuning a multiprocessor computing system, said method comprising:
detecting existence of a scalability problem associated with the execution of an application on a number of processors of said multiprocessor computing system;
determining if said scalability problem is associated with an access contention or a resource constraint;
when said scalability problem is associated with said access contention, binding said application to a lesser number of said processors of said multiprocessor computing system; and
when said scalability problem is associated with said resource constraint, determining if said resource is limited to a processing core of one of said processors and, if so, disabling hyperthreading on said processing core.
10. The method of claim 9 , further comprising, if said scalability problem is associated with said resource constraint:
determining if said resource is shared by multiple processing cores of one of said processors and, if so, disabling a subset of said multiple processing cores.
11. The method of claim 9 , wherein said detecting existence of a scalability problem further comprises:
measuring a rate of increase of utilization of at least one of said processors;
measuring a rate of increase of throughput of said application; and
determining that said rate of increase of utilization exceeds said rate of increase of throughput by a threshold scale factor.
12. The method of claim 11 , wherein said detecting existence of a scalability problem further comprises determining that utilization of said at least one of said processors exceeds a threshold utilization value.
13. The method of claim 11 , wherein said throughput of said application is estimated based on measured network traffic associated with said application.
14. The method of claim 9 , wherein said access contention is a data access conflict or contention for a synchronization lock.
15. The method of claim 9 , wherein said resource constraint is associated with capacity of instruction pipeline buffers or capacity of cache memories.
16. The method of claim 9 , wherein said determining if said scalability problem is associated with an access contention or a resource constraint further comprises reading one or more counters to track events associated with hardware performance.
17. At least one non-transitory computer-readable storage medium having instructions stored thereon which when executed by a processor result in the following operations for tuning a multiprocessor computing system, said operations comprising:
detecting existence of a scalability problem associated with the execution of an application on a number of processors of said multiprocessor computing system;
determining if said scalability problem is associated with an access contention or a resource constraint;
when said scalability problem is associated with said access contention, binding said application to a lesser number of said processors of said multiprocessor computing system; and
when said scalability problem is associated with said resource constraint, determining if said resource is limited to a processing core of one of said processors and, if so, disabling hyperthreading on said processing core.
18. The non-transitory computer-readable storage medium of claim 17 , further comprising, if said scalability problem is associated with said resource constraint:
determining if said resource is shared by multiple processing cores of one of said processors and, if so, disabling a subset of said multiple processing cores.
19. The non-transitory computer-readable storage medium of claim 17 , wherein said detecting existence of a scalability problem further comprises:
measuring a rate of increase of utilization of at least one of said processors;
measuring a rate of increase of throughput of said application; and
determining that said rate of increase of utilization exceeds said rate of increase of throughput by a threshold scale factor.
20. The non-transitory computer-readable storage medium of claim 19 , wherein said detecting existence of a scalability problem further comprises determining that utilization of said at least one of said processors exceeds a threshold utilization value.
21. The non-transitory computer-readable storage medium of claim 19 , wherein said throughput of said application is estimated based on measured network traffic associated with said application.
22. The non-transitory computer-readable storage medium of claim 17 , wherein said access contention is a data access conflict or contention for a synchronization lock.
23. The non-transitory computer-readable storage medium of claim 17 , wherein said resource constraint is associated with capacity of instruction pipeline buffers or capacity of cache memories.
24. The non-transitory computer-readable storage medium of claim 17 , wherein said determining if said scalability problem is associated with an access contention or a resource constraint further comprises reading one or more counters to track events associated with hardware performance.
Priority Applications (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US14/842,359 US9760404B2 (en) | 2015-09-01 | 2015-09-01 | Dynamic tuning of multiprocessor/multicore computing systems |
DE112016003974.3T DE112016003974T5 (en) | 2015-09-01 | 2016-07-28 | Dynamically tuning multiprocessor / multicore computer systems |
CN201680045258.0A CN107851041B (en) | 2015-09-01 | 2016-07-28 | Dynamic tuning of multiprocessor/multicore computing systems |
PCT/US2016/044439 WO2017039895A1 (en) | 2015-09-01 | 2016-07-28 | Dynamic tuning of multiprocessor/multicore computing systems |
US15/670,525 US10452443B2 (en) | 2015-09-01 | 2017-08-07 | Dynamic tuning of multiprocessor/multicore computing systems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US14/842,359 US9760404B2 (en) | 2015-09-01 | 2015-09-01 | Dynamic tuning of multiprocessor/multicore computing systems |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US15/670,525 Continuation US10452443B2 (en) | 2015-09-01 | 2017-08-07 | Dynamic tuning of multiprocessor/multicore computing systems |
Publications (2)
Publication Number | Publication Date |
---|---|
US20170060635A1 US20170060635A1 (en) | 2017-03-02 |
US9760404B2 true US9760404B2 (en) | 2017-09-12 |
Family
ID=58095555
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US14/842,359 Active 2035-12-18 US9760404B2 (en) | 2015-09-01 | 2015-09-01 | Dynamic tuning of multiprocessor/multicore computing systems |
US15/670,525 Active 2035-10-08 US10452443B2 (en) | 2015-09-01 | 2017-08-07 | Dynamic tuning of multiprocessor/multicore computing systems |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US15/670,525 Active 2035-10-08 US10452443B2 (en) | 2015-09-01 | 2017-08-07 | Dynamic tuning of multiprocessor/multicore computing systems |
Country Status (4)
Country | Link |
---|---|
US (2) | US9760404B2 (en) |
CN (1) | CN107851041B (en) |
DE (1) | DE112016003974T5 (en) |
WO (1) | WO2017039895A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10498817B1 (en) * | 2017-03-21 | 2019-12-03 | Amazon Technologies, Inc. | Performance tuning in distributed computing systems |
US10564702B2 (en) * | 2017-06-28 | 2020-02-18 | Dell Products L.P. | Method to optimize core count for concurrent single and multi-thread application performance |
US11327869B2 (en) * | 2017-07-10 | 2022-05-10 | Dell Products L.P. | Distributed architecture for determining performance parameters |
FR3103663B1 (en) * | 2019-11-27 | 2021-11-19 | Amadeus Sas | TESTING AND MAINTAINING RESILIENCE FACING SERVER RESOURCE FAILURES |
TWI819662B (en) * | 2022-06-16 | 2023-10-21 | 瑞昱半導體股份有限公司 | System profiling and controlling method and computer system thereof |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020116469A1 (en) | 2001-02-20 | 2002-08-22 | Nec Corporation | Multiprocessor system, shared-memory controlling method, recording medium and data signal embedded in a carrier wave |
US20030236816A1 (en) * | 2002-06-20 | 2003-12-25 | Lakshminarayanan Venkatasubramanian | Spin-yielding in multi-threaded systems |
US6813760B1 (en) | 2000-11-30 | 2004-11-02 | Nortel Networks Limited | Method and a tool for estimating probability of data contention in a multi-processor shared-memory system |
US7890626B1 (en) | 2008-09-11 | 2011-02-15 | Gadir Omar M A | High availability cluster server for enterprise data management |
US20120180061A1 (en) | 2011-01-10 | 2012-07-12 | International Business Machines Corporation | Organizing Task Placement Based On Workload Characterizations |
US20120227042A1 (en) * | 2004-12-16 | 2012-09-06 | Vmware, Inc. | Mechanism for scheduling execution of threads for fair resource allocation in a multi-threaded and/or multi-core processing system |
EP2602964A1 (en) | 2010-08-06 | 2013-06-12 | ZTE Corporation | Method, device and equipment for service management |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7430220B2 (en) * | 2005-07-29 | 2008-09-30 | International Business Machines Corporation | System load based dynamic segmentation for network interface cards |
CN101770401B (en) * | 2008-12-30 | 2013-09-18 | 北京天融信网络安全技术有限公司 | Method for building multi-core operating environment |
US8695008B2 (en) * | 2011-04-05 | 2014-04-08 | Qualcomm Incorporated | Method and system for dynamically controlling power to multiple cores in a multicore processor of a portable computing device |
CN104657219B (en) * | 2015-02-27 | 2017-10-20 | 西安交通大学 | A kind of application program threads number dynamic adjusting method being used under isomery many-core system |
US20160378168A1 (en) * | 2015-06-26 | 2016-12-29 | Advanced Micro Devices, Inc. | Dynamic power management optimization |
US9740266B2 (en) | 2015-09-04 | 2017-08-22 | Mediatek Inc. | Apparatus and method for controlling multi-core of electronic device |
US10572261B2 (en) | 2016-01-06 | 2020-02-25 | Nxp Usa, Inc. | Providing task-triggered deterministic operational mode for simultaneous multi-threaded superscalar processor |
-
2015
- 2015-09-01 US US14/842,359 patent/US9760404B2/en active Active
-
2016
- 2016-07-28 WO PCT/US2016/044439 patent/WO2017039895A1/en active Application Filing
- 2016-07-28 CN CN201680045258.0A patent/CN107851041B/en active Active
- 2016-07-28 DE DE112016003974.3T patent/DE112016003974T5/en active Pending
-
2017
- 2017-08-07 US US15/670,525 patent/US10452443B2/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6813760B1 (en) | 2000-11-30 | 2004-11-02 | Nortel Networks Limited | Method and a tool for estimating probability of data contention in a multi-processor shared-memory system |
US20020116469A1 (en) | 2001-02-20 | 2002-08-22 | Nec Corporation | Multiprocessor system, shared-memory controlling method, recording medium and data signal embedded in a carrier wave |
US20030236816A1 (en) * | 2002-06-20 | 2003-12-25 | Lakshminarayanan Venkatasubramanian | Spin-yielding in multi-threaded systems |
US20120227042A1 (en) * | 2004-12-16 | 2012-09-06 | Vmware, Inc. | Mechanism for scheduling execution of threads for fair resource allocation in a multi-threaded and/or multi-core processing system |
US7890626B1 (en) | 2008-09-11 | 2011-02-15 | Gadir Omar M A | High availability cluster server for enterprise data management |
EP2602964A1 (en) | 2010-08-06 | 2013-06-12 | ZTE Corporation | Method, device and equipment for service management |
US20120180061A1 (en) | 2011-01-10 | 2012-07-12 | International Business Machines Corporation | Organizing Task Placement Based On Workload Characterizations |
Non-Patent Citations (6)
Title |
---|
Hruska, Joel, "Intel Releases rare details of its custom CPUs for Oracle-and there's a lot more to come," http://www.extremetech.com/computing/180755-intel-releases-rare-details-of-its-customized-oracle-cpus-and-there-a-lot-more-to-come, Jul. 29, 2014, 4 pages. |
Hruska, Joel, "Intel Releases rare details of its custom CPUs for Oracle—and there's a lot more to come," http://www.extremetech.com/computing/180755-intel-releases-rare-details-of-its-customized-oracle-cpus-and-there-a-lot-more-to-come, Jul. 29, 2014, 4 pages. |
Intel-Oracle OpenWorld Keynote Sep. 28, 2014, http://medianetwork.oracle.com/video/player/3811218654001, 1 page. |
Intel—Oracle OpenWorld Keynote Sep. 28, 2014, http://medianetwork.oracle.com/video/player/3811218654001, 1 page. |
International Search Report and Written Opinion issued in PCT Application No. PCT/US2016/044439, dated Nov. 7, 2016. |
SuperMicro, SuperServer 5086B-TRF (Complete System Only), http://www.supermicro.com/products/system/5U/5086/SYS-5086B-TRF.cfm, 2 pages. |
Also Published As
Publication number | Publication date |
---|---|
US20170060635A1 (en) | 2017-03-02 |
US20170337083A1 (en) | 2017-11-23 |
CN107851041B (en) | 2022-03-29 |
DE112016003974T5 (en) | 2018-06-14 |
CN107851041A (en) | 2018-03-27 |
WO2017039895A1 (en) | 2017-03-09 |
US10452443B2 (en) | 2019-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10452443B2 (en) | Dynamic tuning of multiprocessor/multicore computing systems | |
US10372498B2 (en) | Dynamic virtual CPU core allocation | |
US9954744B2 (en) | Estimation of application performance variation without a priori knowledge of the application | |
US9098337B2 (en) | Scheduling virtual central processing units of virtual machines among physical processing units | |
US9268542B1 (en) | Cache contention management on a multicore processor based on the degree of contention exceeding a threshold | |
US20160306677A1 (en) | Automatic Analytical Cloud Scaling of Hardware Using Resource Sub-Cloud | |
US9460032B2 (en) | Apparatus and method for processing an interrupt | |
US9720744B2 (en) | Performance monitoring of shared processing resources | |
US20140149078A1 (en) | Performance measurement unit, processor core including the same and process profiling method | |
US10095305B2 (en) | Wake lock aware system wide job scheduling for energy efficiency on mobile devices | |
CN108664367B (en) | Power consumption control method and device based on processor | |
US20080320487A1 (en) | Scheduling tasks across multiple processor units of differing capacity | |
US11734067B2 (en) | Multi-core system and controlling operation of the same | |
WO2016154807A1 (en) | Dynamic cache allocation | |
US8862786B2 (en) | Program execution with improved power efficiency | |
CN113485838A (en) | Server distribution method and device, electronic equipment and computer readable storage medium | |
CN112817836A (en) | Method, device, equipment and storage medium for determining server load | |
KR102443089B1 (en) | Synchronization in a computing device | |
CN114595063A (en) | Method and device for determining access frequency of data | |
US20240143061A1 (en) | System on chip and operation method thereof | |
US11948018B2 (en) | Methods and systems for dynamic reconfiguring of hardware performance monitoring unit (PMU) events | |
US8656375B2 (en) | Cross-logical entity accelerators | |
JP2013200827A (en) | Process scheduling device, process scheduling method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: INTEL CORPORATION, CALIFORNIA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:WU, KEQIANG;CHOW, KINGSUM;FENG, YING;AND OTHERS;SIGNING DATES FROM 20150710 TO 20150730;REEL/FRAME:036470/0159 |
|
FEPP | Fee payment procedure |
Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN) |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Year of fee payment: 4 |