CN109542351A - A kind of power consumption control method and solid state hard disk of solid state hard disk - Google Patents

A kind of power consumption control method and solid state hard disk of solid state hard disk Download PDF

Info

Publication number
CN109542351A
CN109542351A CN201811387483.XA CN201811387483A CN109542351A CN 109542351 A CN109542351 A CN 109542351A CN 201811387483 A CN201811387483 A CN 201811387483A CN 109542351 A CN109542351 A CN 109542351A
Authority
CN
China
Prior art keywords
power consumption
hard disk
solid state
state hard
data
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.)
Granted
Application number
CN201811387483.XA
Other languages
Chinese (zh)
Other versions
CN109542351B (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 CN201811387483.XA priority Critical patent/CN109542351B/en
Publication of CN109542351A publication Critical patent/CN109542351A/en
Application granted granted Critical
Publication of CN109542351B publication Critical patent/CN109542351B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0625Power saving in storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • G06F3/0689Disk arrays, e.g. RAID, JBOD

Abstract

The embodiment of the present application discloses the power consumption control method and solid state hard disk of a kind of solid state hard disk, can dynamically control the power consumption of solid state hard disk, and power consumption when preventing solid state hard disk from running exceeds permitted maximum power dissipation, provides protection for solid state hard disk.The embodiment of the present application method includes: the target power consumption for obtaining the solid state hard disk, and the target power consumption is the remaining power consumption that the solid state hard disk allows to be operated;Corresponding first power consumption of the first operational order is obtained, first operational order is used to indicate the solid state hard disk and carries out reading data, writes data or the operation of erasing data;If first power consumption is less than the target power consumption, first operational order is executed.

Description

A kind of power consumption control method and solid state hard disk of solid state hard disk
Technical field
This application involves the power consumption control method and solid-state of computer field of storage more particularly to a kind of solid state hard disk are hard Disk.
Background technique
With the development and extensive use of the technologies such as internet, cloud computing, Internet of Things, in human lives, at every moment The data that magnanimity will be generated need to handle and store, and the high speed development of information technology proposes the performance of storage system higher Requirement.
Solid state hard disk is widely adopted because its read or write speed is fast, energy consumption is lower in large-scale data center.Solid state hard disk sheet The power consumption of body is always to measure an important indicator of solid state hard disk superiority and inferiority, and solid state hard disk can be set with permitted maximum work Consumption.
However solid state hard disk in actual use, due to read data, write data and erasing data operation frequency Numerous generation causes the damage of solid state hard disk it is possible that power consumption when solid state hard disk is run exceeds permitted maximum power dissipation.
Summary of the invention
The embodiment of the present application provides the power consumption control method and solid state hard disk of a kind of solid state hard disk, can be dynamically to solid The power consumption of state hard disk is controlled, and power consumption when preventing solid state hard disk from running exceeds permitted maximum power dissipation, is solid state hard disk Provide protection.
The embodiment of the present application first aspect provides a kind of power consumption control method of solid state hard disk, comprising:
The target power consumption of the solid state hard disk is obtained, the target power consumption allows to be operated surplus for the solid state hard disk Complementary work consumption;
Obtain corresponding first power consumption of the first operational order, first operational order be used to indicate the solid state hard disk into Row reads data, writes data or wipes the operation of data;
If first power consumption is less than the target power consumption, first operational order is executed.
Optionally, the target power consumption for obtaining the solid state hard disk includes:
The power consumption threshold value of the solid state hard disk is obtained, the power consumption threshold value is the maximum power dissipation that the solid state hard disk allows;
The second power consumption of the solid state hard disk is obtained, second power consumption includes that second operation of solid state hard disk execution refers to The power consumption occupied when enabling, second operational order are used to indicate the solid state hard disk and carry out reading data, write data or erasing number According to operation;
The difference for calculating the power consumption threshold value and second power consumption obtains the target power consumption.
Optionally, if first operational order is used to indicate the operation that the solid state hard disk read data, and institute Stating the second operational order includes being used to indicate the solid state hard disk write data or wipe the operation of data, then suspends described the The operation of two operational orders instruction write data or wipe data;
The target power consumption for obtaining the solid state hard disk includes:
Obtain the corresponding third power consumption of operation of the second operational order instruction write data or wipe data;
The difference for calculating second power consumption and the third power consumption obtains the 4th power consumption;
The difference for calculating the power consumption threshold value and the 4th power consumption obtains the target power consumption.
Optionally, obtaining corresponding first power consumption of the first operational order includes:
Obtain basic power consumption list, the basic power consumption list include the solid state hard disk carry out reading data, write data with And the corresponding basic power consumption of erasing data institute;
Determine that basic power consumption corresponding with operation indicated by first operational order is from the basic power consumption list First power consumption.
Optionally, the method also includes:
The target power consumption is stored in registers.
The embodiment of the present application second aspect provides a kind of solid state hard disk, comprising:
First acquisition unit, for obtaining the target power consumption of the solid state hard disk, the target power consumption is that the solid-state is hard The remaining power consumption that disk allows to be operated;
Second acquisition unit, for obtaining corresponding first power consumption of the first operational order, first operational order is used for Indicate that the solid state hard disk carries out reading data, writes data or the operation of erasing data;
Execution unit executes first operational order if being less than the target power consumption for first power consumption.
Optionally, the first acquisition unit is specifically used for:
The power consumption threshold value of the solid state hard disk is obtained, the power consumption threshold value is the maximum power dissipation that the solid state hard disk allows;
The second power consumption of the solid state hard disk is obtained, second power consumption includes that second operation of solid state hard disk execution refers to The power consumption occupied when enabling, second operational order are used to indicate the solid state hard disk and carry out reading data, write data or erasing number According to operation;
The difference for calculating the power consumption threshold value and second power consumption obtains the target power consumption.
Optionally, the execution unit is also used to:
If first operational order is used to indicate the operation that the solid state hard disk read data, and second behaviour Making instruction includes being used to indicate the solid state hard disk to carry out writing data or wipe the operation of data, then suspends second operation and refer to Enable the operation of instruction write data or wipe data;
The first acquisition unit is specifically used for:
Obtain the corresponding third power consumption of operation of the second operational order instruction write data or wipe data;
The difference for calculating second power consumption and the third power consumption obtains the 4th power consumption;
The difference for calculating the power consumption threshold value and the 4th power consumption obtains the target power consumption.
Optionally, the second acquisition unit is specifically used for:
Obtain basic power consumption list, the basic power consumption list include the solid state hard disk carry out reading data, write data with And the corresponding basic power consumption of erasing data institute;
Determine that basic power consumption corresponding with operation indicated by first operational order is from the basic power consumption list First power consumption.
Optionally, the solid state hard disk further includes storage unit, for the target power consumption to be stored in registers.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
In the present embodiment, the target power consumption of solid state hard disk is obtained first, and the target power consumption is solid state hard disk permission The remaining power consumption operated when receiving the first operational order later, also will acquire corresponding first power consumption of the first operational order, First operational order is used to indicate the solid state hard disk and carries out reading data, writes data or the operation of erasing data, Jin Erruo First power consumption is less than the target power consumption, then executes first operational order.By the above-mentioned means, solid state hard disk can be right It receives power consumption corresponding to operational order to be judged, only it is remaining to be less than solid state hard disk for power consumption corresponding to the operational order Power consumption can be used, just allows to execute the operational order, dynamically the power consumption of solid state hard disk can be controlled in this way, prevent solid-state Power consumption when hard disk is run exceeds permitted maximum power dissipation, provides protection for solid state hard disk.
Detailed description of the invention
Fig. 1 is one embodiment schematic diagram of the power consumption control method of the embodiment of the present application solid state hard disk;
Fig. 2 is one embodiment schematic diagram of the embodiment of the present application solid state hard disk;
Fig. 3 is the hardware structural diagram of the embodiment of the present application solid state hard disk.
Specific embodiment
The embodiment of the present application provides the power consumption control method and solid state hard disk of a kind of solid state hard disk, can be dynamically to solid The power consumption of state hard disk is controlled, and power consumption when preventing solid state hard disk from running exceeds permitted maximum power dissipation, is solid state hard disk Provide protection.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.
Description and claims of this specification and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing Similar object, without being used to describe a particular order or precedence order.It should be understood that the data used in this way are in appropriate feelings It can be interchanged under condition, so that the embodiments described herein can be real with the sequence other than the content for illustrating or describing herein It applies.In addition, term " includes " and " having " and their any side shape, it is intended that cover it is non-exclusive include, for example, packet The process, method, system, product or equipment for having contained series of steps or module those of be not necessarily limited to be clearly listed step or Module, but may include other steps being not clearly listed or intrinsic for these process, methods, product or equipment or Module, the division of module appeared in the present invention, only a kind of division in logic can have when realizing in practical application Other division mode, such as multiple modules can be combined into or are integrated in another system, or some features can be ignored, Or do not execute, in addition, shown or discussion mutual coupling, direct-coupling or communication connection can be by one A little interfaces, the indirect coupling or communication connection between module can be electrical or other similar form, do not make in the present invention It limits.Also, module or submodule can be the separation that may not be physically as illustrated by the separation member, can be It can not be physical module, or can be distributed in multiple circuit modules, portion therein can be selected according to the actual needs Point or whole module realize the purpose of the present invention program.
Solid state hard disk (Solid State Disk, SSD) referred to as consolidates disk, and is made with solid-state electronic storage chip array At hard disk, be made of control unit and storage unit.Solid-state memory is the switch shape by storage chip internal transistor State carrys out storing data, since solid-state memory do not have read/write head, does not need to rotate, so solid-state memory possess little power consumption, The strong advantage of shock resistance.But due to reading data, writing data and the frequent operation generation of erasing data, it is possible that solid-state Power consumption when hard disk is run exceeds permitted maximum power dissipation, causes the damage of solid state hard disk.
To solve the above-mentioned problems, the embodiment of the present application provides a kind of power consumption control method of solid state hard disk.
Referring to Fig. 1, Fig. 1 is the flow diagram of the power consumption control method of solid state hard disk provided by the embodiments of the present application, It specifically includes:
101, the target power consumption of the solid state hard disk is obtained.
In the present embodiment, solid state hard disk needs to obtain the target power consumption of itself, that is, the remaining power consumption for allowing to be operated.Tool Body, solid state hard disk can first obtain the power consumption threshold value of itself, i.e., permitted maximum power dissipation, if secondly solid state hard disk currently has It executes and reads data, write data or wipe the second operational order of data, solid state hard disk is available with second operational order pair The second power consumption answered, and then target power consumption can be obtained in the difference by calculating power consumption threshold value and the second power consumption.It needs to illustrate It is that, if solid state hard disk is currently without other operations are executed, and the blank panel state of solid state hard disk can also generate certain power consumption, then The difference of power consumption is occupied when target power consumption is power consumption threshold value and blank panel.Certainly, if solid state hard disk currently has execution, the second operation refers to It enables, the power consumption that the second power consumption therein, which can be understood as, to be occupied when including blank panel.It should be noted that solid state hard disk can incite somebody to action The target power consumption is stored in the register of itself, for reading when needed.
102, corresponding first power consumption of the first operational order is obtained.
In the present embodiment, when solid state hard disk receives the first operational order, it will acquire corresponding with first operational order The first power consumption, wherein first operational order be used to indicate solid state hard disk carry out reading data, write data or erasing data behaviour Make.Specifically, it can go out to read data by experimental calculation, write the corresponding basic power consumption of data and erasing data institute, obtain To basic power consumption list, solid state hard disk determines that required operation to be performed is reading data, writes number according to the first operational order later According to still erasing data, and then it is assured that its corresponding basic power consumption, i.e. corresponding first power consumption of the first operational order.Under Face illustrates a kind of mode for calculating basic power consumption, for example, can acquire n times solid state hard disk carry out it is each when reading data manipulation Consumed power consumption, and then it is corresponding as data manipulation is read to calculate each average value for read data manipulation consumption power consumption Basic power consumption is similarly suitable for writing data and clashes the basic power consumption calculation of data.It is understood that the present embodiment is not right The determination mode of each corresponding basic power consumption of operation does specific restriction.
If 103, the first power consumption is less than target power consumption, the first operational order is executed.
In the present embodiment, solid state hard disk will be compared the first power consumption with the size of target power consumption, if the first small power consumption In target power consumption, illustrate to execute power consumption consumed by the first operational order in allowed limits, then the first behaviour can be executed It instructs.And if the first power consumption is greater than target power consumption, continues to execute the first operational order, it is possible to solid state hard disk operation occur When power consumption exceed permitted maximum power dissipation, cause the damage of solid state hard disk, so when solid state hard disk wouldn't execute the first behaviour It instructs, allows to execute the first operational order until the first power consumption is less than target power consumption.
In the present embodiment, the target power consumption of solid state hard disk is obtained first, and the target power consumption is solid state hard disk permission The remaining power consumption operated when receiving the first operational order later, also will acquire corresponding first power consumption of the first operational order, First operational order is used to indicate the solid state hard disk and carries out reading data, writes data or the operation of erasing data, Jin Erruo First power consumption is less than the target power consumption, then executes first operational order.By the above-mentioned means, solid state hard disk can be right It receives power consumption corresponding to operational order to be judged, only it is remaining to be less than solid state hard disk for power consumption corresponding to the operational order Power consumption can be used, just allows to execute the operational order, dynamically the power consumption of solid state hard disk can be controlled in this way, prevent solid-state Power consumption when hard disk is run exceeds permitted maximum power dissipation, provides protection for solid state hard disk.
The present embodiment is further detailed below with reference to a specific application scenarios, for example, solid state hard disk Power consumption threshold value is 1kw, and the power consumption currently occupied is 500w, i.e. the second power consumption is 600w, and the first operational order corresponding the One power consumption is 300w, and can calculate target power consumption is 1kw-600w=400w, and the 300w of the first power consumption is less than target power consumption 400w, therefore solid state hard disk allows to execute the first operational order.It is understood that if in the case that the second power consumption is constant, When solid state hard disk executes the first operational order, the remaining power consumption of solid state hard disk is 400w-300w=100w, is executed to solid state hard disk After complete first operational order, the 300w of the first power consumption will be also added in the remaining power consumption of solid state hard disk.
Optionally, in a kind of possible embodiment, the first operational order is used to indicate solid state hard disk and carries out reading data Operation, the second operational order be used to indicate solid state hard disk execute write data or wipe data operation, and in the present embodiment, Gu State hard disk need it is preferential guarantee to read going on smoothly for data manipulation, current ongoing such as write number then just needing first to suspend According to or erasing data the second operational order, therefore the second power consumption corresponding to the second operational order will also free out, then The power consumption that the remaining power consumption for allowing to be operated in solid state hard disk will be freed out plus this part.Specifically, the second operation refers to Third power consumption can be denoted as by enabling the corresponding power consumption of operation of instruction write data or wipe data, if the second operational order also refers to It is shown with the operation for reading data, then reading the occupied power consumption of data manipulation in the second operational order is exactly the second power consumption and third function The difference of consumption can be denoted as the 4th power consumption here, therefore the power consumption threshold value of solid state hard disk and the difference of the first power consumption are as current The remaining power consumption that solid state hard disk allows to be operated.
The present embodiment is further detailed below with reference to a specific application scenarios, for example, solid state hard disk Power consumption threshold value is 1kw, and the power consumption currently occupied is 800w, i.e. the second power consumption is 800w, then target power consumption is 1kw-800w =200w, and corresponding first power consumption of the first operational order for being used to execute reading data manipulation is 300w, the first function for script The 300w of consumption is greater than the 200w of target power consumption, is not allow to execute the first operational order, but have in the 800w of the second power consumption For the power consumption of 200w for writing data or erasing data, i.e. third power consumption is 200w, in order to guarantee to read the preferential execution of data manipulation, The power consumption idle that 200w can be used to write data or erasing data comes out, i.e., the power consumption of practical currently practical occupancy is 800w- 200w=600w, i.e. the 4th power consumption are 600w, so currently practical target power consumption is 1kw-600w=400w, the first power consumption 300w is less than the 400w of target power consumption, allows to execute the first operational order.
By the above-mentioned means, new reading data manipulation can when solid state hard disk pause writes data or wipes the operation of data With occupy it is paused write power consumption used in data or erasing data, if not enough only needing again the difference of both additional applications power consumption Value, the remaining power consumption that more reasonably solid state hard disk can be utilized current, is providing the base of protection in this way for solid state hard disk On plinth, it can guarantee to read going on smoothly for data manipulation to greatest extent.
The power consumption control method of solid state hard disk in the embodiment of the present application is described above, the application is implemented below Solid state hard disk is described in example:
Referring to Fig. 2, solid state hard disk one embodiment includes: in the embodiment of the present application
First acquisition unit 201, for obtaining the target power consumption of the solid state hard disk, the target power consumption is the solid-state The remaining power consumption that hard disk allows to be operated;
Second acquisition unit 202, for obtaining corresponding first power consumption of the first operational order, first operational order is used In the operation for indicating that the solid state hard disk carries out reading data, writes data or wipe data;
Execution unit 203 executes first operation and refers to if being less than the target power consumption for first power consumption It enables.
Optionally, first acquisition unit 201 is specifically used for:
The power consumption threshold value of the solid state hard disk is obtained, the power consumption threshold value is the maximum power dissipation that the solid state hard disk allows;
The second power consumption of the solid state hard disk is obtained, second power consumption includes that second operation of solid state hard disk execution refers to The power consumption occupied when enabling, second operational order are used to indicate the solid state hard disk and carry out reading data, write data or erasing number According to operation;
The difference for calculating the power consumption threshold value and second power consumption obtains the target power consumption.
Optionally, execution unit 203 is also used to:
If first operational order is used to indicate the operation that the solid state hard disk read data, and second behaviour Making instruction includes being used to indicate the solid state hard disk to carry out writing data or wipe the operation of data, then suspends second operation and refer to Enable the operation of instruction write data or wipe data;
The first acquisition unit 201 is specifically used for:
Obtain the corresponding third power consumption of operation of the second operational order instruction write data or wipe data;
The difference for calculating second power consumption and the third power consumption obtains the 4th power consumption;
The difference for calculating the power consumption threshold value and the 4th power consumption obtains the target power consumption.
Optionally, second acquisition unit 202 is specifically used for:
Obtain basic power consumption list, the basic power consumption list include the solid state hard disk carry out reading data, write data with And the corresponding basic power consumption of erasing data institute;
Determine that basic power consumption corresponding with operation indicated by first operational order is from the basic power consumption list First power consumption.
Optionally, solid state hard disk further includes storage unit 204, for the target power consumption to be stored in registers.
In the present embodiment, first acquisition unit 201 obtains the target power consumption of solid state hard disk first, and the target power consumption is institute The remaining power consumption that solid state hard disk allows to be operated is stated, when receiving the first operational order later, second acquisition unit 202 will also be obtained Take corresponding first power consumption of the first operational order, first operational order be used to indicate the solid state hard disk carry out reading data, Write data or wipe data operation, and if then first power consumption be less than the target power consumption, execution unit 203 execute institute State the first operational order.By the above-mentioned means, solid state hard disk can judge power consumption corresponding to operational order is received, only Power consumption corresponding to the operational order is less than the remaining available power consumption of solid state hard disk, just allows to execute the operational order, in this way may be used Dynamically to control the power consumption of solid state hard disk, power consumption when preventing solid state hard disk from running exceeds permitted maximum work Consumption, provides protection for solid state hard disk.
The solid state hard disk in the embodiment of the present application is described from the angle of modular functionality entity above, below from The angle of hardware handles is applied the solid state hard disk in example to the application and is described:
Referring to Fig. 3, the embodiment of the present application provides a kind of solid state hard disk 300, comprising: input unit 301, output device 302, (wherein the quantity of processor 303 can be one or more, with a processor in Fig. 3 for processor 303 and memory 304 For 303).In some embodiments of the invention, input unit 301, output device 302, processor 303 and memory 304 It can be connected by bus or other means, wherein in Fig. 3 for being connected by bus, wherein by calling memory 304 The operational order of storage, processor 303, for executing following steps:
The target power consumption of the solid state hard disk is obtained, the target power consumption allows to be operated surplus for the solid state hard disk Complementary work consumption;
Obtain corresponding first power consumption of the first operational order, first operational order be used to indicate the solid state hard disk into Row reads data, writes data or wipes the operation of data;
If first power consumption is less than the target power consumption, first operational order is executed.
Optionally, the target power consumption for obtaining the solid state hard disk includes:
The power consumption threshold value of the solid state hard disk is obtained, the power consumption threshold value is the maximum power dissipation that the solid state hard disk allows;
The second power consumption of the solid state hard disk is obtained, second power consumption includes that second operation of solid state hard disk execution refers to The power consumption occupied when enabling, second operational order are used to indicate the solid state hard disk and carry out reading data, write data or erasing number According to operation;
The difference for calculating the power consumption threshold value and second power consumption obtains the target power consumption.
Optionally, if first operational order is used to indicate the operation that the solid state hard disk read data, and institute Stating the second operational order includes being used to indicate the solid state hard disk write data or wipe the operation of data, then suspends described the The operation of two operational orders instruction write data or wipe data;
The target power consumption for obtaining the solid state hard disk includes:
Obtain the corresponding third power consumption of operation of the second operational order instruction write data or wipe data;
The difference for calculating second power consumption and the third power consumption obtains the 4th power consumption;
The difference for calculating the power consumption threshold value and the 4th power consumption obtains the target power consumption.
Optionally, obtaining corresponding first power consumption of the first operational order includes:
Obtain basic power consumption list, the basic power consumption list include the solid state hard disk carry out reading data, write data with And the corresponding basic power consumption of erasing data institute;
Determine that basic power consumption corresponding with operation indicated by first operational order is from the basic power consumption list First power consumption.
Optionally, the method also includes:
The target power consumption is stored in registers.
In the present embodiment, it is dynamic that processor 303 can specifically execute all or part performed in embodiment illustrated in fig. 1 Make, specific details are not described herein again.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, read-only Memory), random access memory (RAM, random access memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of power consumption control method of solid state hard disk characterized by comprising
The target power consumption of the solid state hard disk is obtained, the target power consumption is the remaining function that the solid state hard disk allows to be operated Consumption;
Corresponding first power consumption of the first operational order is obtained, first operational order is used to indicate the solid state hard disk and is read Data write data or wipe the operation of data;
If first power consumption is less than the target power consumption, first operational order is executed.
2. the method according to claim 1, wherein the target power consumption for obtaining the solid state hard disk includes:
The power consumption threshold value of the solid state hard disk is obtained, the power consumption threshold value is the maximum power dissipation that the solid state hard disk allows;
The second power consumption of the solid state hard disk is obtained, when second power consumption includes that the solid state hard disk executes the second operational order The power consumption of occupancy, second operational order are used to indicate the solid state hard disk and carry out reading data, write data or wipe data Operation;
The difference for calculating the power consumption threshold value and second power consumption obtains the target power consumption.
3. according to the method described in claim 2, it is characterized in that, if first operational order to be used to indicate the solid-state hard Disk read the operation of data, and second operational order includes being used to indicate the solid state hard disk to carry out writing data or wiping Except the operation of data, then suspend the operation of the second operational order instruction write data or wipe data;
The target power consumption for obtaining the solid state hard disk includes:
Obtain the corresponding third power consumption of operation of the second operational order instruction write data or wipe data;
The difference for calculating second power consumption and the third power consumption obtains the 4th power consumption;
The difference for calculating the power consumption threshold value and the 4th power consumption obtains the target power consumption.
4. according to the method in any one of claims 1 to 3, which is characterized in that obtain the first operational order corresponding the One power consumption includes:
Basic power consumption list is obtained, the basic power consumption list includes that the solid state hard disk carries out reading data, writes data and wiping Except the corresponding basic power consumption of data institute;
Determine that basic power consumption corresponding with operation indicated by first operational order is first from the basic power consumption list Power consumption.
5. according to the method in any one of claims 1 to 3, which is characterized in that the method also includes:
The target power consumption is stored in registers.
6. a kind of solid state hard disk characterized by comprising
First acquisition unit, for obtaining the target power consumption of the solid state hard disk, the target power consumption is permitted for the solid state hard disk Permitted the remaining power consumption operated;
Second acquisition unit, for obtaining corresponding first power consumption of the first operational order, first operational order is used to indicate The solid state hard disk carries out reading data, writes data or the operation of erasing data;
Execution unit executes first operational order if being less than the target power consumption for first power consumption.
7. solid state hard disk according to claim 6, which is characterized in that the first acquisition unit is specifically used for:
The power consumption threshold value of the solid state hard disk is obtained, the power consumption threshold value is the maximum power dissipation that the solid state hard disk allows;
The second power consumption of the solid state hard disk is obtained, when second power consumption includes that the solid state hard disk executes the second operational order The power consumption of occupancy, second operational order are used to indicate the solid state hard disk and carry out reading data, write data or wipe data Operation;
The difference for calculating the power consumption threshold value and second power consumption obtains the target power consumption.
8. solid state hard disk according to claim 7, which is characterized in that the execution unit is also used to:
If first operational order is used to indicate the operation that the solid state hard disk read data, and second operation refers to Enabling includes being used to indicate the solid state hard disk to carry out writing data or wipe the operation of data, then suspends second operational order and refer to The operation write data or wipe data shown;
The first acquisition unit is specifically used for:
Obtain the corresponding third power consumption of operation of the second operational order instruction write data or wipe data;
The difference for calculating second power consumption and the third power consumption obtains the 4th power consumption;
The difference for calculating the power consumption threshold value and the 4th power consumption obtains the target power consumption.
9. the solid state hard disk according to any one of claim 6 to 8, which is characterized in that the second acquisition unit is specific For:
Basic power consumption list is obtained, the basic power consumption list includes that the solid state hard disk carries out reading data, writes data and wiping Except the corresponding basic power consumption of data institute;
Determine that basic power consumption corresponding with operation indicated by first operational order is first from the basic power consumption list Power consumption.
10. the solid state hard disk according to any one of claim 6 to 8, which is characterized in that the solid state hard disk further includes depositing Storage unit, for the target power consumption to be stored in registers.
CN201811387483.XA 2018-11-20 2018-11-20 Power consumption control method of solid state disk and solid state disk Active CN109542351B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811387483.XA CN109542351B (en) 2018-11-20 2018-11-20 Power consumption control method of solid state disk and solid state disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811387483.XA CN109542351B (en) 2018-11-20 2018-11-20 Power consumption control method of solid state disk and solid state disk

Publications (2)

Publication Number Publication Date
CN109542351A true CN109542351A (en) 2019-03-29
CN109542351B CN109542351B (en) 2022-03-08

Family

ID=65848903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811387483.XA Active CN109542351B (en) 2018-11-20 2018-11-20 Power consumption control method of solid state disk and solid state disk

Country Status (1)

Country Link
CN (1) CN109542351B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026328A (en) * 2019-11-13 2020-04-17 华为技术有限公司 Energy consumption control method and device and storage system
CN113934286A (en) * 2021-09-13 2022-01-14 深圳市硅格半导体有限公司 Power consumption control method, device, equipment and computer program product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060158765A1 (en) * 2005-01-18 2006-07-20 Teac Aerospace Technologies Power management in operating recording media
CN102063263A (en) * 2009-11-18 2011-05-18 成都市华为赛门铁克科技有限公司 Method, device and system for responding read-write operation request of host computer by solid state disk
CN106774786A (en) * 2016-11-22 2017-05-31 珠海市魅族科技有限公司 A kind of power consumption control method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060158765A1 (en) * 2005-01-18 2006-07-20 Teac Aerospace Technologies Power management in operating recording media
CN102063263A (en) * 2009-11-18 2011-05-18 成都市华为赛门铁克科技有限公司 Method, device and system for responding read-write operation request of host computer by solid state disk
CN106774786A (en) * 2016-11-22 2017-05-31 珠海市魅族科技有限公司 A kind of power consumption control method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026328A (en) * 2019-11-13 2020-04-17 华为技术有限公司 Energy consumption control method and device and storage system
CN113934286A (en) * 2021-09-13 2022-01-14 深圳市硅格半导体有限公司 Power consumption control method, device, equipment and computer program product

Also Published As

Publication number Publication date
CN109542351B (en) 2022-03-08

Similar Documents

Publication Publication Date Title
CN103810020B (en) Virtual machine elastic telescopic method and device
CN111176727A (en) Computing device and computing method
US9354826B2 (en) Capacity expansion method and device
CN105260128A (en) Method for writing data in storage device and storage device
CN102810050A (en) Log data writing method and log system
CN108710583A (en) Management method, device, computer equipment and the medium in SSD write buffers area
CN103412822A (en) Operation method of non-volatile RAM, data operation method and relevant device
CN105335309A (en) Data transmission method and computer
CN109542351A (en) A kind of power consumption control method and solid state hard disk of solid state hard disk
CN106489132A (en) The method of read-write data, device, storage device and computer system
CN108304261B (en) Job scheduling method and device based on 6D-Torus network
CN105242955A (en) Virtual machine disk input and output scheduling method and system
CN104252416A (en) Accelerator and data processing method
CN103514140A (en) Reconfiguration controller for massively transmitting configuration information in reconfigurable system
CN116185636A (en) Memory management method, device, equipment and storage medium
CN104391564A (en) Power consumption control method and device
CN104025198B (en) Phase transition storage and switch(PCMS)Wrongly write error detection
KR20220134433A (en) Ground pin for device-to-device connection
CN114201727A (en) Data processing method, processor, artificial intelligence chip and electronic equipment
CN111260070B (en) Operation method, device and related product
CN102782661B (en) Data storage system and method
CN111260046B (en) Operation method, device and related product
CN111258641B (en) Operation method, device and related product
CN104536800A (en) Virtual machine placement method and device
CN105446663A (en) Data processing method and electronic device

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