CN104199620B - A kind of method and device of data storage - Google Patents

A kind of method and device of data storage Download PDF

Info

Publication number
CN104199620B
CN104199620B CN201410419611.XA CN201410419611A CN104199620B CN 104199620 B CN104199620 B CN 104199620B CN 201410419611 A CN201410419611 A CN 201410419611A CN 104199620 B CN104199620 B CN 104199620B
Authority
CN
China
Prior art keywords
data
electricity
storage medium
volatile
power consumption
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
CN201410419611.XA
Other languages
Chinese (zh)
Other versions
CN104199620A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410419611.XA priority Critical patent/CN104199620B/en
Publication of CN104199620A publication Critical patent/CN104199620A/en
Application granted granted Critical
Publication of CN104199620B publication Critical patent/CN104199620B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Power Sources (AREA)

Abstract

The present invention relates to technical field of data storage, a kind of method and device of data storage is disclosed, in the program:When determining that electricity meets preparatory condition, calculate electricity and support from volatile storage medium to move data to the size of data of non-volatile memory medium;The data to be written for the size of data being calculated are write to volatile storage medium, and moved from volatile storage medium to non-volatile memory medium, so, even if the electricity of stand-by power supply is not 100%, electricity is calculated to support from volatile storage medium to move data to the size of data of non-volatile memory medium, and the data for the size of data being calculated first are write to volatile storage medium, then, moved again from volatile storage medium to non-volatile memory medium, it is thus possible to improve the storage efficiency during data storage.

Description

A kind of method and device of data storage
Technical field
The present invention relates to technical field of data storage, more particularly to a kind of method and device of data storage.
Background technology
In actual applications, storage system needs to carry out substantial amounts of read-write operation to disk, still, the machinery read-write of disk Speed is far smaller than the read or write speed of storage system.In order to coordinate the greatest differences of both data transmission bauds, in storage system There is provided internal memory to carry out storage buffering, wherein, the data frequently used are cached with internal memory.
Main frame from storage system read data when, in storage system checks whether the data that are read of main frame are stored in Among depositing, if be buffered among internal memory, data recovery is read directly from internal memory to main frame;If it is not buffered in internal memory Among, then main frame is replied to again after obtaining data to hard disc request.Main frame to storage system write data when, storage system is first Among data are write direct internal memory, and main frame is replied to immediately, inform that this write operation has been completed.Then again by data from Hard disk is write among internal memory.
Although internal memory drastically increases the speed of read-write data, volatile storage medium is saved as due to interior, if electric Source powers off suddenly, and being buffered in internal memory will also lose without the data of storage to hard disk.
When being powered off suddenly in order to avoid power supply, the problem of data being stored in internal memory are lost, storage system all can Stand-by power supply is configured, stand-by power supply is that CPU (Central Processing Unit, central processing unit), write buffer and hard disk carry Power supply energy.When the power break occurs, the data storage that controller will be buffered in internal memory in the case where stand-by power supply provides electric energy Into hard disk.
In the prior art, in the case of no power off, storage device detects that the electricity of stand-by power supply is 100% When, the data that can just be written into first are write to internal memory, then, then are write to hard disk from internal memory, if detecting stand-by power supply When electricity is not 100%, the data being directly written into are write to hard disk, but the data being directly written into are write to hard disk If, the defects of storage efficiency is relatively low be present.
The content of the invention
The embodiment of the present invention provides a kind of method and device of data storage, to solve to store present in prior art The defects of data efficiency is relatively low.
Concrete technical scheme provided in an embodiment of the present invention is as follows:
First aspect, there is provided a kind of method of data storage, including:
Obtain the electricity of stand-by power supply;
When determining that the electricity meets preparatory condition, calculate the electricity and support to move data from volatile storage medium To the size of data of non-volatile memory medium;
The data to be written for the size of data being calculated are write to the volatile storage medium, and from it is described easily The property lost storage medium is moved to the non-volatile memory medium.
With reference in a first aspect, in the first possible implementation, determine that the electricity meets preparatory condition, specific bag Include:
Determine the electricity more than or equal to the maximum power dissipation that the storage device where the volatile storage medium needs;Or Person
Determine that the electricity meets equation below:
The electricity is more than or equal to maximum power dissipation-B that the storage device described in A* where volatile storage medium needs, Wherein, A is the parameter for adjusting the maximum power dissipation, and B is first constant.
With reference to the first possible implementation of first aspect, in second of possible implementation, the maximum First power consumption of the mainboard of power consumption and the storage device is proportional and the second power consumption of the non-volatile memory medium is in anti- Than, and with the 3rd power consumption of the heat abstractor of the storage device be in inverse ratio.
With reference to second of possible implementation of first aspect, in the third possible implementation, the maximum Power consumption is calculated using equation below:
The maximum power dissipation=first power consumption-second power consumption-the 3rd power consumption.
With reference in a first aspect, or first aspect first to the third possible implementation, it is possible at the 4th kind In implementation, calculate the electricity and support from volatile storage medium to move data to the data of non-volatile memory medium Before size, in addition to:
Calculating moves data to the power consumption of the non-volatile memory medium from the volatile storage medium;
Calculate the electricity support data moving data to non-volatile memory medium from volatile storage medium it is big It is small, specifically include:
Moved according to the electricity, from the volatile storage medium to the power consumption of the non-volatile memory medium, meter The electricity is calculated to support from volatile storage medium to move data to the size of data of non-volatile memory medium.
With reference to the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation, calculate number Move to the power consumption of the non-volatile memory medium, specifically include according to from the volatile storage medium:
By the system power dissipation of the storage device and the power consumption of internal memory sum of the storage device, as by data from described Volatile storage medium is moved to the power consumption of the non-volatile memory medium.
With reference to the 4th or the 5th kind of possible implementation of first aspect, in the 6th kind of possible implementation, Moved according to the electricity, from the volatile storage medium to the power consumption of the non-volatile memory medium, calculate the number Before size, in addition to:
Acquisition moves data to bandwidth used in the non-volatile memory medium from the volatile storage medium;
Moved according to the electricity, from the volatile storage medium to the power consumption of the non-volatile memory medium, meter The size of data is calculated, is specifically included:
Moved according to the electricity, from the volatile storage medium to the power consumption of the non-volatile memory medium, and Electricity described in the bandwidth calculation is supported data moving data to non-volatile memory medium from volatile storage medium big It is small.
With reference to the 6th kind of possible implementation of first aspect, in the 7th kind of possible implementation, according to described Electricity, move to the power consumption of the non-volatile memory medium, and described in the bandwidth calculation from the volatile storage medium Size of data, specifically include:
Moved using equation below according to the electricity, from the volatile storage medium to non-volatile memories Jie The power consumption of matter, and size of data described in the bandwidth calculation:
The size of data=the electricity/moved from the volatile storage medium to the non-volatile memory medium Power consumption * C* described in bandwidth, wherein, C is second constant.
With reference in a first aspect, or first aspect first to the 7th kind of possible implementation, it is possible at the 8th kind In implementation, in addition to:
When determining that the electricity does not meet preparatory condition, the data being written into are write to non-volatile memories Jie Matter.
Second aspect, there is provided a kind of device of data storage, including:
Acquiring unit, for obtaining the electricity of stand-by power supply;
Computing unit, during for determining that the electricity meets preparatory condition, calculating the electricity and supporting data from volatile Property storage medium is moved to the size of data of non-volatile memory medium;
Writing unit, it is situated between for the data to be written for the size of data being calculated to be write to the volatile storage Matter, and moved from the volatile storage medium to the non-volatile memory medium.
With reference to second aspect, in the first possible implementation, computing unit is specifically used for:
Determine the electricity more than or equal to the maximum power dissipation that the storage device where the volatile storage medium needs;Or Person
Determine that the electricity meets equation below:
The electricity is more than or equal to maximum power dissipation-B that the storage device described in A* where volatile storage medium needs, Wherein, A is the parameter for adjusting the maximum power dissipation, and B is first constant.
With reference to the first possible implementation of second aspect, in second of possible implementation, the calculating Unit with the maximum power dissipation of the comparision of quantity of electricity and the first power consumption of the mainboard of the storage device it is proportional, with it is described non-volatile Second power consumption of property storage medium is in inverse ratio, and with the 3rd power consumption of the heat abstractor of the storage device is in inverse ratio.
With reference to second of possible implementation of second aspect, in the third possible implementation, the calculating Unit is calculated with the maximum power dissipation of the comparision of quantity of electricity using equation below:
The maximum power dissipation=first power consumption-second power consumption-the 3rd power consumption.
With reference to second aspect, or second aspect first to the third possible implementation, it is possible at the 4th kind In implementation, the computing unit is additionally operable to:
Calculating moves data to the power consumption of the non-volatile memory medium from the volatile storage medium;
The computing unit is specifically used for:
Moved according to the electricity, from the volatile storage medium to the power consumption of the non-volatile memory medium, meter The electricity is calculated to support from volatile storage medium to move data to the size of data of non-volatile memory medium.
With reference to the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation, the calculating Unit is specifically used for:
By the system power dissipation of the storage device and the power consumption of internal memory sum of the storage device, as by data from described Volatile storage medium is moved to the power consumption of the non-volatile memory medium.
With reference to the 4th or the 5th kind of possible implementation of second aspect, in the 6th kind of possible implementation, The computing unit is additionally operable to:
Acquisition moves data to bandwidth used in the non-volatile memory medium from the volatile storage medium;
The computing unit is specifically used for:
Moved according to the electricity, from the volatile storage medium to the power consumption of the non-volatile memory medium, and Electricity described in the bandwidth calculation is supported data moving data to non-volatile memory medium from volatile storage medium big It is small.
With reference to the 6th kind of possible implementation of second aspect, in the 7th kind of possible implementation, the calculating Unit is specifically used for:
Moved using equation below according to the electricity, from the volatile storage medium to non-volatile memories Jie The power consumption of matter, and size of data described in the bandwidth calculation:
The size of data=the electricity/moved from the volatile storage medium to the non-volatile memory medium Power consumption * C* described in bandwidth, wherein, C is second constant.
It is possible at the 8th kind with reference to first to the 7th kind of possible implementation of second aspect, or second aspect In implementation, said write unit is additionally operable to:
When determining that the electricity does not meet preparatory condition, the data being written into are write to non-volatile memories Jie Matter.
The present invention has the beneficial effect that:
Storage system introduces internal memory, can be greatly enhanced storage efficiency, in the prior art, storage device detects standby When the electricity of power supply is 100%, the data that can just be written into first are write to internal memory, then, then are write to hard disk from internal memory, if When the electricity for detecting stand-by power supply is not 100%, the data being directly written into are write to hard disk, but are directly written into Data write to hard disk, the defects of storage efficiency is relatively low be present, in the embodiment of the present invention, determine that electricity meets default bar During part, calculate electricity and support from volatile storage medium to move data to the size of data of non-volatile memory medium;Will meter The data to be written of obtained size of data are write to volatile storage medium, and are moved from volatile storage medium to non- Volatile storage medium, so, even if the electricity of stand-by power supply is not 100%, calculates electricity and support data from volatibility Storage medium is moved to the size of data of non-volatile memory medium, and by the data for the size of data being calculated first write to Volatile storage medium, then, then move to non-volatile memory medium from volatile storage medium, it is thus possible to improve Storage efficiency during data storage.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described.
Fig. 1 is the method flow diagram of data storage in the embodiment of the present invention;
Fig. 2 is the embodiment of data storage in the embodiment of the present invention;
Fig. 3 is the illustrative view of functional configuration of data storage in the embodiment of the present invention;
Fig. 4 is the entity structure schematic diagram of data storage in the embodiment of the present invention.
Embodiment
The purpose, technical scheme and advantage of the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is explicitly described, it is clear that described embodiment is the present invention one Divide embodiment, rather than whole embodiments.
The preferred embodiment of the present invention is described in detail below in conjunction with the accompanying drawings.
Preferred embodiment described below can be applied in following scene, such as:Storage system has stand-by power supply, deposits After storage system power down, in the case where stand-by power supply is powered, performed by the controller in storage system, by volatile storage medium In the non-volatile memory medium that writes into storage system of data, the non-volatile memory medium in storage system can be Hard disk, disk etc..
As shown in fig.1, providing a kind of method of data storage in the embodiment of the present invention, the detailed process of this method is such as Under:
Step 100:Obtain the electricity of stand-by power supply;
Step 110:When determining that electricity meets preparatory condition, calculate electricity and support to move data from volatile storage medium To the size of data of non-volatile memory medium;
Step 120:The data to be written for the size of data being calculated are write to volatile storage medium, and from easy The property lost storage medium is moved to non-volatile memory medium.
In the embodiment of the present invention, it is a variety of to determine that electricity meets that the mode of preparatory condition has, optionally, such as lower section can be used Formula:
Determine electricity more than or equal to the maximum power dissipation that the storage device where volatile storage medium needs;Or
Or determine that electricity meets equation below:
Electricity be more than or equal to A* volatile storage mediums where storage device need maximum power dissipation-B, wherein, A is The parameter of maximum power dissipation is adjusted, B is first constant.
In the embodiment of the present invention, preferably, A is 0.0847, B 8.96.
In the embodiment of the present invention, optionally, the first power consumption of the mainboard of maximum power dissipation and storage device is proportional and non-easy Second power consumption of the property lost storage medium is in inverse ratio, and with the 3rd power consumption of the heat abstractor of storage device is in inverse ratio.
In the embodiment of the present invention, heat abstractor can be fan, it is of course also possible to be the device of other forms, herein not It is described in detail one by one again.
In the embodiment of the present invention, optionally, maximum power dissipation can use equation below to calculate:
The power consumption of power consumption-the 3rd of power consumption-second of maximum power dissipation=first.
In the embodiment of the present invention, further, in order to improve the degree of accuracy for the maximum power dissipation being calculated, maximum power dissipation= The power consumption of first power consumption-second-three power consumptions+power consumption adjusting parameter.
In the embodiment of the present invention, calculate electricity and support from volatile storage medium to move data to non-volatile memories Jie Before the size of data of matter, in addition to following operation:
Calculating moves data to the power consumption of non-volatile memory medium from volatile storage medium;
In the embodiment of the present invention, calculate electricity and support from volatile storage medium to move data to non-volatile memories Jie The mode of the size of data of matter has a variety of, optionally, can use:
Moved according to electricity, from volatile storage medium to the power consumption of non-volatile memory medium, calculating electricity support will Data are moved to the size of data of non-volatile memory medium from volatile storage medium.
In the embodiment of the present invention, calculate and move data to the power consumption of non-volatile memory medium from volatile storage medium Mode have a variety of, optionally, can use:
By the system power dissipation of storage device and the power consumption of internal memory sum of storage device, it is situated between as by data from volatile storage Matter is moved to the power consumption of non-volatile memory medium.
In the embodiment of the present invention, moved according to electricity, from volatile storage medium to the power consumption of non-volatile memory medium, Before calculating size of data, in addition to following manner:
Acquisition moves data to bandwidth used in non-volatile memory medium from volatile storage medium;
Now, moved according to electricity, from volatile storage medium to the power consumption of non-volatile memory medium, it is big to calculate data Hour, it is specially:
Moved according to electricity, from volatile storage medium to the power consumption of non-volatile memory medium, and bandwidth calculation electricity Support moves data to the size of data of non-volatile memory medium from volatile storage medium.
In the embodiment of the present invention, moved according to electricity, from volatile storage medium to the power consumption of non-volatile memory medium, And the mode of bandwidth calculation size of data has a variety of, optionally, can use:
Moved using equation below according to electricity, from volatile storage medium to the power consumption of non-volatile memory medium, and Bandwidth calculation size of data:
Size of data=electricity/moved from volatile storage medium to the power consumption * C* bandwidth of non-volatile memory medium, its In, C is second constant.
In the embodiment of the present invention, optionally, C 3600.
In the embodiment of the present invention, in addition to following operation:
When determining that electricity does not meet preparatory condition, the data being written into are write to non-volatile memory medium.
In the embodiment of the present invention, the volatile storage medium in the embodiment of the present invention can be Cache, and Cache can be One independent device, it can also be located in other hardware, for example, in CPU, or positioned at FPGA (Field- Programmable Gate Array, field-programmable gate array) in (for the SRAM in FPGA).
Embodiment for a better understanding of the present invention, concrete application scene given below, for the process of data storage, make Go out to be described in further detail, as shown in Figure 2:
Step 200:Obtain the electricity of stand-by power supply;
Step 210:Judge whether electricity is more than or equal to maximum power dissipation, if so, performing step 220, otherwise, perform step 250;
Step 220:Data are moved to the power consumption of hard disk, obtain and move data to hard disk from Cache by calculating from Cache Used bandwidth;
Step 230:Moved according to electricity, from Cache to the power consumption of hard disk, and bandwidth calculation electricity support by data from It is 15G that Cache, which is moved to the size of data of hard disk,;
Step 240:15G data to be written are write to Cache, and moved from Cache to hard disk;
Step 250:The data being written into are write to non-volatile memory medium.
Based on above-mentioned technical proposal, as shown in fig.3, the embodiment of the present invention provides a kind of device of data storage, this is deposited Store up data device include acquiring unit 30, computing unit 31, writing unit 32, wherein:
Acquiring unit 30, for obtaining the electricity of stand-by power supply;
Computing unit 31, during for determining that electricity meets preparatory condition, calculating electricity and supporting data from volatile storage Medium is moved to the size of data of non-volatile memory medium;
Writing unit 32, it is situated between for the data to be written for the size of data being calculated to be write to volatile storage Matter, and moved from volatile storage medium to non-volatile memory medium.
In the embodiment of the present invention, optionally, computing unit 31 is specifically used for:
Determine electricity more than or equal to the maximum power dissipation that the storage device where volatile storage medium needs;Or
Determine that electricity meets equation below:
Electricity be more than or equal to A* volatile storage mediums where storage device need maximum power dissipation-B, wherein, A is The parameter of maximum power dissipation is adjusted, B is first constant.
In the embodiment of the present invention, optionally, the maximum power dissipation and the mainboard of storage device that the power consumption of computing unit 31 compares The first power consumption it is proportional, be in inverse ratio with the second power consumption of non-volatile memory medium, and with the heat abstractor of storage device 3rd power consumption is in inverse ratio.
In the embodiment of the present invention, optionally, the maximum power dissipation that the power consumption of computing unit 31 compares is calculated using equation below:
The power consumption of power consumption-the 3rd of power consumption-second of maximum power dissipation=first.
In the embodiment of the present invention, further, computing unit 31 is additionally operable to:
Calculating moves data to the power consumption of non-volatile memory medium from volatile storage medium;
Computing unit 31 is specifically used for:
Moved according to electricity, from volatile storage medium to the power consumption of non-volatile memory medium, calculating electricity support will Data are moved to the size of data of non-volatile memory medium from volatile storage medium.
In the embodiment of the present invention, optionally, computing unit 31 is specifically used for:
By the system power dissipation of storage device and the power consumption of internal memory sum of storage device, it is situated between as by data from volatile storage Matter is moved to the power consumption of non-volatile memory medium.
In the embodiment of the present invention, further, computing unit 31 is additionally operable to:
Acquisition moves data to bandwidth used in non-volatile memory medium from volatile storage medium;
Computing unit 31 is specifically used for:
Moved according to electricity, from volatile storage medium to the power consumption of non-volatile memory medium, and bandwidth calculation electricity Support moves data to the size of data of non-volatile memory medium from volatile storage medium.
In the embodiment of the present invention, optionally, computing unit 31 is specifically used for:
Moved using equation below according to electricity, from volatile storage medium to the power consumption of non-volatile memory medium, and Bandwidth calculation size of data:
Size of data=electricity/moved from volatile storage medium to the power consumption * C* bandwidth of non-volatile memory medium, its In, C is second constant.
In the embodiment of the present invention, further, writing unit 32 is additionally operable to:
When determining that electricity does not meet preparatory condition, the data being written into are write to non-volatile memory medium.
As shown in figure 4, being the entity apparatus figure of data storage provided by the invention, the device of data storage includes at least one Individual processor 401, communication bus 402, memory 403 and at least one communication interface 404.
Wherein, communication bus 402 is used to realizing connection and communication between said modules, communication interface 404 be used for it is outer Portion's equipment is connected and communicated.
Wherein, memory 403 is used to store the program code for needing to perform, when processor 401 is performed in memory 403 During program code, implement function such as:
Obtain the electricity of stand-by power supply;
When determining that electricity meets preparatory condition, calculate electricity and support from volatile storage medium to move data to non-volatile The size of data of property storage medium;
The data to be written for the size of data being calculated are write to volatile storage medium, and from volatile storage Medium is moved to non-volatile memory medium.
In summary, the method for a kind of data storage that the embodiment of the present invention proposes, in this scenario, determine that electricity meets During preparatory condition, calculate electricity support data moving data to non-volatile memory medium from volatile storage medium it is big It is small;The data to be written for the size of data being calculated are write to volatile storage medium, and from volatile storage medium Move to non-volatile memory medium, so, even if the electricity of stand-by power supply is not 100%, calculates electricity and support data Moved from volatile storage medium to the size of data of non-volatile memory medium, and by the data for the size of data being calculated First write to volatile storage medium, then, then move to non-volatile memory medium from volatile storage medium, therefore, can To improve the storage efficiency during data storage.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real Present one flow of flow chart or one square frame of multiple flows and/or block diagram or the device of the function in multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or Function in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function in individual square frame or multiple square frames.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations.This The there is provided embodiment of application is only schematical.It is apparent to those skilled in the art that in order to describe Convenience and succinct, in the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in detail in some embodiment Part, may refer to the associated description of other embodiment.The spy disclosed in the embodiment of the present invention, claim and accompanying drawing Sign, which can be individually present, can also combine presence.

Claims (16)

  1. A kind of 1. method of data storage, it is characterised in that including:
    Obtain the electricity of stand-by power supply;
    Calculating moves data to the power consumption of the non-volatile memory medium from the volatile storage medium;
    When determining that the electricity meets preparatory condition, moved according to the electricity, from the volatile storage medium to described non- The power consumption of volatile storage medium, calculate the electricity and support from volatile storage medium to move data to non-volatile memories The size of data of medium;
    The data to be written for the size of data being calculated are write to the volatile storage medium, and from the volatibility Storage medium is moved to the non-volatile memory medium.
  2. 2. the method as described in claim 1, it is characterised in that determine that the electricity meets preparatory condition, specifically include:
    Determine the electricity more than or equal to the maximum power dissipation that the storage device where the volatile storage medium needs;Or
    Determine that the electricity meets equation below:
    The electricity is more than or equal to maximum power dissipation-B that the storage device described in A* where volatile storage medium needs, wherein, A is the parameter for adjusting the maximum power dissipation, and B is first constant.
  3. 3. method as claimed in claim 2, it is characterised in that the maximum power dissipation and the first of the mainboard of the storage device Power consumption is proportional, with the second power consumption of the non-volatile memory medium is in inverse ratio, and the heat abstractor with the storage device The 3rd power consumption be in inverse ratio.
  4. 4. method as claimed in claim 3, it is characterised in that the maximum power dissipation is calculated using equation below:
    The maximum power dissipation=first power consumption-second power consumption-the 3rd power consumption.
  5. 5. the method as described in claim 1, it is characterised in that calculating moves data to institute from the volatile storage medium The power consumption of non-volatile memory medium is stated, is specifically included:
    By the system power dissipation of the storage device and the power consumption of internal memory sum of the storage device, as by data from described volatile Property storage medium is moved to the power consumption of the non-volatile memory medium.
  6. 6. the method as described in claim 1, it is characterised in that moved according to the electricity, from the volatile storage medium The extremely power consumption of the non-volatile memory medium, before calculating the size of data, in addition to:
    Acquisition moves data to bandwidth used in the non-volatile memory medium from the volatile storage medium;
    Moved according to the electricity, from the volatile storage medium to the power consumption of the non-volatile memory medium, calculate institute Size of data is stated, is specifically included:
    Moved according to the electricity, from the volatile storage medium to the power consumption of the non-volatile memory medium, and it is described Electricity described in bandwidth calculation is supported from volatile storage medium to move data to the size of data of non-volatile memory medium.
  7. 7. method as claimed in claim 6, it is characterised in that moved according to the electricity, from the volatile storage medium To the power consumption of the non-volatile memory medium, and size of data described in the bandwidth calculation, specifically include:
    Moved using equation below according to the electricity, from the volatile storage medium to the non-volatile memory medium Power consumption, and size of data described in the bandwidth calculation:
    The size of data=the electricity/moved from the volatile storage medium to the work(of the non-volatile memory medium Bandwidth described in * C* is consumed, wherein, C is second constant.
  8. 8. the method as described in claim any one of 1-4, it is characterised in that also include:
    When determining that the electricity does not meet preparatory condition, the data being written into are write to the non-volatile memory medium.
  9. A kind of 9. device of data storage, it is characterised in that including:
    Acquiring unit, for obtaining the electricity of stand-by power supply;
    Computing unit, data are moved to the work(of the non-volatile memory medium from the volatile storage medium for calculating Consumption;And
    When determining that the electricity meets preparatory condition, moved according to the electricity, from the volatile storage medium to described non- The power consumption of volatile storage medium, calculate the electricity and support from volatile storage medium to move data to non-volatile memories The size of data of medium;
    Writing unit, for the data to be written for the size of data being calculated to be write to the volatile storage medium, And moved from the volatile storage medium to the non-volatile memory medium.
  10. 10. device as claimed in claim 9, it is characterised in that computing unit is specifically used for:
    Determine the electricity more than or equal to the maximum power dissipation that the storage device where the volatile storage medium needs;Or
    Determine that the electricity meets equation below:
    The electricity is more than or equal to maximum power dissipation-B that the storage device described in A* where volatile storage medium needs, wherein, A is the parameter for adjusting the maximum power dissipation, and B is first constant.
  11. 11. device as claimed in claim 10, it is characterised in that the maximum power dissipation of the computing unit comparision of quantity of electricity With the first power consumption of the mainboard of the storage device it is proportional, be in inverse ratio with the second power consumption of the non-volatile memory medium, And with the 3rd power consumption of the heat abstractor of the storage device it is in inverse ratio.
  12. 12. device as claimed in claim 11, it is characterised in that the maximum power dissipation of the computing unit comparision of quantity of electricity Calculated using equation below:
    The maximum power dissipation=first power consumption-second power consumption-the 3rd power consumption.
  13. 13. device as claimed in claim 9, it is characterised in that the computing unit is specifically used for:
    By the system power dissipation of the storage device and the power consumption of internal memory sum of the storage device, as by data from described volatile Property storage medium is moved to the power consumption of the non-volatile memory medium.
  14. 14. device as claimed in claim 9, it is characterised in that the computing unit is additionally operable to:
    Acquisition moves data to bandwidth used in the non-volatile memory medium from the volatile storage medium;
    The computing unit is specifically used for:
    Moved according to the electricity, from the volatile storage medium to the power consumption of the non-volatile memory medium, and it is described Electricity described in bandwidth calculation is supported from volatile storage medium to move data to the size of data of non-volatile memory medium.
  15. 15. device as claimed in claim 14, it is characterised in that the computing unit is specifically used for:
    Moved using equation below according to the electricity, from the volatile storage medium to the non-volatile memory medium Power consumption, and size of data described in the bandwidth calculation:
    The size of data=the electricity/moved from the volatile storage medium to the work(of the non-volatile memory medium Bandwidth described in * C* is consumed, wherein, C is second constant.
  16. 16. the device as described in claim any one of 9-12, it is characterised in that said write unit is additionally operable to:
    When determining that the electricity does not meet preparatory condition, the data being written into are write to the non-volatile memory medium.
CN201410419611.XA 2014-08-22 2014-08-22 A kind of method and device of data storage Active CN104199620B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410419611.XA CN104199620B (en) 2014-08-22 2014-08-22 A kind of method and device of data storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410419611.XA CN104199620B (en) 2014-08-22 2014-08-22 A kind of method and device of data storage

Publications (2)

Publication Number Publication Date
CN104199620A CN104199620A (en) 2014-12-10
CN104199620B true CN104199620B (en) 2017-11-17

Family

ID=52084918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410419611.XA Active CN104199620B (en) 2014-08-22 2014-08-22 A kind of method and device of data storage

Country Status (1)

Country Link
CN (1) CN104199620B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160349817A1 (en) * 2015-05-29 2016-12-01 Intel Corporation Power protected memory with centralized storage
CN109388221A (en) * 2018-10-09 2019-02-26 郑州云海信息技术有限公司 A kind of storage system and its standby fulgurite reason method, apparatus and equipment
CN110737319B (en) * 2019-09-26 2021-06-29 苏州浪潮智能科技有限公司 Operation control method and device of server and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0320142D0 (en) * 2003-08-28 2003-10-01 Ibm Data storage systems
CN101499313B (en) * 2009-01-06 2012-03-21 成都市华为赛门铁克科技有限公司 Method, equipment and memory system for guaranteeing data security
CN102110034A (en) * 2009-12-28 2011-06-29 北京安码科技有限公司 Hard disk storage method and device integrated with battery and DRAM

Also Published As

Publication number Publication date
CN104199620A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
CN104199620B (en) A kind of method and device of data storage
WO2012109679A3 (en) Apparatus, system, and method for application direct virtual memory management
CN102136993B (en) A kind of methods, devices and systems of Data Migration
CN107408019B (en) Method and apparatus for improving immunity to defects in non-volatile memory
CN105468291B (en) Dynamic and static wear balance control method and device
JP2014164769A5 (en)
US20140006838A1 (en) Dynamic intelligent allocation and utilization of package maximum operating current budget
CN103064792A (en) Method and device for writing data
CN105493192B (en) Increased refresh interval and energy efficiency in DRAM
GB201206682D0 (en) Fibre channel input/output data routing system and method
CN104077134A (en) Method and system for obtaining planar temperature nephogram of date center machine room
US20140365837A1 (en) Test apparatus and method for testing server
CN104122977B (en) The method and storage system of a kind of data storage
CN108090000A (en) A kind of method and system for obtaining CPU register informations
US10241922B2 (en) Processor and method
EP3502909A3 (en) Semiconductor device with master, bus, cache and memory controller and bus generator
CN105139890B (en) A kind of information processing method and solid state hard disk
US20160048336A1 (en) Electronic Control Unit and Method for Rewriting Data
CN108073475A (en) The method of the solid state disk backup table of comparisons
JP5958395B2 (en) Computer system
CN103095820B (en) A kind of method and device determining the terminal quantity of accession page
CN104237690A (en) Measurement method and device for electric energy utilization efficiency
CN108241583A (en) Data processing method, application server and the computer readable storage medium that wages calculate
CN103699322A (en) Image scaling treatment method and device
CN106899863A (en) A kind of data processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant