CN101231551A - Multiprocessor system and efficiency adjusting method thereof - Google Patents
Multiprocessor system and efficiency adjusting method thereof Download PDFInfo
- Publication number
- CN101231551A CN101231551A CNA200710008123XA CN200710008123A CN101231551A CN 101231551 A CN101231551 A CN 101231551A CN A200710008123X A CNA200710008123X A CN A200710008123XA CN 200710008123 A CN200710008123 A CN 200710008123A CN 101231551 A CN101231551 A CN 101231551A
- Authority
- CN
- China
- Prior art keywords
- processing unit
- processing units
- control unit
- mentioned
- processing
- 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.)
- Granted
Links
Images
Landscapes
- Power Sources (AREA)
Abstract
Description
技术领域 technical field
本发明涉及一种多处理器系统的技术,且特别涉及一种多处理器系统及其效能调整方法。The invention relates to a technology of a multiprocessor system, and in particular to a multiprocessor system and a performance adjustment method thereof.
背景技术 Background technique
请参照图1,其所示为已知多处理器系统的示意图。多处理器系统100一般组设在计算机装置的主机板上,且这种多处理器系统100通常包括两颗以上的中央处理单元(CPU),例如:第一处理单元110及第二处理单元120,以及分别供应电源至这些处理单元110,120的第一电压调节模块(VoltageRegulator Module,VRM)VR1及第二电压调节模块VR2。Please refer to FIG. 1 , which is a schematic diagram of a known multi-processor system. The
目前的电压调节模块均能够适应处理单元的核心电压准位需求来调整输出电压。例如,第一电压调节模块VR1可依据第一处理单元110中相关的接脚状态变化而形成动态电压识别码(Voltage Identification Code,简称VID),来产生相对应的电压(Vcorel)给第一处理单元110。藉此,第一处理单元110处于不同运作负载时,都可由第一电压调节模块VR1得到适当的电源供应,以增加处理效能或避免无谓的功耗。相类似地,第二电压调节模块VR2也以同样方式独立供电至第二处理单元120,遂不赘述。All current voltage regulation modules can adjust the output voltage according to the core voltage level requirement of the processing unit. For example, the first voltage regulation module VR1 can generate a dynamic voltage identification code (Voltage Identification Code, VID for short) according to the state change of the related pins in the first processing unit 110, so as to generate a corresponding voltage (Vcorel) for the first processing unit 110. Unit 110. In this way, when the first processing unit 110 is under different operating loads, it can obtain proper power supply from the first voltage regulation module VR1, so as to increase processing performance or avoid unnecessary power consumption. Similarly, the second voltage regulation module VR2 also independently supplies power to the
此外,市场上也开发出具备了多级工作模式的处理器,可在正常模式(C0-Active)、暂停模式(C1-Halt)、频率停止模式(C2-Stop Clock)、深度睡眠模式(C3-Deep Sleep)、及超深睡眠模式(C4-Deeper Sleep)之间切换,以适应系统负载情形来自动改变处理器的核心频率及工作电压。甚者,许多桌上型与笔记本计算机更应用EIST(Enhanced Intel Speed-StepTechnology)技术(增强型超深睡眠技术),来改善系统高热及高耗电问题。其它如CPU Throttling或其它计算机大厂针对CPU的相关效能调整技术便不赘述。In addition, processors with multi-level working modes have also been developed on the market, which can be in normal mode (C0-Active), pause mode (C1-Halt), frequency stop mode (C2-Stop Clock), deep sleep mode (C3 -Deep Sleep), and ultra-deep sleep mode (C4-Deeper Sleep) to automatically change the core frequency and operating voltage of the processor to adapt to the system load situation. What's more, many desktop and notebook computers use EIST (Enhanced Intel Speed-Step Technology) technology (enhanced ultra-deep sleep technology) to improve the system's high heat and high power consumption problems. Other related performance adjustment technologies such as CPU Throttling or other major computer manufacturers for CPU will not be described in detail.
然而众所周知,即使在目前双CPU或多核心处理器的硬件水平下,能对应支持的软件程序仍属少见。例如游戏开发者碍于程序设计难度,几乎仍全以单执行绪(Single Thread)的方式来撰写游戏程序,造成多处理器系统100只会使用一颗处理单元(如第一处理单元110)来执行计算机游戏软件,而未被使用的第二处理单元120则处于闲置。或者,即使上述这些处理单元110,120都分配到处理量相当的运算数据,却往往由于程序在写作或编译时并未针对多处理器架构做最佳化处理,以至于数据间仍具有关连性而非完全独立。此时,第二处理单元120可能需等待接收第一处理单元110的输出结果才能开始执行所负责的运算,即上述这些处理单元110,120无法同时完全发挥运算能力。尽管上述这些处理单元110,120理论上具备倍数于单处理器的运算能力,但遭遇上述运算瓶颈时,系统整体效能的提升仍有所局限,无法表现出预期中相较单处理器的多处理器运算优势。However, as we all know, even at the current hardware level of dual-CPU or multi-core processors, it is still rare to have correspondingly supported software programs. For example, due to the difficulty of program design, game developers almost still write game programs in a single thread (Single Thread) manner, causing the
发明内容 Contents of the invention
有鉴于此,本发明的目的就是提供一种多处理器系统及其效能调整方法,以避免多处理器系统发生负载集中时的运算瓶颈,且能提升系统的总体效能(Throughput Improvement)。In view of this, the object of the present invention is to provide a multi-processor system and its performance adjustment method, so as to avoid the computing bottleneck when the multi-processor system has concentrated load, and can improve the overall performance of the system (Throughput Improvement).
根据本发明的目的,提出一种多处理器系统的效能调整方法,这个多处理器系统包括第一处理单元及第二处理单元。上述效能调整方法包括下述步骤:(a)检测上述这些处理单元的负载,以获得多个相对应的检测结果;(b)根据上述这些检测结果,判断负载是否集中在这些处理单元的其中一个处理单元;以及(c)若负载集中在上述第一处理单元,则提高第一处理单元的供电,或一并提高其运算能力。According to the object of the present invention, a performance adjustment method of a multi-processor system is proposed, and the multi-processor system includes a first processing unit and a second processing unit. The above performance adjustment method includes the following steps: (a) detecting the loads of the above processing units to obtain a plurality of corresponding detection results; (b) judging whether the load is concentrated on one of the processing units according to the above detection results a processing unit; and (c) if the load is concentrated on the above-mentioned first processing unit, increasing the power supply of the first processing unit, or increasing its computing capability at the same time.
在本发明的一实施例中,在步骤(c)中,更包括提高第一处理单元的工作频率或内部倍频。In an embodiment of the present invention, step (c) further includes increasing the operating frequency or internal frequency multiplier of the first processing unit.
在本发明的一实施例中,多处理器系统更包括控制单元及频率产生器,控制单元分别与上述这些处理单元及频率产生器电性连接,且频率产生器并分别与上述这些处理单元电性连接,控制单元通过控制频率产生器来提高第一处理单元的工作频率。In an embodiment of the present invention, the multiprocessor system further includes a control unit and a frequency generator, the control unit is electrically connected to the above processing units and the frequency generator, and the frequency generator is electrically connected to the above processing units respectively. The control unit increases the operating frequency of the first processing unit by controlling the frequency generator.
在本发明的一实施例中,控制单元通过内部集成电路总线(I2C Bus)来控制频率产生器,藉此控制单元便可通过内部集成电路总线来提高第一处理单元的工作频率。In an embodiment of the present invention, the control unit controls the frequency generator through an inter-integrated circuit bus (I 2 C Bus), so that the control unit can increase the operating frequency of the first processing unit through the inter-integrated circuit bus.
在本发明的一实施例中,在步骤(c)中,更包括降低第二处理单元的供电、工作频率、内部倍频、或电源状态。In an embodiment of the present invention, in step (c), it further includes reducing the power supply, operating frequency, internal frequency multiplier, or power state of the second processing unit.
在本发明的一实施例中,在步骤(a)中,是利用硬件监测手段或软件监测手段来检测上述这些处理单元的负载。In an embodiment of the present invention, in step (a), the loads of the above-mentioned processing units are detected by means of hardware monitoring or software monitoring.
根据本发明的目的,提出一种多处理器系统,这个多处理器系统包括多个处理单元、频率产生器、电源供应装置、多个开关单元、及控制单元。上述频率产生器分别电性连接上述这些处理单元,并可分别提供工作频率至上述这些处理单元。上述电源供应装置可分别提供上述这些处理单元所需的电源。上述这些开关单元分别电性连接于电源供应装置及上述这些处理单元之间。上述控制单元分别电性连接上述这些处理单元、频率产生器、及上述这些开关单元,以使得控制单元可藉由控制上述这些开关单元来调整上述电源供应装置提供至上述这些处理单元的电源,且控制单元可藉由控制频率产生器来调整提供至上述这些处理单元的工作频率。According to the object of the present invention, a multi-processor system is proposed, and the multi-processor system includes a plurality of processing units, a frequency generator, a power supply device, a plurality of switching units, and a control unit. The above-mentioned frequency generators are respectively electrically connected to the above-mentioned processing units, and can respectively provide operating frequencies to the above-mentioned processing units. The above-mentioned power supply device can respectively provide the power required by the above-mentioned processing units. The aforementioned switching units are respectively electrically connected between the power supply device and the aforementioned processing units. The control unit is electrically connected to the processing units, the frequency generator, and the switching units, so that the control unit can adjust the power provided by the power supply device to the processing units by controlling the switching units, and The control unit can adjust the operating frequency provided to the above processing units by controlling the frequency generator.
在本发明的一实施例中,控制单元利用硬件监测手段或软件监测手段来检测上述这些处理单元的负载,以获得多个相对应的检测结果。In an embodiment of the present invention, the control unit uses hardware monitoring means or software monitoring means to detect the loads of the aforementioned processing units, so as to obtain a plurality of corresponding detection results.
在本发明的一实施例中,硬件监测手段是利用检测单元来实施,且检测单元分别电性连接上述这些处理单元以及控制单元。In an embodiment of the present invention, the hardware monitoring means is implemented by using a detection unit, and the detection unit is electrically connected to the above-mentioned processing units and the control unit respectively.
在本发明的一实施例中,控制单元依据上述这些检测结果来判断负载是否集中在上述这些处理单元的其中一个处理单元。若负载集中在上述第一处理单元,则控制单元控制上述这些开关单元的操作,来提高第一处理单元的供电。控制单元亦可通过内部集成电路总线控制上述频率产生器,以提高第一处理单元的工作频率。或者,控制单元亦可提高第一处理单元的内部倍频。In an embodiment of the present invention, the control unit judges whether the load is concentrated on one of the above processing units according to the above detection results. If the load is concentrated on the first processing unit, the control unit controls the operations of the switching units to increase the power supply of the first processing unit. The control unit can also control the frequency generator through the inter-integrated circuit bus to increase the operating frequency of the first processing unit. Alternatively, the control unit can also increase the internal frequency multiplier of the first processing unit.
在本发明的一实施例中,上述这些开关单元为晶体管开关。In an embodiment of the present invention, the aforementioned switch units are transistor switches.
在本发明的一实施例中,软件监测手段是利用应用程序或操作系统来读取上述这些处理单元的使用率。In an embodiment of the present invention, the software monitoring means uses an application program or an operating system to read the usage rates of the above processing units.
综上,本发明的有益效果是能够弹性分配多处理器系统中各处理单元所获得的供电量,确保高负载的处理单元能以全速运作来执行运算而缩短运算瓶颈的时间To sum up, the beneficial effect of the present invention is that it can flexibly allocate the power supply obtained by each processing unit in a multi-processor system, ensure that the high-load processing unit can operate at full speed to perform calculations and shorten the time of calculation bottlenecks
为让本发明的上述目的、特征、和优点能更明显易懂,下文特举较佳实施例,并配合附图,作详细说明如下。In order to make the above objects, features, and advantages of the present invention more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.
附图说明 Description of drawings
图1为现有多处理器系统的示意图。FIG. 1 is a schematic diagram of an existing multiprocessor system.
图2为本发明较佳实施例的多处理器系统的示意图。FIG. 2 is a schematic diagram of a multi-processor system according to a preferred embodiment of the present invention.
图3为本发明较佳实施例的多处理器系统的效能调整方法流程图。FIG. 3 is a flowchart of a performance adjustment method for a multi-processor system according to a preferred embodiment of the present invention.
具体实施方式 Detailed ways
如上所述,在图1中,当负载集中在第一处理单元110时,第二处理单元120可能始终闲置或暂时以省电模式等待第一处理单元110的运算结果;而轮到负载集中于第二处理单元120时,第一处理单元110同样没有对缩短处理时间做出贡献。也就是说,在现阶段缺乏支持多CPU的程序设计下,多处理器系统100的整体效能大幅受限于这些处理单元110,120各别的效能表现,而未能发挥同时多任务处理以提升效能。因此,在未改变软件设计的条件下,提升各别处理单元的效能可为一种改善途径。As mentioned above, in FIG. 1, when the load is concentrated on the first processing unit 110, the
以第一处理单元110为例,传统上可更换使用较高的CPU等级(功耗也较高)来直接提升运算能力,但实际上通常也需要消耗比原本处理器额定功率更高的供电量,高等级的第一处理单元110才能完全以全速运作。然而,若对应的第一电压调节模块VR1供电量不足,便会面临即使搭配多种如前述的效能调节技术也无法使第一处理单元110全速运作的窘境。本发明实施例所提供的多处理器系统可弹性分配其各处理单元所获得的供电量,以确保高负载的处理单元能以全速运作来执行运算而缩短运算瓶颈的时间。同时也无须在电压模块设计时,为了未来可能的CPU升级空间而预留额外电源供应能力。Taking the first processing unit 110 as an example, traditionally, a higher CPU level (with higher power consumption) can be replaced to directly improve the computing power, but in fact, it usually needs to consume a higher power supply than the original rated power of the processor. , the high-level first processing unit 110 can fully operate at full speed. However, if the power supply of the corresponding first voltage regulation module VR1 is insufficient, it will face the dilemma that the first processing unit 110 cannot operate at full speed even with a variety of performance regulation techniques as mentioned above. The multi-processor system provided by the embodiment of the present invention can flexibly allocate the power supply obtained by each processing unit, so as to ensure that the processing unit with high load can operate at full speed to perform calculations and shorten the time of calculation bottlenecks. At the same time, there is no need to reserve additional power supply capacity for possible future CPU upgrade space when designing the voltage module.
请参照图2,其所示为本发明较佳实施例的多处理器系统的示意图。多处理器系统200包括第一处理单元210、第二处理单元220、电源供应装置230、多个开关单元241、242、243、244、控制单元250、频率产生器频率产生器260、及检测单元270。在本实施例中,上述这些处理单元210、220皆为中央处理单元(CPU)。在其它实施例中,检测单元270可以被省略,而改用软件检测手段来实施,有关详细说明,容后再述。Please refer to FIG. 2 , which is a schematic diagram of a multi-processor system according to a preferred embodiment of the present invention. The
上述频率产生器260分别电性连接上述这些处理单元210、220,且频率产生器260可分别提供工作频率(又称外频)至上述这些处理单元210、220。The
电源供应装置230用以提供上述这些处理单元210、220所需的电源。在本实施例中,电源供应装置230包括第一电压调节模块231、及第二电压调节模块232,其中第一电压调节模块231及第二电压调节模块232可以分别提供上述这些处理单元210、220所需的电源。值得一提的是,在初始设定下,电源供应装置230如图1所示的方式,第一电压调节模块231提供电源给第一处理单元210,且第二电压调节模块232供电给第二处理单元220。The
上述开关单元241~244分别电性连接于电源供应装置230及上述这些处理单元210、220间。如图2所示,开关单元241电性连接于第一电压调节模块231及第一处理单元210之间,以控制第一电压调节模块231及第一处理单元210之间的供电路径。开关单元243电性连接于第二电压调节模块232及第一处理单元210之间,以控制第二电压调节模块232及第一处理单元210之间的另一供电路径。开关单元242、244则利用类似开关单元241、243的电性连接方式来分别控制电源供应装置230与第二处理单元220之间的二供电路径。藉此,电源供应装置230产生的电源可经由开关单元241~244所控制的供电路径来输出至上述这些处理单元210、220。The switch units 241 - 244 are electrically connected between the
控制单元250分别电性连接处理单元210、220、频率产生器260、及开关单元241~244,以使得控制单元250可藉由控制开关单元241~244来调整电源供应装置230提供至处理单元210、220的电源,且控制单元250可藉由控制频率产生器260来调整提供至处理单元210、220的工作频率。The
也就是说,本实施所提供的控制单元250可以根据各处理单元210、220的负载来控制开关单元241~244,以弹性调整各处理单元210、220所需的供电量或工作频率,其中控制单元250是利用硬件监测手段或软件监测手段来检测处理单元210、220的负载,以获得多个相对应的检测结果。有关如何检测处理单元210、220的负载的说明,容后详述。That is to say, the
另外,在本实施例中,值得一提的是,控制单元250可通过如内部集成电路(Inter-integrated Circuit,I2C)总线来控制频率产生器260产生上述这些处理单元210、220的外频频率讯号。在其它实施例中,控制单元250亦可通过其它接口来控制频率产生器260所产生的外频频率讯号。In addition, in this embodiment, it is worth mentioning that the
在本实施例中,开关单元241~244以金属氧化物半导体场效接面晶体管(MOSFET)Q1~Q4来实作。在其它实施例中,开关单元241~244亦可使用双载子接面晶体管(BJT)晶体管来实现,或者其它能够利用电压或电流控制的电子开关。由于,以晶体管作为开关电路为一已知的技术,在本说明书中不再赘述。In this embodiment, the switch units 241 - 244 are implemented by MOSFETs Q1 - Q4 . In other embodiments, the switch units 241 - 244 can also be implemented by bipolar junction transistor (BJT) transistors, or other electronic switches that can be controlled by voltage or current. Since it is a known technology to use a transistor as a switch circuit, it will not be repeated in this specification.
在本实施例中,控制单元250为组设于主机板的南桥芯片(South BridgeChip),其可控制第一处理单元210、第二处理单元220、开关单元241~244、及频率产生器260的操作。在其它实施例中,控制单元250亦可为超级输入输出芯片(Super IO Chip)或者其它等效的芯片组。In this embodiment, the
相较于已知技术,虽然在初始设定下,上述这些电压调节模块231、232同样分别独立供电至上述这些处理单元210、220,但藉由开关单元241~244的设计,电压调节模块231可供电至第二处理单元220,电压调节模块232也可供电至第一处理单元210。亦即,控制单元250可通过控制开关单元241~244的动作来控制电压调节模块231,232供电至处理单元210、220的路径。Compared with the known technology, although the above-mentioned voltage regulation modules 231 and 232 are also independently powered to the above-mentioned
例如:控制单元250可以控制开关单元243导通(Turn-ON),控制开关单元244关闭(Turn-Off),使得第二电压调节模块232仅供电至第一处理单元210。相类似地,控制单元250可以控制开关单元243关闭,控制开关单元244导通,使得第二电压调节模块232仅供电至第二处理单元220。相类似地,控制单元250可以控制开关单元243导通,控制开关单元244导通,使得第二电压调节模块232同时供电至第一处理单元210与第二处理单元220。相类似地,控制单元250亦可控制开关单元241、242的操作,以控制第一电压调节模块231供电至第一处理单元210及/或第二处理单元220的供电路径。For example: the
如此一来,例如发生负载集中于第一处理单元210的情形时,控制单元250便可因应此情形来适当控制开关单元241~244,以将与低负载的第二处理单元220相对应的电压调节模块232的输出电源部分转供至高负载的第一处理单元210。亦即,上述这些电压调节模块231、232可同时供电给第一处理单元210,以使得第一处理单元210能够获得足够电源,以全速运作。In this way, for example, when the load is concentrated on the
由于处理单元负载越大时,其负载电流也会随之升高,因此,本发明较佳实施例利用一硬件监测手段来检测上述这些处理单元210、220的负载大小,以作为控制单元250调整多处理器系统的效能的依据。在本实施例中,硬件监测手段可以利用检测单元270来实施。As the load of the processing unit increases, its load current will also increase accordingly. Therefore, a preferred embodiment of the present invention uses a hardware monitoring method to detect the load of the above-mentioned
上述检测单元270分别电性连接上述这些处理单元210、220的电源输入端、及控制单元250,以检测上述这些处理单元210、220的负载电流或电压,使得控制单元250能够判断上述处理单元210、220之负载。进一步说,检测单元270可以使用多个电压调节模块231、232中的脉宽调变控制器(PWMController)的工作模式或以功率放大器(Operational Amplifier)搭配多个精密电阻实现的比较电路来实施。例如:多处理器系统200可利用脉宽调变控制器的工作周期讯号或阻抗组件的比较电路设计来检测负载电流,并将检测结果输出给控制单元250,以实现利用硬件监测手段来达成监测CPU使用率。The
另外,值得一提的是,目前安装在计算机上的操作系统通常会内建有工作管理员(Task Manager)提供CPU的负载(或称CPU使用率(CPUUtilization))等信息。此外,使用者也可使用自订的应用程序(Application,AP)来得知CPU负载。因此,在本发明的其它实施例中,多处理器系统200可利用一软件监测手段来监测CPU负载,例如:利用上述操作系统或AP来实时得知CPU使用信息,以判断上述这些处理单元210、20的负载,进而提供适当的电源给上述这些处理单元210、220。In addition, it is worth mentioning that the current operating system installed on the computer usually has a built-in task manager (Task Manager) to provide information such as CPU load (or called CPU utilization (CPUUtilization)). In addition, the user can also use a custom application program (Application, AP) to know the CPU load. Therefore, in other embodiments of the present invention, the
举例来说,当第一处理单元210的使用率高于第二处理单元220的使用率达一默认值时,控制单元250便可藉由上述CPU使用信息来判断出负载集中于第一处理单元210的情形,这种情形可能是第一处理单元210执行单一执行绪(Thread)特性的应用程序,或是第二处理器220等待第一处理器210运算结果所导致。此时,控制单元250便可控制开关单元的操作,以使上述这些电压调节模块231、232从原本的初始设定改变为共同输出大部份的电源至第一处理单元210。For example, when the usage rate of the
综上所述,本发明实施例可以利用硬件监测手段或软件监测手段来检测上述这些处理单元210、220的负载。藉此,控制单元250可依据上述这些处理单元210、220的负载的检测结果来调整电源供应装置230的供电量。在一实施例中,控制单元250可依据上述这些处理单元210、220的负载差异程度来调整电源供应装置230供电给上述这些处理单元210、220的供电量。例如:控制单元250依据上述这些处理单元210、220的负载差异程度来调整第二电压调节模块232输出给第一处理单元210及第二处理单元220的供电比例(例如:控制单元250控制开关单元243、244使用可被控制单元250调整的晶体管组件Q3及Q4的导通电流大小的开关设计),以使低负载的第二处理单元220保持最低限度的运作,同时尽量转移供电给第一处理单元210。To sum up, in the embodiment of the present invention, a hardware monitoring means or a software monitoring means may be used to detect the loads of the
为了能够更加理解本发明较佳实施例的效能调整的操作,敬请一并参照图2及图3,其中图3为本发明较佳实施例的多处理器系统的效能调整方法流程图。在步骤S305中,检测单元270检测各个处理单元210、220的负载,以产生至少一个检测结果,检测单元270并将检测结果传送至控制单元250,其中,检测单元270可以利用硬件监测手段或软件监测手段来检测处理单元210、220的负载。In order to better understand the performance adjustment operation of the preferred embodiment of the present invention, please refer to FIG. 2 and FIG. 3 together, wherein FIG. 3 is a flow chart of the performance adjustment method of the multi-processor system according to the preferred embodiment of the present invention. In step S305, the
在步骤S310中,控制单元250根据检测结果来判断目前的系统负载是否集中在单一处理单元。亦即,控制单元250根据检测结果来判断第一处理单元210的负载与第二处理单元220的负载的差值是否大于一默认值。举例来说,若第一处理单元210的负载大于第二处理单元220的负载,且其负载差值大于默认值,则控制单元250判断出负载集中在第一处理单元210。在步骤S310中,若控制单元250判断系统负载没有集中在单一处理单元,亦即系统在正常情况下,则控制单元250维持正常操作(上述这些处理单元210、220亦可维持如初始设定)且检测单元270继续检测处理单元210、220的负载。若控制单元250判断系统负载集中在单一处理单元,则执行步骤S 313。In step S310, the
在步骤S313中,控制单元250可选择组合以下步骤来降低低使用率的处理单元的功率消耗。这些步骤包括:改变其它低使用率处理单元的电源状态(Power State);使低使用率的处理单元进入低耗电的EIST模式;以及选择降低上述低使用率处理单元的工作频率或是内部倍频。In step S313 , the
举例来说,处理单元210、220的电源状态可包括正常模式(C0-Active)、暂停模式(C1-Halt)、频率停止模式(C2-Stop Clock)、深度睡眠模式(C3-DeepSleep)、及超深睡眠模式(C4-Deeper Sleep)。在本实施例中,处理单元210、220的倍频系数范围约可在1.5到20倍。在步骤S313中,低使用率处理单元例如为第二处理单元220。控制单元250便可将第二处理单元220的电源状态由C0状态改成C1状态,当然在其它实施例中,控制单元250亦可将第二处理单元220的电源状态由较耗电的状态改到其它较省电的状态,例如:C0状态改成C4状态。相类似地,控制单元250亦可将第二处理单元220的内部倍频由高倍数调整为低倍数,例如:由12倍调整到8倍。For example, the power states of the
另外,控制单元250可藉由I2C总线来降低低使用率处理单元的工作频率(又称外频)。亦即,控制单元250通过I2C总线来控制频率产生器260,使得频率产生器260输出至低使用率处理单元(例如为第二处理单元220)的工作频率降低。一般来说,处理单元210、220的外频可为50、60、66.6、75、83.3、95、100、112、124、133、...、333MHz等速度。因此,在上述例子中,频率产生器260原本输出至第二处理单元210的工作频率为124MHz,此时控制单元250可控制频率产生器260提供100MHz的工作频率至第二处理单元220。In addition, the
继而,在步骤S315中,控制单元250藉由控制开关单元241~244来分配其它低负载(低使用率)处理单元的多余供电至集中负载(高使用率)的处理单元。Then, in step S315 , the
原则上,发生负载集中的处理单元将优先获得最大供电量,而控制单元250并会视负载集中情形来控制其它负载较低的处理单元所对应的电压调节模块、及开关单元241~244,以降低输出至对应处理单元的电源,藉此,发生负载集中的处理单元便可获得较多的电源。如此一来,即可确保高负载的处理单元能以全速运作来执行运算,而缩短负载集中的时间。例如:若控制单元250判断出负载集中在第一处理单元210,则控制单元250可通过控制开关单元241~244的操作来将第二电压调节模块232所提供的大部份电源供给第一处理单元210。In principle, the processing unit with load concentration will first obtain the maximum power supply, and the
值得注意的是,在本实施例中,步骤S313算是配合步骤S315的子流程。在执行步骤S315之前,步骤S313是可以被选择执行的。在其它实施例中,步骤S325、及步骤S330亦可被选择其中一个或成为任意组合来被执行的,而第3图只是显示其中一种执行方式的组合。在其它实施例中,步骤S315被执行后,亦可仅执行步骤S330,再继续执行步骤S335。It should be noted that, in this embodiment, step S313 is regarded as a subroutine coordinating with step S315. Before step S315 is executed, step S313 can be optionally executed. In other embodiments, step S325 and step S330 can also be executed by selecting one of them or in any combination, and FIG. 3 only shows a combination of one of the execution modes. In other embodiments, after step S315 is executed, only step S330 may be executed, and then step S335 is continued.
接下来,将继续说明步骤S325、步骤S335、及其它后续步骤。此外,调整工作频率的方式与原理如下所述。Next, step S325, step S335, and other subsequent steps will be continuously explained. In addition, the method and principle of adjusting the working frequency are as follows.
在步骤S325中,控制单元250藉由I2C总线来提高高使用率处理单元的工作频率(又称外频)。亦即,控制单元250通过I2C总线来控制频率产生器260,使得频率产生器260输出至高使用率处理单元(例如为第一处理单元210)的工作频率提高。例如:频率产生器260原本输出至第一处理单元210的工作频率为124MHz,此时控制单元250控制频率产生器260提供133MHz的工作频率至第一处理单元210。In step S325, the
在步骤S330中,控制单元250提高高使用率处理单元的内部倍频,以改善系统效能。例如:在这个例子中,高使用率处理单元例如为第一处理单元210。控制单元250便可将第一处理单元210的内部倍频由低倍数调整为高倍数,例如:由12倍调整到14倍。In step S330 , the
在步骤S335中,检测单元270继续检测各个处理单元210、220的负载,并将检测结果输出至控制单元250,使得控制单元250可以判断运算瓶颈是否已解决(步骤S340)。若运算瓶颈未解决,则继续执行步骤S335。若运算瓶颈已解决,则执行步骤S345,藉由控制单元250的控制来恢复初始设定,继而继续执行步骤S305。In step S335, the
在其它实施例中,若运算瓶颈未解决,控制单元250亦可判断处理单元之间的负载差值是否大于默认值,若处理单元之间的负载差值是小于默认值(表示负载仍有集中情形,但较调整前有所改善),则可维持对于上述这些处理单元210、220的第一次调整后供电比例,并继续执行步骤S 335。若处理单元之间的负载差值是仍大于默认值,则继续执行步骤S315来再次调整供电比例。例如:由检测单元270的检测结果得知,集中供电给第一处理单元210后其负载没有减少甚至更高,控制单元250便更降低第二电压调节模块232供给第二处理单元220的电源,同时也更提高第二电压调节模块232对第一处理单元210的供电。In other embodiments, if the computing bottleneck is not resolved, the
本发明上述实施例所揭露的多处理器系统及其效能调整方法,能够弹性分配多处理器系统中各处理单元所获得的供电量,确保高负载的处理单元能以全速运作来执行运算而缩短运算瓶颈的时间。The multi-processor system and its performance adjustment method disclosed in the above-mentioned embodiments of the present invention can flexibly allocate the power supply obtained by each processing unit in the multi-processor system, and ensure that the high-load processing unit can operate at full speed to perform calculations and shorten the processing time. The time of computing bottlenecks.
综上所述,虽然本发明已以较佳实施例揭露如上,然其并非用以限定本发明。任何所属技术领域中具有通常知识者,在不脱离本发明的精神和范围内,当可作各种的更动与润饰。因此,本发明的保护范围当视权利要求书所界定者为准。To sum up, although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention should be defined by the claims.
Claims (17)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200710008123.XA CN101231551B (en) | 2007-01-26 | 2007-01-26 | Multi-processor system and its performance adjustment method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200710008123.XA CN101231551B (en) | 2007-01-26 | 2007-01-26 | Multi-processor system and its performance adjustment method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101231551A true CN101231551A (en) | 2008-07-30 |
CN101231551B CN101231551B (en) | 2014-12-10 |
Family
ID=39898074
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200710008123.XA Active CN101231551B (en) | 2007-01-26 | 2007-01-26 | Multi-processor system and its performance adjustment method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101231551B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104081312A (en) * | 2012-04-20 | 2014-10-01 | 惠普发展公司,有限责任合伙企业 | Voltage regulator control system |
CN105022469A (en) * | 2014-04-24 | 2015-11-04 | 宏达国际电子股份有限公司 | Portable electronic device and kernel exchange method thereof |
US11126470B2 (en) | 2016-12-22 | 2021-09-21 | Industrial Technology Research Institute | Allocation method of central processing units and server using the same |
CN113641235A (en) * | 2021-08-31 | 2021-11-12 | Oppo广东移动通信有限公司 | Power supply device, method, computer equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7308591B2 (en) * | 2004-12-16 | 2007-12-11 | International Business Machines Corporation | Power management of multi-processor servers |
-
2007
- 2007-01-26 CN CN200710008123.XA patent/CN101231551B/en active Active
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104081312A (en) * | 2012-04-20 | 2014-10-01 | 惠普发展公司,有限责任合伙企业 | Voltage regulator control system |
US9851768B2 (en) | 2012-04-20 | 2017-12-26 | Hewlett Packard Enterprise Development Lp | Voltage regulator control system |
CN105022469A (en) * | 2014-04-24 | 2015-11-04 | 宏达国际电子股份有限公司 | Portable electronic device and kernel exchange method thereof |
US9715272B2 (en) | 2014-04-24 | 2017-07-25 | Htc Corporation | Portable electronic device and core swapping method thereof |
CN105022469B (en) * | 2014-04-24 | 2018-06-19 | 宏达国际电子股份有限公司 | Portable electronic device and kernel exchange method thereof |
US11126470B2 (en) | 2016-12-22 | 2021-09-21 | Industrial Technology Research Institute | Allocation method of central processing units and server using the same |
CN113641235A (en) * | 2021-08-31 | 2021-11-12 | Oppo广东移动通信有限公司 | Power supply device, method, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN101231551B (en) | 2014-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI342498B (en) | Multi-processor system and performance enhancement method thereof | |
US6298448B1 (en) | Apparatus and method for automatic CPU speed control based on application-specific criteria | |
US8977880B2 (en) | Method for managing power supply of multi-core processor system involves powering off main and slave cores when master bus is in idle state | |
US7437581B2 (en) | Method and apparatus for varying energy per instruction according to the amount of available parallelism | |
US7814485B2 (en) | System and method for adaptive power management based on processor utilization and cache misses | |
TWI402647B (en) | Voltage control device, method and computer device capable of dynamically regulating voltage and effectively saving energy | |
US7134031B2 (en) | Performance control within a multi-processor system | |
CN101578565B (en) | Method and apparatus for power throttling a processor in an information handling system | |
CN101241390B (en) | Performance adjustment method of multi-core processor | |
US20080189569A1 (en) | Adjusting performance method for multi-core processor | |
US20050046400A1 (en) | Controlling operation of a voltage supply according to the activity of a multi-core integrated circuit component or of multiple IC components | |
US10528119B2 (en) | Dynamic power routing to hardware accelerators | |
JP2009520302A (en) | Method and apparatus for detecting processor state transitions | |
EP3770727B1 (en) | Technology for managing per-core performance states | |
US20220197367A1 (en) | Hardware and software coordinated cost-aware low power state selection | |
CN101231551B (en) | Multi-processor system and its performance adjustment method | |
EP4268050A1 (en) | Power management for universal serial bus (usb) type-c port | |
JP2024525376A (en) | System and method for controlling current supply in a multiprocessor core system via instruction per cycle reduction - Patents.com | |
JP2018092551A (en) | Information processing device, control method for information processing device, and control program for information processing device | |
Chip | A New DVFS Algorithm Design for Multi-core | |
CN117555405A (en) | Dynamic voltage frequency adjustment method, device, equipment, medium and processor system | |
CN1474250A (en) | Efficiency control method for central processing unit | |
Zeng et al. | Power Management for Idle Time in the Presence of Periodic Interrupt Services |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |