CN110109510A - A method of the locking farsighted frequency of CPU to highest frequency - Google Patents

A method of the locking farsighted frequency of CPU to highest frequency Download PDF

Info

Publication number
CN110109510A
CN110109510A CN201910319906.2A CN201910319906A CN110109510A CN 110109510 A CN110109510 A CN 110109510A CN 201910319906 A CN201910319906 A CN 201910319906A CN 110109510 A CN110109510 A CN 110109510A
Authority
CN
China
Prior art keywords
cpu
frequency
farsighted
locking
clock multiplier
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.)
Withdrawn
Application number
CN201910319906.2A
Other languages
Chinese (zh)
Inventor
赵士亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Guo Xinheng Space Science And Technology Ltd
Original Assignee
Shenzhen Guo Xinheng Space Science And Technology Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Guo Xinheng Space Science And Technology Ltd filed Critical Shenzhen Guo Xinheng Space Science And Technology Ltd
Priority to CN201910319906.2A priority Critical patent/CN110109510A/en
Publication of CN110109510A publication Critical patent/CN110109510A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/10Distribution of clock signals, e.g. skew

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Executing Machine-Instructions (AREA)

Abstract

The present invention is suitable for automatic frequency adjustment technological improvement field, provides a kind of method for locking the farsighted frequency of CPU to highest frequency, comprising: S1, starting BIOS operation carry out CPU self-test and initialization;S2, read CPU register judge whether CPU supports farsighted frequency technology, if support, perform the next step, if not supporting, can not lock operation, terminate run;S3, the farsighted frequency frequency parameter value of cpu data information setting is obtained according to farsighted frequency technology;The characteristic selection power management that S4, operating system are supported according to itself is that CPU will be continuously maintained in highest frequency operation.By software strategy, realizes overclocking capabilities, cpu performance is allowed to maximize.Auto-Sensing nucleus number, Auto-matching maximum Clock Multiplier Factor;Maximum Clock Multiplier Factor is set, adjusts operating system performance control interface, CPU is allowed persistently highest frequency to be kept to run;Realize overclocking under the premise of, CPU indices within the specified scope, system stable operation guarantee.

Description

A method of the locking farsighted frequency of CPU to highest frequency
Technical field
The invention belongs to automatic frequency adjustment technological improvement field more particularly to a kind of locking farsighted frequencies of CPU to the side of highest frequency Method.
Background technique
In the market, price, hardware configuration, performance, stability are the important of measurement server product quality to server application Standard.In certain special applications markets, in order to win the victory in competition, very to system performance and stability requirement Height, to power consumption, hardware price, there is no limit, therefore in configuration server, Intel high-performance CPU, high-frequency memory bar, height The high performance hardware device such as fast network interface card, high speed solid hard disk becomes first choice, combines, reaches the performance of entire hardware system It maximizes, wherein the performance of processor is the link of most critical.
In the configuration of entire server hardware, CPU is arithmetic center and the control centre of server, the CPU speed of service pair The promotion of server overall performance is played the role of conclusive.Under same hardware configuration, in order to promote CPU maximum performance, lead to Can often overclocking be carried out to CPU, reach target, such as the heat dissipation strategy of adjustment CPU by adjusting CPU indices, adjust voltage And electric current, the outer frequency of increase, adjustment power supply, auxiliary BIOS program are handled.Although cpu performance is improved, the items of CPU Index has all had exceeded defined range, and its is easy to appear the unstable situation of system, be easy to cause the damage of CPU and nothing Method enjoys quality guarantee, these defects are that user is unacceptable.
Summary of the invention
The purpose of the present invention is to provide a kind of methods of locking farsighted frequency of CPU to highest frequency, it is intended to solve CPU in overclocking Easily there is the technical issues of system unstable damage for causing CPU.
The invention is realized in this way a method of the locking farsighted frequency of CPU is to highest frequency, and the method includes following steps It is rapid:
S1, starting BIOS operation carry out CPU self-test and initialization;
S2, reading CPU register judge whether CPU supports farsighted frequency technology, if supporting, perform the next step, if not supporting, nothing Method lock operation terminates operation;
S3, the farsighted frequency frequency parameter value of cpu data information setting is obtained according to farsighted frequency technology;
The characteristic selection power management that S4, operating system are supported according to itself is that CPU will be continuously maintained in highest frequency fortune Row.
A further technical solution of the present invention is: further comprising the steps of in the step S3:
S31, the farsighted frequency and cadence function for opening CPU;
S32, the farsighted frequency data information for reading CPU;
S33, farsighted frequency Clock Multiplier Factor numerical value is arranged according to the data information of acquisition.
A further technical solution of the present invention is: further including following steps in the step S31:
S311, MSR setting program is called to open cadence technology;
S312, the cadence technology for calling the whole cores of multi-core processing routine unlatching;
S313, it calls configuration space to execute the farsighted frequency technology of program unlatching and setting is synchronized to multiple processors.
A further technical solution of the present invention is: further comprising the steps of in the step S32:
S321, the nucleus number that CPU element control power supply register obtains CPU activation is read;
S322, farsighted frequency nucleus number limitation memory acquisition CPU core number distributed data is read;
S323, farsighted frequency frequency multiplication limit register acquisition Clock Multiplier Factor segmentation distributed data is read.
A further technical solution of the present invention is: further comprising the steps of in the step S33:
S331, according to the corresponding relationship of farsighted frequency nucleus number limit register and farsighted frequency frequency multiplication limit register and read current CPU's Nucleus number is activated to calculate the maximum Clock Multiplier Factor numerical value of current farsighted frequency dynamic adjustment;
S332, call MSR setting program that maximum frequency multiplication numerical value is arranged into Properties Control register as Clock Multiplier Factor default Value.
A further technical solution of the present invention is: power management is respectively traditional mode and primary in the step S4 Mode;It is further comprising the steps of when power management selects traditional mode:
S411, cpu performance number of states is configured and removes performance state;
S412, maximum Clock Multiplier Factor numerical value setting cpu performance is controlled in data-interface;
S413, cpu performance control data are read and farsighted frequency Clock Multiplier Factor is arranged in control interface.
A further technical solution of the present invention is: further comprising the steps of when power management selects primary mode:
S421, closing Properties Control interface make operating system that can not adjust CPU Clock Multiplier Factor;
S422, CPU will default farsighted frequency Clock Multiplier Factor and be arranged to maximum Clock Multiplier Factor.
A further technical solution of the present invention is: including that maximum performance controls in the Properties Control register of primary mode Register, minimum performance control register and request Properties Control register.
A further technical solution of the present invention is: CPU is to hardware check, hardware basic setup, resource in the step S1 Distribution is initialized.
The beneficial effects of the present invention are: being arranged by software, the attainable peak of farsighted frequency Technique dynamic frequency institute is locked It is fixed, so that CPU continuous service is realized overclocking far more than the rated frequency of CPU in highest frequency, is improved the performance of whole system.It mentions Under the premise of high-frequency, keep CPU stable operation in defined power consumption, electric current, voltage and temperature range, it is ensured that CPU will not Because ultra-specification damages, prolong the service life, quality guarantee can be enjoyed breaking down.CPU indices are transported within the specified scope Row ensures CPU operation stability, ensures the operation stability of whole system in CPU design tolerance band.
Detailed description of the invention
Fig. 1 is the flow chart one of method of the locking farsighted frequency of CPU provided in an embodiment of the present invention to highest frequency.
Fig. 2 is the flowchart 2 of method of the locking farsighted frequency of CPU provided in an embodiment of the present invention to highest frequency.
Fig. 3 is the block diagram of operating system provided in an embodiment of the present invention.
Specific embodiment
As shown in Figure 1, the locking farsighted frequency of CPU provided by the invention is to the method for highest frequency, details are as follows:
Step S1, starting BIOS operation carry out CPU self-test and initialization;CPU initialization module is responsible for CPU progress self-test, just Beginningization configuration, CPU can be worked normally, and farsighted frequency parameter configuration module is responsible for detecting CPU to the support situation of farsighted frequency function, if It supports farsighted frequency function, opens cadence, farsighted frequency function, read CPU core number, calculate frequency parameter, configure the default of CPU frequency parameter Value, traditional mode power management module are responsible for power management of the CPU under conventional power source management mode, carry out overclocking, primary mould Formula power management module is responsible for power management of the CPU under primary powder source management mode, and configuration parameter carries out overclocking.BIOS is opened When dynamic operation, the initialization such as CPU self-test, initial work are carried out, then carries out hardware check, hardware basic setup, resource allocation Work.
Step S2, it reads CPU register and judges whether CPU supports farsighted frequency technology, if supporting, perform the next step, if not Support, then can not lock operation, terminate operation;After CPU is worked normally, cpuid instruction is assigned to CPU, reads the deposit of CPU ability Device, judges whether CPU supports farsighted frequency technology, if it does not, can not conduct the locking operations, terminates operation.If supporting farsighted frequency Technology then performs the next step.
Step S3, cpu data information is obtained according to farsighted frequency technology and farsighted frequency frequency parameter value is set;Call MSR that program is set, Cadence technical functionality is opened, cadence technical functionality is the precondition of farsighted frequency technology, then calls multi-core processing routine, opens Open the cadence technical functionality of whole cores.Next it calls configuration space to execute program, opens farsighted frequency technology, and setting is synchronized To multiple processors.Configuration reading program is called, cpu power control unit register is read, reads the nucleus number of CPU activation.By It is limited in the thermal design power of CPU, the nucleus number of CPU activation is fewer, and maximum Clock Multiplier Factor is bigger, and the nucleus number of CPU activation is more, most Big Clock Multiplier Factor is smaller, in practical application scene, needs less CPU core number, higher CPU running frequency, competence exertion maximality It can, it is therefore desirable to according to the actual application, the nucleus number that setting CPU is activated.MSR reading program is called, farsighted frequency nucleus number limit is read Register processed obtains CPU core number and is segmented distributed data, and data will indicate that under a certain segmentation Clock Multiplier Factor, the nucleus number that can be supported Quantity, then farsighted frequency frequency multiplication limit register is read, it obtains Clock Multiplier Factor and is segmented distributed data, data will indicate that CPU not coactivation The Clock Multiplier Factor numerical value of nucleus number, farsighted frequency nucleus number limit register and farsighted frequency frequency multiplication limit register are corresponding relationships, according to program The current CPU read activates nucleus number, can calculate the maximum Clock Multiplier Factor numerical value of current farsighted frequency dynamic adjustment.Call MSR setting The Properties Control register of maximum frequency multiplication numerical value setting to traditional mode as Clock Multiplier Factor default value, while also will by program Maximum frequency multiplication numerical value is arranged into the Properties Control register of primary mode, including maximum performance controls register, minimum performance Register, request Properties Control register are controlled, as Clock Multiplier Factor default value.
Step S4, the characteristic selection power management that operating system is supported according to itself is that CPU will be continuously maintained in most High-frequency operation.The characteristic that operating system is supported according to itself selects power management, if selecting primary mode, closes Properties Control interface is closed, allows operating system that can not adjust CPU Clock Multiplier Factor, CPU, which will be used, defaults farsighted frequency Clock Multiplier Factor, default times Frequency coefficient is already set as maximum Clock Multiplier Factor, while remaining constant frequently outside, and outer frequency is equal to CPU operation frequency multiplied by frequency multiplication Rate, therefore CPU will be continuously maintained in highest frequency operation at this time.If selecting traditional mode, setting cpu performance number of states is 1, energy-efficient performance state is removed, allows CPU that can only operate in maximum performance states, by maximum Clock Multiplier Factor numerical value setting to CPU It can control in data-interface, operating system reads cpu performance control data and is arranged into farsighted frequency Clock Multiplier Factor control interface, CPU is allowed to operate under maximum Clock Multiplier Factor, equally, outer frequency remains constant, and outer frequency is equal to CPU running frequency multiplied by frequency multiplication, Therefore CPU will be continuously maintained in highest frequency operation at this time.
It is arranged by software, the attainable peak of farsighted frequency Technique dynamic frequency institute is locked, makes CPU continuous service most High-frequency realizes overclocking, improves the performance of whole system far more than the rated frequency of CPU.Under the premise of improving frequency, keep CPU stable operation is in defined power consumption, electric current, voltage and temperature range, it is ensured that CPU will not be damaged because of ultra-specification, and extension makes With the service life, quality guarantee can be enjoyed breaking down.CPU indices are run within the specified scope, in CPU design tolerance band It is interior, it ensures CPU operation stability, ensures the operation stability of whole system.
In this method, by software strategy, realizes overclocking capabilities, cpu performance is allowed to maximize.Auto-Sensing nucleus number, automatically Match maximum Clock Multiplier Factor;Maximum Clock Multiplier Factor is set, adjusts operating system performance control interface, CPU is allowed persistently to keep highest Frequency operation;Realize overclocking under the premise of, CPU indices within the specified scope, system stable operation guarantee.
BIOS:(Basic Input Output System) basic input output system, it is mainly used for computer booting The initialization and detection of various hardware devices in the process.
CPU:(Central Processing Unit) central processing unit, one piece of ultra-large integrated circuit is one The arithmetic core (Core) and control core (Control Unit) of computer.Its function is mainly interpretive machine instruction And the data in processing computer software.
MSR:(Model Specific Registers) model specific register.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.

Claims (9)

1. a kind of method for locking the farsighted frequency of CPU to highest frequency, which is characterized in that the described method comprises the following steps:
S1, starting BIOS operation carry out CPU self-test and initialization;
S2, reading CPU register judge whether CPU supports farsighted frequency technology, if supporting, perform the next step, if not supporting, nothing Method lock operation terminates operation;
S3, the farsighted frequency frequency parameter value of cpu data information setting is obtained according to farsighted frequency technology;
The characteristic selection power management that S4, operating system are supported according to itself is that CPU will be continuously maintained in highest frequency fortune Row.
2. the method according to claim 1 for locking the farsighted frequency of CPU to highest frequency, which is characterized in that in the step S3 It is further comprising the steps of:
S31, the farsighted frequency and cadence function for opening CPU;
S32, the farsighted frequency data information for reading CPU;
S33, farsighted frequency Clock Multiplier Factor numerical value is arranged according to the data information of acquisition.
3. the method according to claim 2 for locking the farsighted frequency of CPU to highest frequency, which is characterized in that in the step S31 Further include following steps:
S311, MSR setting program is called to open cadence technology;
S312, the cadence technology for calling the whole cores of multi-core processing routine unlatching;
S313, it calls configuration space to execute the farsighted frequency technology of program unlatching and setting is synchronized to multiple processors.
4. the method according to claim 3 for locking the farsighted frequency of CPU to highest frequency, which is characterized in that in the step S32 It is further comprising the steps of:
S321, the nucleus number that CPU element control power supply register obtains CPU activation is read;
S322, farsighted frequency nucleus number limitation memory acquisition CPU core number distributed data is read;
S323, farsighted frequency frequency multiplication limit register acquisition Clock Multiplier Factor segmentation distributed data is read.
5. the method according to claim 4 for locking the farsighted frequency of CPU to highest frequency, which is characterized in that in the step S33 It is further comprising the steps of:
S331, according to the corresponding relationship of farsighted frequency nucleus number limit register and farsighted frequency frequency multiplication limit register and read current CPU's Nucleus number is activated to calculate the maximum Clock Multiplier Factor numerical value of current farsighted frequency dynamic adjustment;
S332, call MSR setting program that maximum frequency multiplication numerical value is arranged into Properties Control register as Clock Multiplier Factor default Value.
6. the method according to claim 1-5 for locking the farsighted frequency of CPU to highest frequency, which is characterized in that described Power management is respectively traditional mode and primary mode in step S4;It is also wrapped when power management selects traditional mode Include following steps:
S411, cpu performance number of states is configured and removes performance state;
S412, maximum Clock Multiplier Factor numerical value setting cpu performance is controlled in data-interface;
S413, cpu performance control data are read and farsighted frequency Clock Multiplier Factor is arranged in control interface.
7. the method according to claim 6 for locking the farsighted frequency of CPU to highest frequency, which is characterized in that in power management side It is further comprising the steps of when the formula primary mode of selection:
S421, closing Properties Control interface make operating system that can not adjust CPU Clock Multiplier Factor;
S422, CPU will default farsighted frequency Clock Multiplier Factor and be arranged to maximum Clock Multiplier Factor.
8. the method according to claim 7 for locking the farsighted frequency of CPU to highest frequency, which is characterized in that in primary mode It include maximum performance control register, minimum performance control register and request Properties Control deposit in Properties Control register Device.
9. the method according to claim 8 for locking the farsighted frequency of CPU to highest frequency, which is characterized in that in the step S1 CPU initializes hardware check, hardware basic setup, resource allocation.
CN201910319906.2A 2019-04-19 2019-04-19 A method of the locking farsighted frequency of CPU to highest frequency Withdrawn CN110109510A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910319906.2A CN110109510A (en) 2019-04-19 2019-04-19 A method of the locking farsighted frequency of CPU to highest frequency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910319906.2A CN110109510A (en) 2019-04-19 2019-04-19 A method of the locking farsighted frequency of CPU to highest frequency

Publications (1)

Publication Number Publication Date
CN110109510A true CN110109510A (en) 2019-08-09

Family

ID=67485984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910319906.2A Withdrawn CN110109510A (en) 2019-04-19 2019-04-19 A method of the locking farsighted frequency of CPU to highest frequency

Country Status (1)

Country Link
CN (1) CN110109510A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631413A (en) * 2020-12-07 2021-04-09 合肥联宝信息技术有限公司 Power adjusting method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631413A (en) * 2020-12-07 2021-04-09 合肥联宝信息技术有限公司 Power adjusting method and device
CN112631413B (en) * 2020-12-07 2022-02-08 合肥联宝信息技术有限公司 Power adjusting method and device

Similar Documents

Publication Publication Date Title
CN104169879B (en) For dynamically interrupting the method and computer system that reconfigure
CN102652296B (en) For controlling the system and method for the multiple cores in multinuclear CPU (central processing unit) based on temperature dynamic
CN104011626B (en) By the system for being used for high energy efficiency and energy-conservation, the method and apparatus that configure power-management parameter during runtime
US20120284729A1 (en) Processor state-based thread scheduling
US8862909B2 (en) System and method for determining a power estimate for an I/O controller based on monitored activity levels and adjusting power limit of processing units by comparing the power estimate with an assigned power limit for the I/O controller
EP2788866B1 (en) Method and a portable computing device (pcd) for exposing a peripheral component interface express (pcie) coupled device to an operating system operable on the pcd
KR101631426B1 (en) Communication link and network connectivity management in low power mode
KR101479590B1 (en) A heterogeneous computer system for executing software
RU2624563C2 (en) Operational performance control of the solid-state storages
BR112016014393B1 (en) METHOD FOR A MOBILE PHONE INCLUDING A MULTI-CORE PROCESSOR AND MULTI-CORN SYSTEM FOR A MOBILE PHONE
US20130061078A1 (en) Massively Multicore Processor and Operating System to Manage Strands in Hardware
TW200907660A (en) Maximum power usage setting for computering device
CN107092493B (en) System and method for adjusting BIOS option of server system performance and power consumption
TW200910211A (en) Device that determines whether to launch an application locally or remotely as a Webapp
GB2459968A (en) Using the number of times a processor has to wait for a response to determine an efficiency metric and an operational characteristic for the processor
Bhalachandra et al. An adaptive core-specific runtime for energy efficiency
US10064141B2 (en) Core frequency/count decision-based thermal mitigation optimization for a multi-core integrated circuit
CN107924225A (en) System and method for dynamically adjusting memory state transition timers
CN106762765A (en) Server fan under being configured for different type board regulates and controls method and system
CN110109510A (en) A method of the locking farsighted frequency of CPU to highest frequency
US9110723B2 (en) Multi-core binary translation task processing
WO2019085104A1 (en) Virtual machine deployment method, device, apparatus, and computer readable storage medium
WO2023192718A1 (en) Core activation and deactivation for a multi-core processor
US9152473B2 (en) Table driven multiple passive trip platform passive thermal management
WO2016180241A1 (en) Energy-conservation management method and apparatus for terminal and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20190809

WW01 Invention patent application withdrawn after publication