Summary of the invention
In view of this, the object of the present invention is to provide a kind of energy-conservation memory device, this equipment can reduce power consumption.
Another object of the present invention is to provide a kind of power-economizing method of memory device, this method can reduce the power consumption of memory device.
For achieving the above object, technical scheme of the present invention specifically is achieved in that
A kind of energy-conservation memory device, this equipment comprises: central processor CPU, storage control card, hard disk, power supply, fan and energy-saving distribution module; Described energy-saving distribution module comprises instruction scheduling unit, Energy Saving Control unit and time scheduling unit;
Described energy-saving distribution module links to each other respectively with described CPU, storage control card and power supply, and after the work order that receives outside input, the output services steering order is to CPU, storage control card and power supply; Described energy-saving distribution module receives outside input corresponding with described work order finish instruction after, the output Energy Saving Control instructs to CPU, storage control card and power supply;
Described instruction scheduling unit links to each other with the Energy Saving Control unit, and after receiving described work order, output first starts duty and instructs to the Energy Saving Control unit; Receive described finish instruction after, output first starts power save mode and instructs to the Energy Saving Control unit;
Described time scheduling unit links to each other with described Energy Saving Control unit, generates second according to the default energy-saving run cycle and starts duty instruction or second and start the power save mode instruction and send to described Energy Saving Control unit;
Described Energy Saving Control unit links to each other respectively with power supply with CPU, storage control card, and described Energy Saving Control unit receives the second startup duty instruction and then exports described work steering order before not receiving the first startup duty instruction; Judge that when receiving the second startup power save mode instruction self whether having received first starts the duty instruction, if receive the first startup duty instruction, then exports described Energy Saving Control instruction; Start the duty instruction but do not receive first and start the power save mode instruction if receive first, export described work steering order, until receive first start the power save mode instruction after, export described Energy Saving Control instruction;
Described CPU runs on frequency of operation according to the work steering order, and instruction reduces frequency of operation according to Energy Saving Control;
Described storage control card according to work steering order output voltage to hard disk, in running order with the control hard disk; Described storage control card instructs according to Energy Saving Control and cuts off the voltage that exports hard disk to, is in power save mode with the control hard disk;
Described power supply improves the voltage that exports fan to according to the work steering order, and is in running order with the control fan; Instruction reduces the voltage that exports fan to described power supply according to Energy Saving Control, is in power save mode with the control fan.
In the said equipment, described Energy Saving Control unit at first sends described Energy Saving Control instruction when described memory device starts.
A kind of power-economizing method of memory device, this method comprises:
Memory device periodically generates second according to the energy-saving run cycle that sets in advance and starts the duty instruction or the second startup power save mode instruction; After described memory device receives the work order of outside input, generate first and start the duty instruction; Described memory device receives outside input corresponding with described work order finish instruction after, generate first and start the power save mode instruction;
Described memory device has generated the second startup duty instruction as if judging before generation first starts the duty instruction, then export CPU, storage control card and the power supply of described work steering order to inside; Judge that when generating the second startup power save mode instruction self whether having generated first starts the duty instruction, if judge that not generating first starts the duty instruction, then export the Energy Saving Control instruction to inner CPU, storage control card and power supply, if judge to have generated the first startup duty instruction but do not generated first and start the power save mode instruction, then export described work steering order to inner CPU, storage control card and power supply, after generating the first startup power save mode instruction, export described Energy Saving Control instruction to inner CPU, storage control card and power supply;
Described CPU runs on frequency of operation when receiving described work steering order, reduces frequency of operation when receiving described Energy Saving Control instruction;
When described storage control card received described work steering order, output voltage is to hard disk, and was in running order with the control hard disk; When receiving the instruction of described Energy Saving Control, cut off the voltage that exports hard disk to, be in power save mode with the control hard disk;
When described power supply receives described work steering order, improve the voltage that exports fan to, in running order with the control fan; When receiving the instruction of described Energy Saving Control, reduce the voltage that exports fan to, be in power save mode with the control fan.
Preferably, this method further comprises:
When described memory device starts, at first generate and send the Energy Saving Control instruction to described CPU, described storage control card and described power supply.
As seen from the above technical solutions, the power-economizing method of energy-conservation memory device provided by the invention and memory device, can regulate the ruuning situation of the main power consumption parts of memory device inside according to the instruction that is used for back up or restore of outside input, when not needing to carry out back up or restore, promptly receive inner main power consumption parts of control such as CPU when finishing instruction, hard disk, fans etc. enter power save mode, and when needs carry out back up or restore, inner main power consumption parts of control such as CPU when promptly receiving work order, hard disk, fans etc. enter normal operating conditions, it is in running order that memory device need not whole day, make the overall power consumption of memory device significantly reduce, saved resource, and when realization is energy-conservation, can not influence the performance of memory device.
Embodiment
For make purpose of the present invention, technical scheme, and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
The present invention can regulate memory device according to the instruction that is used for back up or restore of outside input to the ruuning situation of the main power consumption parts of memory device inside, when not needing to carry out back up or restore, promptly receive and finish the inner main power consumption parts of when instruction control such as CPU, hard disk, fan etc. and enter power save mode, and when needs carried out back up or restore, inner main power consumption parts of control such as CPU, hard disk, fan etc. entered normal operating conditions when promptly receiving work order.
Fig. 2 is the structural representation of memory device embodiment one of the present invention.Now in conjunction with Fig. 2, the memory device of the embodiment of the invention one is described, specific as follows:
Memory device of the present invention comprises energy-saving distribution module 21, CPU22, storage control card 23, hard disk 24, power supply 25 and fan 26.
Energy-saving distribution module 21 is connected respectively with power supply 25 with CPU22, storage control card 23; Energy-saving distribution module 21 is after the work order that receives outside input, and the output services steering order is to CPU22, storage control card 23 and power supply 25; Energy-saving distribution module 21 receive outside input corresponding with work order finish instruction after, the output Energy Saving Control instructs to CPU22, storage control card 23 and power supply 25.
CPU22 runs on normal working frequency according to the work steering order, and instruction reduces frequency of operation according to Energy Saving Control.CPU22 switches between two kinds of running frequencies according to different steering orders, can effectively reduce the power consumption of CPU22, can not influence work efficiency and the performance of CPU22 simultaneously.
The hard disk 24 that storage control card 23 extremely is connected with storage control card 23 according to work steering order output voltage, in running order with control hard disk 24; Storage control card 23 instructs according to Energy Saving Control and cuts off the voltage that exports hard disk 24 to, is in power save mode with control hard disk 24.Storage control card 23 1 ends connect hard disk 24, and the other end is a data transmission interface.The duty of hard disk 24 is full-speed operation, and the power save mode of hard disk 24 is for shutting down.Whether the voltage that hard disk 24 is exported according to storage control card 23 is loaded on the hard disk 24 and switches in working order and between power save mode, can effectively reduce the power consumption of hard disk 24, can not influence the work efficiency and the performance of hard disk 24 simultaneously.
Power supply 25 improves the voltage that exports fan 26 to according to the work steering order, and is in running order with control fan 26; Instruction reduces the voltage that exports fan 26 to power supply 25 according to Energy Saving Control, is in power save mode with control fan 26.The duty of fan 26 is full-speed operation, and the power save mode of fan 26 is a low-speed running.
Wherein, energy-saving distribution module 21 comprises instruction scheduling unit 211 and Energy Saving Control unit 212.Instruction scheduling unit 211 links to each other with Energy Saving Control unit 212; Energy Saving Control unit 212 and instruction scheduling unit 211, CPU22, storage control card 23 respectively is connected with power supply 25.
Instruction scheduling unit 211 is after the work order that receives outside input, and output starts duty and instructs to Energy Saving Control unit 212; Receive outside input corresponding with work order finish instruction after, output starts power save mode and instructs to Energy Saving Control unit 212.When instruction scheduling unit 211 starts the duty instruction in output, export the content of the work order of the outside input that receives to Energy Saving Control unit 212.
Energy Saving Control unit 212 is after receiving the instruction of startup duty, and the output services steering order is to CPU22, storage control card 23 and power supply 25; Energy Saving Control unit 212 is after receiving the startup power save mode instruction corresponding with starting the duty instruction, and the output Energy Saving Control instructs to CPU22, storage control card 23 and power supply 25.Energy Saving Control unit 212 exports the content of the work order that receives to CPU22 in the output services steering order.
Energy-saving distribution module 21 is in the output services steering order, the content that the operate outside that receives is instructed exports CPU22 to, the instruction that is used for back up or restore of the outside input that is about to receive exports CPU22 to, so that CPU22 control store control card 23 is realized data backup or recovery.CPU22 control store control card 23 realizes that the content of data backup or recovery is a prior art, does not repeat them here.
Fig. 4 is the method flow diagram of storage means embodiment one of the present invention.Now in conjunction with Fig. 4, the storage means of the embodiment of the invention one is described, specific as follows:
Step 401: run on power save mode;
After the CPU22 of memory device, storage control card 23 and power supply 25 received the Energy Saving Control instruction, CPU22 reduced operating frequency according to the Energy Saving Control instruction that receives; Storage control card 23 is cut to the voltage that hard disk 24 provides according to the Energy Saving Control instruction that receives, and shuts down with control hard disk 24; Power supply 25 is reduced to the voltage that fan 26 provides according to the Energy Saving Control instruction that receives, and reduces rotating speed with control fan 26.
Can be provided with memory device, so that memory device at first generates the Energy Saving Control instruction when starting, and export Energy Saving Control instruction to CPU22, storage control card 23 and power supply 25, so that CPU22, the hard disk 24 that is connected with storage control card 23 reach the fan that is connected with power supply 25 and run on power save mode.
Step 402: judging whether to receive the work order of outside input, is execution in step 403 then, otherwise execution in step 401;
Memory device judges whether to receive the work order of outside input; Memory device after the work order that receives outside input, execution in step 403; Memory device when not receiving the work order of outside input, execution in step 401.
Step 403: output services steering order;
Memory device output services steering order is to its inner CPU22, storage control card 23 and power supply 25.
Step 404: run on duty;
The CPU22 of memory device inside runs on normal frequency of operation when receiving the work steering order; When the storage control card 23 of memory device inside received the work steering order, output voltage was to connected hard disk 24, and hard disk 24 is in running order; When the power supply 25 of memory device inside receives the work steering order, improve the voltage of output fan 26, fan 26 is in running order.
Step 405: judging whether to receive the instruction of finishing of outside input, is execution in step 406 then, otherwise execution in step 405;
Memory device judges whether to receive the instruction of finishing of outside input; Memory device receive outside input finish instruction after, execution in step 406; Otherwise execution in step 405, memory device are waited for the instruction of finishing of outside input.
Step 406: the instruction of output Energy Saving Control, execution in step 401 afterwards;
Memory device output Energy Saving Control instructs to CPU22, storage control card 23 and power supply 25; Execution in step 401 afterwards.
In the storage means of present embodiment, memory device according to said method circulation execution in step 401 to step 406.
Present embodiment is memory device only carries out energy-conservation adjusting according to external command embodiment.And in actual applications, also in running order and application that when work seldom night, enter power save mode automatically just like the peak period of working by day, for this reason, the present invention also provides embodiment two, can be in advance for memory device be provided with the energy-conservation cycle with realize memory device in working order and the periodicity between the power save mode change automatically, can carry out the conversion of duty and power save mode according to external command at any time again simultaneously.
Fig. 3 is the structural representation of memory device embodiment two of the present invention.Now in conjunction with Fig. 3, the memory device of the embodiment of the invention two is described, specific as follows:
Memory device of the present invention comprises energy-saving distribution module 31, CPU32, storage control card 33, hard disk 34, power supply 35 and fan 36.
The annexation of CPU32 in the present embodiment, storage control card 33, hard disk 34, power supply 35 and 36 in fan and function are identical with embodiment's one, do not repeat them here.
The energy-saving run cycle in the present embodiment comprises energy-conservation time period and working time section; The energy-conservation time period is the time span that starts in the one-period between moment to the moment that starts duty of power save mode; The working time window is the time span except that the energy-conservation time period in the one-period.
Energy-saving distribution module 31 links to each other respectively with power supply 35 with CPU32, storage control card 33.Energy-saving distribution module 31 periodically produces work steering order or Energy Saving Control instruction according to the energy-saving run cycle that sets in advance.Energy-saving distribution module 31 is exported its work steering order that produces according to the energy-saving run cycle to CPU32, storage control card 33 and power supply 35 before the work order that receives outside input; Energy-saving distribution module 31, if judge the work order that self does not receive outside input, is then exported Energy Saving Control and is instructed to CPU32, storage control card 33 and power supply 35 before its Energy Saving Control instruction that produces according to the energy-saving run cycle in output; If judge the instruction of finishing that self has received the outside work order of importing and do not received outside input, then the output services steering order is to CPU32, storage control card 33 and power supply 35, just exports Energy Saving Control after the instruction and instructs to CPU32, storage control card 33 and power supply until receiving finishing of outside input.Energy-saving distribution module 31 is ignored it according to work steering order or Energy Saving Control instruction that the energy-saving run cycle produces after the work order that receives outside input, the output services steering order is to CPU32, storage control card 33 and power supply 35; Receive outside input finish instruction after, the output Energy Saving Control instructs to CPU32, storage control card 33 and power supply 35; Afterwards, energy-saving distribution module 31 produces work steering order or Energy Saving Control instruction according to the energy-saving run cycle, and exports CPU32, storage control card 33 and power supply to.
CPU32 runs on frequency of operation according to the work steering order, and instruction reduces frequency of operation according to Energy Saving Control.CPU32 switches between two kinds of running frequencies according to different steering orders, can effectively reduce the power consumption of CPU32, can not influence work efficiency and the performance of CPU32 simultaneously.
Storage control card 33 according to work steering order output voltage to hard disk 34, in running order with control hard disk 34; Storage control card 33 instructs according to Energy Saving Control and cuts off the voltage that exports hard disk 34 to, is in power save mode with control hard disk 34.Storage control card 33 1 ends connect hard disk 34, and the other end is a data transmission interface.The duty of hard disk 34 is full-speed operation, and the power save mode of hard disk 34 is for shutting down.Whether the voltage that hard disk 34 is exported according to storage control card 33 is loaded on the hard disk 34 and switches in working order and between power save mode, can effectively reduce the power consumption of hard disk 34, can not influence the work efficiency and the performance of hard disk 34 simultaneously.
Power supply 35 improves the voltage that exports fan 36 to according to the work steering order, and is in running order with control fan 36; Instruction reduces the voltage that exports fan 36 to power supply 35 according to Energy Saving Control, is in power save mode with control fan 36.The duty of fan 36 is full-speed operation, and the power save mode of fan 36 is a low-speed running.
Wherein, energy-saving distribution module 31 comprises time scheduling unit 311, instruction scheduling unit 312 and Energy Saving Control unit 313.Time scheduling unit 311 links to each other with Energy Saving Control unit 313; Instruction scheduling unit 312 links to each other with Energy Saving Control unit 313; Energy Saving Control unit 313 links to each other respectively with time scheduling unit 311, instruction scheduling unit 312, CPU32, storage control card 33 and power supply 35.
Time scheduling unit 311 generates second according to energy-saving run cycle of setting in advance and starts duty instruction or second and start the power save mode instruction, and starts duty instruction or second with second and start the power save mode instruction and export Energy Saving Control unit 313 to.Particularly, time scheduling unit 311 produces and exports the second startup duty and instruct to Energy Saving Control unit 313 when determining arrival working time hatch section; Time scheduling unit 311 produces and exports second and start power save mode and instruct to Energy Saving Control unit 313 when determine arriving energy-conservation time period.In the embodiments of the invention, when time scheduling unit 311 produces and exports the second startup duty instruction, can instruct to Energy Saving Control unit 313 according to setting in advance output services, just time scheduling unit 311 can instruct to Energy Saving Control unit 313 according to setting in advance output backup instruction or recovery.
Instruction scheduling unit 312 is after the work order that receives outside input, and output starts first duty and instructs to Energy Saving Control unit 313; Instruction scheduling unit 312 receive corresponding with the work order of outside input finish instruction after, output first starts power save mode and instructs to Energy Saving Control unit 313.When instruction scheduling unit 312 starts the duty instruction in output first, export the content of the work order of the outside input that receives to Energy Saving Control unit 313.The content of the work order of outside input is a back up or restore.
Energy Saving Control unit 313 is after receiving the first startup duty instruction, and the output services steering order is to CPU32, storage control card 33 and power supply 35; Energy Saving Control unit 313 is after receiving the first startup power save mode instruction, and the output Energy Saving Control instructs to CPU32, storage control card 33 and power supply 35.Energy Saving Control unit 313 exports the content of the work order that receives to CPU32 in the output services steering order.
Energy Saving Control unit 313 receive first start the duty instruction before, receive second and start duty and instruct then the output services steering order to CPU32, storage control card 33 and power supply 35; Energy Saving Control unit 313 is after receiving the second startup power save mode instruction, if judge that himself not receiving first starts the duty instruction, then exporting Energy Saving Control instructs to CPU32, storage control card 33 and power supply 35, if judge that himself having received first starts the duty instruction and do not receive the first startup power save mode instruction, then the output services steering order is just exported Energy Saving Control and is instructed to CPU32, storage control card 33 and power supply 35 after receiving the first startup power save mode instruction.
Energy-saving distribution module 31 is when the output services steering order, export the content of the interior work order that perhaps himself produces of the operate outside that receives instruction to CPU32, the instruction that is used for back up or restore of the outside input that is about to receive or the back up or restore instruction that himself produces export CPU32 to, so that CPU32 control store control card 33 is realized data backup or recovery.CPU32 control store control card 33 realizes that the content of data backup or recovery is a prior art, does not repeat them here.
In the present embodiment, Energy Saving Control unit 313 is judging that self having received first starts the duty instruction, but when not receiving the first startup power save mode instruction, ignore the second startup power save mode instruction that receives, this ignores second operation that starts the power save mode instruction that receives is in order to guarantee that memory device can keep peak performance all the time when need of work is arranged, and can be because of making memory device performance under the situation that has work carrying out descend according to the second Energy Saving Control instruction that starts power save mode instruction generation, in fact, if for the insensitive application of performance, this judgement also can not done in Energy Saving Control unit 313, carries out subsequent operation as long as the startup duty that basis receives instruction or startup power save mode instruct.
Fig. 5 is the method flow diagram of storage means embodiment two of the present invention.Now in conjunction with Fig. 5, the storage means of the embodiment of the invention two is described, specific as follows:
Step 501: set in advance the energy-saving run cycle;
The energy-saving run cycle is set in memory device as required in advance; The energy-saving run cycle comprises energy-conservation time period and working time section; The energy-conservation time period is to send in the one-period to start the power save mode instruction and send the time span that starts between the duty instruction; The working time section is the time span except that the energy-conservation time period in the one-period.
Step 502: run on power save mode;
The CPU32 of memory device inside reduces frequency of operation according to the Energy Saving Control instruction that receives; Storage control card 33 cuts off the voltage that offers hard disk 34 according to the Energy Saving Control instruction that receives, and runs on power save mode with control hard disk 34; Power supply 35 reduces the voltage that exports fan 36 to according to the Energy Saving Control instruction that receives, and is in power save mode with control fan 36.
Can be provided with memory device, so that memory device at first generates the Energy Saving Control instruction when starting, and export Energy Saving Control instruction to CPU32, storage control card 33 and power supply 35, so that CPU32, the hard disk 34 that is connected with storage control card 33 reach the fan that is connected with power supply 35 and run on power save mode.
Step 503: judge whether to receive the work order of outside input, if execution in step 508 then, otherwise execution in step 504;
Memory device judges whether to receive the work order of outside input, if execution in step 508 then, otherwise execution in step 504.
Step 504: produce the work steering order according to the energy-saving run cycle and also export;
Memory device is according to the working time section of energy-saving run in the cycle of its setting, periodically produce second and start the duty instruction, according to the second startup duty instruction generation work steering order, and the work steering order that will periodically produce exports CPU32 to, stores control card 33 and power supply 35.
Step 505: run on duty;
The CPU32 of memory device inside runs on frequency of operation when receiving the work steering order; When the storage control card 33 of memory device inside received the work steering order, output voltage was to hard disk 34, and hard disk 34 is in running order; When the power supply 35 of memory device inside receives the work steering order, improve the voltage that exports fan 36 to, fan 36 is in running order.
Step 506: produce Energy Saving Control according to the energy-saving run cycle and instruct;
Memory device periodically produced second and starts the power save mode instruction according to the energy-conservation time period of energy-saving run in the cycle of its setting, started the power save mode instruction according to second and generated the Energy Saving Control instruction.
Step 507: judging whether to receive the work order of outside input, is execution in step 510 then, otherwise execution in step 511;
Memory device judges whether it receives the work order of outside input, after determining to have received the work order of outside input, and execution in step 510; Memory device is in the work steering order that does not receive outside input, and then execution in step 511.
Step 508: output services steering order;
The operate outside instruction that the memory device basis receives generates first and starts the duty instruction, and according to the first startup duty instruction generation work steering order, the output services steering order is to CPU32, storage control card 33 and power supply 35.
Step 509: run on duty:
The CPU32 of memory device inside runs on frequency of operation when receiving the work steering order; When the storage control card 33 of memory device inside received the work steering order, output voltage was to hard disk 34, and hard disk 34 is in running order; When the power supply 35 of memory device inside receives the work steering order, improve the voltage that exports fan 36 to, fan 36 is in running order.
Step 510: judging whether to receive the instruction of finishing of outside input, is execution in step 511 then, otherwise execution in step 510;
Memory device judges whether to receive the instruction of finishing of outside input, is execution in step 511 then; Otherwise execution in step 510, memory device are waited for outside input corresponding with work order finishes instruction.
Memory device is when waiting for that finishing of outside input instructed, CPU32, hard disk 34 and fan 36 in the memory device are in running order, at this moment, the exportable work steering order of memory device is to CPU32, storage control card 33 and power supply 35, perhaps memory device is not exported steering order to CPU32, storage control card 33 and power supply 35, and CPU32, hard disk 34 and fan 35 still just run on duty.
Step 511: the instruction of output Energy Saving Control, execution in step 502 afterwards;
Memory device can will export CUP32, storage control card 33 and power supply 35 to according to the second Energy Saving Control instruction that starts power save mode instruction generation, also can be according to the instruction of finishing of the outside input that receives, generate first and start the power save mode instruction, to export CUP32, storage control card 33 and power supply 35 to according to the first Energy Saving Control instruction that starts power save mode instruction generation, execution in step 502 afterwards.
In the storage means of present embodiment, memory device according to said method circulation execution in step 502 to step 511.
In the above-mentioned preferred embodiment of the present invention, CPU can dynamically change the frequency of operation of moving for supporting the central processing unit of converter technique in operational process, and how CPU is prior art according to the content of steering order change frequency of operation, does not repeat them here; Whether the storage control card can by loading on the rotating speed that hard disk is controlled hard disk with voltage, and the content how the storage control card controls the rotation speed of hard disk is a prior art, does not repeat them here; The content that the voltage that power supply exports fan to by change changes rotation speed of the fan is a prior art, does not repeat them here.
In sum, more than be preferred embodiment of the present invention only, be not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.