CN111124096B - Data processing method, device, computer system and medium - Google Patents

Data processing method, device, computer system and medium Download PDF

Info

Publication number
CN111124096B
CN111124096B CN201911390320.1A CN201911390320A CN111124096B CN 111124096 B CN111124096 B CN 111124096B CN 201911390320 A CN201911390320 A CN 201911390320A CN 111124096 B CN111124096 B CN 111124096B
Authority
CN
China
Prior art keywords
power
electronic equipment
module
voltage
electric energy
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
CN201911390320.1A
Other languages
Chinese (zh)
Other versions
CN111124096A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201911390320.1A priority Critical patent/CN111124096B/en
Publication of CN111124096A publication Critical patent/CN111124096A/en
Application granted granted Critical
Publication of CN111124096B publication Critical patent/CN111124096B/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/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • 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/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The present disclosure provides a data processing method, including: the method comprises the steps of monitoring voltage input to a power module through an external power supply under the condition that the electronic equipment is powered by the power module, wherein the electronic equipment comprises the power module and an electric energy storage module, the power module is used for supplying power to the electronic equipment by connecting the external power supply, the electric energy storage module is used for supplying power to the electronic equipment by storing electric energy, the system power consumption of the electronic equipment and the current electric energy of the electric energy storage module are obtained in response to the monitored voltage reaching a first threshold condition, an adjustment strategy for the electronic equipment is generated based on the system power consumption and the current electric energy, the electric energy storage module is controlled to supply power to the electronic equipment in response to the voltage reaching a second threshold condition, and the electronic equipment is controlled to adjust the running state based on the adjustment strategy so as to adjust the system power consumption. The present disclosure also provides a data processing apparatus, a computer system, and a computer-readable storage medium.

Description

Data processing method, device, computer system and medium
Technical Field
The present disclosure relates to a data processing method, apparatus, computer system, and computer-readable storage medium.
Background
With the rapid development of computers and electronic technologies, various electronic devices are increasingly applied to many scenes such as work and life. As the dependence of users on electronic devices increases, users have increasingly demanded reliability of electronic devices.
In carrying out the inventive concept, the inventors have found that there are at least the following problems in the related art. That is, when an abnormality occurs in the power supply system of the electronic apparatus, the electronic apparatus is normally shut down abnormally. However, the abnormal shutdown of the electronic device usually causes data loss, which brings great inconvenience to the user.
Disclosure of Invention
One aspect of the present disclosure provides a data processing method, the method including: monitoring a voltage input to a power module via an external power supply in a case where an electronic device is powered by the power module, wherein the electronic equipment comprises the power module and an electric energy storage module, the power module supplies power to the electronic equipment by being connected with an external power supply, the power reserve module supplies power to the electronic device by reserving power, obtains system power consumption of the electronic device and current power of the power reserve module in response to monitoring that the voltage reaches a first threshold condition, generates an adjustment strategy for the electronic device based on the system power consumption and the current power, and in response to the voltage reaching a second threshold condition, control the electrical energy storage module to power the electronic device, and controlling the electronic equipment to adjust the running state based on the adjustment strategy so as to adjust the system power consumption.
Optionally, generating an adjustment policy for the electronic device based on the system power consumption and the current power comprises: determining the continuous operation duration of the electronic equipment based on the system power consumption and the current electric energy, and generating an adjustment strategy aiming at the electronic equipment when the continuous operation duration is less than a target duration, wherein the adjustment strategy comprises reducing the system power consumption of the electronic equipment.
Optionally, the method further comprises: and determining the target duration based on the data volume of the data to be stored in the electronic equipment.
Optionally, the voltage reaching a first threshold condition comprises: and the voltage exceeds the normal working voltage range and is not lower than the power-down voltage threshold. The voltage reaching a second threshold condition comprises: the voltage is below a power down voltage threshold.
Optionally, the monitoring the voltage input to the power module via the external power source comprises: monitoring, by the power module, the voltage input to the power module via an external power source. The obtaining the system power consumption of the electronic device comprises: monitoring, by the power module, a current input to the power module via an external power source, and determining a system power consumption of the electronic device based on the current and the voltage.
Another aspect of the present disclosure provides a data processing apparatus including a monitoring unit, an obtaining unit, a generating unit, and a control unit. The monitoring unit is used for monitoring the voltage input to the power module through an external power supply under the condition that the electronic equipment is powered by the power module, wherein the electronic equipment comprises the power module and the electric energy storage module, the power module supplies power to the electronic equipment through connecting the external power supply, and the electric energy storage module supplies power to the electronic equipment through the stored electric energy. The obtaining unit is used for responding to the condition that the monitored voltage reaches a first threshold value, and obtaining the system power consumption of the electronic equipment and the current electric energy of the electric energy storage module. The generating unit is used for generating an adjusting strategy for the electronic equipment based on the system power consumption and the current electric energy. The control unit is used for responding to the condition that the voltage reaches a second threshold value, controlling the electric energy storage module to supply power to the electronic equipment, and controlling the electronic equipment to adjust the running state based on the adjustment strategy so as to adjust the system power consumption.
Optionally, the generating an adjustment policy for the electronic device based on the system power consumption and the current power includes: determining the continuous operation time length of the electronic equipment based on the system power consumption and the current electric energy, and generating an adjustment strategy aiming at the electronic equipment when the continuous operation time length is less than a target time length, wherein the adjustment strategy comprises reducing the system power consumption of the electronic equipment.
Optionally, the apparatus further comprises: the determining unit is used for determining the target duration based on the data volume of the data to be stored in the electronic equipment.
Optionally, the voltage reaching a first threshold condition comprises: and the voltage exceeds the normal working voltage range and is not lower than the power-down voltage threshold. The voltage reaching a second threshold condition comprises: the voltage is below a power down voltage threshold.
Optionally, the monitoring unit is disposed within the power module. The obtaining the system power consumption of the electronic device comprises: monitoring, by the monitoring unit, a current input to the power module via an external power source, and determining a system power consumption of the electronic device based on the current and the voltage.
Another aspect of the present disclosure provides a computer system comprising: one or more processors, a computer readable storage medium, for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the method as described above.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario of a data processing method and apparatus according to an embodiment of the present disclosure;
FIG. 2 schematically shows a flow chart of a data processing method according to an embodiment of the present disclosure;
FIG. 3 schematically shows a block diagram of a data processing apparatus according to an embodiment of the present disclosure; and
FIG. 4 schematically shows a block diagram of a computer system according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Some block diagrams and/or flow diagrams are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks. The techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques of this disclosure may take the form of a computer program product on a computer-readable storage medium having instructions stored thereon for use by or in connection with an instruction execution system.
An embodiment of the present disclosure provides a data processing method, including: the method comprises the steps of monitoring voltage input to a power module through an external power supply under the condition that the electronic equipment is powered by the power module, wherein the electronic equipment comprises the power module and an electric energy storage module, the power module is used for supplying power to the electronic equipment by connecting the external power supply, the electric energy storage module is used for supplying power to the electronic equipment by storing electric energy, obtaining system power consumption of the electronic equipment and current electric energy of the electric energy storage module in response to monitoring that the voltage reaches a first threshold condition, generating an adjustment strategy aiming at the electronic equipment based on the system power consumption and the current electric energy, controlling the electric energy storage module to supply power to the electronic equipment in response to the voltage reaching a second threshold condition, and controlling the electronic equipment to adjust the running state based on the adjustment strategy so as to adjust the system power consumption.
Fig. 1 schematically shows an application scenario of the data processing method and apparatus according to an embodiment of the present disclosure.
It should be noted that fig. 1 is only an example of an application scenario in which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, the application scenario includes an electronic device 100, and the electronic device 100 includes a power supply module 110, a power storage module 120, and a power consumption system 130.
The Power module 110 may be, for example, a Power Supply Unit (PSU). The power module 110 may be used to convert mains electricity (e.g., 220V ac) into a voltage that may be used by the electronic device 110.
The power reserve module 120 may be, for example, a Battery Backup Unit (BBU). The power reserve module 120 may be used to store and distribute power.
The power consuming system 130 may be, for example, a power consuming system of the electronic device 100, including but not limited to memory systems, computing systems, and display systems, among others.
The electronic device 100 may be a variety of electronic devices with computing functionality including, but not limited to, a desktop computer or server, among others. For example, the electronic device 100 may be configured with a power module 110 and a power storage module 120, in which, when the external power source works normally, the electronic device 100 mainly supplies power through the power module 110, and when the external power source is abnormal, the electronic device 100 may supply power through the power storage module 120 in an emergency, so that the electronic device 100 may store data to be cached. It can be understood that the electric energy storage module in the embodiment of the present disclosure is different from the battery module in the notebook computer, and the notebook computer is configured to reserve a sufficient space for the battery module, so that the size of the battery module can be large enough, and thus more electric energy can be stored, so that the notebook computer can be normally used by supplying power to the battery module. The electric energy storage module in the embodiment of the present disclosure is limited in space and cost, and the electric energy that can be stored is very limited, so the electric energy storage module in the embodiment of the present disclosure is mainly used for temporarily supplying power to the electronic device in order to avoid abnormal shutdown of the electronic device when the external power supply is abnormal.
According to an embodiment of the present disclosure, the power module 110 may supply power to the power consumption system 130 of the electronic device 100 by connecting an external power source (e.g., a mains power source). The power reserve module 120 may supply power to the power consumption system 130 of the electronic device 100 by reserving power.
For example, when the electronic device 100 is a desktop computer, the electronic device 100 may be equipped with both the power supply module 110 and the power reserve module 120. The power module 110 may be connected to a mains power supply to supply power to the electronic device 100, so as to maintain normal operation of the electronic device 100. When the mains power supply is abnormal, the electronic device 100 may be powered off abnormally due to a power failure. At this time, the power storage module 120 may continue to supply power to the electronic device 100 through the stored power, so that the electronic device 100 may store the data in the cache, thereby avoiding data loss and improving user experience.
Fig. 2 schematically shows a flow chart of a data processing method according to an embodiment of the present disclosure.
As shown in fig. 2, the method includes operations S201 to S204.
In operation S201, in a case where the electronic device is powered by the power module, a voltage input to the power module via an external power source is monitored, where the electronic device includes the power module and an electric energy storage module, the power module supplies power to the electronic device by connecting to the external power source, and the electric energy storage module supplies power to the electronic device by storing electric energy.
The electronic device of the embodiment of the present disclosure may be equipped with a power supply module and a power storage module at the same time. The power module may supply power to the electronic device by connecting to an external power source (e.g., a mains power source). The power storage module can supply power to the electronic equipment through the stored power. For example, in the case that the external power source normally works, the power module may supply power to the electronic device by connecting the external power source, so as to maintain the normal operation of the electronic device.
According to the embodiments of the present disclosure, in the case where the electronic device is supplied with power through the power module, the voltage input to the power module via the external power source may be monitored, so that the stability of the voltage input to the power module may be monitored.
In an embodiment of the present disclosure, monitoring a voltage input to the power module via the external power supply may include: the voltage input to the power module via the external power source is monitored by the power module. For example, a Micro Controller Unit (MCU) may be configured in the power module, and the voltage input to the power module via the external power source may be monitored by the MCU in the power module.
It can be understood that the MCU is configured in the power supply module in the embodiment of the disclosure to monitor the voltage input to the power supply module, so that the early warning can be timely performed when the external power supply is abnormal or the power supply module and the external power supply are in poor contact and the like.
In operation S202, in response to the monitored voltage reaching the first threshold condition, system power consumption of the electronic device and current power of the power reserve module are obtained.
According to the embodiment of the disclosure, the voltage input to the power supply module may include a normal operating voltage range, a first threshold condition exceeding the normal operating voltage range and not lower than a power-down voltage threshold, and a second threshold condition lower than the power-down voltage.
For example, when the external power supply voltage is 220V of commercial power, the normal operating voltage range of the voltage input to the power supply module may be, for example, 210V to 240V, the voltage range corresponding to the first threshold condition may be, for example, 40V to 210V, and the voltage range corresponding to the second threshold condition may be, for example, 0V to 40V.
It will be appreciated that the external power supply will normally drop from normal operating voltage to zero in the event of an anomaly. Therefore, when the voltage is monitored to be lower than 210V, the system power consumption of the electronic equipment and the current electric energy of the electric energy storage module can be obtained, and early warning and planning can be well done.
According to the embodiment of the disclosure, obtaining the system power consumption of the electronic device may include: the method includes monitoring, by a power module, a current input to the power module via an external power source, and determining a system power consumption of the electronic device based on the monitored current and voltage.
For example, a voltage input to the power module via the external power source may be monitored by the MCU in the power module, a current input to the power module via the external power source may be monitored in response to the voltage reaching a first threshold condition, and a current system power consumption of the electronic device may be determined based on the currently input voltage and current. For example, the current system power consumption of the electronic device is determined by the product of the voltage and the current.
According to the embodiment of the present disclosure, the current electric energy of the electric energy storage module can be obtained through the electric energy storage module. For example, a Micro Controller Unit (MCU) may be configured in the power reserve module, the MCU may detect the current remaining power of the power reserve module, and the MCU may also store the specification of the power reserve module. For example, the specification of the power reserve module is a BBU module of 6Wh, and if the MCU detects that the current remaining power is 50%, the current power of the power reserve module is 3 Wh.
In operation S203, an adjustment strategy for the electronic device is generated based on the system power consumption and the current power.
According to the embodiment of the disclosure, the continuous operation time of the electronic equipment can be determined based on the system power consumption and the current electric energy, and when the continuous operation time is shorter than the target time, an adjustment strategy for the electronic equipment is generated, wherein the adjustment strategy comprises the step of reducing the system power consumption of the electronic equipment. The target time length is determined based on the data size of the data to be stored of the electronic equipment.
In the embodiment of the present disclosure, a duration of a continuous operation that the power storage module can supply power to the electronic device when the electronic device maintains the current power consumption may be determined based on the current power consumption of the system and the current power of the power storage module. The duration may be determined, for example, by the quotient of the current power and the power consumption of the system.
In the embodiment of the present disclosure, the target duration may be, for example, a duration for migrating data to be stored from a cache to a hard disk. The target duration may be, for example, proportional to the data amount of the data to be stored of the electronic device. For example, the target duration may be determined based on the read-write speed of the electronic device and the data amount of the data to be stored.
According to the embodiment of the disclosure, if the duration of the continuous operation is much longer than the target duration (for example, the duration of the continuous operation is more than 2 times the target duration), it may be considered that even if the current system power consumption of the electronic device is maintained, the electric quantity in the electric energy storage module is enough to support the electronic device to migrate the data to be stored in the cache to the hard disk, and data loss is not caused. At this time, the adjustment policy may be to maintain system power consumption of the electronic device.
If the duration of the continuous operation is slightly longer than the target duration (for example, the duration of the continuous operation is 1 to 2 times the target duration), it may be considered that if the current system power consumption of the electronic device is continuously maintained, the electric quantity in the electric energy storage module may also support the electronic device to migrate the data to be stored in the cache to the hard disk, but in order to improve the reliability, the adjustment policy at this time may be to slightly reduce the system power consumption of the electronic device. For example, turning off the display device, etc.
If the continuous operation time is less than the target duration, it is considered that if the current system power consumption of the electronic device is continuously maintained, the electric quantity in the electric energy storage module is not enough to support the electronic device to transfer the data to be stored in the cache to the hard disk, which may cause a problem of data loss. At this time, the adjustment strategy may be to greatly reduce the system power consumption of the electronic device. For example, all programs that do not need to save data are shut down.
In operation S204, in response to the voltage reaching the second threshold condition, the power storage module is controlled to supply power to the electronic device, and the electronic device is controlled to adjust the operating state based on the adjustment policy to adjust the system power consumption.
According to an embodiment of the present disclosure, the voltage reaching the second threshold condition may be the voltage being below a power down voltage threshold. For example, the voltage is already below 40V. At this time, it may be considered that the external power supply is about to be powered off, and in order to ensure that the electronic device is not abnormally powered off due to the power failure of the external power supply, the embodiment of the disclosure may control the electric energy storage module to supply power to the electronic device when the input voltage is lower than the power failure voltage, and control the electronic device to adjust the operating state based on the adjustment policy so as to adjust the power consumption of the system.
It will be appreciated that the external power supply will normally drop from normal operating voltage to zero in the event of an anomaly. For example, from 220V to 0V in succession. The embodiment of the disclosure monitors the voltage input to the power supply module in real time, and when the voltage reaches a first threshold condition (for example, lower than 210V), it can be considered that the external power supply may have a power failure problem. Therefore, in response to the monitored voltage reaching the first threshold condition, the embodiment of the disclosure obtains the system power consumption of the electronic device and the current electric energy of the electric energy storage module, generates an adjustment strategy, and early warns in advance. Therefore, when the voltage reaches a second threshold value condition (for example, lower than 40V), the electric energy storage module is controlled to supply power to the electronic equipment in time, the electronic equipment system is adjusted based on the generated adjustment strategy, the electric quantity in the electric energy storage module can support the electronic equipment to transfer the data to be stored in the cache to the hard disk, the problem of data loss caused by abnormal shutdown of the electronic equipment due to power failure of an external power supply is avoided, and the reliability of the electronic equipment is improved.
It can be appreciated that, due to space limitations and price limitations of electronic devices, the amount of reserve power of BBU modules in electronic devices is typically small. The embodiment of the disclosure can reasonably generate the adjustment strategy based on the current electric quantity of the BBU and the system power consumption, and can prolong the endurance time of the BBU on the basis of ensuring the size and the cost of the BBU so as to ensure that the electronic equipment can completely store the data to be stored.
Fig. 3 schematically shows a block diagram of a data processing apparatus 300 according to an embodiment of the present disclosure.
As shown in fig. 3, the apparatus 300 includes a monitoring unit 310, an obtaining unit 320, a generating unit 330, and a control unit 340.
The monitoring unit 310 is configured to monitor a voltage input to the power module via an external power source under the condition that the electronic device is powered by the power module, where the electronic device includes the power module and an electric energy storage module, the power module supplies power to the electronic device by connecting to the external power source, and the electric energy storage module supplies power to the electronic device by storing electric energy. According to the embodiment of the present disclosure, the monitoring unit 310 may, for example, perform the method of operation S201 described with reference to fig. 2, which is not described herein again.
The obtaining unit 320 is configured to obtain a system power consumption of the electronic device and a current power of the power storage module in response to the monitored voltage reaching the first threshold condition. According to the embodiment of the present disclosure, the obtaining unit 320 may, for example, perform the method of operation S202 described with reference to fig. 2, which is not described herein again.
The generating unit 330 is configured to generate an adjustment policy for the electronic device based on the system power consumption and the current power. According to the embodiment of the present disclosure, the generating unit 330 may, for example, perform the method of operation S203 described with reference to fig. 2, which is not described herein again.
The control unit 340 is configured to control the electrical energy storage module to supply power to the electronic device in response to the voltage reaching the second threshold condition, and control the electronic device to adjust the operating state based on the adjustment policy to adjust the system power consumption. According to the embodiment of the present disclosure, the control unit 340 may, for example, perform the method of operation S204 described with reference to fig. 2, which is not described herein again.
According to the embodiment of the disclosure, generating an adjustment strategy for an electronic device based on system power consumption and current electric energy comprises: determining the continuous operation time length of the electronic equipment based on the system power consumption and the current electric energy, and generating an adjustment strategy aiming at the electronic equipment when the continuous operation time length is less than the target time length, wherein the adjustment strategy comprises the reduction of the system power consumption of the electronic equipment.
According to an embodiment of the present disclosure, the apparatus 300 further comprises: the determining unit is used for determining the target duration based on the data volume of the data to be stored in the electronic equipment.
According to an embodiment of the disclosure, the voltage reaching the first threshold condition comprises: the voltage exceeds the normal working voltage range and is not lower than the power-down voltage threshold. The voltage reaching the second threshold condition includes: the voltage is below the power down voltage threshold.
According to the embodiment of the disclosure, the monitoring unit is arranged in the power module. Obtaining system power consumption of an electronic device, comprising: the current input to the power module via the external power supply is monitored by the monitoring unit, and the system power consumption of the electronic device is determined based on the current and the voltage.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any plurality of the monitoring unit 310, the obtaining unit 320, the generating unit 330 and the control unit 340 may be combined and implemented in one module, or any one of the modules may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the monitoring unit 310, the obtaining unit 320, the generating unit 330, and the controlling unit 340 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or may be implemented in any one of three implementations of software, hardware, and firmware, or in a suitable combination of any of them. Alternatively, at least one of the monitoring unit 310, the obtaining unit 320, the generating unit 330 and the control unit 340 may be at least partially implemented as computer program modules, which, when executed, may perform a corresponding function.
FIG. 4 schematically illustrates a block diagram of a computer system suitable for implementing the above-described method according to an embodiment of the present disclosure. The computer system illustrated in FIG. 4 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the disclosure.
As shown in fig. 4, computer system 400 includes a processor 410 and a computer-readable storage medium 420. The computer system 400 may perform a method according to an embodiment of the disclosure.
In particular, processor 410 may include, for example, a general purpose microprocessor, an instruction set processor and/or related chip set and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), and/or the like. The processor 410 may also include onboard memory for caching purposes. Processor 410 may be a single processing unit or a plurality of processing units for performing different actions of a method flow according to embodiments of the disclosure.
Computer-readable storage medium 420, for example, may be a non-volatile computer-readable storage medium, specific examples including, but not limited to: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and so on.
The computer-readable storage medium 420 may comprise a computer program 421, which computer program 421 may comprise code/computer-executable instructions that, when executed by the processor 410, cause the processor 410 to perform a method according to an embodiment of the disclosure, or any variant thereof.
The computer program 421 may be configured with, for example, computer program code comprising computer program modules. For example, in an example embodiment, code in computer program 421 may include one or more program modules, including for example 421A, modules 421B, … …. It should be noted that the division and number of the modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, so that the processor 410 may execute the method according to the embodiment of the present disclosure or any variation thereof when the program modules are executed by the processor 410.
According to an embodiment of the present invention, at least one of the monitoring unit 310, the obtaining unit 320, the generating unit 330 and the control unit 340 may be implemented as computer program modules described with reference to fig. 4, which, when executed by the processor 410, may implement the respective operations described above.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
While the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.

Claims (12)

1. A method of data processing, the method comprising:
under the condition that the electronic equipment is powered by a power supply module, monitoring voltage input to the power supply module through an external power supply, wherein the electronic equipment comprises the power supply module and an electric energy storage module, the power supply module supplies power to the electronic equipment by connecting the external power supply, and the electric energy storage module supplies power to the electronic equipment by storing electric energy;
in response to monitoring that the voltage reaches a first threshold condition, obtaining current system power consumption of the electronic device and current power of the power reserve module;
generating an adjustment strategy for the electronic device based on the current system power consumption and the current power;
and responding to the voltage reaching a second threshold value condition, controlling the electric energy storage module to supply power to the electronic equipment, and controlling the electronic equipment to adjust the running state based on the adjustment strategy so as to adjust the system power consumption.
2. The method of claim 1, wherein generating the adjustment policy for the electronic device based on the system power consumption and the current power comprises:
determining a continuous operation duration of the electronic equipment based on the system power consumption and the current electric energy;
and when the continuous operation time length is less than the target time length, generating an adjustment strategy aiming at the electronic equipment, wherein the adjustment strategy comprises the step of reducing the system power consumption of the electronic equipment.
3. The method of claim 2, wherein the method further comprises:
and determining the target duration based on the data volume of the data to be stored in the electronic equipment.
4. The method of claim 1, wherein:
the voltage reaching a first threshold condition comprises: the voltage exceeds the normal working voltage range and is not lower than the power-down voltage threshold;
the voltage reaching a second threshold condition comprises: the voltage is below a power down voltage threshold.
5. The method of claim 1, wherein:
the monitoring of the voltage input to the power module via the external power source includes:
monitoring, by the power supply module, the voltage input to the power supply module via an external power supply;
the obtaining the system power consumption of the electronic device comprises:
monitoring, by the power module, a current input to the power module via an external power source, and determining a system power consumption of the electronic device based on the current and the voltage.
6. A data processing apparatus, the apparatus comprising:
the monitoring unit is used for monitoring the voltage input to the power module through an external power supply under the condition that the electronic equipment is powered by the power module, wherein the electronic equipment comprises the power module and an electric energy storage module, the power module supplies power to the electronic equipment by being connected with the external power supply, and the electric energy storage module supplies power to the electronic equipment by storing electric energy;
the obtaining unit is used for responding to the condition that the monitored voltage reaches a first threshold value, and obtaining the current system power consumption of the electronic equipment and the current electric energy of the electric energy storage module;
a generating unit, configured to generate an adjustment policy for the electronic device based on the current system power consumption and the current power;
and the control unit is used for responding to the condition that the voltage reaches a second threshold value, controlling the electric energy storage module to supply power to the electronic equipment, and controlling the electronic equipment to adjust the running state based on the adjustment strategy so as to adjust the system power consumption.
7. The apparatus of claim 6, wherein the generating an adjustment policy for the electronic device based on the system power consumption and the current power comprises:
determining a continuous operation duration of the electronic equipment based on the system power consumption and the current electric energy;
and when the continuous operation time length is less than the target time length, generating an adjustment strategy aiming at the electronic equipment, wherein the adjustment strategy comprises the step of reducing the system power consumption of the electronic equipment.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the determining unit is used for determining the target duration based on the data volume of the data to be stored in the electronic equipment.
9. The apparatus of claim 6, wherein:
the voltage reaching a first threshold condition comprises: the voltage exceeds the normal working voltage range and is not lower than the power-down voltage threshold;
the voltage reaching a second threshold condition comprises: the voltage is below a power down voltage threshold.
10. The apparatus of claim 6, wherein:
the monitoring unit is arranged in the power supply module;
the obtaining the system power consumption of the electronic device comprises:
monitoring, by the monitoring unit, a current input to the power module via an external power source, and determining a system power consumption of the electronic device based on the current and the voltage.
11. A computer system, comprising:
one or more processors;
a computer-readable storage medium for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-5.
12. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 5.
CN201911390320.1A 2019-12-27 2019-12-27 Data processing method, device, computer system and medium Active CN111124096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911390320.1A CN111124096B (en) 2019-12-27 2019-12-27 Data processing method, device, computer system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911390320.1A CN111124096B (en) 2019-12-27 2019-12-27 Data processing method, device, computer system and medium

Publications (2)

Publication Number Publication Date
CN111124096A CN111124096A (en) 2020-05-08
CN111124096B true CN111124096B (en) 2021-08-17

Family

ID=70504688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911390320.1A Active CN111124096B (en) 2019-12-27 2019-12-27 Data processing method, device, computer system and medium

Country Status (1)

Country Link
CN (1) CN111124096B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111864876B (en) * 2020-07-06 2022-04-29 国网思极紫光(青岛)微电子科技有限公司 Power supply method of dual-mode communication unit, dual-mode communication unit and intelligent electric energy meter
CN113641550B (en) * 2021-06-16 2024-03-22 无锡江南计算技术研究所 Processor power consumption management and control method and device
CN114726665B (en) * 2022-04-02 2024-04-09 深圳绿米联创科技有限公司 Power failure processing method, device, equipment and storage medium
CN118742941A (en) * 2023-01-30 2024-10-01 京东方科技集团股份有限公司 Control system, control method and device for same

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067758A (en) * 2007-06-14 2007-11-07 华南理工大学 Energy consumption management method for inserting system
CN101771545A (en) * 2010-01-12 2010-07-07 浪潮(北京)电子信息产业有限公司 Power supply control method of server
CN108509010A (en) * 2018-03-21 2018-09-07 联想(北京)有限公司 Method of supplying power to and power supply system
CN109376055A (en) * 2018-09-30 2019-02-22 联想(北京)有限公司 Power supply management method, system and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7925909B1 (en) * 2007-08-03 2011-04-12 At&T Intellectual Property I, L.P. Emergency mobile device power source
CN105807885B (en) * 2014-12-31 2021-09-28 施耐德电气工业公司 Power failure protection method and device
KR20160139773A (en) * 2015-05-28 2016-12-07 삼성전자주식회사 Electonic device and power managing method thereof
CN105109429B (en) * 2015-08-12 2017-03-08 成都亿盟恒信科技有限公司 A kind of method for managing power supply based on car wireless terminal
CN106445066B (en) * 2016-08-25 2019-06-11 北京小米移动软件有限公司 Apparatus control method and device
CN109062825A (en) * 2018-07-09 2018-12-21 深圳忆联信息系统有限公司 A kind of guard method of solid state hard disk powered-off fault and device
CN109873486A (en) * 2018-12-29 2019-06-11 湖南汇博电子科技股份有限公司 Fire equipment method for controlling power supply, device, mobile terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067758A (en) * 2007-06-14 2007-11-07 华南理工大学 Energy consumption management method for inserting system
CN101771545A (en) * 2010-01-12 2010-07-07 浪潮(北京)电子信息产业有限公司 Power supply control method of server
CN108509010A (en) * 2018-03-21 2018-09-07 联想(北京)有限公司 Method of supplying power to and power supply system
CN109376055A (en) * 2018-09-30 2019-02-22 联想(北京)有限公司 Power supply management method, system and electronic equipment

Also Published As

Publication number Publication date
CN111124096A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN111124096B (en) Data processing method, device, computer system and medium
US8671287B2 (en) Redundant power supply configuration for a data center
US8093868B2 (en) In situ verification of capacitive power support
US8742622B2 (en) System and method for thermal protection in a power system
US8327177B2 (en) System and method for information handling system storage device power consumption management
US8161310B2 (en) Extending and scavenging super-capacitor capacity
US10037214B2 (en) Determining power capping policies for a computer device
US20160062421A1 (en) Device side initiated thermal throttling
US8392736B2 (en) Managing memory power usage
US8129947B2 (en) Method and system for utilizing a memory control circuit for controlling data transfer to and from a memory system
US9471450B2 (en) Reducing data loss in a computing storage environment
US9965025B2 (en) Power supply control apparatus and computer product
US9361175B1 (en) Dynamic detection of resource management anomalies in a processing system
US10355520B2 (en) System and method for achieving controlled load transition between power supplies and battery backup units
US10429917B2 (en) Calculating a throttle rate for battery current limiting
US10326302B2 (en) Balancing a load between power supplies to increase efficiency
US11347293B2 (en) Management of turbo states based upon user presence
US20220091941A1 (en) System and method for data protection during power loss of a storage system
US9479001B2 (en) Technique for supplying power to a load via voltage control and current control modes of operation
TWI602059B (en) Server node shutdown
JP2019510284A (en) Use of volatile memory as non-volatile memory
CN109324677A (en) A kind of method for controlling power supply and device
US11099621B2 (en) Real time clock battery power management
CN112448463B (en) Traversing system based on power consumption/power standby equipment
US20210089106A1 (en) System and Method for Using Current Slew-Rate Telemetry in an Information Handling System

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