CN113110730B - Energy-saving method and device for operating equipment and electronic equipment - Google Patents

Energy-saving method and device for operating equipment and electronic equipment Download PDF

Info

Publication number
CN113110730B
CN113110730B CN202110386203.9A CN202110386203A CN113110730B CN 113110730 B CN113110730 B CN 113110730B CN 202110386203 A CN202110386203 A CN 202110386203A CN 113110730 B CN113110730 B CN 113110730B
Authority
CN
China
Prior art keywords
equipment
running
time
operating
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110386203.9A
Other languages
Chinese (zh)
Other versions
CN113110730A (en
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.)
Beijing Runneier Technology Co ltd
Original Assignee
Beijing Rainier Network Technology Co 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 Beijing Rainier Network Technology Co ltd filed Critical Beijing Rainier Network Technology Co ltd
Priority to CN202110386203.9A priority Critical patent/CN113110730B/en
Publication of CN113110730A publication Critical patent/CN113110730A/en
Application granted granted Critical
Publication of CN113110730B publication Critical patent/CN113110730B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45583Memory management, e.g. access or allocation
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Power Sources (AREA)

Abstract

The embodiment of the application provides an energy-saving method and device for operating equipment and electronic equipment, wherein the method is applied to a server, the server is in communication connection with the operating equipment, and the operating equipment is equipment for deploying a virtual simulation system; collecting operation data of the operation equipment within preset collection time according to a preset collection time interval; calculating an operating threshold of the operating device according to the operating data; determining an idle use time period corresponding to the running of the virtual simulation system by the running equipment based on the running threshold; generating a control script corresponding to the running equipment according to the idle use time period; and sending the control script to the running equipment so that the running equipment runs the control script to realize shutdown at the starting time of the idle use time period and start up at the ending time of the idle use time period, thereby achieving the purposes of energy conservation and emission reduction and simultaneously prolonging the service life of the running equipment.

Description

Energy-saving method and device for operating equipment and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for saving energy in operating a device, and an electronic device.
Background
With the development of informatization technology, particularly, in recent years, the development of 5G technology, cloud technology, big data and other internet, new changes are brought in the education field, virtual simulation experiment teaching also meets new opportunities, the virtual simulation experiment teaching is applied to the modern information technology such as virtual reality, multimedia, man-machine interaction, database, network communication and the like to construct highly vivid virtual scenes and learning contents, a user is enabled to use a virtual simulation system to immerse in a virtual environment for autonomous learning or experiment operation, the teaching contents which are not possessed or difficult to complete in the real environment can be developed, and the teaching quality is effectively improved.
At present, operation and maintenance personnel cannot determine whether the current virtual simulation system is not used for a long time through the operation condition of the equipment, so that the equipment for operating the virtual simulation system cannot be shut down in time, energy waste is easily caused, and the service life of the equipment is shortened.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus and an electronic device for saving energy in operating a device, so as to alleviate the above technical problems.
In a first aspect, an embodiment of the present invention provides an energy saving method for operating a device, where the method is applied to a server, the server is in communication connection with the operating device, and the operating device is a device in which a virtual simulation system is deployed; the method comprises the following steps: collecting operation data of the operation equipment within preset collection time according to a preset collection time interval; calculating an operating threshold of the operating device according to the operating data; determining an idle use time period corresponding to the running of the virtual simulation system by the running equipment based on the running threshold; generating a control script corresponding to the running equipment according to the idle use time period; and sending the control script to the running equipment so that the running equipment runs the control script to realize shutdown at the starting time of the idle use time period and startup at the ending time of the idle use time period.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the operation data includes: CPU utilization rate, memory occupancy rate and usage flow; calculating an operating threshold by the following equation; α ═ 0.4C +0.4N + 0.2P; where α represents an operation threshold, C represents a CPU utilization, N represents a memory occupancy, and P represents a usage flow.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the step of determining, based on the operation threshold, an idle usage period during which the operating device operates the virtual simulation system includes: searching time intervals corresponding to all operation thresholds which are smaller than a preset operation threshold; determining a target engagement time interval from a plurality of time intervals; wherein, the target connection time interval is composed of a plurality of adjacent time intervals; and determining the target connection time interval as an idle use period.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the step of determining a target splicing time interval from a plurality of time intervals includes: searching adjacent time intervals from a plurality of time intervals; counting the corresponding duration of the adjacent time intervals after connection; and determining the adjacent time interval after connection corresponding to the time length greater than the preset time length threshold value as a target connection time interval.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where a server stores a version identification table in advance, where the version identification table stores a plurality of specific version identifications and update information corresponding to each specific version identification; after the boot is performed at the end time of the idle use period, the method further includes: acquiring a version identifier corresponding to a virtual simulation system deployed on running equipment after starting up; comparing the version identification with each specific version identification in the version identification table; acquiring updating information corresponding to a target specific version identifier larger than the version identifier; and updating the virtual simulation system based on the updating information.
With reference to the fourth possible implementation manner of the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the updating the virtual simulation system based on the update information includes: sending the update information to the running equipment so as to display on a display interface of the running equipment; responding to the selection operation aiming at the updating information, and acquiring a version updating software package corresponding to the updating information; and updating the virtual simulation system based on the version updating software package.
With reference to the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the method further includes: acquiring an operation log of an operation device; and monitoring the running state of the running equipment based on the running log.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a seventh possible implementation manner of the first aspect, where the method for determining the preset operation threshold includes: acquiring an operation threshold corresponding to each preset acquisition time interval within preset reset time; constructing an operation curve based on the preset reset time and the operation threshold; and determining the operation threshold corresponding to the curve area under the operation curve exceeding the preset area value as the preset operation threshold.
In a second aspect, an embodiment of the present invention further provides an apparatus for saving energy of operating equipment, where the apparatus is applied to a server, the server is in communication connection with the operating equipment, and the operating equipment is equipment in which a virtual simulation system is deployed; the above-mentioned device includes: the acquisition module is used for acquiring the operation data of the operation equipment according to a preset acquisition time interval within a preset acquisition time; the calculation module is used for calculating the operation threshold of the operation equipment according to the operation data; the determining module is used for determining an idle use time period corresponding to the running of the virtual simulation system by the running equipment based on the running threshold; the generating module is used for generating a control script corresponding to the running equipment according to the idle use time period; and the sending module is used for sending the control script to the running equipment so that the running equipment runs the control script to realize shutdown at the starting time of the idle use time period and startup at the ending time of the idle use time period.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes a processor and a memory, where the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the above-mentioned method for operating the device to save energy.
The embodiment of the invention has the following beneficial effects:
the embodiment of the application provides an energy-saving method and device for operating equipment and electronic equipment, wherein the method is applied to a server, the server is in communication connection with the operating equipment, and the operating equipment is equipment for deploying a virtual simulation system; collecting operation data of the operation equipment within preset collection time according to a preset collection time interval; calculating an operating threshold of the operating device according to the operating data; determining an idle use time period corresponding to the running of the virtual simulation system by the running equipment based on the running threshold; generating a control script corresponding to the running equipment according to the idle use time period; and sending the control script to the running equipment so that the running equipment runs the control script to realize shutdown at the starting time of the idle use time period and startup at the ending time of the idle use time period. The idle use time period corresponding to the running of the virtual simulation system can be determined through the running data of the running equipment, and the control script corresponding to the running equipment is generated based on the idle use time period, so that when the running equipment runs the control script, the running equipment can be automatically turned off at the starting time of the idle use time period and automatically turned on at the ending time of the idle use time period, the purposes of energy conservation and emission reduction are achieved, and the service life of the running equipment is prolonged.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for saving energy of an operating device according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for operating a device to conserve energy according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for saving energy of an operating device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, operation and maintenance personnel cannot determine whether a current virtual simulation system is not used for a long time through the operation condition of equipment, so that the equipment for operating the virtual simulation system cannot be shut down in time, energy waste is easily caused, and the service life of the equipment is shortened.
For the convenience of understanding the embodiment, a detailed description will be given to a method for saving energy of an operating device disclosed in the embodiment of the present invention.
The embodiment provides an energy-saving method for operating equipment, wherein the method is applied to a server, the server is in communication connection with the operating equipment, and the operating equipment is equipment for deploying a virtual simulation system; the virtual simulation system can realize virtual simulation according to the operation of a user so that the user can independently learn or experiment operation, when the virtual simulation system is actually used, the server can be in communication connection with a plurality of running devices, the specific connection quantity can be set according to actual needs, and limitation is not performed.
Referring to a flowchart of a method for operating equipment to save energy shown in fig. 1, the method specifically includes the following steps:
step S102, collecting operation data of operation equipment according to a preset collection time interval within preset collection time;
in this embodiment, a preset acquisition time interval is set to be half an hour for a preset acquisition time from zero to twenty-four points, so that the server acquires the operation data of the operation equipment every half an hour; the preset acquisition time and the preset acquisition time interval can be set according to actual needs, and are not limited herein.
The running data is a parameter capable of reflecting running characteristics of running equipment, such as memory occupancy, usage flow, CPU (Central Processing Unit) utilization, number of CPU-enabled cores, number of suspended processes, and/or number of suspended threads, and the specific running data may be collected as required without limiting the running data.
Step S104, calculating an operation threshold value of the operation equipment according to the operation data;
if the above operational data includes: CPU utilization rate, memory occupancy rate and usage flow; the operational threshold may be calculated by the following equation; α ═ 0.4C +0.4N + 0.2P; where α represents an operation threshold, C represents a CPU utilization, N represents a memory occupancy, and P represents a usage flow.
Step S106, determining an idle use time period corresponding to the virtual simulation system running of the running equipment based on the running threshold;
the idle use period may be understood as a time period when the running device does not run the virtual simulation system, and may be specifically implemented through steps a1 to A3:
step A1, searching time intervals corresponding to all operation thresholds which are smaller than a preset operation threshold;
in this embodiment, the preset operation threshold may be periodically replaced according to a preset reset time, where the preset operation threshold is determined based on the operation threshold, the preset reset time may be set to three days, one week, and one month, and the specific preset reset time may be set as required.
Specifically, the method for determining the preset operation threshold may be implemented through steps B1 to B3:
step B1, acquiring operation thresholds corresponding to each preset acquisition time interval within preset reset time;
step B2, constructing an operation curve based on the preset reset time and the operation threshold;
and taking the preset reset time as a horizontal axis, and taking the operation threshold corresponding to each collected preset collection time interval as a vertical axis to construct an operation curve.
And step B3, determining the operation threshold corresponding to the curve area under the operation curve exceeding the preset area value as the preset operation threshold.
In practical application, because the operating curve meets normal distribution, the operating threshold value corresponding to the curve area exceeding the preset area value can be selected, and if a plurality of operating threshold values corresponding to the area exceeding the preset area value exist, the operating threshold value with the minimum operating threshold value can be selected as the preset operating threshold value.
For example, the preset operation threshold determined by the method is 10, and therefore, in the operation thresholds corresponding to the preset acquisition time intervals obtained within the preset acquisition time, the time intervals corresponding to the operation thresholds smaller than 0.8 respectively have: 0:00-0:30, 0:30-1:00, 1:00-1:30, 1:30-2:00, 2:00-2:30, 2:30-3:00, 4:30-5:00, 5:00-5:30, 5:30-6:00, 7:00-7: 30.
Step A2, determining a target connection time interval from a plurality of time intervals; wherein, the target connection time interval is composed of a plurality of adjacent time intervals;
wherein, the determination of the target connection time interval can be realized through the steps C1 to C3:
step C1, searching adjacent time intervals from a plurality of time intervals;
in the previous example, the time interval corresponding to the operation threshold value smaller than 10 is known, wherein 0:00-0:30, 0:30-1:00, 1:00-1:30, 1:30-2:00, 2:00-2:30 and 2:30-3:00 are adjacent time intervals, and 4:30-5:00, 5:00-5:30 and 5:30-6:00 are adjacent time intervals.
Step C2, counting the corresponding duration of the adjacent time intervals after connection;
and connecting the adjacent time periods to count the total time length, so that the time length of the connected adjacent time periods from 0:00 to 3:00 is 3 hours in total, and the time length of the connected adjacent time periods from 4:30 to 6:00 is 1.5 hours in total.
And step C3, determining the adjacent time interval after connection corresponding to the time length greater than the preset time length threshold value as a target connection time interval.
In this embodiment, the preset time threshold is set to 2 hours, and since the time of the adjacent time period 0:00-3:00 after connection is longer than 2 hours and the time of the adjacent time period 4:30-6:00 after connection is shorter than 2 hours, the adjacent time period 0:00-3:00 after connection is determined as a target connection time interval, that is, an idle use time period corresponding to the running device running the virtual simulation system.
Step A3, determining the target connection time interval as the idle use period.
Step S108, generating a control script corresponding to the running equipment according to the idle use time period;
step S110, sending the control script to the running device, so that the running device runs the control script to implement shutdown at the starting time of the idle period and startup at the ending time of the idle period.
The control script is an operation code which can control the operation equipment to automatically shut down according to the starting time of the idle use time period and automatically shut down according to the ending time of the idle use time period, so that the operation equipment can be shut down to save electric energy in the idle use time period when the operation equipment does not operate the virtual simulation system.
The embodiment of the application provides an energy-saving method for operating equipment, wherein the method is applied to a server, the server is in communication connection with the operating equipment, and the operating equipment is equipment for deploying a virtual simulation system; collecting operation data of the operation equipment within preset collection time according to a preset collection time interval; calculating an operating threshold of the operating device according to the operating data; determining an idle use time period corresponding to the running of the virtual simulation system by the running equipment based on the running threshold; generating a control script corresponding to the running equipment according to the idle use time period; and sending the control script to the running equipment so that the running equipment runs the control script to realize shutdown at the starting time of the idle use time period and startup at the ending time of the idle use time period. The idle use time period corresponding to the running of the virtual simulation system can be determined through the running data of the running equipment, and the control script corresponding to the running equipment is generated based on the idle use time period, so that when the running equipment runs the control script, the running equipment can be automatically turned off at the starting time of the idle use time period and automatically turned on at the ending time of the idle use time period, the purposes of energy conservation and emission reduction are achieved, and the service life of the running equipment is prolonged.
The embodiment provides another energy-saving method for operating equipment, which is realized on the basis of the embodiment; the embodiment focuses on a specific implementation manner of updating the virtual simulation system. As shown in fig. 2, another flowchart of a method for operating a device to save energy includes the following steps:
step S202, collecting operation data of the operation equipment according to a preset collection time interval within preset collection time;
step S204, calculating an operation threshold value of the operation equipment according to the operation data;
step S206, determining an idle use time period corresponding to the virtual simulation system running of the running equipment based on the running threshold;
step S208, generating a control script corresponding to the running equipment according to the idle use time period;
step S210, sending the control script to the running equipment so that the running equipment runs the control script to realize shutdown at the starting time of the idle use time period and startup at the ending time of the idle use time period;
step S212, acquiring a version identifier corresponding to a virtual simulation system deployed on the running equipment after starting up;
in this embodiment, the submission time T and the version number V of the virtual simulation system may be used as a version identifier, where the version identifier may be set as needed, and is not limited to this.
Step S214, comparing the version identification with each specific version identification in the version identification table;
the server stores a version identification table in advance, wherein a plurality of specific version identifications and updating information corresponding to each specific version identification are stored in the version identification table; the update information may include a description of the characteristics and functionality of the virtual simulation system to which the particular revision identification corresponds, as well as the particular revision identification.
Step S216, acquiring the updating information corresponding to the target specific version identification larger than the version identification;
and obtaining the update information corresponding to the target specific version identifier of which the submission time T in the specific version identifier is later than the submission time T corresponding to the virtual simulation system and the version number V in the specific version identifier is greater than the version number V corresponding to the virtual simulation system.
If the update information corresponding to the target specific version identifier is not obtained through the comparison of the version identifiers, it indicates that no new version corresponding to the virtual simulation system is updated, and therefore, the step S218 is not required to be executed.
Step S218, updating the virtual simulation system based on the updating information.
As an embodiment, when updating the virtual simulation system based on the update information, the update information may be sent to the running device to be displayed on a display interface of the running device; responding to the selection operation aiming at the updating information, and acquiring a version updating software package corresponding to the updating information; and updating the virtual simulation system based on the version updating software package.
If the number of the update information is multiple, the multiple update information can be sent to a display interface of the running equipment so as to display the update information to a user, when the virtual simulation system is actually used, a selection control corresponding to each update information is arranged on the display interface, the user can select one update information from the multiple update information by performing selection operation on the selection control, and the server responds to the selection operation to obtain a version update software package corresponding to the update information so as to replace and update the version update software package of the existing virtual simulation system by using the version update software package.
If the update information is one, the user can directly select the selection control corresponding to the update information, so that the server obtains the version update software package corresponding to the update information, and replaces and updates the version update software package of the existing virtual simulation system by using the version update software package.
As another embodiment, the acquired update information does not need to be sent to the running device, and the server may acquire, based on the optimal update information, the version update software package corresponding to the update information, so as to perform replacement update on the version update software package of the existing virtual simulation system.
During actual use, the server can also obtain an operation log of the operation equipment, and monitors the operation state of the operation equipment in real time through analyzing the operation log, wherein the operation state can comprise hardware state information and software state information; in order to realize the visualization of the operation state, the server is further provided with a web interface so as to display the operation state of each operation device in communication connection with the server to a manager, so that the manager can know the operation condition of the current operation device in detail.
The energy-saving method for the operating equipment provided by the embodiment of the invention can compare the version identification corresponding to the virtual simulation system deployed on the operating equipment after starting with the plurality of specific version identifications, and further obtain the updating information corresponding to the target specific version identification larger than the version identification; and updating the virtual simulation system based on the updating information. In the application, the running equipment can be regularly compared with a plurality of specific version identifications stored in the server in advance so as to realize automatic updating of the virtual simulation system.
Corresponding to the method embodiment, the embodiment of the invention provides an energy-saving device for operating equipment, wherein the device is applied to a server, the server is in communication connection with the operating equipment, and the operating equipment is equipment for deploying a virtual simulation system; fig. 3 shows a schematic structural diagram of an apparatus for energy saving of an operating device, as shown in fig. 3, the apparatus comprising:
an acquisition module 302, configured to acquire operating data of an operating device according to a preset acquisition time interval within a preset acquisition time;
a calculation module 304, configured to calculate an operation threshold of the operation device according to the operation data;
a determining module 306, configured to determine, based on the operation threshold, an idle usage period corresponding to the virtual simulation system being operated by the operating device;
a generating module 308, configured to generate a control script corresponding to the running device according to the idle usage period;
a sending module 310, configured to send the control script to the running device, so that the running device runs the control script to implement shutdown at a start time of the idle period and startup at an end time of the idle period.
The embodiment of the application provides an energy-saving device for operating equipment, wherein the method is applied to a server, the server is in communication connection with the operating equipment, and the operating equipment is equipment for deploying a virtual simulation system; collecting operation data of the operation equipment within preset collection time according to a preset collection time interval; calculating an operating threshold of the operating device according to the operating data; determining an idle use time period corresponding to the running of the virtual simulation system by the running equipment based on the running threshold; generating a control script corresponding to the running equipment according to the idle use time period; and sending the control script to the running equipment so that the running equipment runs the control script to realize shutdown at the starting time of the idle use time period and startup at the ending time of the idle use time period. The idle use time period corresponding to the running of the virtual simulation system can be determined through the running data of the running equipment, and the control script corresponding to the running equipment is generated based on the idle use time period, so that when the running equipment runs the control script, the running equipment can be automatically turned off at the starting time of the idle use time period and automatically turned on at the ending time of the idle use time period, the purposes of energy conservation and emission reduction are achieved, and the service life of the running equipment is prolonged.
The energy-saving device for the operating equipment provided by the embodiment of the invention has the same technical characteristics as the energy-saving method for the operating equipment provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
An embodiment of the present application further provides an electronic device, as shown in fig. 4, which is a schematic structural diagram of the electronic device, where the electronic device includes a processor 121 and a memory 120, the memory 120 stores computer-executable instructions that can be executed by the processor 121, and the processor 121 executes the computer-executable instructions to implement the above-mentioned method for operating the device to save energy.
In the embodiment shown in fig. 4, the electronic device further comprises a bus 122 and a communication interface 123, wherein the processor 121, the communication interface 123 and the memory 120 are connected by the bus 122.
The Memory 120 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 123 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like may be used. The bus 122 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 122 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
The processor 121 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 121. The Processor 121 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and the processor 121 reads information in the memory and completes the steps of the method for operating the energy saving device of the foregoing embodiment in combination with hardware thereof.
The embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the method for saving energy of an operating device, where specific implementation may refer to the foregoing method embodiment, and details are not described herein again.
The method and apparatus for operating device energy saving and the computer program product of the electronic device provided in the embodiments of the present application include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementations may refer to the method embodiments and are not described herein again.
Unless specifically stated otherwise, the relative steps, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the present application.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present application. Furthermore, the terms "first," "second," and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. The energy-saving method for the operating equipment is characterized in that the method is applied to a server, the server is in communication connection with the operating equipment, and the operating equipment is equipment for deploying a virtual simulation system; the method comprises the following steps:
collecting operation data of the operation equipment within preset collection time according to a preset collection time interval;
calculating an operating threshold of the operating device according to the operating data;
determining an idle use period corresponding to the running equipment running the virtual simulation system based on the running threshold;
generating a control script corresponding to the running equipment according to the idle use time period;
sending the control script to the running equipment so that the running equipment runs the control script to realize shutdown at the starting time of the idle use time period and startup at the ending time of the idle use time period;
determining an idle use period corresponding to the running equipment running the virtual simulation system based on the running threshold, wherein the idle use period comprises:
searching time intervals corresponding to all the operation thresholds which are smaller than a preset operation threshold;
determining a target engagement time interval from a plurality of said time intervals; wherein the target joining time interval is composed of a plurality of adjacent time intervals;
and determining the target connection time interval as an idle use period.
2. The method of claim 1, wherein the operational data comprises: CPU utilization rate, memory occupancy rate and usage flow;
calculating the operating threshold by;
α=0.4C+0.4N+0.2P;
wherein α represents the operation threshold, C represents the CPU utilization, N represents the memory occupancy, and P represents the usage traffic.
3. The method of claim 1, wherein the step of determining a target engagement time interval from the plurality of time intervals comprises:
searching for adjacent time periods from a plurality of the time intervals;
counting the duration corresponding to the adjacent time intervals after connection;
and determining the adjacent time interval after the connection corresponding to the time length greater than the preset time length threshold value as a target connection time interval.
4. The method according to claim 1, wherein the server stores a version identification table in advance, wherein the version identification table stores a plurality of specific version identifications and update information corresponding to each specific version identification;
after booting at the end time of the idle use period, the method further comprises:
acquiring a version identifier corresponding to a virtual simulation system deployed on the running equipment after starting up;
comparing the version identification with each specific version identification in the version identification table;
acquiring updating information corresponding to a target specific version identifier larger than the version identifier;
and updating the virtual simulation system based on the updating information.
5. The method of claim 4, wherein updating the virtual simulation system based on the update information comprises:
sending the updating information to the running equipment so as to display on a display interface of the running equipment;
responding to the selection operation aiming at the updating information, and acquiring a version updating software package corresponding to the updating information;
and updating the virtual simulation system based on the version updating software package.
6. The method of claim 1, further comprising:
acquiring an operation log of the operation equipment;
and monitoring the running state of the running equipment based on the running log.
7. The method of claim 1, wherein the method for determining the preset operating threshold comprises:
acquiring an operation threshold corresponding to each preset acquisition time interval within preset reset time;
constructing an operation curve based on the preset reset time and the operation threshold;
and determining an operation threshold value corresponding to the curve area under the operation curve exceeding a preset area value as a preset operation threshold value.
8. The device for saving energy of the operating equipment is characterized in that the device is applied to a server, the server is in communication connection with the operating equipment, and the operating equipment is equipment for deploying a virtual simulation system; the device comprises:
the acquisition module is used for acquiring the operation data of the operation equipment according to a preset acquisition time interval within a preset acquisition time;
the calculation module is used for calculating the operation threshold of the operation equipment according to the operation data;
a determining module, configured to determine, based on the operation threshold, an idle usage period corresponding to the operation of the virtual simulation system by the operating device;
the generating module is used for generating a control script corresponding to the running equipment according to the idle use time period;
the sending module is used for sending the control script to the running equipment so that the running equipment runs the control script to realize shutdown at the starting time of the idle use time period and startup at the ending time of the idle use time period;
the determining module is further configured to search for time intervals corresponding to all the operation thresholds which are smaller than a preset operation threshold;
determining a target engagement time interval from a plurality of said time intervals; wherein the target joining time interval is composed of a plurality of adjacent time intervals;
and determining the target connection time interval as an idle use period.
9. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of operating device energy conservation of any one of claims 1 to 7.
CN202110386203.9A 2021-04-09 2021-04-09 Energy-saving method and device for operating equipment and electronic equipment Active CN113110730B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110386203.9A CN113110730B (en) 2021-04-09 2021-04-09 Energy-saving method and device for operating equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110386203.9A CN113110730B (en) 2021-04-09 2021-04-09 Energy-saving method and device for operating equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN113110730A CN113110730A (en) 2021-07-13
CN113110730B true CN113110730B (en) 2022-02-01

Family

ID=76716050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110386203.9A Active CN113110730B (en) 2021-04-09 2021-04-09 Energy-saving method and device for operating equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN113110730B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116955109B (en) * 2023-07-18 2024-05-14 江苏新博能源科技有限公司 Energy information integrated management system and method based on multi-source data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916207A (en) * 2010-08-28 2010-12-15 华为技术有限公司 Energy saving method, device and system under desktop virtual environment
CN111123737A (en) * 2018-11-30 2020-05-08 中国航空工业集团公司沈阳飞机设计研究所 Digital hardware virtual simulation system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681470A (en) * 2015-11-05 2017-05-17 丰唐物联技术(深圳)有限公司 Helmet-mounted virtual reality device and electricity saving method of same
CN107491176A (en) * 2017-09-27 2017-12-19 樊友林 A kind of virtual emulation teaching method, system and ustomer premises access equipment and server
CN108304060A (en) * 2018-02-01 2018-07-20 青岛小鸟看看科技有限公司 A kind of method of supplying power to of virtual reality device, device and virtual reality device
US10817046B2 (en) * 2018-12-31 2020-10-27 Bmc Software, Inc. Power saving through automated power scheduling of virtual machines
CN111694873B (en) * 2020-06-10 2023-10-27 腾讯科技(深圳)有限公司 Virtual resource package processing method and device and database server

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916207A (en) * 2010-08-28 2010-12-15 华为技术有限公司 Energy saving method, device and system under desktop virtual environment
CN111123737A (en) * 2018-11-30 2020-05-08 中国航空工业集团公司沈阳飞机设计研究所 Digital hardware virtual simulation system

Also Published As

Publication number Publication date
CN113110730A (en) 2021-07-13

Similar Documents

Publication Publication Date Title
CN107547262B (en) Method and device for generating alarm level and network management equipment
CN112311617A (en) Configured data monitoring and alarming method and system
JP6780655B2 (en) Log analysis system, method and program
CN113110730B (en) Energy-saving method and device for operating equipment and electronic equipment
CN111752807A (en) Resource monitoring method based on Kubernetes
CN1835454B (en) Event notification management method and event notification management apparatus
CN111124382A (en) Attribute assignment method and device in Java and server
CN111190817B (en) Method and device for processing software defects
CN111623486A (en) Method and device for determining starting time, storage medium and electronic device
CN115185794A (en) Analysis method and device of service call chain and electronic equipment
CN110704278A (en) Intelligent server management system and management method thereof
CN112860504A (en) Monitoring method and device, computer storage medium and electronic equipment
CN110825466A (en) Program jamming processing method and jamming processing device
CN113065779B (en) Data processing method and device and electronic equipment
CN110460876A (en) Processing method, device and the electronic equipment of log is broadcast live
CN109587520B (en) Method and equipment for positioning video service fault
CN113835961B (en) Alarm information monitoring method, device, server and storage medium
CN115296977B (en) Fault information processing method and device, storage medium and electronic device
CN116126859A (en) Data management method and device, electronic equipment and storage medium
CN114238233A (en) Automatic file cleaning method, device, equipment and storage medium
CN114281250A (en) Method and device for cleaning storage file, storage medium and electronic device
KR101213863B1 (en) Log Data Clustering Analysis System and The Method for Learning-Based Home Network Error Recognition System
CN110891029A (en) Flow control method and device for home network and flow controller
CN115686583B (en) Mass Internet of things equipment upgrading method and device, electronic equipment and storage medium
CN110430093B (en) Data processing method and device and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Room A-1859, 2nd Floor, Building 3, No. 30 Shixing Street, Shijingshan District, Beijing, 100041 (Cluster Registration)

Patentee after: Beijing Runneier Technology Co.,Ltd.

Address before: 100088 No.131, 1st floor, building 4, No.44, Middle North Third Ring Road, Haidian District, Beijing

Patentee before: BEIJING RAINIER NETWORK TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address