CN109491872B - Memory supervision method and device and computer readable storage medium - Google Patents

Memory supervision method and device and computer readable storage medium Download PDF

Info

Publication number
CN109491872B
CN109491872B CN201811407283.6A CN201811407283A CN109491872B CN 109491872 B CN109491872 B CN 109491872B CN 201811407283 A CN201811407283 A CN 201811407283A CN 109491872 B CN109491872 B CN 109491872B
Authority
CN
China
Prior art keywords
memory
power consumption
utilization rate
unit
limit value
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
CN201811407283.6A
Other languages
Chinese (zh)
Other versions
CN109491872A (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811407283.6A priority Critical patent/CN109491872B/en
Publication of CN109491872A publication Critical patent/CN109491872A/en
Application granted granted Critical
Publication of CN109491872B publication Critical patent/CN109491872B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3037Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • 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)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The embodiment of the invention discloses a memory supervision method, a memory supervision device and a computer readable storage medium, which record the memory power consumption and the memory utilization rate in the operation process of a system; judging whether the memory power consumption is greater than or equal to a power consumption upper limit value; if yes, judging whether the memory utilization rate is greater than or equal to the utilization rate upper limit value or not; when the utilization rate of the memory is greater than or equal to the utilization rate upper limit value, the task of writing data into the memory can be stopped at the moment so as to reduce the utilization rate of the memory and further realize effective control on the power consumption of the memory; when the utilization rate of the memory is smaller than the utilization rate upper limit value, the power consumption value of the memory is increased possibly due to the fact that the memory breaks down, and at the moment, an alarm prompt can be given out, so that managers can replace or repair the memory in time. In the technical scheme, the memory is monitored and managed according to the memory power consumption and the memory utilization rate, so that the stable operation of the memory is effectively ensured.

Description

Memory supervision method and device and computer readable storage medium
Technical Field
The present invention relates to the field of storage system technologies, and in particular, to a memory monitoring method, an apparatus, and a computer-readable storage medium.
Background
At present, both a storage system and a motherboard architecture of a server system are built on the basis of a Platform of Intel X86, and the architecture mode of the motherboard architecture is mainly a Central Processing Unit (CPU) + a Platform control module (PCH). The CPU serves as the most core component of the motherboard and system, with rich management and control functions built in.
However, compared with an important component such as a CPU, the management and control mechanism of the memory is relatively few, and if the memory is inserted incorrectly or has a memory fault, the memory power consumption is increased dramatically, so that the power supply and heat dissipation risks are brought, and more seriously, the system downtime is caused.
Therefore, how to monitor and manage the memory to effectively ensure the stable operation of the memory is an urgent problem to be solved by those skilled in the art.
Disclosure of Invention
Embodiments of the present invention provide a memory monitoring method, an apparatus, and a computer-readable storage medium, which can monitor and manage a memory to effectively ensure stable operation of the memory.
To solve the foregoing technical problem, an embodiment of the present invention provides a memory monitoring method, including:
recording the memory power consumption and the memory utilization rate in the system operation process;
judging whether the memory power consumption is greater than or equal to a power consumption upper limit value;
if yes, judging whether the memory utilization rate is greater than or equal to the utilization rate upper limit value or not;
if so, stopping writing the data task into the memory;
if not, alarm prompt is carried out.
Optionally, after determining whether the memory power consumption is greater than or equal to the power consumption upper limit value, the method further includes:
when the memory power consumption is smaller than the power consumption upper limit value, calculating the ratio of the memory power consumption and the memory utilization rate at the current moment;
judging whether the ratio is greater than a first warning value or not;
if yes, alarming and prompting are carried out.
Optionally, after the performing of the alarm prompt, the method further includes:
judging whether the ratio of the memory power consumption to the memory utilization rate in the preset time is less than or equal to a first warning value or not;
if not, executing shutdown operation.
Optionally, after the task of stopping writing data into the memory, the method further includes:
and when the power consumption of the memory is less than or equal to the lower power consumption limit value and the utilization rate of the memory is less than or equal to the lower memory limit value, starting a function of writing data into the memory.
The embodiment of the invention also provides a memory supervision device, which comprises a recording unit, a first judging unit, a second judging unit, a stopping unit and an alarming unit;
the recording unit is used for recording the memory power consumption and the memory utilization rate in the system operation process;
the first judging unit is used for judging whether the memory power consumption is greater than or equal to a power consumption upper limit value; if yes, triggering the second judgment unit;
the second judging unit is used for judging whether the memory utilization rate is greater than or equal to a utilization rate upper limit value; if yes, triggering the stopping unit; if not, triggering the alarm unit;
the stopping unit is used for stopping writing data tasks into the memory;
and the alarm unit is used for carrying out alarm prompt.
Optionally, the system further comprises a calculating unit and a third judging unit;
the computing unit is used for computing the ratio of the memory power consumption and the memory utilization rate at the current moment when the memory power consumption is smaller than the power consumption upper limit value;
the third judging unit is used for judging whether the ratio is greater than a first warning value or not; if yes, triggering the alarm unit to give an alarm.
Optionally, the system further comprises a fourth judging unit and a shutdown unit;
the fourth judging unit is used for judging whether the ratio of the memory power consumption to the memory utilization rate is less than or equal to a first warning value within a preset time after the alarm prompt is carried out; if not, triggering the shutdown unit;
the shutdown unit is used for executing shutdown operation.
Optionally, the device further comprises an opening unit;
and the starting unit is used for starting the function of writing the data task into the memory when the memory power consumption is less than or equal to the lower power consumption limit value and the memory utilization rate is less than or equal to the lower memory limit value after the data task is stopped being written into the memory.
An embodiment of the present invention further provides a memory monitoring apparatus, including:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the memory management method.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the memory management method are implemented.
According to the technical scheme, the memory power consumption and the memory utilization rate in the system operation process are recorded; judging whether the memory power consumption is greater than or equal to a power consumption upper limit value; when the power consumption of the memory is greater than or equal to the upper limit of the power consumption, if the power consumption of the memory continues to rise, power supply and heat dissipation risks are brought, at this time, the reason for the rise of the power consumption of the memory needs to be determined, and therefore corresponding measures are taken to protect the memory. In the technical scheme, when the memory power consumption is greater than or equal to the power consumption upper limit value, whether the memory utilization rate is greater than or equal to the utilization rate upper limit value or not can be judged; when the memory utilization rate is greater than or equal to the utilization rate upper limit value, the increase of the memory power consumption caused by excessive data tasks executed by the memory is shown, and at the moment, the data tasks can be stopped being written into the memory so as to reduce the memory utilization rate and further realize the effective control of the memory power consumption; when the utilization rate of the memory is smaller than the utilization rate upper limit value, the power consumption value of the memory is increased possibly due to the fact that the memory breaks down, and at the moment, an alarm prompt can be given out, so that managers can replace or repair the memory in time. In the technical scheme, the memory is monitored and managed according to the memory power consumption and the memory utilization rate, so that the stable operation of the memory is effectively ensured.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a memory supervision method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a memory supervision apparatus according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware structure of a memory supervision apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Next, a memory supervision method provided by the embodiment of the invention is described in detail. Fig. 1 is a flowchart of a memory supervision method according to an embodiment of the present invention, where the method includes:
s101: and recording the memory power consumption and the memory utilization rate in the system operation process.
The memory power consumption and the memory utilization rate are important factors reflecting the stable operation of the memory.
Under normal conditions, the memory power consumption and the memory utilization rate are in positive correlation, and when the memory utilization rate is increased, the memory power consumption is correspondingly increased. However, when the memory is damaged, the memory utilization rate corresponding to the memory is often low, but the memory power consumption is often high. When the power consumption of the memory is too high, the risk of power supply and heat dissipation is caused,
therefore, in the embodiment of the invention, the operation condition of the memory can be monitored by recording the power consumption and the utilization rate of the memory.
In a specific implementation, the memory power consumption and the memory utilization rate may be collected in real time or according to a cycle time. And a special storage space can be preset for recording the memory power consumption and the memory utilization rate.
When the memory power consumption and the memory utilization rate are recorded in the storage space, the memory power consumption and the memory utilization rate at the same moment can be stored in parallel, so that the one-to-one correspondence between the memory power consumption and the memory utilization rate is ensured, namely, the memory power consumption and the memory utilization rate at the same moment are ensured during subsequent analysis.
S102: and judging whether the memory power consumption is greater than or equal to the power consumption upper limit value.
The upper power consumption limit may be a reference value of the heat dissipation risk caused by the power consumption of the memory, and a specific value of the upper power consumption limit may be set according to the actual performance of the memory, which is not limited herein.
When the power consumption of the memory is greater than or equal to the upper limit of the power consumption, if the power consumption of the memory continues to rise, power supply and heat dissipation risks are brought, and at the moment, the reason causing the higher power consumption of the memory needs to be determined, and then correct measures can be taken, so that the memory is effectively protected.
The reasons for higher memory power consumption are various, and the memory power consumption may be higher due to the failure of the memory itself; it may also be that the memory consumes more power due to the excessive number of data tasks performed by the memory.
The memory utilization rate reflects whether the memory operates normally. When the memory utilization rate is higher, the memory can normally operate. Therefore, in the embodiment of the present invention, the reason for causing the higher memory power consumption may be further determined according to the memory utilization, that is, when the memory power consumption is greater than or equal to the power consumption upper limit value, the process proceeds to S103.
S103: and judging whether the memory utilization rate is greater than or equal to the utilization rate upper limit value or not.
The specific value of the upper limit of the utilization rate may be set according to the actual performance of the memory, and is not limited herein.
On the premise that the memory power consumption is greater than or equal to the power consumption upper limit value, when the memory utilization rate is greater than or equal to the utilization rate upper limit value, it indicates that the memory may have an increased memory power consumption due to excessive executed data tasks, and at this time, S104 may be executed.
On the premise that the power consumption of the memory is greater than or equal to the upper limit of the power consumption, when the utilization rate of the memory is smaller than the upper limit of the utilization rate, the memory is in a condition of high power consumption and low utilization rate, and when the condition occurs, the step S105 can be executed at this time most probably because the memory itself has a fault.
S104: and stopping writing the data task into the memory.
When the power consumption of the memory is greater than or equal to the upper limit of the power consumption and the utilization rate of the memory is greater than or equal to the upper limit of the utilization rate, if a new data task is continuously written into the memory, the power consumption of the memory is continuously increased, a risk is brought to normal operation of the memory, and the data task can be stopped being written into the memory at the moment, so that the utilization rate of the memory and the power consumption of the memory are controlled within a reasonable range.
In the embodiment of the present invention, after the data task is stopped being written into the memory, the memory power consumption and the memory utilization rate may be continuously monitored, and when the memory power consumption is less than or equal to the power consumption lower limit value and the memory utilization rate is less than or equal to the memory lower limit value, the function of writing the data task into the memory is started.
The specific values of the power consumption lower limit value and the memory lower limit value may be set according to actual requirements, which is not limited herein.
S105: and carrying out alarm prompt.
When the power consumption of the memory is greater than or equal to the upper limit power consumption and the utilization rate of the memory is less than the upper limit utilization rate, the memory is possibly in fault, and at the moment, an alarm prompt can be given so that managers can find and process problems in time.
According to the technical scheme, the memory power consumption and the memory utilization rate in the system operation process are recorded; judging whether the memory power consumption is greater than or equal to a power consumption upper limit value; when the power consumption of the memory is greater than or equal to the upper limit of the power consumption, if the power consumption of the memory continues to rise, power supply and heat dissipation risks are brought, at this time, the reason for the rise of the power consumption of the memory needs to be determined, and therefore corresponding measures are taken to protect the memory. In the technical scheme, when the memory power consumption is greater than or equal to the power consumption upper limit value, whether the memory utilization rate is greater than or equal to the utilization rate upper limit value or not can be judged; when the memory utilization rate is greater than or equal to the utilization rate upper limit value, the increase of the memory power consumption caused by excessive data tasks executed by the memory is shown, and at the moment, the data tasks can be stopped being written into the memory so as to reduce the memory utilization rate and further realize the effective control of the memory power consumption; when the utilization rate of the memory is smaller than the utilization rate upper limit value, the power consumption value of the memory is increased possibly due to the fact that the memory breaks down, and at the moment, an alarm prompt can be given out, so that managers can replace or repair the memory in time. In the technical scheme, the memory is monitored and managed according to the memory power consumption and the memory utilization rate, so that the stable operation of the memory is effectively ensured.
In consideration of the fact that in practical application, the memory power consumption may not reach the power consumption upper limit value but the memory is damaged, in order to facilitate the system to find the situation in time, a detection mechanism may be set for the situation.
Under normal operation, the memory power consumption and the memory utilization rate are in positive correlation, so in the embodiment of the invention, the curve relation of the memory power consumption and the memory utilization rate can be preset as a warning line.
In practical application, memories of different types and capacities can be selected for testing, the relationship between the power consumption and the utilization rate curve of the memory is drawn by performing pressure tests of different degrees on the memories, and the worst test result in each tested memory is stored in a management interface of a system and serves as a warning line for memory management.
Specifically, after judging whether the memory power consumption is greater than or equal to the power consumption upper limit value, when the memory power consumption is smaller than the power consumption upper limit value, calculating a ratio of the memory power consumption and the memory utilization rate at the current moment; judging whether the ratio is greater than a first warning value or not; when the ratio is greater than the first warning value, it indicates that the memory is in an abnormal operation state, and at this time, an alarm prompt may be performed.
In practical application, the ratio of the memory power consumption to the memory utilization rate can be obtained by dividing the memory power consumption by the memory utilization rate; or the memory power consumption can be divided according to the memory utilization rate. The modes of calculating the ratio are different, and the corresponding modes of selecting the first warning value are different. For convenience of introduction, the ratio obtained by dividing the memory power consumption by the memory utilization is taken as an example for explanation.
Wherein, the first alarm value can be determined according to the alarm line. For example, according to the warning line, the memory utilization rate of the memory power consumption at the current time in the warning line may be determined, and the first warning value may be obtained by dividing the current memory power consumption by the memory utilization rate.
By detecting the ratio of the memory power consumption to the memory utilization rate, the memory fault can be timely found when the memory power consumption does not reach the upper limit value of the power consumption, and the reliability of memory supervision is further improved.
In view of the fact that after the alarm prompt is performed, a manager may not timely process the internal memory, and when the internal memory is determined to have a fault, if the internal memory is not timely processed, the power consumption of the internal memory may be continuously increased to cause a heat dissipation risk, therefore, in the embodiment of the present invention, after the alarm prompt is performed, it may be determined whether the ratio of the power consumption of the internal memory to the utilization rate of the internal memory is less than or equal to a first warning value within a preset time; if not, executing shutdown operation.
The value of the preset time can be set according to actual requirements, and is not limited herein.
When the manager maintains or replaces the memory, and the memory is in a normal operation state, the ratio of the memory power consumption to the memory utilization rate should be smaller than the first warning value, so that in a preset time, when the ratio of the memory power consumption to the memory utilization rate is not reduced to the first warning value all the time, it indicates that the manager does not maintain or replace the memory, and at this time, in order to protect the memory, shutdown operation may be performed.
By setting the forced shutdown operation, the memory can be protected quickly and efficiently, and the influence caused by memory damage is effectively reduced.
Fig. 2 is a schematic structural diagram of a memory monitoring apparatus according to an embodiment of the present invention, including a recording unit 21, a first determining unit 22, a second determining unit 23, a stopping unit 24, and an alarm unit 25;
the recording unit 21 is configured to record memory power consumption and memory utilization rate in a system operation process;
a first determining unit 22, configured to determine whether the memory power consumption is greater than or equal to a power consumption upper limit value; if yes, triggering a second judgment unit 23;
a second judging unit 23, configured to judge whether the memory utilization rate is greater than or equal to a utilization rate upper limit value; if yes, triggering the stopping unit 24; if not, triggering an alarm unit 25;
a stopping unit 24, configured to stop writing data into the memory;
and the alarm unit 25 is used for carrying out alarm prompt.
Optionally, the system further comprises a calculating unit and a third judging unit;
the computing unit is used for computing the ratio of the memory power consumption and the memory utilization rate at the current moment when the memory power consumption is smaller than the power consumption upper limit value;
the third judging unit is used for judging whether the ratio is greater than the first warning value or not; if yes, an alarm unit is triggered to give an alarm.
Optionally, the system further comprises a fourth judging unit and a shutdown unit;
the fourth judging unit is used for judging whether the ratio of the memory power consumption to the memory utilization rate is less than or equal to the first warning value within the preset time after the alarm prompt is carried out; if not, triggering a shutdown unit;
and the shutdown unit is used for executing shutdown operation.
Optionally, the device further comprises an opening unit;
and the starting unit is used for starting the function of writing the data task into the memory when the power consumption of the memory is less than or equal to the lower limit value of the power consumption and the utilization rate of the memory is less than or equal to the lower limit value of the memory after the data task is stopped being written into the memory.
The description of the features in the embodiment corresponding to fig. 2 may refer to the related description of the embodiment corresponding to fig. 1, and is not repeated here.
According to the technical scheme, the memory power consumption and the memory utilization rate in the system operation process are recorded; judging whether the memory power consumption is greater than or equal to a power consumption upper limit value; when the power consumption of the memory is greater than or equal to the upper limit of the power consumption, if the power consumption of the memory continues to rise, power supply and heat dissipation risks are brought, at this time, the reason for the rise of the power consumption of the memory needs to be determined, and therefore corresponding measures are taken to protect the memory. In the technical scheme, when the memory power consumption is greater than or equal to the power consumption upper limit value, whether the memory utilization rate is greater than or equal to the utilization rate upper limit value or not can be judged; when the memory utilization rate is greater than or equal to the utilization rate upper limit value, the increase of the memory power consumption caused by excessive data tasks executed by the memory is shown, and at the moment, the data tasks can be stopped being written into the memory so as to reduce the memory utilization rate and further realize the effective control of the memory power consumption; when the utilization rate of the memory is smaller than the utilization rate upper limit value, the power consumption value of the memory is increased possibly due to the fact that the memory breaks down, and at the moment, an alarm prompt can be given out, so that managers can replace or repair the memory in time. In the technical scheme, the memory is monitored and managed according to the memory power consumption and the memory utilization rate, so that the stable operation of the memory is effectively ensured.
Fig. 3 is a schematic hardware structure diagram of a memory management apparatus 30 according to an embodiment of the present invention, including:
a memory 31 for storing a computer program;
a processor 32 for executing the computer program to implement the steps of the memory management method as described above.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the memory supervision method are implemented.
The memory supervision method, the memory supervision device and the computer-readable storage medium provided by the embodiment of the invention are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

Claims (6)

1. A memory policing method, comprising:
recording the memory power consumption and the memory utilization rate in the system operation process;
judging whether the memory power consumption is greater than or equal to a power consumption upper limit value;
if yes, judging whether the memory utilization rate is greater than or equal to the utilization rate upper limit value or not;
if so, stopping writing the data task into the memory;
if not, alarming and prompting are carried out;
after the determining whether the memory power consumption is greater than or equal to the power consumption upper limit value, the method further includes:
when the memory power consumption is smaller than the power consumption upper limit value, calculating the ratio of the memory power consumption and the memory utilization rate at the current moment;
judging whether the ratio is greater than a first warning value or not;
if yes, alarming and prompting;
after the alarm prompt, the method further comprises the following steps:
judging whether the ratio of the memory power consumption to the memory utilization rate in the preset time is less than or equal to a first warning value or not;
if not, executing shutdown operation.
2. The method of claim 1, further comprising, after the task of stopping writing data to memory:
and when the power consumption of the memory is less than or equal to the lower power consumption limit value and the utilization rate of the memory is less than or equal to the lower memory limit value, starting a function of writing data into the memory.
3. A memory supervision device is characterized by comprising a recording unit, a first judging unit, a second judging unit, a stopping unit and an alarming unit;
the recording unit is used for recording the memory power consumption and the memory utilization rate in the system operation process;
the first judging unit is used for judging whether the memory power consumption is greater than or equal to a power consumption upper limit value; if yes, triggering the second judgment unit;
the second judging unit is used for judging whether the memory utilization rate is greater than or equal to a utilization rate upper limit value; if yes, triggering the stopping unit; if not, triggering the alarm unit;
the stopping unit is used for stopping writing data tasks into the memory;
the alarm unit is used for carrying out alarm prompt;
the device also comprises a calculating unit and a third judging unit;
the computing unit is used for computing the ratio of the memory power consumption and the memory utilization rate at the current moment when the memory power consumption is smaller than the power consumption upper limit value;
the third judging unit is used for judging whether the ratio is greater than a first warning value or not; if yes, triggering the alarm unit to give an alarm;
the device also comprises a fourth judging unit and a shutdown unit;
the fourth judging unit is used for judging whether the ratio of the memory power consumption to the memory utilization rate is less than or equal to a first warning value within a preset time after the alarm prompt is carried out; if not, triggering the shutdown unit;
the shutdown unit is used for executing shutdown operation.
4. The apparatus of claim 3, further comprising an opening unit;
and the starting unit is used for starting the function of writing the data task into the memory when the memory power consumption is less than or equal to the lower power consumption limit value and the memory utilization rate is less than or equal to the lower memory limit value after the data task is stopped being written into the memory.
5. A memory policing apparatus, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the memory management method according to any one of claims 1 to 2.
6. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the memory management method according to any one of claims 1 to 2.
CN201811407283.6A 2018-11-23 2018-11-23 Memory supervision method and device and computer readable storage medium Active CN109491872B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811407283.6A CN109491872B (en) 2018-11-23 2018-11-23 Memory supervision method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811407283.6A CN109491872B (en) 2018-11-23 2018-11-23 Memory supervision method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109491872A CN109491872A (en) 2019-03-19
CN109491872B true CN109491872B (en) 2022-02-18

Family

ID=65697649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811407283.6A Active CN109491872B (en) 2018-11-23 2018-11-23 Memory supervision method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109491872B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103245829A (en) * 2013-05-24 2013-08-14 中国科学院计算技术研究所 Virtual machine power consumption measuring method
CN107329811A (en) * 2017-06-09 2017-11-07 北京云集智造科技有限公司 A kind of power consumption of data center adjusting method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8898674B2 (en) * 2009-12-23 2014-11-25 International Business Machines Corporation Memory databus utilization management system and computer program product

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103245829A (en) * 2013-05-24 2013-08-14 中国科学院计算技术研究所 Virtual machine power consumption measuring method
CN107329811A (en) * 2017-06-09 2017-11-07 北京云集智造科技有限公司 A kind of power consumption of data center adjusting method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"基于性能计数事件的计算机功耗估算模型";王吉军等;《计算机应用研究》;20170331;第34卷(第3期);第734-738、742页 *
Josefa Díaz Álvarez等."Multi-objective optimization of energy consumption and execution time in a single level cache memory for embedded systems".《Journal of Systems and Software》.2016,第111卷第200-212页. *

Also Published As

Publication number Publication date
CN109491872A (en) 2019-03-19

Similar Documents

Publication Publication Date Title
US9195561B2 (en) System and method for proactive management of an information handling system with in-situ measurement of end user actions
CN107145410A (en) After a kind of system exception power down it is automatic on establish the method, system and equipment of machine by cable
CN106682162B (en) Log management method and device
CN114441964B (en) Fault positioning method, device and medium in power supply process of storage system
CN110457907B (en) Firmware program detection method and device
CN114816022B (en) Method, system and storage medium for monitoring server power supply abnormality
US10261720B2 (en) Method for optimizing the use of a non-volatile memory in a motor vehicle computer for monitoring a functional member
CN115648943A (en) Method and system for diagnosing insulation fault, storage medium and electronic device
CN116820820A (en) Server fault monitoring method and system
CN117076186B (en) Memory fault detection method, system, device, medium and server
CN109491872B (en) Memory supervision method and device and computer readable storage medium
CN113468617A (en) Method, equipment and storage medium for power failure protection of equipment
CN114020509A (en) Method, device and equipment for repairing work load cluster and readable storage medium
CN113742176A (en) Fault prediction method and device and electronic equipment
DE112010005898T5 (en) A method and system for performing system maintenance in a computing device
JP2012247937A (en) Information processing unit, log storage control program, and log storage control method
CN112905375A (en) Self-recovery method and device of double-core intelligent ammeter management unit and computer equipment
CN111188782A (en) Fan redundancy test method and device and computer readable storage medium
CN114676019B (en) Method, device, equipment and storage medium for monitoring state of central processing unit
CN101201756A (en) Method for detecting fault due to abnormal electrifying and shutting down
CN113836035B (en) Battery management system testing method and device and electronic equipment
JP2003345629A (en) System monitor device, system monitoring method used for the same, and program therefor
CN111352789B (en) Alternating current circulation test method and device for server and storage medium
CN113381895B (en) Network fault detection method and device
CN113986142B (en) Disk fault monitoring method, device, computer equipment and 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