CN115237204A - Electronic equipment control method and electronic equipment - Google Patents

Electronic equipment control method and electronic equipment Download PDF

Info

Publication number
CN115237204A
CN115237204A CN202210876625.9A CN202210876625A CN115237204A CN 115237204 A CN115237204 A CN 115237204A CN 202210876625 A CN202210876625 A CN 202210876625A CN 115237204 A CN115237204 A CN 115237204A
Authority
CN
China
Prior art keywords
target program
information
storage unit
processing unit
core
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.)
Pending
Application number
CN202210876625.9A
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202210876625.9A priority Critical patent/CN115237204A/en
Publication of CN115237204A publication Critical patent/CN115237204A/en
Pending legal-status Critical Current

Links

Images

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/08Clock generators with changeable or programmable clock frequency
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation 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
    • G06F9/5016Allocation 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 the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a control method of electronic equipment and the electronic equipment, wherein the method comprises the following steps: determining running information of at least one target program in the electronic equipment; determining the requirement information of the target program on a central processing unit and/or a core display card of the electronic equipment based on the operation information; determining the working mode of a storage unit of the electronic equipment based on the requirement information, wherein the working frequency ranges of the storage unit in different working modes are different; and controlling the storage unit to work in the determined working mode so as to be adapted to the running of the target program. The method can control the operation modes of the memory units such as the memory according to the actual requirement of the target program, so that the adjusted operation modes of the memory units such as the memory are more adaptive to the actual use requirements of the target program on the central processing unit of the central processing unit and the core display card, and the processing efficiency of the electronic equipment on the target program is further improved.

Description

Electronic equipment control method and electronic equipment
Technical Field
The present disclosure relates to the field of hardware control of electronic devices such as computers, and in particular, to a method for controlling an electronic device and an electronic device.
Background
Many of the central processing units of some computers and other electronic devices are provided with a core graphics card (iGPU). The operation of the target program needs to use a processing unit and a core graphics card in the central processing unit, and the operation of memory units such as a memory of the electronic device is controlled at present, which mainly aims to improve the performance of the central processing unit and does not flexibly control the working mode of the memory according to the actual requirement of the target program operated in the electronic device so as to control or influence the working modes of the processing unit and the core graphics card in the central processing unit. For example, with the increase of the demand of some target programs on the core graphics card (iGPU), the working mode of the memory unit such as the memory cannot meet the data throughput requirement of the iGPU, so that the improvement of the performance of the core graphics card (iGPU) is restricted, and the display function of the electronic device is restricted.
Disclosure of Invention
The embodiment of the application provides a control method of electronic equipment, which comprises the following steps:
determining running information of at least one target program in the electronic equipment;
determining the requirement information of the target program on a central processing unit and/or a core display card of the electronic equipment based on the operation information;
determining the working mode of a storage unit of the electronic equipment based on the requirement information, wherein the working frequency ranges of the storage unit in different working modes are different;
and controlling the storage unit to work in the determined working mode so as to be adapted to the running of the target program.
Optionally, the determining, based on the operation information, information of a requirement of the target program for a central processing unit and/or a core graphics card of the electronic device includes:
acquiring identification information of the target program in the running information;
and determining the requirement information of the target program on the processing unit and/or the core display card based on the identification information.
Optionally, the determining, based on the operation information, requirement information of the target program for a central processing unit and/or a core graphics card of the electronic device includes:
under the condition that the target program is in a first running state, respectively acquiring respective currents of the processing unit and/or the core display card;
determining the demand information of the target program based on the current.
Optionally, the determining, based on the operation information, information of a requirement of the target program for a central processing unit and/or a core graphics card of the electronic device includes:
under the condition that the target program is in a second running state, acquiring state information of a calculation execution unit in the core display card and the frequency of the core display card, wherein the working state information comprises the number of the calculation execution unit;
and determining the demand information of the target program on the core display card based on the state information of the calculation execution unit and/or the frequency of the core display card.
Optionally, the determining the operation mode of the storage unit of the electronic device based on the demand information includes:
controlling the storage unit to work in a first working mode under the condition that the requirement of the target program on the core display card is determined to be larger than a first threshold value;
and under the condition that the requirement of the target program on the processing unit is determined to be larger than a second threshold value, controlling the storage unit to work in a second working mode, wherein the running frequency of the storage unit in the first working mode is higher than that in the second working mode.
Optionally, the meta-scheduler sends a first control instruction to a storage unit controller in the central processing unit;
controlling the operation frequency and/or the data delay rate of the storage unit within a range adapted to the demand information by the control of the storage unit controller.
Optionally, the controlling, by the control of the storage unit controller, the operating frequency and/or the data delay rate of the storage unit within a range adapted to the demand information includes:
and sending a second control instruction to an interface manager in the central processing unit through the storage unit controller so that the interface manager controls the operating frequency and/or the data delay rate of the storage unit through a corresponding interface.
Optionally, the controlling, by the interface manager, the operating frequency and/or the data delay rate of the storage unit through a corresponding interface includes:
and sending the second control instruction to a data management unit in the storage unit through the interface manager, so that the data management unit controls the storage array of the storage unit to work in a working mode matched with the requirement information according to the second control instruction.
An embodiment of the present application further provides an electronic device, including:
the detection module is configured to determine running information of at least one target program in the electronic equipment;
the determining module is configured to determine the requirement information of the target program on a central processing unit and/or a core display card of the electronic equipment based on the running information;
determining the working mode of a storage unit of the electronic equipment based on the requirement information, wherein the working frequency ranges of the storage unit in different working modes are different;
a control module configured to control the storage unit to operate in the determined operation mode to adapt to the operation of the target program.
An embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the memory stores therein an executable program, and the processor processes the executable program to perform the steps of the method described above.
The control method of the embodiment of the application can control the operation modes of the memory units such as the memory in the electronic equipment according to the actual operation condition and the requirement of the target program, so that the adjusted operation modes of the memory units such as the memory are more adaptive to the actual use requirements of the target program on the central processing unit and the core display card of the central processing unit, and the processing efficiency of the electronic equipment on the target program is further improved.
Drawings
Fig. 1 is a flowchart of a control method of an electronic device according to an embodiment of the present application;
FIG. 2 is a flowchart of one embodiment of step S200 in FIG. 1 according to an embodiment of the present application;
FIG. 3 is a flowchart of another embodiment of step S200 in FIG. 1 according to an embodiment of the present application;
FIG. 4 is a flowchart of another embodiment of step S200 in FIG. 1 according to an embodiment of the present application;
FIG. 5 is a flowchart of one embodiment of step S300 in FIG. 1 according to an embodiment of the present application;
FIG. 6 is a flowchart of one embodiment of step S400 of FIG. 1 according to an embodiment of the present application;
fig. 7 is a schematic diagram illustrating a connection relationship between a central processing unit and a memory according to an embodiment of the present application;
fig. 8 is a flowchart of selecting a working mode of a memory according to an embodiment of the present application;
FIG. 9 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 10 is a block diagram of an electronic device according to another embodiment of the present application.
Detailed Description
Various aspects and features of the present application are described herein with reference to the accompanying drawings.
It should be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be considered as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above, and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment, given as a non-limiting example, with reference to the attached drawings.
It is also to be understood that although the present application has been described with reference to some specific examples, those skilled in the art are able to ascertain many other equivalents to the practice of the present application.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The description may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
The method for controlling the electronic equipment and the electronic equipment can be applied to electronic equipment such as computers, and various target programs running in the electronic equipment have different requirements on a central processing unit and a core display card of the electronic equipment. The control method in this embodiment may control the operating state of the memory unit such as the memory in the electronic device according to the actual operating condition and the requirement of the target program, so that the adjusted operating mode of the memory unit such as the memory is more adapted to the actual requirements of the target program on the processing unit in the central processing unit and the core graphics card, thereby improving the processing efficiency of the electronic device.
The control method according to the embodiment of the present application is described in detail below with reference to the accompanying drawings, and fig. 1 is a flowchart of the control method for an electronic device according to the embodiment of the present application, as shown in fig. 1 and with reference to fig. 7, the method includes the following steps:
s100, determining the running information of at least one target program in the electronic equipment.
For example, the object program may be a computer program running in an electronic device such as a computer, and the object program requires hardware support of the electronic device when running. But the hardware requirements for different objects are different. Wherein the hardware requirements include requirements of a central processing unit and/or a core graphics card of the electronic device. For example, some target programs have a large demand on the processing unit of the central processing unit relative to the core graphics card, such as some documents, data transfer programs, and the like. While other object programs have a greater demand for the core graphics card of the cpu than for the processing unit, such as some image processing programs, game programs, etc.
The running information of the target program is related information of the target program in the use process, and comprises identification information of the target program, requirement information of hardware, environment information required in the running process and the like. During the running process of the object program, the electronic device may obtain the running information from the related data contained in the object program, or determine the running information according to the feedback data during the processing of the object program by the electronic device.
And S200, determining the requirement information of the target program to a central processing unit and/or a core display card of the electronic equipment based on the operation information.
Illustratively, a Central Processing Unit (CPU) of the electronic device is provided with a Processing Unit and a core graphics card. The processing unit is mainly used for explaining computer instructions and processing data in computer software, and the core display card is a graphic processing core integrated in the CPU, namely a GPU.
The different types of object programs have a large demand on the processing unit relative to the core graphics card, while other object programs have a large demand on the core graphics card relative to the processing unit. The electronic device determines the requirement information of the target program on the processing unit of the central processing unit and/or the core display card of the electronic device based on the operation information, so that the relative proportion of the requirement quantity of the target program on the processing unit and the core display card can be determined.
For example, in the running process of the target program, the processing data amount of the processing unit and the core display card and the used power information may be monitored, the demand amounts of the processing unit and the core display card may be determined according to the monitoring result, and corresponding demand information may be generated.
S300, determining the working mode of the storage unit of the electronic equipment based on the requirement information, wherein the working frequency ranges of the storage unit are different under different working modes.
For example, the memory unit may be a component of the electronic device that is capable of storing data, processing data, and/or using in conjunction with other components. For example, the storage unit may be a memory, a register, or other similar components in an electronic device, where the storage unit has a plurality of different operation modes, and the operation modes of the different operation modes are different. For example, the memory may operate in a low frequency and low latency mode of operation, or in a high frequency and high latency mode of operation. I.e. the operating frequency range of the memory cell is different in different operating modes. The different operating modes may be adapted to the operation of the corresponding object program. For example, the determination of which operation mode the memory operates in may be based on the information that determines the requirement of the target program for the processing unit of the cpu and/or the core graphics card. The memory cell after adjusting the working mode that adapts to the demand information can exert its performance more, improves the processing efficiency.
S400, controlling the storage unit to work in the determined working mode so as to adapt to the running of the target program.
Illustratively, the storage unit works in the determined working mode, and can cooperate with and promote the working of the central processing unit and the core display card of the central processing unit, so that the working mode of the processing unit and/or the core display card is more suitable for the running of the target program, and the running efficiency of the target program is improved.
For example, when the target program is a program that emphasizes the use of a core graphics card, the storage unit is a memory. On the Hybrid memory architecture, after the operating mode of the memory is determined according to the requirement information of the target program, the operating frequency interval of the memory can be determined, for example, the memory is enabled to operate in a high-frequency and high-delay mode so as to achieve the performance close to the GDDR mode. And then the running modes of the processing unit and the core display card are matched, so that the performance of the processing unit can be kept from being excessively reduced, and the data throughput of the core display card (iGPU) can be obviously improved, thereby improving the performance of the core display card (iGPU) and improving the running efficiency of the target program.
The control method of the embodiment of the application can control the operation modes of the memory units such as the memory in the electronic equipment according to the actual operation condition and the requirement of the target program, so that the adjusted operation modes of the memory units such as the memory are more adaptive to the actual use requirements of the target program on the central processing unit and the core display card of the central processing unit, and the processing efficiency of the electronic equipment on the target program is further improved.
In an embodiment of the application, the determining, based on the operation information, demand information of the object program for a central processing unit and/or a core graphics card of an electronic device, as shown in fig. 2, includes:
s210, obtaining the identification information of the target program in the running information.
Illustratively, the identification information of the target program is used to identify the identity, type and/or system requirements of the target program. The identification information may be stored in a specific directory of the operation information, and the electronic device acquires the identification information from the specific directory, thereby being able to determine the identity, type, and/or system requirement of the target program according to the identification information.
In one embodiment, the identification information may be in the form of a character string or identification code, etc. for the electronic device to acquire and use.
S220, determining the requirement information of the target program to the processing unit and/or the core display card based on the identification information.
Illustratively, the identification information identifies the identity, type, and/or system requirements of the target program. Therefore, the requirement information of the target program on the processing unit and/or the core display card can be determined according to the identification information. For example, if the identification information identifies that the target program is a large game, the electronic device may determine, according to the content in the identification information, that the target program has a higher demand for the processing unit and/or the core graphics card than for the processing unit. If the identification information identifies that the target program is a document, the electronic device may determine that the demand of the target program for the processing unit is higher than the demand of the core graphics card according to the identification information.
In an embodiment of the application, the determining, based on the operation information, information of a requirement of the object program for a processing unit in a central processing unit and/or a core graphics card of the electronic device, as shown in fig. 3, includes:
and S230, respectively acquiring the respective currents of the processing unit and/or the core display card under the condition that the target program is in the first running state.
S240, determining the requirement information of the target program based on the current.
For example, the first operating state may be one or more states of the target program during operation in the electronic device. The target program needs to be used in the processing unit and/or the core graphics card in the running process, and the processing unit and the core graphics card need to be supported by electric power when working. The processing unit and the core graphics card may work in different ways to provide different power requirements. In one embodiment, when the target program is in the first operation state, including the whole operation process, or different stages of the operation, the respective currents of the processing unit and the core graphics card may be monitored by a monitoring unit in the CPU, such as a PMC (performance monitoring counter). Based on empirical data or historical data, the current changes accordingly as required.
In one embodiment, when the current required by the processing unit increases, it indicates that the demand of the target program for the processing unit increases, or indicates that the target program is a processing unit in an overriding use object relative to the core graphics card. Otherwise, the requirement is reduced, or the target program is used as the core display card.
In another embodiment, when the current required by the core graphics card increases, it indicates that the demand of the target program on the core graphics card increases, or indicates that the target program is used as the core graphics card with respect to the processing unit. Otherwise, the requirement is reduced, or the target program is used as the processing unit in a manner of emphasizing the target program relative to the core graphics card.
Therefore, in this embodiment, the requirements of the target program on the processing unit and/or the core graphics card may be accurately determined based on the acquired current, and then the corresponding requirement information may be determined.
In an embodiment of the application, the determining, based on the operation information, information of a requirement of the object program for a processing unit in a central processing unit and/or a core graphics card of the electronic device, as shown in fig. 4, includes:
and S250, acquiring the state information of the calculation execution units in the core graphics card and the frequency of the core graphics card under the condition that the target program is in a second running state, wherein the working state information comprises the number of the calculation execution units.
For example, the second operating state may be the same as or different from the first operating state, and the second operating state may also be one or more states of the object program during operation in the electronic device.
The core video card has a computation Unit (Execution Unit), also called slices, which is responsible for executing instructions and has the functions of both a controller and an arithmetic Unit. The calculation execution unit is a main device in the core graphics card, and the state information of the calculation execution unit during operation can represent the actual demand of the core graphics card, for example, the state information includes quantity information, that is, the quantity of the calculation execution unit is required when the target program runs. The quantity information can characterize the requirement of the target program for the core display card.
In addition, the running frequency of the core graphics card can also represent the requirement of the target program for the core graphics card. For example, when the target program runs so that the running frequency of the core graphics card is gradually increased, it may be determined that the demand of the target program for the core graphics card is gradually increased. Otherwise, it may be determined that the requirement of the target program for the core graphics card is gradually reduced.
And S260, determining the demand information of the target program on the core display card based on the state information of the calculation execution unit and/or the frequency of the core display card.
For example, both the state information of the computing execution unit and the frequency of the core graphics card can accurately represent the requirement of the target program for the core graphics card, and therefore, in this embodiment, the requirement information of the core graphics card can be accurately determined based on the state information of the computing execution unit and/or the frequency of the core graphics card.
In an embodiment of the application, the determining the operation mode of the storage unit of the electronic device based on the requirement information, as shown in fig. 5, includes the following steps:
and S310, controlling the storage unit to work in a first working mode under the condition that the requirement of the target program on the core display card is determined to be greater than a first threshold value.
For example, the first threshold may be preset according to historical data and/or actual usage scenarios, and the first threshold may be a critical threshold for comparison between the core graphics card and the processing unit demand of the target program, and when the core graphics card demand of the target program is greater than the first threshold, it indicates that the core graphics card demand is greater than the processing unit demand. At this time, in order to make the electronic device more adaptive to the target program, the storage unit may be controlled to operate in the first operation mode.
Referring to fig. 7, for example, the first operating mode may be an operating mode in which the memory cells such as the memory are operated at a high frequency and with a high data delay. Such as operating frequencies of 6400GHZ to 10000GHZ. Therefore, the working mode of the memory is more adaptive to the core display card and the processing unit, the work of the central processing unit and the core display card of the central processing unit can be matched and promoted, the working mode of the processing unit and/or the core display card is more suitable for the operation of the target program, and the operation efficiency of the target program is improved.
In addition, in the first operation mode, the memory transfers the same amount of Data (Data), and the WCK _ c and/or WCK _ t in the memory can be operated at a relatively low frequency.
And S320, controlling the storage unit to work in a second working mode under the condition that the requirement of the target program on the processing unit is determined to be larger than a second threshold, wherein the running frequency of the storage unit in the first working mode is higher than that in the second working mode.
For example, the second threshold may be preset according to historical data and/or actual usage scenarios, and the second threshold may be a critical threshold for comparison between the demand of the target program for the core graphics card and the processing unit, and when the demand of the target program for the processing unit is greater than the second threshold, it indicates that the demand of the processing unit is greater than the demand of the core graphics card. At this time, in order to make the electronic device more adaptive to the target program, the storage unit may be controlled to operate in the second operation mode.
The operating frequency of the memory cell in the second operating mode is lower than the operating frequency of the memory cell in the first operating mode. The second operation mode may be an operation mode in which the memory unit such as a memory is operated at a low frequency and with low data delay. Such as operating at frequencies of 3200 to 6000GHZ. Therefore, the working mode of the memory is more adaptive to the core display card and the processing unit, the work of the central processing unit and the core display card of the central processing unit can be matched and promoted, the working mode of the processing unit and/or the core display card is more suitable for the operation of the target program, and the operation efficiency of the target program is improved.
In a specific embodiment, when the storage unit is a memory and the memory operates in the second operating mode DDR work mode, the WCK of the memory operates at 3.5GHz, which can achieve a DDR speed of 7000 Mbps. When the requirement of the target program on the core display card rises, the working mode of the memory can be adjusted to be a first working mode GDDR work mode, and under the first working mode, the WCK of the memory runs at 3.5GHz, so that the DDR speed of 14000Mbps can be realized. Of course, if the period of data transmission in a single period of the WCK is further increased, DDR speed of >14000Mbps can be realized. The method can fully play the role of sharing the video memory bandwidth of the core video card iGPU, thereby improving the data throughput rate of the iGPU and improving the speed of games, video coding and decoding and picture editing.
In an embodiment of the application, said controlling said storage unit to operate in said determined operation mode to adapt to the operation of said target program, as shown in fig. 6 and in conjunction with fig. 7, includes:
s410, sending a first control instruction to a storage unit controller in the central processing unit through a storage unit scheduler in the central processing unit.
Illustratively, the Central Processing Unit (CPU) has a memory unit scheduler therein, and when the memory unit is a memory, the memory unit scheduler may be connected to a monitoring unit (e.g., PMC) in the Central Processing Unit (CPU), so that a corresponding first control instruction may be generated according to current information of the processing unit and the core graphics card fed back by the PMC. The memory unit scheduler sends the first control instruction to a memory unit Controller, such as a DDR Controller. The memory unit controller is used for correspondingly controlling the memory and elements related to the memory according to the instructions.
And S420, controlling the operating frequency and/or the data delay rate of the storage unit in a range adaptive to the requirement information through the control of the storage unit controller.
For example, the operating frequency and the data delay rate of the storage units such as the memory can be adjusted according to the requirement. The storage unit controller may adjust the operating frequency and/or the data delay rate of the storage unit according to the determined demand information and control it within a range in which the demand information of the target program to the processing unit and/or the core display card is adapted.
With reference to fig. 8, for example, when the storage unit operates in the first operating mode, the storage unit controller may determine the first operating voltage of the storage unit through a corresponding control command, and control the operating frequency of the storage unit to be between 6400GHZ and 10000GHZ. When the storage unit operates in the second operating mode, the storage unit controller may determine the second operating voltage of the storage unit through a corresponding control instruction, control the operating frequency of the storage unit between 3200GHZ and 6000GHZ, and the like. The operation frequency and/or the data delay rate are controlled in the range adaptive to the demand information, so that the storage unit can be matched with the CPU, the work of the processing unit and the core display card is promoted, and the operation efficiency of the target program is improved.
In one embodiment of the present application, the controlling the operating frequency and/or the data delay rate of the storage unit within a range adapted to the demand information by the control of the storage unit controller includes:
and sending a second control instruction to an interface manager in the central processing unit through the storage unit controller so that the interface manager controls the operating frequency and/or the data delay rate of the storage unit through a corresponding interface.
Continuing with FIG. 7, the memory unit controller in the central processor is illustratively interfaced with a DDR PHY in the memory unit controller. The interface manager is used for controlling peripheral interfaces of the CPU and other components, and can control address information of data in a storage unit such as a memory.
The storage unit controller is coupled to the interface manager via a connection path that includes a data path (e.g., an 800MHZ data path) for transmitting data, such as DFI Domain data from the storage unit controller to the DFI Domain in the interface manager, and a control bit width (e.g., 128 bits). The control bit width is used to control the transfer of instructions. Thereby sending data and control instructions to the interface manager over the connection path. For example, the clock timing can be controlled by the CK Domain in the interface manager, and the WCK Domain therein controls the data management unit in the memory, such as the WCK control unit in the memory.
For example, the storage unit controller may send a second control instruction to the interface manager, and instruct to increase the operating voltage of the memory in addition to instruct the interface manager to receive the sent data, so as to increase the operating frequency of the storage unit such as the memory, and thus increase the operating frequency of the storage unit such as the memory from 6000GHZ to 8000GHZ. And the control parameter corresponding to the control data delay rate can be adjusted, so that the data delay rate is increased, the memory performance is fully exerted, and the overall performance of the memory is kept stable.
Or, except for instructing the interface manager to receive the transmitted data, the interface manager also instructs to reduce the working voltage of the memory, so as to reduce the working frequency of the storage units such as the memory, and the like, so that the operating frequency of the storage units such as the memory is reduced from 8000GHZ to 6000GHZ. The control parameters corresponding to the control data delay rate can be adjusted, so that the data delay rate is reduced, the memory performance is fully exerted, and the overall performance of the memory is kept stable.
In an embodiment of the present application, the controlling, by the interface manager, the operating frequency and/or the data delay rate of the storage unit through the corresponding interface includes:
and sending the second control instruction to a data management unit in the storage unit through the interface manager, so that the data management unit controls the storage array of the storage unit to work in a working mode matched with the requirement information according to the second control instruction.
Illustratively, the data management unit in the storage unit is configured to manage the transmitted data, including receiving and distributing the data. For example, the WCK control unit in the memory obtains data from the interface manager, and further, according to the received second control instruction, the data is distributed according to different data transmission speeds, for example, the data is respectively sent to the corresponding WCK Domain1 and WCK Domain2 for processing according to two different transmission speeds of 6400mbpa and 12800 mbpa. The WCK Domain1 and WCK Domain2 are then both forwarding data to a Memory Array (Memory Array) and stored by the Memory Array. In addition, the data management unit can control the working mode of the storage array to be matched with the requirement information according to the second control instruction. Of course, other components of the storage unit may also operate in corresponding operating modes according to the second control instruction sent by the interface manager.
According to the same inventive concept, an embodiment of the present application further provides an electronic device, which may be an intelligent device such as a computer, as shown in fig. 9 and combined with fig. 7, and the electronic device includes:
the detection module is configured to determine running information of at least one target program in the electronic equipment.
For example, the object program may be a computer program running in an electronic device such as a computer, and the object program requires hardware support of the electronic device when running. But the hardware requirements required for different objects vary. The hardware requirement includes the requirement of a central processing unit and/or a core display card of the electronic device. For example, some target programs have a large requirement for the processing unit of the central processing unit relative to the core graphics card, such as some documents, data transfer programs, and the like. While other object programs have a greater demand for the core graphics card of the cpu than for the processing unit, such as some image processing programs, game programs, etc.
The running information of the target program is related information of the target program in the use process, and comprises identification information of the target program, requirement information of hardware, environment information required in the running process and the like. In the running process of the target program, the detection module may acquire the running information from related data included in the target program, or determine the running information according to feedback data in the process of processing the target program by the electronic device.
The determining module is configured to determine the requirement information of the target program on a central processing unit and/or a core display card of the electronic equipment based on the running information;
determining the working mode of a storage unit of the electronic equipment based on the requirement information, wherein the working frequency ranges of the storage unit in different working modes are different;
illustratively, a Central Processing Unit (CPU) of the electronic device is provided with a Processing Unit and a core graphics card. The processing unit is mainly used for explaining computer instructions and processing data in computer software, and the core display card is a graphic processing core integrated in the CPU, namely a GPU.
Different types of object programs have a large demand on the processing unit relative to the core graphics card, while other object programs have a large demand on the core graphics card relative to the processing unit. The determining module determines the requirement information of the target program on the processing unit of the central processing unit and/or the core display card of the electronic device based on the operation information, so that the relative proportion of the requirement quantity of the target program on the processing unit and the core display card can be determined.
For example, in the running process of the target program, the determining module may monitor the processing data amount of the processing unit and the core graphics card and the used power information, determine the demand amount of the processing unit and the core graphics card according to the monitoring result, and generate corresponding demand information.
For example, the memory unit may be a component of the electronic device that is capable of storing data, processing data, and/or using in conjunction with other components. Referring to fig. 8, for example, the storage unit may be a memory, a register, or other similar components in an electronic device, where the storage unit has a plurality of different operation modes, and the operation modes of the different operation modes are different. For example, the memory may operate in a low frequency and low latency mode of operation, or may operate in a high frequency and high latency mode of operation. I.e. the operating frequency range of the memory cell is different in different operating modes. The different operating modes may be adapted to the operation of the corresponding object program. For example, the determining module may determine which operating mode the memory operates in according to the information of the requirement of the target program for the processing unit and/or the core graphics card in the central processing unit. The memory cell after adjusting the working mode that adapts to the demand information can exert its performance more, improves the processing efficiency.
A control module configured to control the storage unit to operate in the determined operation mode to adapt to the operation of the target program.
Illustratively, the storage unit works in the determined working mode, and can cooperate with and promote the working of the central processing unit and the core display card of the central processing unit, so that the working mode of the processing unit and/or the core display card is more suitable for the running of the target program, and the running efficiency of the target program is improved.
For example, when the target program is a program that emphasizes the use of a core graphics card, the storage unit is a memory. On the Hybrid memory architecture, after the control module determines the operating mode of the memory according to the requirement information of the target program, the operating frequency interval of the memory can be determined, for example, the memory is enabled to operate in a high-frequency and high-delay mode to achieve the performance close to the GDDR mode. And then the running modes of the processing unit and the core display card are matched, so that the performance of the processing unit can be kept from being excessively reduced, and the data throughput of the core display card (iGPU) can be obviously improved, thereby improving the performance of the core display card (iGPU) and improving the running efficiency of the target program.
In one embodiment of the present application, the determination module is further configured to:
acquiring identification information of the target program in the running information;
and determining the requirement information of the target program on the processing unit and/or the core display card based on the identification information.
In one embodiment of the present application, the determination module is further configured to:
under the condition that the target program is in a first running state, respectively acquiring respective currents of the processing unit and/or the core display card;
determining the demand information of the target program based on the current.
In one embodiment of the present application, the determination module is further configured to:
under the condition that the target program is in a second running state, acquiring state information of a calculation execution unit in the core display card and the frequency of the core display card, wherein the working state information comprises the number of the calculation execution units;
and determining the demand information of the target program on the core display card based on the state information of the calculation execution unit and/or the frequency of the core display card.
In one embodiment of the present application, the determination module is further configured to:
under the condition that the requirement of the target program on the core display card is determined to be larger than a first threshold value, controlling the storage unit to work in a first working mode;
and under the condition that the requirement of the target program on the processing unit is determined to be larger than a second threshold value, controlling the storage unit to work in a second working mode, wherein the running frequency of the storage unit in the first working mode is higher than that in the second working mode.
In one embodiment of the present application, the control module is further configured to:
sending a first control instruction to a memory unit controller in the central processing unit through a memory unit scheduler in the central processing unit;
controlling the operation frequency and/or the data delay rate of the storage unit within a range adapted to the demand information by the control of the storage unit controller.
In one embodiment of the present application, the control module is further configured to:
and sending a second control instruction to an interface manager in the central processing unit through the storage unit controller so that the interface manager controls the operating frequency and/or the data delay rate of the storage unit through a corresponding interface.
In one embodiment of the present application, the control module is further configured to:
and sending the second control instruction to a data management unit in the storage unit through the interface manager, so that the data management unit controls the storage array of the storage unit to work in a working mode matched with the requirement information according to the second control instruction.
According to the same inventive concept, an electronic device is further provided in the embodiments of the present application, as shown in fig. 10, which includes a processor and a memory, where an executable program is stored in the memory, and the processor processes the executable program to perform the steps of the method as described above.
The above embodiments are only exemplary embodiments of the present application, and are not intended to limit the present application, and the protection scope of the present application is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present application and such modifications and equivalents should also be considered to be within the scope of the present application.

Claims (10)

1. A method of controlling an electronic device, comprising:
determining running information of at least one target program in the electronic equipment;
determining the requirement information of the target program to a central processing unit and/or a core display card of the electronic equipment based on the running information;
determining the working mode of a storage unit of the electronic equipment based on the requirement information, wherein the working frequency ranges of the storage unit in different working modes are different;
and controlling the storage unit to work in the determined working mode so as to be adapted to the running of the target program.
2. The method of claim 1, wherein the determining, based on the operation information, information about a requirement of the target program on a central processing unit and/or a core graphics card of the electronic device comprises:
acquiring identification information of the target program in the running information;
and determining the requirement information of the target program on the processing unit and/or the core display card based on the identification information.
3. The method of claim 1, wherein the determining, based on the operation information, demand information of the target program on a central processing unit (cpu) and/or a core graphics card of the electronic device comprises:
respectively acquiring respective currents of the processing unit and/or the core display card under the condition that the target program is in a first running state;
based on the current, the demand information of the target program is determined.
4. The method of claim 1, wherein the determining, based on the operation information, demand information of the target program on a central processing unit (cpu) and/or a core graphics card of the electronic device comprises:
under the condition that the target program is in a second running state, acquiring state information of a calculation execution unit in the core display card and the frequency of the core display card, wherein the working state information comprises the number of the calculation execution unit;
and determining the demand information of the target program on the core display card based on the state information of the calculation execution unit and/or the frequency of the core display card.
5. The method of claim 1, the determining an operating mode of a storage unit of the electronic device based on the demand information, comprising:
controlling the storage unit to work in a first working mode under the condition that the requirement of the target program on the core display card is determined to be larger than a first threshold value;
and under the condition that the requirement of the target program on the processing unit is determined to be larger than a second threshold value, controlling the storage unit to work in a second working mode, wherein the running frequency of the storage unit in the first working mode is higher than that in the second working mode.
6. The method of claim 5, the controlling the storage unit to operate in the determined operating mode to adapt to the running of the target program, comprising:
sending a first control instruction to a memory unit controller in the central processing unit through a memory unit scheduler in the central processing unit;
controlling the operation frequency and/or the data delay rate of the storage unit within a range adapted to the demand information by the control of the storage unit controller.
7. The method of claim 6, said controlling the operating frequency and/or data delay rate of the storage unit within a range adapted to the demand information by control of the storage unit controller, comprising:
and sending a second control instruction to an interface manager in the central processing unit through the storage unit controller so that the interface manager controls the operating frequency and/or the data delay rate of the storage unit through a corresponding interface.
8. The method of claim 7, the interface manager controlling an operating frequency and/or a data latency rate of the storage unit through a corresponding interface, comprising:
and sending the second control instruction to a data management unit in the storage unit through the interface manager, so that the data management unit controls the storage array of the storage unit to work in a working mode matched with the requirement information according to the second control instruction.
9. An electronic device, comprising:
the detection module is configured to determine running information of at least one target program in the electronic equipment;
the determining module is configured to determine the requirement information of the target program on a central processing unit and/or a core display card of the electronic equipment based on the running information;
determining the working mode of a storage unit of the electronic equipment based on the requirement information, wherein the working frequency ranges of the storage unit in different working modes are different;
a control module configured to control the storage unit to operate in the determined operation mode to adapt to the operation of the target program.
10. An electronic device comprising a processor and a memory, the memory having stored therein an executable program, the processor processing the executable program to perform the steps of any of claims 1 to 8.
CN202210876625.9A 2022-07-25 2022-07-25 Electronic equipment control method and electronic equipment Pending CN115237204A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210876625.9A CN115237204A (en) 2022-07-25 2022-07-25 Electronic equipment control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210876625.9A CN115237204A (en) 2022-07-25 2022-07-25 Electronic equipment control method and electronic equipment

Publications (1)

Publication Number Publication Date
CN115237204A true CN115237204A (en) 2022-10-25

Family

ID=83676155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210876625.9A Pending CN115237204A (en) 2022-07-25 2022-07-25 Electronic equipment control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN115237204A (en)

Similar Documents

Publication Publication Date Title
US6954806B2 (en) Data transfer apparatus and method
US11489735B2 (en) Dynamic network allocation apparatus, dynamic network allocation method and non-transitory computer-readable medium
EP1734436A1 (en) Automatically controlling processor mode of multi-core processor
CN111538678A (en) Data buffering method, device and computer readable storage medium
CN112732616B (en) BMC starting method, device and equipment based on SPI controller
WO2023216461A1 (en) Task processing method and apparatus, and computer device
CN113645150A (en) Transmission rate control method, device, electronic equipment and readable storage medium
CN111142788A (en) Data migration method and device and computer readable storage medium
CN103377280A (en) Information processing apparatus and method, program, and information processing system
US8423680B2 (en) System, method, and computer program product for inserting a gap in information sent from a drive to a host device
CN117312229B (en) Data transmission device, data processing equipment, system, method and medium
CN117033275B (en) DMA method and device between acceleration cards, acceleration card, acceleration platform and medium
CN114432705A (en) Cloud game data processing method, device, medium, equipment and product
CN116467235B (en) DMA-based data processing method and device, electronic equipment and medium
US20150220362A1 (en) Multi-core processor system, electrical power control method, and computer product for migrating process from one core to another
CN112799723A (en) Data reading method and device and electronic equipment
CN115237204A (en) Electronic equipment control method and electronic equipment
CN113521753A (en) System resource adjusting method, device, server and storage medium
CN113626137A (en) Implementation method, device, equipment and medium supporting multi-format mirror image
CN109298944B (en) Server pressure adjusting method and device, computer device and storage medium
CN112230964A (en) Application program development method, application program running method, device, equipment and medium
CN111459634A (en) Task scheduling method, device, terminal and storage medium
CN116541084B (en) Method, device, equipment and medium for controlling drive loading of compressor driver
CN117971745B (en) Data processing system, method, device, equipment and medium
US11249650B1 (en) Data prefetch method in dynamically adjustable amount

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