WO2023273965A1 - 节能架构及其控制方法、网络设备、计算机可读存储介质 - Google Patents
节能架构及其控制方法、网络设备、计算机可读存储介质 Download PDFInfo
- Publication number
- WO2023273965A1 WO2023273965A1 PCT/CN2022/100207 CN2022100207W WO2023273965A1 WO 2023273965 A1 WO2023273965 A1 WO 2023273965A1 CN 2022100207 W CN2022100207 W CN 2022100207W WO 2023273965 A1 WO2023273965 A1 WO 2023273965A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- energy
- saving
- layer
- policy
- state parameter
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 81
- 238000002955 isolation Methods 0.000 claims abstract description 41
- 238000004891 communication Methods 0.000 claims description 21
- 230000015654 memory Effects 0.000 claims description 18
- 230000004044 response Effects 0.000 claims description 14
- 230000005540 biological transmission Effects 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims description 4
- 238000005265 energy consumption Methods 0.000 description 15
- 230000000694 effects Effects 0.000 description 11
- 230000006870 function Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000005457 optimization Methods 0.000 description 7
- 230000009471 action Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 230000005012 migration Effects 0.000 description 2
- 238000013508 migration Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004622 sleep time Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/10—Current supply arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Definitions
- the embodiments of the present application relate to but are not limited to the communication field, and in particular, relate to an energy-saving architecture and a control method thereof, a network device, and a computer-readable storage medium.
- system power consumption is one of the key performance indicators.
- developers usually need to dynamically adjust the system running status, such as processor frequency status, processor power consumption status, or onboard device status, based on the operating statistics information of each module of the operating system.
- the operating system kernel and hardware usually have an adaptive energy-saving function, for example, it can dynamically adjust the operating state of the processor according to the statistical information of the operating system threads.
- an adaptive energy-saving function for example, it can dynamically adjust the operating state of the processor according to the statistical information of the operating system threads.
- the system due to the guarantee requirements of real-time communication and reliability, it is required that the system must keep its key modules active even in idle mode, and the operating system and underlying hardware cannot perceive it. This idle active state cannot make full use of the dynamic energy saving mechanism of the hardware and operating system.
- the self-adaptive energy consumption optimization method needs to have the operation statistics information and the authority to modify the system operation state, but this is difficult to achieve in the strong isolation system, because the strong isolation system has strict authority control and resource isolation, resulting in It is difficult to share the operation statistics information of each module in the system, and it is impossible to directly implement the migration of the hardware operation state, which makes the energy consumption optimization effect for the hardware ineffective, and the energy saving effect of the system is not significant.
- Embodiments of the present application provide an energy-saving architecture, a control method thereof, a network device, and a computer-readable storage medium, which can reduce system power consumption and have a good energy-saving effect.
- the embodiment of the present application provides an energy-saving architecture, including:
- the system application layer is used to report the running status parameters according to the running status of the system hardware in the strong isolation environment in the idle state;
- a system policy layer connected to the system application layer, configured to obtain the running state parameters sent by the system application layer, and determine an energy saving strategy for the system hardware according to the running state parameters;
- the system implementation layer is connected with the system strategy layer, and is used to control the running state of the system hardware according to the energy saving strategy.
- the embodiment of the present application further provides an energy-saving control method, which is applied to an energy-saving architecture, where the energy-saving architecture includes a system application layer and a system policy layer, and the system application layer is connected to the system policy layer;
- the energy-saving control method includes:
- controlling the system policy layer In response to the system policy layer acquiring the running state parameters, controlling the system policy layer to determine an energy saving strategy for the system hardware according to the running state parameters;
- the embodiment of the present application also provides a network device, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the above when executing the computer program.
- a network device including: a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the above when executing the computer program.
- the embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, and the computer-executable instructions are used to execute the energy-saving control method in the second aspect as described above.
- FIG. 1 is a schematic diagram of an energy-saving architecture provided by an embodiment of the present application
- Fig. 2 is a schematic diagram of the working principle of the system transport layer provided by an embodiment of the present application
- FIG. 3 is a flow chart of the working principle of the system policy layer provided by another embodiment of the present application.
- FIG. 4 is a schematic diagram of an energy-saving architecture provided by an embodiment of the present application.
- Fig. 5 is a schematic diagram of an energy-saving device provided by an embodiment of the present application.
- FIG. 6 is a flow chart of an energy-saving control method provided by an embodiment of the present application.
- Fig. 7 is a flowchart of determining an energy-saving strategy in an energy-saving control method provided by an embodiment of the present application
- Fig. 8 is a flowchart of determining an energy-saving strategy in an energy-saving control method provided by another embodiment of the present application.
- FIG. 9 is a flow chart of determining an energy-saving strategy in an energy-saving control method provided in another embodiment of the present application.
- FIG. 10 is a flow chart of reporting operating state parameters in an energy-saving control method provided by an embodiment of the present application.
- Fig. 11 is a flow chart of controlling the operating state of system hardware in an energy-saving control method provided by an embodiment of the present application.
- the present application provides an energy-saving architecture and its control method, network equipment, and computer-readable storage medium, by setting the system application layer to identify the idle state of the system hardware in a strong isolation environment, and then based on the running of the system hardware in the idle state Determine the running state parameters according to the situation, and set the system policy layer to determine the energy saving strategy for the system hardware according to the running state parameters, and then execute the energy saving strategy through the set system implementation layer to control the running state of the system hardware, so as to realize the system hardware in a strong Optimizing the energy consumption in an isolated environment can effectively reduce system power consumption and achieve a good energy saving effect.
- FIG. 1 is a schematic diagram of an energy-saving architecture 400 provided by an embodiment of the present application.
- the energy saving architecture 400 may include but not limited to:
- the system application layer 100 is used to report the operating state parameters according to the operating conditions of the system hardware under the strong isolation environment in the idle state;
- the system policy layer 200 is connected with the system application layer 100, and is used to obtain the operating state parameters sent by the system application layer 100, and determine an energy-saving strategy for the system hardware according to the operating state parameters;
- the system implementation layer 300 is connected with the system policy layer 200 and is used to control the running state of the system hardware according to the energy saving strategy.
- the system application layer 100 by setting the system application layer 100 to identify the idle state of the system hardware in a strong isolation environment, then determine the operating state parameters based on the operating conditions of the system hardware in the idle state, and set the system policy layer 200 according to the operating state
- the parameters determine the energy-saving strategy for the system hardware, and then execute the energy-saving strategy through the set system implementation layer 300 to control the running state of the system hardware, thereby realizing the optimization of the energy consumption of the system hardware in a strong isolation environment, which can effectively reduce The power consumption of the system is reduced, and a good energy-saving effect is achieved.
- the architecture of the system application layer 100, the system policy layer 200 and the system implementation layer 300 can be expanded in the system, for example, it can be scale expansion, quantity expansion or corresponding function expansion, that is, the system application layer 100 , the system policy layer 200 and the system implementation layer 300 have good flexibility and are relatively friendly to users.
- a strong isolation environment is a technical term in the art, and the concept corresponding to it is a strong isolation device.
- Network isolation the generated network environment is a strong isolation environment.
- the strong isolation environment is more secure, but it retains the data exchange and management functions of the common isolation environment.
- it can ensure the security recording and control of external transmission under various network protocols or encryption protocols, and realize the peripheral control of the client by classification. It has the following characteristics: it is convenient for file transfer control, and can Open transmission records, customized applications or usage permissions for each user or/and group, convenient online behavior management, integrated and convenient unified management system or strict permission control and resource isolation, etc.
- the system hardware can be but not limited to be applied in the strong isolation environment of the embedded scene.
- the embedded scene can be formed by a single system or by multiple systems; For example, it can be a central processing unit (Central Processing Unit, CPU), it can also be various external devices, etc., and it can also include the above types at the same time.
- CPU Central Processing Unit
- each The energy consumption optimization of the system hardware does not affect each other; a single system hardware may correspond to different operating state parameters, which is not limited in this embodiment.
- the system application layer 100 includes but is not limited to a system user layer and a system transport layer, and the system transport layer is respectively connected to the system user layer and the system policy layer 200, wherein the system user layer is configured with a strong isolation environment for reporting The first data interface of the idle state of the system hardware under;
- the system user layer is used to determine the running state parameters according to the first data interface
- the system transport layer is used to receive the running state parameters sent by the system user layer, and is used to determine the grade type of the running state parameters in a strong isolation environment according to the running
- the state parameters are passed to the system policy layer 200 .
- the system application layer 100 adopts a combined structure of the system user layer and the system transport layer, each layer has a clear division of labor, and the coordination and execution efficiency is higher.
- determine the operating state parameters of the system hardware in the idle state and then send the operating state parameters to the system transport layer, and the system transport layer serves as the communication layer, which can be used according to the operating state parameters in a strong isolation environment.
- the corresponding communication methods are determined for different grade types, so that the running state parameters can be transmitted to the system policy layer 200 in a communication method that matches their grades, that is, a lightweight communication mechanism is defined according to different levels of the strong isolation environment, so as to ensure that the running state parameters
- the transmission in a strong isolation environment has good stability.
- the trigger mode, type and quantity of the first data interface are not limited, and can be set according to actual application scenarios, for example, triggered by a user, or triggered by a preset program or algorithm.
- the first data interface adopts the integrated development and learning environment (Integrated Development and Learning Environment, IDLE) interface.
- IDLE Integrated Development and Learning Environment
- the record and update of the running state parameters are realized by setting the idle state counter in the system.
- the idle state counter will update the value of the running state parameter, or, whenever the idle state is determined to update an idle state counter, the running state parameter can be determined by counting the set of related idle state counters, therefore, by Idle state counters allow accurate and reliable determination of operating state parameters.
- the system transport layer can pre-determine the mapping relationship between different levels of operating status parameters and communication methods in a strong isolation environment.
- the mapping relationship can be regarded as the binary of the sending function f:i->msg and the receiving function f:msg->i
- the tuple where i is the running state parameter received from the system application layer 100, may be a set of current idle state counters, and msg is the message body encapsulated by communication.
- the idle state of the system hardware is reported through the IDLE interface, and the idle state counter in the system perceives the report, then updates the value of the idle state counter, and then the system application layer 100 can start from the updated idle state counter Read its value to determine the operating status parameters.
- FIG. 2 it shows different communication modes for the system transport layer to send the running state parameters to the system policy layer.
- a page table authorization (Grant Table) is used for the virtual machine to realize the communication between the virtual machines;
- the message queue or the shared memory mechanism is used for process isolation to realize inter-process communication.
- each operating state parameter is transmitted in a corresponding communication mode. Therefore, the above-mentioned various communication modes can be realized simultaneously in theory.
- the situation shown in FIG. 2 is In order to send three different types of running status parameters to the system policy layer at the same time, and, as shown in Figure 4, these communication methods can also be stored in the system transport layer in the form of policy information for calling at any time.
- the system policy layer can pre-establish a preset energy-saving strategy as an alternative strategy, that is, when it is determined that the operating state parameters of the system hardware meet this condition, the preset energy-saving strategy can be directly determined as the Energy-saving strategies for system hardware, which can improve the efficiency of building energy-saving strategies for system hardware, thereby improving the efficiency of energy optimization for system hardware.
- preset energy-saving strategies refer to a set of energy-saving operations bound to specific conditions.
- the set of idle state counters of the CPU IDLE_D is the set of idle state counters of the corresponding device
- action is the energy saving operation defined by the energy saving policy
- bool represents whether the action is executed successfully
- the action can be determined by the system implementation layer according to the preset energy saving policy
- a control sequence for example, an action corresponding to the control sequence may be: after adjusting the operating frequency of the CPU core to 30% of the maximum operating frequency, close the Ethernet port.
- the running state parameters include the first running state parameter and the second running state parameter
- the first running state parameter and the second running state parameter may be but not limited to be successively obtained by the system policy layer according to preset time intervals
- the energy saving strategy may But not limited to, it is determined by the system policy layer according to the difference between the first running state parameter and the second running state parameter.
- the first operating state parameter and the second operating state parameter are successively obtained according to a preset time interval, so as to ensure that relatively stable and reliable operating state parameters can be obtained periodically, based on the first operating state in this case
- the difference between the parameter and the second operating state parameter is used to determine the energy-saving strategy.
- the accuracy is higher, and the determined energy-saving strategy is easier to match with the system hardware.
- the system policy layer determines to update the second running state parameter to the first running state parameter, and enters the dormant state.
- the difference when the difference is less than the first preset threshold, it means that the first running state parameter and the second running state parameter have little difference, then it can be determined that the node corresponding to the first running state parameter of the system hardware is different from the node corresponding to the second running state parameter.
- the operation status of the node corresponding to the operation status parameter is relatively stable, that is, the system hardware is in a state of stable energy consumption. Therefore, in this case, it is not necessary to optimize the energy consumption of the system hardware.
- the system policy layer The determined energy-saving strategy is: update the second operating state parameter to the first operating state parameter, that is, do not change the previously obtained first operating state parameter, so that when the energy-saving strategy is determined next time, the first operating state is still used Parameters are used as the basis for comparison, the application effect is better, and it enters the dormant state. It is understandable that there is no need to formulate another energy-saving strategy under this condition.
- the system policy layer receives different operating state parameters There is a preset time interval between them. Therefore, the system policy layer can enter the sleep state to save power consumption and wait for the next time when the running state parameters are obtained to determine the energy-saving strategy.
- the sleep time of the system policy layer should not be Exceeding the preset time interval, this can ensure that the system policy layer can normally receive the running status parameters.
- the operation of obtaining the first operating state parameter and the second operating state parameter successively according to the preset time interval in the above embodiment can achieve the purpose of reducing power consumption, because the operation of obtaining the operating state parameter itself It will occupy a certain amount of CPU resources and cause a certain amount of power consumption. If the operation method of periodically triggering and obtaining parameters in the above-mentioned embodiment is not adopted, the operation of obtaining running state parameters may be frequently executed, which obviously will cause unnecessary energy consumption loss. .
- the operation of obtaining the operating status parameters in the above-mentioned embodiments is not uniquely limited, and can be set separately in specific application scenarios. For example, the method of active triggering by program logic can be adopted, so that the system policy layer obtains the operating status according to the program logic parameter, and record the time parameter in the current scenario.
- the system policy layer determines that the energy-saving strategy is a preset energy-saving strategy.
- the difference when the difference is greater than or equal to the first preset threshold, it means that the difference between the first operating state parameter and the second operating state parameter is relatively large, and at the same time it is determined that the difference is within the preset second preset threshold range, Then it can be known that the operating conditions of the system hardware at the node corresponding to the first operating state parameter and the node corresponding to the second operating state parameter are relatively different, that is, the system hardware is in a state of fluctuating and unstable energy consumption. Therefore, in this In this case, it is necessary to optimize the energy consumption of the system hardware.
- the energy-saving strategy determined by the system policy layer is the preset energy-saving strategy. Since the preset energy-saving The energy-saving policy is set as the final energy-saving policy, and there is no need to set another energy-saving policy, which can reduce the difficulty of decision-making at the system policy layer and the energy consumption of applications.
- the preset energy-saving policy refers to a set of energy-saving operations bound to specific conditions, and each energy-saving operation in the set of energy-saving operations is used to optimize energy consumption.
- the energy-saving operation can be used to solve the energy consumption optimization of the system hardware under the current conditions, which means that the preset energy-saving strategy is not suitable for the system hardware under the current conditions, so it is necessary to determine an energy-saving strategy adapted to the system hardware.
- system implementation layer is specifically configured to determine at least one energy-saving operation performed for system hardware according to the energy-saving strategy, and to control the running state of the system hardware according to the energy-saving operation, wherein the at least one energy-saving operation corresponds to the energy-saving strategy .
- the system implementation layer can embody the energy-saving strategy in specific energy-saving operations, so as to directly control the running state of the system hardware based on the energy-saving operations. It is more convenient and reliable to implement in the application. Even if there is a control failure, you can intuitively analyze the cause and troubleshoot the problem by looking for the corresponding energy-saving operation. Obviously, it can greatly improve the stability of energy optimization for system hardware.
- FIG. 3 it shows the working principle of the system policy layer under one thread.
- the system implementation layer determines an energy-saving operation for the system hardware according to the energy-saving strategy: abstract the CPU frequency set interface adjustment as CPU Freq Set Interface, and then call the CPU frequency collection interface to complete the migration of the CPU frequency state.
- the operating state of the system hardware is controlled by calling the hardware abstract interface, which has nothing to do with the system platform and does not need to pay attention to the specific implementation of the underlying layer. The application effect is better .
- FIG. 5 is a schematic diagram of an energy-saving device provided by an embodiment of the present application.
- the energy-saving device includes: one or more processors and memories.
- one processor and one memory are taken as an example.
- the processor and the memory may be connected through a bus or in other ways, and connection through a bus is taken as an example in FIG. 5 .
- memory can be used to store non-transitory software programs and non-transitory computer-executable programs.
- the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage devices.
- the memory optionally includes remote memories located remotely from the processor, which remote memories may be connected to the processor via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
- the network devices and application scenarios described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute limitations on the technical solutions provided by the embodiments of the present application. Those skilled in the art know that with network devices The evolution of the technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
- the energy-saving device shown in Figure 5 does not constitute a limitation to the embodiment of the present application, and may include more or less components than shown in the figure, or combine some components, or different components layout.
- the corresponding energy-saving control method can be executed by the processor based on the instructions stored in its memory.
- FIG. 6 is a flowchart of an energy-saving control method provided by an embodiment of the present application, which can be applied to the energy-saving architecture in the embodiment shown in FIG. 1 or the energy-saving device in the embodiment shown in FIG. 5.
- the energy saving control method includes but not limited to steps S100 to S400.
- Step S100 the application layer of the control system reports the operating state parameters according to the operating conditions of the system hardware in the strong isolation environment in the idle state;
- Step S200 the control system policy layer obtains the running state parameters sent by the system application layer
- Step S300 in response to the system policy layer obtaining the operating state parameters, the control system policy layer determines an energy-saving strategy for the system hardware according to the operating state parameters;
- Step S400 acquiring an energy-saving policy, and controlling the running state of the system hardware according to the energy-saving policy.
- the system application layer is controlled to identify the idle state of the system hardware in a strong isolation environment, and then the operating state parameters are determined based on the operating conditions of the system hardware in the idle state, and the control system policy layer is determined according to the operating state parameters.
- the energy-saving strategy of the system hardware is implemented through the control system implementation layer to control the running state of the system hardware, so as to optimize the energy consumption of the system hardware in a strong isolation environment, which can effectively reduce system power consumption and achieve Good energy saving effect.
- Fig. 7 is a flowchart of an energy-saving control method provided by another embodiment of the present application.
- step S300 includes but is not limited to Step S310.
- Step S310 in response to the system policy layer successively obtaining the first operating state parameter and the second operating state parameter according to the preset time interval, the control system policy layer determines the target system hardware according to the difference between the first operating state parameter and the second operating state parameter energy saving strategy.
- the first operating state parameter and the second operating state parameter are successively obtained according to a preset time interval, it is ensured that relatively stable and reliable operating state parameters can be obtained periodically, based on the The difference between the first operating state parameter and the second operating state parameter is used to determine the energy-saving strategy, and the degree of accuracy is higher, and the determined energy-saving strategy is easier to match with the system hardware.
- step S310 includes but is not limited to step S320 .
- Step S320 in response to the difference being less than the first preset threshold, the control system policy layer determines to update the second operating state parameter to the first operating state parameter, and the control system policy layer enters a dormant state.
- step S310 includes but is not limited to step S330 .
- Step S330 in response to the difference being greater than or equal to the first preset threshold and the difference being within the range of the second preset threshold, the control system policy layer determines the energy-saving strategy as the preset energy-saving strategy.
- step S100 includes but not limited to steps S110 to S120 .
- Step S110 the user layer of the control system determines the running state parameters according to the first data interface
- Step S120 the control system transport layer receives the running state parameters sent by the system user layer, and the control system transport layer determines the level type of the running state parameters in a strong isolation environment according to the running state parameters, and controls the system transport layer to match the level type
- the communication method transmits the running status parameters to the system policy layer.
- step S100 includes but not limited to steps S410 to S420 .
- Step S410 determining at least one energy-saving operation performed for the system hardware according to the energy-saving policy, wherein the at least one energy-saving operation corresponds to the energy-saving policy;
- Step S420 controlling the running state of the system hardware according to the energy-saving operation.
- an embodiment of the present application also provides a network device, which includes: the energy-saving architecture in the embodiment shown in Figure 1 or the energy-saving device in the embodiment shown in Figure 5 .
- the non-transitory software programs and instructions required to realize the energy-saving control method of the above-mentioned embodiment are stored in the memory, and when executed by the processor, the energy-saving control method of the above-mentioned embodiment is executed, for example, the above-described execution in FIG. 6
- the network device in this embodiment can be applied to the energy-saving architecture in the embodiment shown in Figure 1 or the energy-saving device shown in the embodiment in Figure 5, and these embodiments all belong to the same inventive concept of the present application , so these embodiments have the same implementation principle and technical effect, which will not be described in detail here.
- the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- an embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by a processor or a controller, for example, by the above-mentioned device
- the execution of the processor in the embodiment can cause the above-mentioned processor to execute the energy-saving control method in the above-mentioned embodiment, for example, execute the method steps S100 to S400 in FIG. 6, the method step S310 in FIG. 7, and the method in FIG.
- the system application layer is set to identify the idle state of the system hardware in a strong isolation environment, and then the operating state parameters are determined based on the operating conditions of the system hardware in the idle state, and the system policy layer is set according to the operating state.
- the state parameters determine the energy-saving strategy for the system hardware, and then execute the energy-saving strategy through the set system implementation layer to control the running state of the system hardware, so as to optimize the energy consumption of the system hardware in a strong isolation environment, which can effectively reduce The power consumption of the system is reduced, and a good energy-saving effect is achieved.
- Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer.
- communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Power Sources (AREA)
Abstract
一种节能架构及其控制方法、网络设备、计算机可读存储介质,其中该节能架构包括:系统应用层,用于根据处于强隔离环境下的系统硬件在空闲状态下的运行情况上报运行状态参数;系统策略层,与系统应用层连接,用于获取由系统应用层发送的运行状态参数,并根据运行状态参数确定针对系统硬件的节能策略;以及系统实施层,与系统策略层连接,用于根据节能策略控制系统硬件的运行状态。
Description
相关申请的交叉引用
本申请基于申请号为202110752014.9、申请日为2021年06月29日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
本申请实施例涉及但不限于通信领域,尤其涉及一种节能架构及其控制方法、网络设备、计算机可读存储介质。
在嵌入式应用场景中,系统功耗是关键性能指标之一。为了降低系统功耗,开发者通常需要结合操作系统当前各模块的运行统计信息动态调整系统运行状态,例如处理器频率状态、处理器功耗状态或者板载设备状态等。一般而言,操作系统内核及硬件通常具备自适应节能功能,例如,其能够依据操作系统线程的统计信息动态调整处理器的运行状态。然而,在通信领域的嵌入式应用场景中,由于具有通信实时性与可靠性的保障要求,因此要求系统即使处于空闲模式仍需使其关键模块保持活跃状态,而操作系统和底层硬件无法感知到这种空闲的活跃状态,因此无法充分利用硬件及操作系统的动态节能降耗机制。此外,自适应能耗优化方式需要拥有运行统计信息以及对系统运行状态进行修改的权限,但这在强隔离系统中较难实现,这是由于强隔离系统具有严格的权限控制与资源隔离,造成系统中各模块的运行统计信息难以共享,且无法直接实施硬件运行状态的迁移,使得针对硬件的能耗优化效果不佳,系统节能效果不显著。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本申请实施例提供了一种节能架构及其控制方法、网络设备、计算机可读存储介质,能够降低系统功耗,具有良好节能效果。
第一方面,本申请实施例提供了一种节能架构,包括:
系统应用层,用于根据处于强隔离环境下的系统硬件在空闲状态下的运行情况上报运行状态参数;
系统策略层,与所述系统应用层连接,用于获取由所述系统应用层发送的所述运行状态参数,并根据所述运行状态参数确定针对所述系统硬件的节能策略;以及
系统实施层,与所述系统策略层连接,用于根据所述节能策略控制所述系统硬件的运行 状态。
第二方面,本申请实施例还提供了一种节能控制方法,应用于节能架构,所述节能架构包括系统应用层和系统策略层,所述系统应用层与所述系统策略层连接;
所述节能控制方法包括:
控制所述系统应用层根据处于强隔离环境下的系统硬件在空闲状态下的运行情况上报运行状态参数;
控制所述系统策略层获取由所述系统应用层发送的所述运行状态参数;
响应于所述系统策略层获取到所述运行状态参数,控制所述系统策略层根据所述运行状态参数确定针对所述系统硬件的节能策略;以及
获取所述节能策略,并根据所述节能策略控制所述系统硬件的运行状态。
第三方面,本申请实施例还提供了一种网络设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述第二方面的节能控制方法。
第四方面,本申请实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如上所述第二方面的节能控制方法。
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。
附图用来提供对本申请技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。
图1是本申请一个实施例提供的节能架构的示意图;
图2是本申请一个实施例提供的系统传输层的工作原理示意图;
图3是本申请另一个实施例提供的系统策略层的工作原理流程图;
图4是本申请一个实施例提供的节能架构的示意图;
图5是本申请一个实施例提供的节能设备的示意图;
图6是本申请一个实施例提供的节能控制方法的流程图;
图7是本申请一个实施例提供的节能控制方法中确定节能策略的流程图;
图8是本申请另一个实施例提供的节能控制方法中确定节能策略的流程图;
图9是本申请另一个实施例提供的节能控制方法中确定节能策略的流程图;
图10是本申请一个实施例提供的节能控制方法中上报运行状态参数的流程图;以及
图11是本申请一个实施例提供的节能控制方法中控制系统硬件的运行状态的流程图。
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。
需要注意的是,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
本申请提供了一种节能架构及其控制方法、网络设备、计算机可读存储介质,通过设置系统应用层以识别系统硬件在强隔离环境下的空闲状态,然后基于系统硬件在空闲状态下的运行情况确定运行状态参数,并且设置系统策略层根据运行状态参数确定针对于系统硬件的节能策略,进而通过所设置的系统实施层执行节能策略以控制系统硬件的运行状态,从而实现对系统硬件在强隔离环境下的能耗状况进行优化,能够有效降低系统功耗,取得良好节能效果。
下面结合附图,对本申请实施例作进一步阐述。
如图1所示,图1是本申请一个实施例提供的节能架构400的示意图。
在图1的示例中,节能架构400可以包括但不限于为:
系统应用层100,用于根据处于强隔离环境下的系统硬件在空闲状态下的运行情况上报运行状态参数;
系统策略层200,与系统应用层100连接,用于获取由系统应用层100发送的运行状态参数,并根据运行状态参数确定针对系统硬件的节能策略;
系统实施层300,与系统策略层200连接,用于根据节能策略控制系统硬件的运行状态。
在一实施例中,通过设置系统应用层100以识别系统硬件在强隔离环境下的空闲状态,然后基于系统硬件在空闲状态下的运行情况确定运行状态参数,并且设置系统策略层200根据运行状态参数确定针对于系统硬件的节能策略,进而通过所设置的系统实施层300执行节能策略以控制系统硬件的运行状态,从而实现对系统硬件在强隔离环境下的能耗状况进行优化,能够有效降低系统功耗,取得良好节能效果。
可以理解地是,系统应用层100、系统策略层200和系统实施层300的架构在系统中是可以扩展的,例如,可以是规模扩展、数量扩展或者相应的功能扩展,即,系统应用层100、系统策略层200和系统实施层300具有良好的灵活性,对用户相对友好。
在一实施例中,强隔离环境是本领域技术术语,与之对应的概念为强隔离设备,在应用条件下,使用强隔离设备(例如,可以是正向、反向或双向网闸等)进行网络隔离,所生成的网络环境即为强隔离环境,相比于普通隔离环境,强隔离环境的安全性更高,但又保留了普通隔离环境所具有的数据交换、管理等功能,例如,在一种使用场景下,基于强隔离环境可以确保在各种网路协议或加密协议下对外传输的安全记录与控制,以及分类实现客户端的外设控制,其具有如下特点:方便文件传输控制、可开放传输记录、针对每个用户或/和群组定制应用或者使用权限、方便的上网行为管理、集成化的方便统一管理系统或具有严格的权限控制与资源隔离等。
需要说明的是,系统硬件可以但不限于应用于嵌入式场景的强隔离环境下,嵌入式场景可以由一个单独系统形成,也可以由多个系统配合形成;系统硬件类型不限定,可以根据具体的嵌入式场景进行选择设置,例如可以是中央处理器(Central Processing Unit,CPU),也可以是各种外部设备等,也可以同时包括以上多种类型,在这种情况下,可以分别对各个系统硬件进行能耗优化,彼此之间互不影响;单个系统硬件可以对应不同的运行状态参数,本实施例并未限制。
在一实施例中,系统应用层100包括但不限于系统用户层和系统传输层,系统传输层分别与系统用户层和系统策略层200连接,其中,系统用户层配置有供上报处于强隔离环境下的系统硬件的空闲状态的第一数据接口;
系统用户层用于根据第一数据接口确定运行状态参数;
系统传输层用于接收由系统用户层发送的运行状态参数,并且用于根据运行状态参数确定运行状态参数在强隔离环境下的等级类型,并且用于以与等级类型匹配的通信方式,将运行状态参数传输至系统策略层200。
在一实施例中,系统应用层100采用系统用户层和系统传输层的组合架构,各层分工明确,配合执行效率更高,其中,系统用户层作为用户层,能够根据通过触发第一数据口而上报的空闲状态,确定系统硬件在该空闲状态下的运行状态参数,然后将该运行状态参数发送至系统传输层,而系统传输层作为通信层,能够根据运行状态参数在强隔离环境下的不同等级类型而确定相应的通信方式,使得运行状态参数能够以与其等级匹配的通信方式传输至系统策略层200,即,依据强隔离环境的不同等级定义轻量级通信机制,从而确保运行状态参数在强隔离环境下的传输具有良好的稳定性。
在一实施例中,第一数据接口的触发方式、类型和数量均不限定,可以根据实际应用场景进行设置,例如由用户触发,或者,由预设的程序或算法触发等。
示例一:
第一数据接口采用集成开发和学习环境(Integrated Development and Learning Environment,IDLE)接口,针对运行状态参数,通过在系统中设置空闲状态计数器实现对运行状态参数的记录和更新,当系统硬件被确定为处于空闲状态,则空闲状态计数器会更新运行状态参数的值,或者,每当确定空闲状态即更新一个空闲状态计数器,则可以通过统计相关的空闲状态计数器的集合来确定运行状态参数,因此,通过空闲状态计数器可以准确、可靠地确定运行状态参数。
系统传输层可以预先确定运行状态参数在强隔离环境下的不同等级类型与通信方式的映射关系,该映射关系可视为发送函数f:i->msg与接收函数f:msg->i的二元组,其中i为从系统应用层100接收的运行状态参数,可以是当前的空闲状态计数器的集合,msg为通信封装的消息体。
当用户调用IDLE接口,则通过IDLE接口将系统硬件的空闲状态进行上报,系统中的空闲状态计数器感知该上报,则更新空闲状态计数器的数值,然后系统应用层100可以从更新后的空闲状态计数器读取其数值,从而确定运行状态参数。
如图2所示,示出了系统传输层向系统策略层发送运行状态参数的不同通信方式。
当运行状态参数对应于虚拟机等级,即对应于用户应用1,针对虚拟机采用页表授权(Grant Table)实现虚拟机间通信;
当运行状态参数对应于容器等级,即对应于用户应用2,针对容器隔离使用Socket实现容器间通信;
当运行状态参数对应于进程等级,即对应于用户应用3,针对进程隔离使用消息队列或共享内存机制实现进程间通信。
其中,运行状态参数可以为多个,每个运行状态参数均以对应的通信方式进行传输,因此,上述各种通信方式在理论上是可以同时实现的,例如,图2中示出的情形即为同时向系统策略层发送3种不同类型的运行状态参数,并且,如图4所示,这些通信方式也可以以策略信息的形式存储在系统传输层中,以便随时调用。
在一实施例中,系统策略层可以预先制定预设节能策略,以之作为备选策略,即,当确定系统硬件的运行状态参数满足此条件,则可以直接将该预设节能策略确定为针对系统硬件的节能策略,这样可以提高为系统硬件构建节能策略的效率,从而提高针对系统硬件的能耗优化效率,例如,预设节能策略指与特定条件绑定的节能操作集合,当特定条件满足后,节能操作集合被触发,该预设节能策略可视为函数f:i->action->bool,i为从系统应用层接收的运行状态参数,i=(IDLE_C,IDLE_D),IDLE_C为对应CPU的空闲状态计数器集合,IDLE_D为对应设备的空闲状态计数器集合,action是节能策略所定义的节能操作,bool代表action 是否执行成功,其中,action可以是系统实施层根据预设节能策略而确定的一个控制序列,比如,该控制序列对应的action可以是:调整CPU核心运行频率到最大运行频率的30%之后,关闭以太网端口。
在运行状态参数包括第一运行状态参数和第二运行状态参数的情况下,第一运行状态参数和第二运行状态参数可以但不限于由系统策略层根据预设时间间隔先后获得,节能策略可以但不限于由系统策略层根据第一运行状态参数和第二运行状态参数的差值确定。
在一实施例中,按照预设时间间隔先后获得第一运行状态参数和第二运行状态参数,确保能够周期性地获取到相对稳定可靠的运行状态参数,基于这种情况下的第一运行状态参数和第二运行状态参数的差值以确定节能策略,精确程度更高,所确定的节能策略更容易匹配于系统硬件。
具体地,响应于差值小于第一预设阈值,系统策略层确定将第二运行状态参数更新为第一运行状态参数,并且进入休眠状态。
在一实施例中,当差值小于第一预设阈值,说明第一运行状态参数和第二运行状态参数相差不大,则可以确定系统硬件在第一运行状态参数对应的节点与在第二运行状态参数对应的节点的运行情况是相对较为稳定的,即,系统硬件处于能耗稳定的状态,因此,在这种情况下,可以不用对系统硬件进行能耗优化,相应地,系统策略层确定的节能策略即为:将第二运行状态参数更新为第一运行状态参数,即,不用改变原先获取到的第一运行状态参数,以便于在下一次确定节能策略时,仍然以第一运行状态参数作为基础进行比较,应用效果更好,并且进入休眠状态,可以理解地是,由于在这种条件下不需要再另外制订节能策略,同时考虑到系统策略层在接收不同次的运行状态参数之间存在预设时间间隔,因此,系统策略层可以进入休眠状态,节省功耗,以等待下一次获取到运行状态参数而进行确定节能策略的时刻,通常而言,系统策略层的休眠时间不应超过预设时间间隔,这样可以确保系统策略层能够正常地接收运行状态参数。
需要说明的是,采用上述实施例中的按照预设时间间隔先后获得第一运行状态参数和第二运行状态参数的操作,可以达到降低功耗的目的,这是由于获取运行状态参数的操作本身会占用一定的CPU资源,造成一定功耗,若不采用上述实施例中的定期触发获取参数的操作方式,则可能出现频繁执行获取运行状态参数的操作,显然这会造成不必要的能耗损失。此外,上述实施例中的获取运行状态参数的操作并非是唯一限定的,在具体应用情景下可以另行设置,例如,可以采用程序逻辑主动触发的方式,使得系统策略层根据程序逻辑以获取运行状态参数,并记录当前情景下的时间参数。
此外,响应于差值大于或等于第一预设阈值,且差值处于预设的第二预设阈值范围内, 系统策略层确定节能策略为预设节能策略。
在一实施例中,当差值大于或等于第一预设阈值,说明第一运行状态参数和第二运行状态参数相差较大,同时确定差值处于预设的第二预设阈值范围内,则可以获知系统硬件在第一运行状态参数对应的节点与在第二运行状态参数对应的节点的运行情况是相对不同的,即,系统硬件处于能耗波动不稳定的状态,因此,在这种情况下,需要对系统硬件进行能耗优化,相应地,系统策略层确定的节能策略即为预设节能策略,由于预设节能策略是预先设置好的,因此在这种条件下可以直接采用预设节能策略作为最终的节能策略,不用另外设置节能策略,从而能够降低系统策略层的决策难度和应用能耗。
需要说明的是,根据前述实施例可知,预设节能策略指与特定条件绑定的节能操作集合,该节能操作集合中的各个节能操作用于实现能耗优化,假若节能操作集合中不存在任何节能操作可以用于解决系统硬件在当前条件下的能耗优化,则说明预设节能策略不适用于当前条件下的系统硬件,因此需要另外确定与系统硬件适配的节能策略。
在一实施例中,系统实施层,具体用于根据节能策略确定为系统硬件执行的至少一个节能操作,并且用于根据节能操作控制系统硬件的运行状态,其中,至少一个节能操作对应于节能策略。
在一实施例中,系统实施层能够将节能策略以具体的节能操作体现,从而直接基于节能操作实现对于系统硬件的运行状态的控制,这种方式不用考虑节能策略中的复杂流程或步骤,在应用中执行起来更加方便可靠,即使出现控制故障,也可以通过查找对应的节能操作来直观地分析原因以及排除问题,显然能够大大提升针对系统硬件进行能耗优化的稳定性。
示例二:
如图3所示,示出了系统策略层在一个线程下的工作原理。
在本次收集到空闲计数器数据后,将本次收集到的空闲计数器数据S1与上次收集到的空闲计数器数据S2进行比较,得到差值S3,进而判断S3与固定参数S4之间的大小,若S3小于S4,则将S1赋值给S2,那么在下次比较时,则以S1与下次收集到的空闲计数器数据进行比较;若S3大于或等于S4,且S3还处于另一固定阈值范围Q之内,则判断为系统硬件执行预设节能策略中的节能操作,同时返回到判断S3与固定参数S4之间的大小的步骤,即通过持续循环地判断,从而能够基于每个节点下的运行状态参数构建相对应的节能策略,取得稳定可靠的节能策略构建效果,可以理解地是,对应于不同条件下的运行状态参数,可能需要对应确定不同的节能策略,如图4所示,这些节能策略可以完全保存于系统策略层内。
示例三:
系统实施层以硬件抽象接口进行表征,硬件抽象接口即为对系统硬件的运行状态方式进 行控制的抽象,可视为函数f:state->state,其中,state为运行状态的元组,state=(C,P,D),其中,C为CPU频率集合接口,P为CPU状态集合接口,D为外设状态集合接口,或者,如图4所示,C、P和D也可以进行模块化设置,通过调用该函数会使系统硬件的运行状态迁移到新的状态,例如,当系统实施层根据节能策略确定为系统硬件执行的一个节能操作为:将CPU频率集合接口调整抽象为CPU Freq Set接口,然后调用该CPU频率集合接口即可完成CPU频率状态的迁移,可见,采用调用硬件抽象接口的方式控制系统硬件的运行状态,与系统平台无关,无需关注底层的具体实现,应用效果更好。
参照图5,图5是本申请一个实施例提供的节能设备的示意图。
如图5所示,该节能设备包括:一个或多个处理器和存储器,图5中以一个处理器及一个存储器为例。
处理器和存储器可以通过总线或者其他方式连接,图5中以通过总线连接为例。
存储器作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序以及非暂态性计算机可执行程序。此外,存储器可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器可选包括相对于处理器远程设置的远程存储器,这些远程存储器可以通过网络连接至该处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
本申请实施例描述的网络设备以及应用场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域技术人员可知,随着网络设备的演变和新应用场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
本领域技术人员可以理解的是,图5中示出的节能设备并不构成对本申请实施例的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
在图5所示的节能设备中,可通过其存储器内部所存储的指令,由处理器基于该指令进行执行相应的节能控制方法。
基于上述节能设备的结构,提出本申请的节能控制方法的各个实施例。
如图6所示,图6是本申请一个实施例提供的节能控制方法的流程图,可以应用于如图1所示实施例中的节能架构或图5所示实施例中的节能设备,该节能控制方法包括但不限于步骤S100至S400。
步骤S100,控制系统应用层根据处于强隔离环境下的系统硬件在空闲状态下的运行情况上报运行状态参数;
步骤S200,控制系统策略层获取由系统应用层发送的运行状态参数;
步骤S300,响应于系统策略层获取到运行状态参数,控制系统策略层根据运行状态参数确定针对系统硬件的节能策略;
步骤S400,获取节能策略,并根据节能策略控制系统硬件的运行状态。
在一实施例中,通过控制系统应用层以识别系统硬件在强隔离环境下的空闲状态,然后基于系统硬件在空闲状态下的运行情况确定运行状态参数,并且控制系统策略层根据运行状态参数确定针对于系统硬件的节能策略,进而通过控制系统实施层执行节能策略以控制系统硬件的运行状态,从而实现对系统硬件在强隔离环境下的能耗状况进行优化,能够有效降低系统功耗,取得良好节能效果。
值得注意的是,由于本实施例中的节能控制方法与上述实施例中的节能架构属于本申请的同一发明构思,因此本实施例中的节能控制方法的具体实施方式,可以参照上述实施例中的节能架构的具体实施例,为避免冗余,本实施例的节能控制方法的具体实施方式在此不再赘述。
如图7所示,图7是本申请另一个实施例提供的节能控制方法的流程图,在运行状态参数包括第一运行状态参数和第二运行状态参数的情况下,步骤S300包括但不限于步骤S310。
步骤S310,响应于系统策略层根据预设时间间隔先后获得第一运行状态参数和第二运行状态参数,控制系统策略层根据第一运行状态参数和第二运行状态参数的差值确定针对系统硬件的节能策略。
在一实施例中,在按照预设时间间隔先后获得第一运行状态参数和第二运行状态参数的情况下,确保能够周期性地获取到相对稳定可靠的运行状态参数,基于这种情况下的第一运行状态参数和第二运行状态参数的差值以确定节能策略,精确程度更高,所确定的节能策略更容易匹配于系统硬件。
值得注意的是,由于本实施例中的节能控制方法与上述实施例中的节能架构属于本申请的同一发明构思,因此本实施例中的节能控制方法的具体实施方式,可以参照上述实施例中的节能架构的具体实施例,为避免冗余,本实施例的节能控制方法的具体实施方式在此不再赘述。
如图8所示,图8是本申请另一个实施例提供的节能控制方法的流程图,步骤S310包括但不限于步骤S320。
步骤S320,响应于差值小于第一预设阈值,控制系统策略层确定将第二运行状态参数更新为第一运行状态参数,并控制系统策略层进入休眠状态。
值得注意的是,由于本实施例中的节能控制方法与上述实施例中的节能架构属于本申请 的同一发明构思,因此本实施例中的节能控制方法的具体实施方式,可以参照上述实施例中的节能架构的具体实施例,为避免冗余,本实施例的节能控制方法的具体实施方式在此不再赘述。
如图9所示,图9是本申请另一个实施例提供的节能控制方法的流程图,步骤S310包括但不限于步骤S330。
步骤S330,响应于差值大于或等于第一预设阈值,且差值处于预设的第二预设阈值范围内,控制系统策略层确定节能策略为预设节能策略。
值得注意的是,由于本实施例中的节能控制方法与上述实施例中的节能架构属于本申请的同一发明构思,因此本实施例中的节能控制方法的具体实施方式,可以参照上述实施例中的节能架构的具体实施例,为避免冗余,本实施例的节能控制方法的具体实施方式在此不再赘述。
如图10所示,图10是本申请另一个实施例提供的节能控制方法的流程图,步骤S100包括但不限于步骤S110至S120。
步骤S110,控制系统用户层根据第一数据接口确定运行状态参数;
步骤S120,控制系统传输层接收由系统用户层发送的运行状态参数,并且控制系统传输层根据运行状态参数确定运行状态参数在强隔离环境下的等级类型,并且控制系统传输层以与等级类型匹配的通信方式,将运行状态参数传输至系统策略层。
值得注意的是,由于本实施例中的节能控制方法与上述实施例中的节能架构属于本申请的同一发明构思,因此本实施例中的节能控制方法的具体实施方式,可以参照上述实施例中的节能架构的具体实施例,为避免冗余,本实施例的节能控制方法的具体实施方式在此不再赘述。
如图11所示,图11是本申请另一个实施例提供的节能控制方法的流程图,步骤S100包括但不限于步骤S410至S420。
步骤S410,根据节能策略确定为系统硬件执行的至少一个节能操作,其中,至少一个节能操作对应于节能策略;
步骤S420,根据节能操作控制系统硬件的运行状态。
值得注意的是,由于本实施例中的节能控制方法与上述实施例中的节能架构属于本申请的同一发明构思,因此本实施例中的节能控制方法的具体实施方式,可以参照上述实施例中的节能架构的具体实施例,为避免冗余,本实施例的节能控制方法的具体实施方式在此不再赘述。
另外,本申请的一个实施例还提供了一种网络设备,该网络设备包括:如图1所示实施 例中的节能架构或者如图5实施例所示的节能设备。
其中,实现上述实施例的节能控制方法所需的非暂态软件程序以及指令存储在存储器中,当被处理器执行时,执行上述实施例的节能控制方法,例如,执行以上描述的图6中的方法步骤S100至步骤S400、图7中的方法步骤S310、图8中的方法步骤S320、图9中的方法步骤S330、图10中的方法步骤S110至步骤S120或图11中的方法步骤S410至S420。
需要说明的是,本实施例中的网络设备,可以应用于如图1所示实施例中的节能架构或者如图5实施例所示的节能设备,这些实施例均属于本申请相同的发明构思,因此这些实施例具有相同的实现原理以及技术效果,此处不再详述。
以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
此外,本申请的一个实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被处理器或控制器执行,例如,被上述设备实施例中的处理器执行,可使得上述处理器执行上述实施例中的节能控制方法,例如,执行以上描述的图6中的方法步骤S100至步骤S400、图7中的方法步骤S310、图8中的方法步骤S320、图9中的方法步骤S330、图10中的方法步骤S110至步骤S120或图11中的方法步骤S410至S420。
根据本申请实施例提供的方案,通过设置系统应用层以识别系统硬件在强隔离环境下的空闲状态,然后基于系统硬件在空闲状态下的运行情况确定运行状态参数,并且设置系统策略层根据运行状态参数确定针对于系统硬件的节能策略,进而通过所设置的系统实施层执行节能策略以控制系统硬件的运行状态,从而实现对系统硬件在强隔离环境下的能耗状况进行优化,能够有效降低系统功耗,取得良好节能效果。
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以 用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。
以上是对本申请的较佳实施方式进行的具体说明,但本申请并不局限于上述实施方式,熟悉本领域的技术人员在不违背本申请精神的前提下还可作出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。
Claims (14)
- 一种节能架构,包括:系统应用层,用于根据处于强隔离环境下的系统硬件在空闲状态下的运行情况上报运行状态参数;系统策略层,与所述系统应用层连接,用于获取由所述系统应用层发送的所述运行状态参数,并根据所述运行状态参数确定针对所述系统硬件的节能策略;以及系统实施层,与所述系统策略层连接,用于根据所述节能策略控制所述系统硬件的运行状态。
- 根据权利要求1所述的节能架构,其中,所述运行状态参数包括第一运行状态参数和第二运行状态参数,所述第一运行状态参数和所述第二运行状态参数由所述系统策略层根据预设时间间隔先后获得,所述节能策略由所述系统策略层根据所述第一运行状态参数和所述第二运行状态参数的差值确定。
- 根据权利要求2所述的节能架构,其中,响应于所述差值小于第一预设阈值,所述系统策略层确定将所述第二运行状态参数更新为所述第一运行状态参数,并且进入休眠状态。
- 根据权利要求2所述的节能架构,其中,响应于所述差值大于或等于第一预设阈值,且所述差值处于预设的第二预设阈值范围内,所述系统策略层确定所述节能策略为预设节能策略。
- 根据权利要求1至4任意一项所述的节能架构,其中,所述系统应用层包括系统用户层和系统传输层,所述系统传输层分别与所述系统用户层和所述系统策略层连接,其中,所述系统用户层配置有供上报处于强隔离环境下的系统硬件的空闲状态的第一数据接口;所述系统用户层用于根据所述第一数据接口确定所述运行状态参数;以及所述系统传输层用于接收由所述系统用户层发送的所述运行状态参数,并且用于根据所述运行状态参数确定所述运行状态参数在强隔离环境下的等级类型,并且用于以与所述等级类型匹配的通信方式,将所述运行状态参数传输至所述系统策略层。
- 根据权利要求1所述的节能架构,其中,所述系统实施层,用于根据所述节能策略确定为所述系统硬件执行的至少一个节能操作,并且用于根据所述节能操作控制所述系统硬件的运行状态,其中,所述至少一个节能操作对应于所述节能策略。
- 一种节能控制方法,应用于节能架构,所述节能架构包括系统应用层和系统策略层,所述系统应用层与所述系统策略层连接;所述节能控制方法包括:控制所述系统应用层根据处于强隔离环境下的系统硬件在空闲状态下的运行情况上报运行状态参数;控制所述系统策略层获取由所述系统应用层发送的所述运行状态参数;响应于所述系统策略层获取到所述运行状态参数,控制所述系统策略层根据所述运行状态参数确定针对所述系统硬件的节能策略;以及获取所述节能策略,并根据所述节能策略控制所述系统硬件的运行状态。
- 根据权利要求7所述的节能控制方法,其中,所述运行状态参数包括第一运行状态参数和第二运行状态参数;以及所述响应于所述系统策略层获取到所述运行状态参数,控制所述系统策略层根据所述运行状态参数确定针对所述系统硬件的节能策略,包括:响应于所述系统策略层根据预设时间间隔先后获得所述第一运行状态参数和所述第二运行状态参数,控制所述系统策略层根据所述第一运行状态参数和所述第二运行状态参数的差值确定针对所述系统硬件的节能策略。
- 根据权利要求8所述的节能控制方法,其中,所述控制所述系统策略层根据所述第一运行状态参数和所述第二运行状态参数的差值确定针对所述系统硬件的节能策略,包括:响应于所述差值小于第一预设阈值,控制所述系统策略层确定将所述第二运行状态参数更新为所述第一运行状态参数,并控制所述系统策略层进入休眠状态。
- 根据权利要求8所述的节能控制方法,其中,所述控制所述系统策略层根据所述第一运行状态参数和所述第二运行状态参数的差值确定针对所述系统硬件的节能策略,包括:响应于所述差值大于或等于第一预设阈值,且所述差值处于预设的第二预设阈值范围内,控制所述系统策略层确定所述节能策略为预设节能策略。
- 根据权利要求7至10任意一项所述的节能控制方法,其中,所述系统应用层包括系统用户层和系统传输层,所述系统传输层分别与所述系统用户层和所述系统策略层连接,其中,所述系统用户层配置有供上报处于强隔离环境下的系统硬件的空闲状态的第一数据接口;以及所述控制所述系统应用层根据处于强隔离环境下的系统硬件在空闲状态下的运行情况上报运行状态参数,包括:控制所述系统用户层根据所述第一数据接口确定所述运行状态参数;以及控制所述系统传输层接收由所述系统用户层发送的所述运行状态参数,并且控制所述系统传输层根据所述运行状态参数确定所述运行状态参数在强隔离环境下的等级类型,并且控制所述系统传输层以与所述等级类型匹配的通信方式,将所述运行状态参数传输至所述系统 策略层。
- 根据权利要求7所述的节能控制方法,其中,所述获取所述节能策略,并根据所述节能策略控制所述系统硬件的运行状态,包括:根据所述节能策略确定为所述系统硬件执行的至少一个节能操作,其中,所述至少一个节能操作对应于所述节能策略;以及根据所述节能操作控制所述系统硬件的运行状态。
- 一种网络设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如权利要求7至12中任意一项所述的节能控制方法。
- 一种计算机可读存储介质,存储有计算机可执行指令,其中,所述计算机可执行指令用于执行权利要求7至12中任意一项所述的节能控制方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110752014.9A CN115550082A (zh) | 2021-06-29 | 2021-06-29 | 节能架构及其控制方法、网络设备、计算机可读存储介质 |
CN202110752014.9 | 2021-06-29 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023273965A1 true WO2023273965A1 (zh) | 2023-01-05 |
Family
ID=84690747
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/100207 WO2023273965A1 (zh) | 2021-06-29 | 2022-06-21 | 节能架构及其控制方法、网络设备、计算机可读存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115550082A (zh) |
WO (1) | WO2023273965A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117240633B (zh) * | 2023-11-16 | 2024-03-08 | 深圳市加糖电子科技有限公司 | 信息交互方法、电子设备和存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101888316A (zh) * | 2010-05-06 | 2010-11-17 | 袁隽 | 根据应用场景特征参数控制服务器能耗的方法及装置 |
CN101943944A (zh) * | 2010-09-15 | 2011-01-12 | 中国人民解放军国防科学技术大学 | 一种基于空闲历史信息的计算阵列节能方法 |
CN102789301A (zh) * | 2012-05-17 | 2012-11-21 | 江苏中科梦兰电子科技有限公司 | 一种计算机的电源管理方法 |
IN201647038642A (zh) * | 2016-11-11 | 2017-05-12 | Xiaomi Inc., |
-
2021
- 2021-06-29 CN CN202110752014.9A patent/CN115550082A/zh active Pending
-
2022
- 2022-06-21 WO PCT/CN2022/100207 patent/WO2023273965A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101888316A (zh) * | 2010-05-06 | 2010-11-17 | 袁隽 | 根据应用场景特征参数控制服务器能耗的方法及装置 |
CN101943944A (zh) * | 2010-09-15 | 2011-01-12 | 中国人民解放军国防科学技术大学 | 一种基于空闲历史信息的计算阵列节能方法 |
CN102789301A (zh) * | 2012-05-17 | 2012-11-21 | 江苏中科梦兰电子科技有限公司 | 一种计算机的电源管理方法 |
IN201647038642A (zh) * | 2016-11-11 | 2017-05-12 | Xiaomi Inc., |
Also Published As
Publication number | Publication date |
---|---|
CN115550082A (zh) | 2022-12-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10635558B2 (en) | Container monitoring method and apparatus | |
US7315952B2 (en) | Power state coordination between devices sharing power-managed resources | |
US6704877B2 (en) | Dynamically changing the performance of devices in a computer platform | |
WO2021258753A1 (zh) | 一种业务处理方法、装置及电子设备和存储介质 | |
US20090083560A1 (en) | Computing Device Power Management | |
CN100407104C (zh) | 操作系统协作下的嵌入式设备电源管理方法及系统 | |
JP2009501496A5 (zh) | ||
WO2023273965A1 (zh) | 节能架构及其控制方法、网络设备、计算机可读存储介质 | |
US20220155992A1 (en) | Methods and systems for memory management in a publish and subscribe system | |
CN102902583A (zh) | 在挂起状态和执行状态下管理进程 | |
CN111352806A (zh) | 日志数据监控方法及装置 | |
US9531597B2 (en) | Methods and systems to maintain data coherency | |
CN111400036A (zh) | 基于服务器集群的云应用管理系统、方法、装置及介质 | |
CN102999384A (zh) | 在挂起状态和执行状态下管理进程 | |
CN101964735A (zh) | 以太网方法和以太网设备中使用的方法 | |
EP1607838B1 (en) | Power state coordination between devices sharing power-managed resources | |
CN104102540A (zh) | 一种运行进程的管理方法及移动终端 | |
US8973008B2 (en) | Combining different resource types | |
CN111200541A (zh) | 网络数据处理方法和装置 | |
CN116868167A (zh) | 操作系统的运行控制方法和装置,以及嵌入式系统和芯片 | |
CN114138434A (zh) | 一种大数据任务调度系统 | |
US11256321B2 (en) | Network-driven, packet context-aware power management for client-server architecture | |
CN116107731A (zh) | 分布式集群负载的控制方法及装置 | |
CN117311628A (zh) | 一种固态硬盘的命令处理方法、装置、设备及介质 | |
CN109002381A (zh) | 进程通信监控方法、电子装置及计算机可读存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22831783 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22831783 Country of ref document: EP Kind code of ref document: A1 |