CN110442222A - Hard disk electrification control method and device - Google Patents
Hard disk electrification control method and device Download PDFInfo
- Publication number
- CN110442222A CN110442222A CN201910612810.5A CN201910612810A CN110442222A CN 110442222 A CN110442222 A CN 110442222A CN 201910612810 A CN201910612810 A CN 201910612810A CN 110442222 A CN110442222 A CN 110442222A
- Authority
- CN
- China
- Prior art keywords
- hard disk
- power supply
- electric current
- current
- quota
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/28—Supervision thereof, e.g. detecting power-supply failure by out of limits supervision
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
Abstract
The embodiment of the present application provides a kind of hard disk electrification control method and device, difference is asked to obtain quota electric current surplus according to peak value of the power supply real-time current for being supplied to hard disk of the quota electric current for being supplied to hard disk of power supply and power supply in preset duration, so that it is determined that the remaining power supply capacity of power supply, the newly-increased destination number for powering on hard disk is determined according to quota electric current surplus and single hard disk maximum starting current, is powered on to hard disk is not powered on.Scheme provided by the embodiments of the present application makes full use of the power supply capacity of power supply; destination number is determined according to quota electric current surplus and then is started to hard disk is not powered on; avoid power supply overcurrent protection or damage caused by the rush of current of hard disk startup; in the limited situation of power supply capacity of power supply; hard disk total starting time can be shortened, improve the efficiency of power supply.
Description
Technical field
This application involves technical field of memory, and in particular, to a kind of hard disk electrification control method and device.
Background technique
Being continuously increased for storage service amount is higher and higher to the capacity requirement of storage equipment, can be improved and deposits there are two types of method
Capacity is stored up, one is the memory capacity for improving single disk, another kind is increase hard disk number, such as hard disk array is arranged, and nothing
By which kind of scheme, the increase for the power consumption that all hard disk can be brought total.
Since electric current of hard disk during electrifying startup is 2 to 3 times of electric current when working normally, if all is hard
Disk while electrifying startup, generated huge current flow may result in the triggering overcurrent protection of hard disk power supply, if without limitation
Raising hard disk power supply output current capacity, will cause complete machine higher cost.
The prior art generally can be grouped hard disk to power on or be delayed and power on, and the electric current for keeping hard disk total is small as far as possible, but
The time that will lead to hard disk array start-up course in this way extends, the efficiency decline of hard disk power supply.
Summary of the invention
The application's is designed to provide a kind of hard disk electrification control method, device, electronic equipment and storage medium, to change
The problems such as it is long to be apt to the existing hard disk electrifying startup time, the low efficiency of hard disk power supply.
To achieve the goals above, the embodiment of the present application the technical solution adopted is as follows:
In a first aspect, the embodiment of the present application provides a kind of hard disk electrification control method, comprising: when power supply real-time current is small
When quota electric current, peak value of the power supply real-time current in preset duration is obtained, wherein power supply real-time current mentions for power supply
All real-time currents for having powered on hard disk are supplied, quota electric current is the maximum electricity that power supply is supplied to that all hard disks are able to use
Stream;Difference is asked to obtain quota electric current surplus according to the peak value of quota electric current and power supply real-time current in preset duration;According to quota
Electric current surplus and single hard disk maximum starting current determine the newly-increased destination number for powering on hard disk;The newly-increased starting electricity for powering on hard disk
The sum of stream is less than or equal to quota electric current surplus, is then powered on according to destination number to not powering on hard disk.
Second aspect, the embodiment of the present application provide controller for electric consumption on a kind of hard disk, and controller for electric consumption includes on hard disk
Module, processing module and control module are obtained, module is obtained and is used to obtain power supply real-time current, and when power supply real-time current is small
When quota electric current, peak value of the power supply real-time current in preset duration is obtained, wherein quota electric current is supplied to for power supply
The maximum current that all hard disks are able to use;Processing module is used for according to quota electric current and power supply real-time current in preset duration
Peak value ask difference to obtain quota electric current surplus;Newly-increased power on is determined according to quota electric current surplus and single hard disk maximum starting current
The destination number of hard disk;Newly-increased the sum of the starting current of hard disk that powers on is less than or equal to quota electric current surplus;Control module is used for
It is powered on according to destination number to not powering on hard disk.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, and electronic equipment includes processor and storage medium,
Storage medium is stored with the executable machine readable instructions of processor, and when electronic equipment operation, processor executes machine readable
Instruction, the step of to execute hard disk electrification control method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer-readable storage medium
The step of being stored with computer program in matter, hard disk electrification control method executed when which is run by processor.
The application's has the technical effect that
Hard disk electrification control method, device, electronic equipment and storage medium provided by the embodiments of the present application, by power supply
When real-time current is less than quota electric current, difference is asked to be matched according to the peak value of quota electric current and power supply real-time current in preset duration
Volume electric current surplus determines the remaining power supply capacity of power supply, according to quota electric current surplus and single hard disk maximum starting current
It determines the newly-increased destination number for powering on hard disk, that is, the number for the hard disk that the remaining power supply capacity of power supply can load has been determined
Amount is powered on according to destination number to not powering on hard disk.The power supply capacity of power supply is made full use of, according to quota electric current
Surplus determines then destination number to hard disk progress electrifying startup is not powered on, avoids the rush of current of hard disk startup from causing power supply electricity
Source overcurrent protection or damage shorten hard disk total starting time in the limited situation of power supply capacity of power supply, improve hard
The efficiency of disk power supply.
Other feature and advantage of the embodiment of the present application will illustrate in subsequent specification, also, partly from specification
In become apparent, or by implement understanding of the embodiment of the present invention.The objectives and other advantages of the invention can be by institute
Specifically noted structure is achieved and obtained in specification, claims and the attached drawing write.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the schematic block diagram of electric control system on hard disk provided by the embodiments of the present application.
Fig. 2 shows the schematic block diagrams of electric control system on another hard disk provided by the embodiments of the present application.
Fig. 3 shows the schematic block diagram of electric control system on another hard disk provided by the embodiments of the present application.
Fig. 4 shows the schematic block diagram of electric control system on another hard disk provided by the embodiments of the present application.
Fig. 5 shows the flow diagram of hard disk electrification control method provided by the embodiments of the present application.
Fig. 6 shows the flow diagram of another hard disk electrification control method provided by the embodiments of the present application.
Fig. 7 shows the flow diagram of another hard disk electrification control method provided by the embodiments of the present application.
Fig. 8 shows the flow diagram of another hard disk electrification control method provided by the embodiments of the present application.
Fig. 9 shows the flow diagram of another hard disk electrification control method provided by the embodiments of the present application.
Figure 10 shows the flow diagram of another hard disk electrification control method provided by the embodiments of the present application.
Figure 11 shows the flow diagram of another hard disk electrification control method provided by the embodiments of the present application.
Figure 12 shows the functional block diagram of controller for electric consumption on a kind of hard disk provided by the embodiments of the present application.
Figure 13 shows the functional block diagram of controller for electric consumption on another hard disk provided by the embodiments of the present application.
Figure 14 shows the schematic block diagram of electronic equipment provided by the embodiments of the present application.
Icon: controller for electric consumption on 200- hard disk;210- obtains module;211- first acquisition unit;212- second is obtained
Unit;213- third acquiring unit;220- processing module;230- control module;300- electronic equipment;310- processor;320-
Bus;330- memory.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is implemented
The component of example can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiments herein provided in the accompanying drawings is not intended to limit below claimed
Scope of the present application, but be merely representative of the selected embodiment of the application.Based on the embodiment in the application, this field is common
Technical staff's every other embodiment obtained without creative efforts belongs to the model of the application protection
It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile the application's
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.
The continuous development of information is so that storage service amount has an explosive growth, and storage service amount is continuously increased
It is higher and higher to the capacity requirement of storage equipment (e.g., hard disk).It is general at present that memory capacity is improved by two ways, first is that mentioning
It is high that hard disk array etc. individually is set second is that increasing the quantity of hard disk such as the memory capacity of hard disk.However no matter any scheme,
Total power consumption will be caused to increase, aggravate the burden of power supply.
Since starting current of hard disk during electrifying startup is 2 to 3 times of operating current when working normally, if institute
Electrifying startup, generated huge current flow may result in the power supply triggering overcurrent protection of hard disk to some hard disks simultaneously, such as
The unconfined current output capability for improving hard disk power supply of fruit, it will cause complete machine higher costs.Power supply electricity in order to prevent
Source overcurrent, while the cost of power supply is reduced, the prior art generally can be grouped hard disk to power on or be delayed and power on, and keep away
Exempt from all hard disks electrifying startup simultaneously, keeps total electric current during hard disk startup small as far as possible, prevent power supply from triggering overcurrent
Protection.
Although such Starting mode can effectively avoid power supply from triggering overcurrent, will also tend to lead to hard disk startup
Increased periods cause the efficiency of the power supply of hard disk to decline, and influence customer experience or even traffic affecting operates normally.
Electric control system on a kind of hard disk is present embodiments provided, refering to fig. 1, Fig. 1 shows the embodiment of the present application offer
Hard disk on electric control system schematic block diagram.
On hard disk provided by the embodiments of the present application electric control system include power supply, current detection circuit, switching circuit,
Hard disk detection circuit in place, processor and multiple hard disks.
Power supply is used to supply power supply to all hard disks.Wherein, each hard disk is correspondingly arranged on switching circuit, opens
Powered-down road is connect with processor, and switching circuit is supplied to the power supply of the hard disk for control power supply under the control of a processor
On-off, for example, the power supply of hard disk normally provide power supply supply in the case where, switching circuit closure, then hard disk powers on
Starting, if switching circuit disconnects, hard disk power-off.Wherein, switching circuit can be triode, N-type metal-oxide semiconductor (MOS)
(Negative channel-Metal-Oxide-Semiconductor, NMOS), P type metal oxide semiconductor
(Positive channel-Metal-Oxide-Semiconductor, PMOS), electrically programmable fuse (Electrically
Programmable fuses, eFuse) etc. the device with on-off action, but not limited to this, can also be other has phase
Same or identity function device.
It should be noted that each switching circuit can change its power supply for corresponding to hard disk under the control of a processor
On off operating mode, in order to keep attached drawing clear, attached drawing provided by the embodiments of the present application illustrates only all switching circuit conducts
The whole connection relationship with processor, does not show that the connection relationship of each switching circuit and processor.
Current detection circuit is connect with power supply, and to detect power supply real-time current, power supply real-time current is power supply electricity
Source is the real-time current that the power supply of all hard disks generates, i.e., all electric currents for having powered on hard disk and having consumed in real time.Current detection circuit is also
It is connect with processor, the power supply real-time current for will test is sent to processor to be handled.
Hard disk detection circuit in place is electrically connected with each hard disk, is also connect with processor, and hard disk detection circuit in place is used
In the state in place of detection hard disk, the state in place of hard disk refers to hard disk whether is equipped on the socket of backboard, is such as equipped with hard
Disk, if being not installed with hard disk, is not in place then to be in place.
Processor is used for the work of the state in place, starting state and power supply according to power supply real-time current, hard disk
The on-off of the control switches circuit such as starting current during parameter, hard disk startup, it is provided by the embodiments of the present application hard to realize
Disk electrification control method, processor can be central processing unit (Central Processing Unit, CPU), micro-control unit
(Microcontroller Unit, MCU), Complex Programmable Logic Devices (Complex Programmable Logic
Device, CPLD), the chips such as field programmable gate array (Field-Programmable Gate Array, FPGA), but not
It is limited to this, can also be other devices with same or similar function.
On the basis of Fig. 1, hard disk can also have multiple power supplies, can when hard disk has multiple power supplies
Be illustrated so that hard disk has 2 power supplies as an example below with different power supply modes, referring to Fig.2, Fig. 2 shows
The schematic block diagram of electric control system on another kind hard disk provided by the embodiments of the present application.
Hard disk is powered jointly by the first power supply and second source, each hard disk supplies simultaneously in the first power supply and second source
It is worked normally when electric, different power supplies corresponds to respective current detection circuit, for detecting the real-time current of power supply.
For example, the first power supply is correspondingly arranged the first current detection circuit, it is supplied to all powered on firmly in real time to detect the first power supply
The electric current of disk, second source are correspondingly arranged the second current detection circuit, to detect second source be supplied in real time it is all on
The electric current of electric hard disk, each hard disk are correspondingly arranged switching circuit, to control the on/off state of the hard disk, it is possible to understand that
Ground, each hard disk are powered by the first power supply and second source simultaneously, when closing, any one has powered on hard disk, the first electricity
The power supply real-time current in source and the power supply real-time current of second source can accordingly decrease.
On the basis of Fig. 1, electric control system on another hard disk provided by the embodiments of the present application is shown refering to Fig. 3, Fig. 3
The schematic block diagram of system.On hard disk shown in Fig. 3 in the schematic block diagram of electric control system, multiple hard disk serial numbers are respectively Disk1
~DiskN, hard disk Disk1~DiskN are powered by the first power supply and second source, wherein the first power supply is used for one
Independent power source power supply, second source are used for the hard disk power supply in addition to the hard disk of the first power supply power supply, for example, the first power supply is used for
Hard disk Disk1~Disk3 power supply is given, second source to hard disk Disk4~DiskN to power, when closing the first power supply power supply
When having powered on hard disk, such as one or more of hard disk Disk1~Disk3, then the power supply real-time current of the first power supply can drop
It is low;When closing when having powered on hard disk of second source power supply, such as one or more of hard disk Disk4~DiskN, then second is electric
The power supply real-time current in source can reduce.
On the basis of Fig. 1, electric control system on another hard disk provided by the embodiments of the present application is shown refering to Fig. 4, Fig. 4
The schematic block diagram of system.On hard disk shown in Fig. 4 in the schematic block diagram of electric control system, multiple hard disk serial numbers are respectively Disk1
~DiskN, hard disk Disk1~DiskN are powered by the first power supply and second source, wherein a part of hard disk is individually by
One power supply is individually powered, and a part of hard disk is individually powered by second source, some hard disk is by the first power supply
And second source is powered simultaneously.For example, the first power supply is used to power to hard disk Disk1~Disk3, second source is to give
Hard disk Disk3~DiskN power supply, wherein hard disk Disk3 is powered by the first power supply and second source simultaneously.It is understood that
Ground, when closing individually by the first power supply power supply when having powered on hard disk, such as one or more of hard disk Disk1~Disk2, then
The power supply real-time current of first power supply can be reduced accordingly;When closing is individually by second source power supply when having powered on hard disk, as firmly
One or more of disk Disk4~DiskN, then the power supply real-time current of second source can be reduced accordingly;When close simultaneously by
First power supply and when having powered on hard disk of second source power supply, such as hard disk Disk3, then the power supply real-time current of the first power supply and the
The power supply real-time current of two power supplys can reduce.
Based on electric control system on above-mentioned hard disk shown in FIG. 1, the application provides a kind of hard disk electrification control method, refering to
Fig. 5, Fig. 5 show the flow diagram of hard disk electrification control method provided by the embodiments of the present application.
Hard disk electrification control method provided by the embodiments of the present application includes:
Step 110: when detecting that power supply real-time current is less than quota electric current, obtaining power supply real-time current in preset duration
Interior peak value.
Power supply real-time current is that power supply is supplied to all real-time currents for having powered on hard disk, wherein has powered on hard disk
Including in the starting state hard disk and or have been started up the hard disk for completing to enter in normal operating conditions.Quota electric current is
Power supply is supplied to the maximum current that all hard disks are able to use, and in other words, quota electric current refers to that power supply can be to hard
Disk stablizes the net capability provided.The quota electric current of power supply can be pre-configured with, as that can choose default model
Power supply, or the power supply capacity of power supply is allocated to determine quota electric current, such as provide power supply to total electricity
80% distribution of stream is to be powered hard disk, then the 80% of total current is quota electric current, if power supply is capable of providing 10A's
Electric current supply, distributes to other devices such as mainboard for 20%, by 80% as the quota electric current powered to hard disk, then quota electric current
For 8A.
Current detection circuit real-time detection obtain power supply real-time current, when detect power supply real-time current be less than quota electric current
When, obtain peak value of the power supply real-time current in preset duration, it is possible to understand that ground, different model, the hard disk of state its consumption
Electric current is also different, and generally, hard disk its electric current in start-up course may be the electricity of the hard disk in normal operating conditions
2~3 times of stream, therefore power supply real-time current is real-time change, the hard disk quantity in start-up course is more, then power supply is real
When electric current it is bigger.Preset duration referred to the regular hour of current point in time forward trace, for example, forward with current point in time
Backtracking 1 second or 2 seconds, i.e. preset duration can be 1 second or 2 seconds, but not limited to this, it can also be other time spans, have
Body can be determined according to the starting duration of hard disk.By taking preset duration is 1 second as an example, when detecting that power supply real-time current is less than
When quota electric current, peak value of the power supply real-time current in 1 second is obtained, is to obtain power supply real-time current within past 1 second most
Big value.
Step 120: asking difference to obtain quota electric current according to the peak value of quota electric current and power supply real-time current in preset duration
Surplus.
Quota electric current surplus refers to the difference of the peak value of quota electric current and power supply real-time current in preset duration, it is possible to understand that
Ground, for the power supply of hard disk, quota electric current refers to that power supply is supplied to the maximum electricity that all hard disks are able to use
Stream or power supply can stablize the net capability provided to hard disk, and power supply real-time current refers to that having powered on hard disk has disappeared
The power supply capacity of consumption, quota electric current surplus then refer to the remaining power supply capacity of power supply, when there are quota electric currents for power supply
When surplus, illustrate that power supply is not up to full load condition.
Step 130: the newly-increased target for powering on hard disk is determined according to quota electric current surplus and single hard disk maximum starting current
Quantity.
Single hard disk maximum starting current refers to the maximum value of hard disk startup electric current, and different hard disks, starting current is different,
Using the maximum value in the starting current of multiple hard disks as single hard disk maximum starting current.It is hard according to quota electric current surplus and list
Disk maximum starting current determines the newly-increased destination number for powering on hard disk, for example, starting to quota electric current surplus and single hard disk maximum
The ratio of electric current, which is rounded downwards, determines destination number, so that newly-increased the sum of the starting current of hard disk that powers on is less than or equal to quota electricity
Flow surplus, it is ensured that newly-increased to power on electric current consumed by the starting of hard disk without departing from the remaining power supply capacity of power supply.
Step 140: being powered on according to destination number to not powering on hard disk.
According to determining destination number, hard disk is not powered on to destination number and is powered on, it is possible to understand that ground, it is newly-increased to power on hard disk
The sum of starting current be less than or equal to quota electric current surplus.
Hard disk electrification control method provided by the embodiments of the present application, by obtaining power supply real-time current in preset duration
Peak value asks difference to obtain quota electric current surplus according to the peak value of quota electric current and power supply real-time current in preset duration, can be true
Determine the remaining load capacity of power supply, is then determined on newly-increased according to the maximum starting current of quota electric current surplus and single hard disk
The destination number of electric hard disk determines the quantity of hard disk that power supply can also load according to the load capacity of power supply,
Then control destination number does not power on hard disk electrifying startup.On the one hand in power supply, there are make more when additional load capacity
The timely electrifying startup of more hard disks, can be improved power-efficient, on the other hand, determine according to single hard disk maximum starting current newly-increased
Power on the destination number of hard disk, it is ensured that the newly-increased starting current for powering on hard disk does not exceed quota electric current surplus, Bu Huichao
Power supply is supplied to the power supply capacity of hard disk out, and overcurrent, which will not occur, leads to situations such as triggering overcurrent protection or shutting down.
It is to be appreciated that power supply real-time current changes after not powering on hard disk electrifying startup, quota electric current surplus phase
Also it can change with answering, so as to determine the new newly-increased destination number for powering on hard disk again, be carried out to hard disk is not powered on
Electrifying startup is not until all powers on the equal start completion of hard disk.
For example, being illustrated by taking system architecture shown in FIG. 1 as an example, if the quota electric current of power supply is Imax, work as electricity
When source real-time current is less than quota electric current Imax, peak I t of the power supply real-time current in 1 second is obtained, according to quota electric current Imax
And peak I t of the power supply real-time current in 1 second determines quota electric current surplus Iremain.Wherein, quota electric current surplus
Peak I t, the quota electric current Imax of Iremain, power supply real-time current in 1 second meet following formula:
Iremain=Imax-It.
After determining quota electric current surplus Iremain, electricity is started according to quota electric current surplus Iremain and single hard disk maximum
Flow IhddDetermine the newly-increased destination number N for powering on hard disk.Specifically, in this present embodiment, by quota electric current surplus Iremain with
Single hard disk maximum starting current IhddRatio be rounded downwards and be determined as the newly-increased destination number N for powering on hard disk.Quota electric current
Surplus Iremain, single hard disk maximum starting current Ihdd, the newly-increased destination number N for powering on hard disk meet following formula:
N=[Iremain/Ihdd]。
Rounding, which refers to, downwards takes the maximum integer smaller than the data, if Iremain/IhddValue be 5.2, then carry out downward
The value of N is 5 after rounding, if Iremain/IhddValue be 4.9, then after being rounded downwards the value of N be 4, due to single hard disk maximum
Starting current is the maximum value in the starting current of multiple hard disks, therefore, N number of newly-increased to power on the sum of starting current of hard disk and be less than
Or it is equal to quota electric current surplus Iremain, therefore the newly-increased hard disk that powers on will not cause volume except quota electric current to power supply
Outer burden not will lead to power supply triggering overcurrent protection without departing from the power supply capacity to hard disk that power supply provides.
In one possible implementation, part hard disk uses multiple feed, the basis of method shown in Fig. 5
On, the embodiment of the present application provides another hard disk electrification control method, shows the embodiment of the present application refering to Fig. 6, Fig. 6 and provides
Another hard disk electrification control method flow diagram.
When not powering on hard disk with multiple power supplies, step 130 includes following sub-step:
Step 130-1: electricity is started according to the corresponding quota electric current surplus of each power supply and single hard disk maximum respectively
It flows and determines the corresponding newly-increased initial target quantity for powering on hard disk of each power supply.
When hard disk has multiple power supplies, for example, be illustrated by taking system architecture shown in Fig. 2 as an example, each
Hard disk is powered simultaneously by the first power supply and second source, and correspondingly, each hard disk has corresponding switching circuit, switch electricity
Road is used to control the first power supply and second source be supplied to the hard disk power supply on-off.
It is determined respectively according to the corresponding quota electric current surplus of each power supply and single hard disk maximum starting current first
The corresponding newly-increased initial target quantity for powering on hard disk of each power supply.
First power supply and second source are independently powered hard disk, the corresponding first quota electric current of the first power supply, the
One power supply real-time current, so that the first power supply is corresponding to have the first quota electric current surplus.Similarly, the second power supply corresponding second
Quota electric current, second source real-time current and the second quota electric current surplus.
Each confession is determined according to the corresponding quota electric current surplus of each power supply and single hard disk maximum starting current
The corresponding newly-increased initial target quantity for powering on hard disk of power supply, is to be opened according to the first quota electric current surplus and single hard disk maximum
Streaming current determines the first initial target quantity that the first quota electric current surplus can load;In this present embodiment, by the first quota
Electric current surplus and the ratio of single hard disk maximum starting current are rounded downwards, and it is initial as first will to be rounded treated result
Destination number.Similarly, the second quota electric current surplus is determined also according to the second quota electric current surplus and single hard disk maximum starting current
The the second initial target quantity that can be loaded.
Step 130-2: the minimum value in multiple initial target quantity is determined as destination number.
By taking hard disk has 2 power supplies as an example, the first power supply can one initial target quantity of load regulation be newly-increased powers on
Hard disk, the second power supply can load regulation two initial target quantity be newly-increased powers on hard disk, but due in hard disk power up
Powered simultaneously by multiple power supplies, in other words, in order to ensure each power supply does not trigger overcurrent protection, need by
Minimum value in multiple initial target quantity is determined as destination number.In other words, it needs to meet all power supplies simultaneously
Load capacity, prevent any one power supply occur overload, overcurrent situations such as.
Below with reference to system architecture shown in Fig. 2, to method stream shown in fig. 6 by taking hard disk has 2 power supplies as an example
Journey is illustrated.
Hard disk has the first power supply (such as 5V power supply) and second source (such as 12V power supply).First power supply corresponds to the first quota
Electric current Imax_5V, the corresponding second quota electric current Imax_12V of second source.
It is to be appreciated that different power supplies corresponds to different power supply real-time currents, it is real-time also to correspond to different power supplys
Peak value of the electric current in preset duration.Such as, peak value of the corresponding first power supply real-time current of the first power supply in preset duration is
It_5V, peak value of the corresponding second source real-time current of second source in preset duration are It_12V.According to each power supply
Peak value in preset duration of quota electric current and power supply real-time current determine the quota electric current surplus of each power supply,
In, preset duration can take 1 second.For example, the first power supply corresponds to the first quota electric current surplus Iremain_5V, second source is corresponding
Second quota electric current surplus Iremain_12V, then for the first quota electric current surplus Iremain_5V, the first power supply real-time current
Peak I t_5V, the first quota electric current Imax_5V in preset duration meet following formula:
Iremain_5V=Imax_5V-It_5V.
Similarly, for the second quota electric current surplus Iremain_12V, peak of the second source real-time current in preset duration
Value It_12V, the second quota electric current Imax_12V meet following formula:
Iremain_12V=Imax_12V-It_12V.
The relatively different power supply of hard disk has different single hard disk maximum starting currents, such as corresponding first electricity of hard disk
The single hard disk maximum starting current in source is Ihdd_ 5V, the single hard disk maximum starting current that hard disk corresponds to second source is Ihdd_ 12V,
Each power supply electricity is determined according to the corresponding quota electric current surplus of each power supply and single hard disk maximum starting current respectively
The corresponding newly-increased initial target quantity for powering on hard disk in source.
The first initial target quantity N1 is determined according to the first quota electric current surplus Iremain_5V.For example, to the first quota
The single hard disk maximum starting current I of electric current surplus Iremain_5V the first power supply corresponding with hard diskhddThe quotient of _ 5V is rounded downwards really
Fixed first initial target quantity N1, then the single hard disk maximum of the first initial target quantity N1 and corresponding first power supply of hard disk starts electricity
Flow Ihdd_ 5V meets following formula:
N1=[Iremain_5V/Ihdd_5V]。
Similarly, the second initial target quantity N2 is determined according to the second quota electric current surplus Iremain_12V.Second initial mesh
The single hard disk maximum starting current that mark quantity N2 and hard disk correspond to second source is Ihdd_ 12V meets following formula:
N2=[Iremain_12V/Ihdd_12V]。
It is to be appreciated that the first initial target quantity N1 is the newly-increased initial mesh for powering on hard disk that the first power supply can load
Quantity is marked, the second initial target quantity N2 is the newly-increased initial target quantity for powering on hard disk that can load of second source, by the
Minimum value in one initial target quantity N1 and the second initial target quantity N2 is determined as destination number N, to ensure all confessions
The case where power supply all works in safe range, is not in overcurrent.
For example, if the first initial target quantity N1 is 5, and the second initial target quantity N2 is 7, then it is initial by first
Destination number N1 is determined as destination number N.It is to be appreciated that initial target quantity is smaller, illustrate the negative of corresponding power supply
Loading capability is lower, using the minimum value in multiple initial target quantity as the newly-increased destination number for powering on hard disk, can guarantee most
The normal work of the power supply of low-load ability, without departing from its load capacity or power supply capacity, then all power supplies
Situations such as being not in overcurrent or overload.
Hard disk electrification control method provided by the embodiments of the present application, when hard disk has multiple power supplies, according to each
A power supply determines the newly-increased initial target quantity for powering on hard disk, then using the minimum value in multiple initial target quantity as
The newly-increased destination number for powering on hard disk powers on the initial of hard disk according to determining increase newly of the quota electric current surplus of each power supply
Destination number, and take its minimum value as the newly-increased destination number for powering on hard disk, it is ensured that multiple power supplies can be safe
Power supply, will not trigger overcurrent protection.
The electric current that hard disk is under normal operating conditions is generally less than the electric current that hard disk is in start-up course, with hard disk
Electrifying startup is completed, it is possible to understand that ground, the quantity for not powering on hard disk can gradually reduce, until all hard disks are completed to power on to open
It is dynamic.On the basis of Fig. 6, refering to Fig. 7, the embodiment of the present application has also mentioned another hardware electrification control method.
Wherein, step 140 includes following sub-step:
Step 140-1: whether confirmation destination number is less than the quantity for not powering on hard disk.
Destination number is compared with the quantity for not powering on hard disk, whether confirmation destination number, which is less than, does not power on hard disk
Quantity executes step 140-2 when destination number is less than the quantity for not powering on hard disk, when destination number is greater than or equal on not
When the quantity of electric hard disk, step 140-3 is executed.
Step 140-2: when destination number is less than the quantity for not powering on hard disk, destination number is not powered on hard disk
Electricity.
When destination number is less than the quantity for not powering on hard disk, illustrate that the quota electric current surplus of power supply is not enough to load
All hard disks that do not power on power on, only can load target quantity do not power on hard disk, therefore destination number is not powered on hard
Disk is powered on, on the one hand, and the quota electric current surplus of power supply is made full use of, is reduced hard disk total starting time, it is another
Aspect is accurately controlled the newly-increased quantity for powering on hard disk according to quota electric current surplus, it is possible to prevente effectively from power supply occurred
Situations such as stream.
Step 140-3: when destination number is greater than or equal to the quantity for not powering on hard disk, all are not powered on hard disk
Electricity.
When destination number is greater than or equal to the quantity for not powering on hard disk, illustrate that the quota electric current surplus of power supply can
Load it is all do not power on hard disk, therefore all hard disks that do not power on are powered on immediately, make all hard disk electrifying startups,
Hard disk total starting time is reduced, starts hard disk as early as possible.
Due to needing to power on to not powering on hard disk, it is therefore desirable to the quantity for not powering on hard disk is predefined, Fig. 7's
On the basis of, refering to Fig. 8, the embodiment of the present application also provides another hard disk electrification control methods.
Before step 140, hard disk electrification control method further include:
Step 131: obtaining the quantity of hard disk in place and powered on the quantity of hard disk.
The quantity of hard disk in place refers to the quantity that hard disk is installed on backboard, and the quantity for having powered on hard disk, which refers to, to be had already powered on
The quantity of hard disk.
On the basis of Fig. 8, refering to Fig. 9, step 131 includes following sub-step:
Step 131-1: the quantity of hard disk in place is obtained.
Specifically, hard disk in place refers to the hard disk being mounted on the socket of backboard, if the socket on backboard is equipped with hard disk,
It is then in place for hard disk, it is not in place for hard disk if the socket on backboard is not installed with hard disk.The quantity of hard disk in place can be by hard
Disk detection circuit detection identification in place, once being correctly equipped with hard disk on backboard on socket, then no matter power on or not powering on, can
It is detected and identifies by detection circuit in place, for example, the hard disk being newly inserted into can also be identified as rapidly in place hard when newly insertion hard disk
Disk obtains the quantity of hard disk in place, even if obtaining the testing result of hard disk detection circuit in place.
Step 131-2: the quantity for having powered on hard disk is obtained.
It has powered on hard disk quantity and has referred to the hard disk quantity having already powered on, it is relatively, remaining hard in addition to having powered on hard disk
Disk does not power on hard disk as.Specifically, each hard disk is correspondingly arranged on a switching circuit, works normally in power supply
In the case of, switching circuit control power supply is supplied to the on/off of the hard disk, should if switching circuit control power supply is connected
Hard disk is to have powered on hard disk.The quantity for having powered on hard disk is obtained, is to obtain in all switching circuits, the switch of on-state
The quantity of circuit.
It should be noted that both step 131-1, step 131-2 have no precedence relationship in logic, the two be can be simultaneously
Capable.
Step 132: determine and do not power on the quantity of hard disk, do not power on hard disk quantity be hard disk in place quantity with powered on
The difference of the quantity of hard disk.
In addition to having powered on hard disk, remaining hard disk does not power on hard disk as, therefore, using hard disk in place quantity, that is, it is total
Hard disk quantity ask poor with the quantity for having powered on hard disk, it can determination does not power on the quantity of hard disk.
By the judgement to hard disk quantity is not powered on, it can accurately control and power on hard disk quantity, make not power on hard disk
It powers in time, improves the efficiency of power supply, reduce the total starting duration of hard disk, when new hard disk insertion, that is newly inserted into is hard
Disk can be also identified rapidly, to start in time.
It is to be appreciated that being to be powered on for the first time to hard disk, power supply real-time current is if having powered on hard disk quantity is 0
0, peak value of the power supply real-time current in preset duration is also 0, and quota electric current surplus at this time is quota electric current itself.At this time
According to the newly-increased destination number for powering on hard disk that quota electric current surplus and single hard disk maximum starting current determine be to hard disk into
The hard disk quantity that row is chosen when powering on for the first time.
Above-described embodiment is the control when power supply real-time current is less than quota electric current, to not powering on hard disk and being powered on
Method, in the embodiment of the present application, power supply real-time current is excessive beyond power supply electricity during hard disk electrifying startup in order to prevent
The power supply capacity in source leads to power supply overcurrent or overload, on the basis of Fig. 5, refering to fig. 10, and present invention also provides another
Kind hard disk electrification control method.
Prior to step 110, hard disk electrification control method further include:
Step 101: obtaining power supply real-time current.
Power supply real-time current refers to that power supply is supplied to all real-time currents for having powered on hard disk.For example, hard disk includes
It has powered on hard disk and has not powered on hard disk, and powered in hard disk, and included the hard disk in the start-up course and have been started up
Complete the hard disk under normal operating conditions.Hard disk electric current in start-up course is generally the electricity of the hard disk under normal operating conditions
2~3 times of stream are changing when power supply real-time current, when hard disk is in difference constantly so during hard disk electrifying startup
State when, the electric current that power supply is supplied to power supply is different, in the embodiment of the present application, to power supply be supplied to it is all
The electric current for powering on hard disk is detected, and obtains power supply real-time current in real time.
Step 102: power supply real-time current is compared with quota electric current.
Power supply real-time current is that power supply is supplied to all electric currents for having powered on hard disk in real time, and quota electric current refers to power supply
Power supply is supplied to hard disks that the maximum current that all hard disks are able to use or power supply provide, all and is able to use most
Power supply real-time current is compared big power supply capacity with quota electric current, is whether confirmation power supply works in safe model
In enclosing, it is possible to understand that ground, if power supply real-time current is greater than quota electric current, hard disk power consumption has had exceeded power supply can be steady
Surely it is supplied to the net capability of hard disk, overcurrent protection may be triggered;If power supply real-time current is less than quota electric current, say
Bright hard disk power consumption is without departing from the maximum current that all hard disks are able to use, and there is also quota electric current surplus, Ke Nengzhi for power supply
More hard disk electrifying startups are held, are not overloaded or overcurrent.When power supply real-time current is equal to quota electric current, then show on
Electric hard disk exhausts the maximum current that all hard disks are able to use just.
When confirming that power supply real-time current is less than quota electric current, power supply there may be quota electric current surplus, so as to
It can support more hard disk electrifying startups, execute step 110.If confirm that power supply real-time current exceeds quota electric current, step is executed
Rapid 150.
Step 150: when power supply real-time current is greater than quota electric current, closing target hard disk.
When power supply real-time current is greater than quota electric current, i.e., all electric currents for having powered on hard disk have had exceeded power supply
The net capability that the maximum current or power supply for distributing to all hard disks are capable of providing, power supply may touch
Overcurrent protection is sent out, is shut down caused by power supply triggering overcurrent protection in order to prevent, prevents from having powered on hard disk business being affected, when
When power supply real-time current is greater than quota electric current, target hard disk is closed.Target hard disk, which refers to, all has powered on last batch of in hard disk
One or more of hard disk powered on.
It is to be appreciated that power supply real-time current can be effectively reduced by closing target hard disk, triggering overcurrent protection, energy are prevented
It enough prevents power supply triggering overcurrent protection and stops working, reduce hard disk total starting time.In a kind of feasible embodiment party
In formula, the quantity of target hard disk can be according to the difference and single hard disk maximum starting current of power supply real-time current and quota electric current
It determines, i.e. the ratio of the maximum starting current of the amount according to power supply real-time current beyond quota electric current and single hard disk determines that target is hard
The quantity of disk.
When power supply real-time current is equal to quota electric current, power supply can not support more hard disk electrifying startups at this time,
Otherwise it will lead to power supply real-time current beyond quota electric current.But it is understood that hard disk during electrifying startup, opens
Streaming current is not continuously maintained in maximum starting current state, but does not stop variation, therefore during hard disk startup, electricity
Source real-time current will not be in the state equal with quota electric current for a long time, if there is power supply real-time current equal to quota electric current
State then persistently carries out detection to power supply real-time current until power supply real-time current is more than or less than quota electric current.
In alternatively possible embodiment, when power supply real-time current is equal to quota electric current, still available electricity
Peak value of the source real-time current in preset duration, it is to be understood that when power supply real-time current exceeds quota electric current, can stand
Target hard disk is closed, power supply real-time current can decline, and therefore, when power supply real-time current is equal to quota electric current, power supply is real-time
Peak value of the electric current in preset duration namely it is equal to quota electric current, quota electric current surplus is 0 at this time, true according to quota electric current surplus
The fixed newly-increased hard disk quantity that powers on is 0.
After target hard disk is closed, power supply real-time current changes accordingly, whether there is so as to redefine
Quota electric current surplus powers on hard disk and carries out control up to all hard disk electrifying startups, or to new target hard disk progress
It closes.
Part hard disk uses multiple feed, when hard disk has multiple power supplies, on the basis of Fig. 6 and Figure 10,
Another implementation of the embodiment of the present application offer hard disk electrification control method.Refering to fig. 11, hard disk electrification control method packet
It includes:
Step 101: obtaining the power supply real-time current of each power supply.
When hard disk has multiple power supplies, the power supply real-time current of each in multiple power supplies is obtained.
Referring to Fig.2, with hard disk there are 2 power supplies to be illustrated.Hard disk is supplied by the first power supply and second source
Electricity obtains power supply real-time current, is to obtain the corresponding first power supply real-time current of the first power supply and second source corresponding the
Two power supply real-time currents.
With continued reference to Figure 11, after step 101, the hard disk electrification control method further include:
Step 102: the power supply real-time current of each power supply is compared with quota electric current.
In a kind of feasible embodiment, when hard disk has multiple power supplies, multiple power supplies are independent to hard
Disk is powered, and when multiple power supplies are simultaneously powered hard disk, hard disk can normally work on power.It is understood that
Ground will affect if there is the triggering overcurrent protection of any one power supply to cause to stop working and all power on the normal of hard disk
Work.
Each power supply corresponds to different electrical power real-time current, correspondingly, each power supply corresponds to different match
Volume electric current.The power supply real-time current of each power supply is compared with its quota electric current, judges whether power supply is deposited
The case where exceeding power supply capacity, the power supply real-time current of any one power supply exceeds its quota electric current if it exists, executes
Step 150;If the power supply real-time current of each power supply is respectively less than quota electric current, 110 are thened follow the steps.
Step 150: when the power supply real-time current of any one power supply is greater than quota electric current, closing target hard disk.
When being greater than its quota electric current there are the power supply real-time current of any one power supply, target hard disk is closed.Mesh
Mark hard disk refer to it is all powered on one or more of the hard disk that last batch of in hard disk powers on, when existing, any one power supply is electric
When the power supply real-time current in source is greater than quota electric current, i.e., closing target hard disk, closing target hard disk can be effectively reduced power supply
Real-time current prevents any one power supply from triggering overcurrent protection, all power supplies is made to work in safe range,
It can prevent power supply triggering overcurrent protection and stop working, reduce hard disk total starting time, improve the effect of power supply
Rate.
In a kind of feasible embodiment of the embodiment of the present application, the determination of target hard disk can also be according to the confession of hard disk
Electric situation is determined.For example, in conjunction with refering to system architecture shown in Fig. 3, when the first power supply and second source are respectively to difference
Hard disk supply power supply when, if the real-time current of the first power supply exceed the corresponding quota electric current of the first power supply, preferentially from first
Target hard disk is determined in the hard disk of power supply power supply;If the real-time current of second source exceeds the corresponding quota electric current of second source,
Target hard disk is then preferentially determined from the hard disk that second source is powered.Generally, when the power supply of any one power supply is real-time
When electric current is greater than quota electric current, i.e., it can close target hard disk.Once the power supply real-time current for multiple power supplies occur is all larger than
When quota electric current, then determined target hard disk to prevent beyond power supply respectively according to the electric power thus supplied of each power supply
Power supply capacity.
In the feasible embodiment of another kind of the embodiment of the present application, for example, system tray shown in reference to Fig. 4
Structure, the hard disk powered simultaneously by the first power supply and second source if it exists, when the real-time current of the first power supply exceeds the first power supply
Corresponding quota electric current then preferentially determines target hard disk from the hard disk that the first power supply is individually powered;If second source is real-time
When electric current is beyond second source corresponding quota electric current, then target hard disk is preferentially determined from the hard disk that second source is powered;If
When first power supply and second source power supply real-time current occur greater than the case where quota electric current simultaneously, then preferentially from by the first power supply
And target hard disk is determined in second source while the hard disk powered.
In order to execute the corresponding steps in above-described embodiment and each possible embodiment, it is given below on a kind of hard disk
The implementation of controller for electric consumption.Figure 12 is please referred to, Figure 12 is controller for electric consumption on a kind of hard disk provided by the embodiments of the present application
Functional block diagram.
It should be noted that the technology of controller for electric consumption on hard disk provided by the present embodiment, basic principle and generation
Effect is identical with above-described embodiment, and to briefly describe, the present embodiment part does not refer to place, can refer to the phase in above-described embodiment
Answer content.Controller for electric consumption 200 includes obtaining module 210, processing module 220 and control module 230 on the hard disk.
The acquisition module 210, for obtaining the quantity of power supply real-time current, hard disk in place and having powered on the number of hard disk
Amount.
Optionally, which is specifically used for executing step 101, step 110 and the step in above-mentioned each figure
131, to realize corresponding technical effect.
On the basis of Figure 12, refering to fig. 13, in a kind of feasible embodiment, obtaining module 210 includes first obtaining
Take unit 211, second acquisition unit 212, third acquiring unit 213.
First acquisition unit 211 is supplied to all for obtaining power supply real-time current, power supply real-time current for power supply
The real-time current of hard disk is powered on.
Optionally, which is specifically used for executing the step 101 in above-mentioned each figure, to realize correspondence
Technical effect.
First acquisition unit 211 is also used to obtain power supply real-time current when power supply real-time current is less than quota electric current and exist
Peak value in preset duration.
Optionally, which is specifically used for executing the step 110 in above-mentioned each figure, to realize correspondence
Technical effect.
Second acquisition unit 212 is used to obtain the quantity of hard disk in place, refers to whether the socket on hard disk backboard pacifies in place
Equipped with hard disk, the quantity of hard disk in place, namely refer to the quantity for the hard disk installed on hard disk backboard.
Optionally, which is specifically used for executing the step 131-1 in above-mentioned each figure, with realization pair
The technical effect answered.
Third acquiring unit 213 is for obtaining the quantity for having powered on hard disk, in a kind of feasible embodiment, each
Hard disk corresponds to a switching circuit, and switching circuit is used to control the on/off of hard disk, obtains the quantity that switching circuit is connected, i.e.,
It is to obtain the quantity for having powered on hard disk.
Optionally, which is specifically used for executing the step 131-2 in above-mentioned each figure, with realization pair
The technical effect answered.
The processing module 220, for confirming whether power supply real-time current is less than or equal to quota electric current.Wherein, quota electricity
Stream is that power supply is supplied to the maximum current that all hard disks are able to use.
Optionally, which specifically can be used for executing the step 102 in above-mentioned each figure, to realize correspondence
Technical effect.
The processing module 220 is used to ask difference to obtain according to the peak value of quota electric current and power supply real-time current in preset duration
Quota electric current surplus determines the newly-increased number of targets for powering on hard disk according to quota electric current surplus and single hard disk maximum starting current
Amount, wherein newly-increased the sum of the starting current of hard disk that powers on is less than or equal to the quota electric current surplus.
Peak value of the power supply real-time current in preset duration refers to that obtaining the power supply real-time current that module 210 obtains is presetting
Maximum value in duration, such as 1 second, but not limited to this, which can also be configured according to the starting duration of hard disk.
Single hard disk maximum starting current refers to all hard disks.
Optionally, which specifically can be used for executing the step 120 and step 130 in above-mentioned each figure, with
Realize corresponding technical effect.
In a kind of feasible embodiment, hard disk has multiple power supplies, which is specifically used for difference
Each power supply pair is determined according to the corresponding quota electric current surplus of each power supply and single hard disk maximum starting current
The newly-increased initial target quantity for powering on hard disk answered, is then determined as number of targets for the minimum value in multiple initial target quantity
Amount.
Optionally, which specifically can be used for executing step 130-1, the step 130- in above-mentioned each figure
2, to realize corresponding technical effect.
The processing module 220 be also used to the quantity according to hard disk in place and powered on hard disk quantity determination do not power on hard disk
Quantity.
Hard disk in place includes having powered on hard disk and not powered on hard disk, the quantity of hard disk in place with powered on hard disk quantity it
Difference does not power on the quantity of hard disk as.
Optionally, which specifically can be used for executing the step 132 in above-mentioned each figure, to realize correspondence
Technical effect.
The control module 230, for being powered on according to destination number to not powering on hard disk.
Optionally, which specifically can be used for executing the step 140 in above-mentioned each figure, to realize correspondence
Technical effect.
Specifically, which determines whether destination number is less than the quantity for not powering on hard disk first, works as number of targets
When amount is less than the quantity for not powering on hard disk, hard disk is not powered on to destination number and is powered on, when destination number is greater than or equal on not
When the quantity of electric hard disk, all hard disks that do not power on are powered on.
In a kind of possible embodiment, which is also used to when the power supply real-time current is greater than described
When quota electric current, target hard disk is closed.
Optionally, which specifically can be used for executing the step 150 in above-mentioned each figure, to realize correspondence
Technical effect.
4, Figure 14 shows the schematic block diagram of electronic equipment 300 provided by the embodiments of the present application refering to fig. 1.Electronic equipment
300 include processor 310, bus 320 and memory 330.Processor 310 is connect by bus 320 with memory 330.
Memory 330 is for storing controller for electric consumption 200 in program, such as hard disk shown in Figure 12, electric control on hard disk
Device 200 includes that at least one can be stored in memory 330 or be solidificated in electricity in the form of software or firmware (firmware)
Software function module in the operating system (operating system, OS) of sub- equipment 300, processor 310 are held receiving
After row instruction, described program is executed to realize the hard disk electrification control method of invention above-described embodiment announcement.
Electronic equipment 300 can be the computer of server or specific use, both can be used to implement of the invention real
Apply the hard disk electrification control method of example.
Memory 330 may include high-speed random access memory (Random Access Memory, RAM), it is also possible to
It further include nonvolatile storage (non-volatile memory, NVM), for example, at least a magnetic disk storage.
Processor 310 may be a kind of IC chip, the processing capacity with signal.It is above-mentioned during realization
Each step of method can be completed by the integrated logic circuit of the hardware in processor 310 or the instruction of software form.On
The processor 310 stated can be general processor, including central processing unit (Central Processing Unit, abbreviation
CPU), micro-control unit (Microcontroller Unit, MCU), Complex Programmable Logic Devices (Complex
Programmable Logic Device, CPLD), field programmable gate array (Field-Programmable Gate
Array, FPGA) etc. chips.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, calculate
Machine program realizes the hard disk electrification control method that above-described embodiment discloses when being executed by processor 310.
In conclusion a kind of hard disk electrification control method provided by the embodiments of the present application, device, electronic equipment and storage are situated between
Matter, by power supply real-time current be less than quota electric current when, according to quota electric current and power supply real-time current in preset duration
Peak value asks difference to obtain quota electric current surplus, the remaining power supply capacity of power supply or load capacity is determined, more than quota electric current
Amount and single hard disk maximum starting current determine the newly-increased destination number for powering on hard disk, that is, the remaining power supply of power supply has been determined
The quantity for the hard disk that ability or load capacity can load is powered on according to destination number to not powering on hard disk.It will power supply electricity
The power supply capacity in source makes full use of, and determines destination number according to quota electric current surplus and then starts to hard disk is not powered on, keeps away
Power supply overcurrent protection or damage caused by the rush of current of hard disk-free starting, in the limited feelings of the power supply capacity of power supply
Under condition, shorten hard disk total starting time, improve the efficiency of power supply, can also start in time in new hard disk insertion.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing
Show the device of multiple embodiments according to the application, the architectural framework in the cards of method and computer program product,
Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code
Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held
Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement
The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes
It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart
The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement
It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the application can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), arbitrary access are deposited
The various media that can store program code such as reservoir (Random Access Memory, RAM), magnetic or disk.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field
For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair
Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.
Claims (10)
1. a kind of hard disk electrification control method, which is characterized in that the hard disk electrification control method includes:
When detecting that power supply real-time current is less than quota electric current, peak of the power supply real-time current in preset duration is obtained
Value;The power supply real-time current is that power supply is supplied to all real-time currents for having powered on hard disk;The quota electric current is institute
It states power supply and is supplied to the maximum current that all hard disks are able to use;
Difference is asked to obtain quota electric current surplus according to the peak value of the quota electric current and the power supply real-time current in preset duration;
The newly-increased destination number for powering on hard disk is determined according to the quota electric current surplus and single hard disk maximum starting current;It is described
Newly-increased the sum of the starting current of hard disk that powers on is less than or equal to the quota electric current surplus;
It is powered on according to the destination number to not powering on hard disk.
2. hard disk electrification control method according to claim 1, which is characterized in that when the hard disk that do not power on is with multiple
When power supply, the newly-increased number of targets for powering on hard disk is determined according to the quota electric current surplus and single hard disk maximum starting current
The step of amount includes:
It is determined respectively according to the corresponding quota electric current surplus of power supply described in each and the single hard disk maximum starting current
The corresponding newly-increased initial target quantity for powering on hard disk of each described power supply;
Minimum value in multiple initial target quantity is determined as the destination number.
3. hard disk electrification control method according to claim 1, which is characterized in that according to the quota electric current surplus and
Single hard disk maximum starting current determines that newly-increased the step of powering on the destination number of hard disk includes:
The ratio of the quota electric current surplus and the single hard disk maximum starting current is rounded downwards and determines the destination number.
4. hard disk electrification control method according to claim 1, which is characterized in that the method also includes:
When detecting that the power supply real-time current is greater than the quota electric current, target hard disk is closed, the target hard disk is institute
One or more of the hard disk that last batch of in hard disk powers on has been powered on described in having.
5. hard disk electrification control method according to claim 4, which is characterized in that the hard disk that powered on is with multiple confessions
Power supply, each described power supply has corresponding quota electric current, described to detect that the power supply real-time current is greater than
When the quota electric current, close target hard disk the step of include:
When the corresponding power supply real-time current of any one of power supply in the multiple power supply is greater than the power supply
When the corresponding quota electric current of power supply, the target hard disk is closed.
6. controller for electric consumption on a kind of hard disk, which is characterized in that controller for electric consumption includes: on the hard disk
Module is obtained, for obtaining power supply real-time current and when detecting that power supply real-time current is less than quota electric current, is obtained
Peak value of the power supply real-time current in preset duration;The power supply real-time current is that power supply is supplied to all powered on
The real-time current of hard disk;The quota electric current is that power supply point is supplied to the maximum current that all hard disks are able to use;
Processing module, for asking difference to obtain according to the peak value of the quota electric current and the power supply real-time current in preset duration
Quota electric current surplus;The newly-increased target for powering on hard disk is determined according to the quota electric current surplus and single hard disk maximum starting current
Quantity;Described newly-increased the sum of starting current of hard disk that powers on is less than or equal to the quota electric current surplus;
Control module, for being powered on according to the destination number to not powering on hard disk.
7. controller for electric consumption on hard disk according to claim 6, which is characterized in that when the hard disk that do not power on is with multiple
When power supply, the processing module is for respectively according to the corresponding quota electric current surplus of power supply described in each and described
Single hard disk maximum starting current determines the corresponding newly-increased initial target quantity for powering on hard disk of each described power supply;It is described
Processing module is also used to the minimum value in multiple initial target quantity being determined as the destination number.
8. controller for electric consumption on hard disk according to claim 6, which is characterized in that the processing module to described for matching
The ratio of volume electric current surplus and the single hard disk maximum starting current is rounded downwards with the determination destination number.
9. controller for electric consumption on hard disk according to claim 6, which is characterized in that the control module is also used to when detection
Target hard disk is closed when being greater than the quota electric current to the power supply real-time current, and the target hard disk is all described powered on
One or more of the hard disk that last batch of powers in hard disk.
10. controller for electric consumption on hard disk according to claim 9, which is characterized in that when the hard disk that powered on is with more
When a power supply, each described power supply has corresponding quota electric current, and the control module is used for when the multiple
The corresponding power supply real-time current of any one of power supply in power supply is greater than the corresponding quota of the power supply
When electric current, the target hard disk is closed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910612810.5A CN110442222A (en) | 2019-07-08 | 2019-07-08 | Hard disk electrification control method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910612810.5A CN110442222A (en) | 2019-07-08 | 2019-07-08 | Hard disk electrification control method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN110442222A true CN110442222A (en) | 2019-11-12 |
Family
ID=68429904
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910612810.5A Pending CN110442222A (en) | 2019-07-08 | 2019-07-08 | Hard disk electrification control method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110442222A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111352495A (en) * | 2020-02-29 | 2020-06-30 | 苏州浪潮智能科技有限公司 | A hard disk staggered power-on control system |
| CN111736685A (en) * | 2020-06-12 | 2020-10-02 | 苏州浪潮智能科技有限公司 | A batch power-on method, system, terminal and storage medium for IT hardware equipment |
| CN112350406A (en) * | 2020-11-06 | 2021-02-09 | 青岛海信移动通信技术股份有限公司 | Electronic device and control method thereof |
| CN112648693A (en) * | 2020-12-18 | 2021-04-13 | 青岛海信日立空调系统有限公司 | Air conditioner and multi-channel PFC circuit control method |
| CN115756303A (en) * | 2022-09-21 | 2023-03-07 | 安信服(深圳)科技有限公司 | Multi-hard disk data storage control method, system and equipment for photography and media |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105929923A (en) * | 2016-04-25 | 2016-09-07 | 浙江大华技术股份有限公司 | Management method and apparatus for power of power supply |
| US20170010652A1 (en) * | 2015-07-08 | 2017-01-12 | Quanta Computer Inc. | Dynamic power supply management |
| CN107368172A (en) * | 2017-07-27 | 2017-11-21 | 郑州云海信息技术有限公司 | A kind of storage server powering method, apparatus and system |
-
2019
- 2019-07-08 CN CN201910612810.5A patent/CN110442222A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170010652A1 (en) * | 2015-07-08 | 2017-01-12 | Quanta Computer Inc. | Dynamic power supply management |
| CN105929923A (en) * | 2016-04-25 | 2016-09-07 | 浙江大华技术股份有限公司 | Management method and apparatus for power of power supply |
| CN107368172A (en) * | 2017-07-27 | 2017-11-21 | 郑州云海信息技术有限公司 | A kind of storage server powering method, apparatus and system |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111352495A (en) * | 2020-02-29 | 2020-06-30 | 苏州浪潮智能科技有限公司 | A hard disk staggered power-on control system |
| CN111352495B (en) * | 2020-02-29 | 2021-09-14 | 苏州浪潮智能科技有限公司 | Hard disk off-peak power-on control system |
| CN111736685A (en) * | 2020-06-12 | 2020-10-02 | 苏州浪潮智能科技有限公司 | A batch power-on method, system, terminal and storage medium for IT hardware equipment |
| CN112350406A (en) * | 2020-11-06 | 2021-02-09 | 青岛海信移动通信技术股份有限公司 | Electronic device and control method thereof |
| CN112350406B (en) * | 2020-11-06 | 2022-12-06 | 青岛海信移动通信技术股份有限公司 | Electronic device and control method thereof |
| CN112648693A (en) * | 2020-12-18 | 2021-04-13 | 青岛海信日立空调系统有限公司 | Air conditioner and multi-channel PFC circuit control method |
| CN112648693B (en) * | 2020-12-18 | 2023-08-04 | 青岛海信日立空调系统有限公司 | Air conditioner and multi-channel PFC circuit control method |
| CN115756303A (en) * | 2022-09-21 | 2023-03-07 | 安信服(深圳)科技有限公司 | Multi-hard disk data storage control method, system and equipment for photography and media |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110442222A (en) | Hard disk electrification control method and device | |
| US8129946B2 (en) | Method and system for regulating current discharge during battery discharge conditioning cycle | |
| TWI238302B (en) | A method and apparatus for reducing power consumption through dynamic control of supply voltage and body bias | |
| US7886173B2 (en) | Transitioning computing devices from secondary power to primary power after corresponding, independent delay times | |
| US20090195212A1 (en) | Method and system for utilizing a memory control circuit for controlling data transfer to and from a memory system | |
| CN102687094B (en) | Processing method and appliance for multi-power supply | |
| US9740258B2 (en) | Hold-up energy storage and management | |
| US8542059B2 (en) | Ultra-low-power power supply system for an IC chip | |
| CN105929923B (en) | A kind of management method and device of power | |
| CN105703475A (en) | Method and system of uninterrupted intelligent power supply of ATM | |
| US7765412B1 (en) | Methods and systems for dynamically changing device operating conditions | |
| JP2012108847A (en) | Poe power supply device and power supply method | |
| CN103439570A (en) | Chip leakage current testing system | |
| CN116560485B (en) | Power management method and system of intelligent terminal equipment | |
| CN112087013B (en) | Charging state display method and device, battery pack, electric tool and charging equipment | |
| CN110416643A (en) | A kind of processing method, device and electronic equipment | |
| CN105162443B (en) | Periodic wake-up low-power-consumption timing circuit | |
| CN112910061B (en) | Control method, device and medium for charging system load balancing | |
| CN109525033A (en) | Power supply circuit, method and low-power projection device | |
| CN210246387U (en) | Power switching circuit and electronic equipment | |
| CN105491208A (en) | Method for storing electric quantity information of mobile terminal, and mobile terminal | |
| CN107329537B (en) | A kind of electrification control method and device | |
| US10491025B1 (en) | Apparatus, systems, and methods for pulse charging rechargeable batteries | |
| CN113872303B (en) | Charging control method, device, electronic device and storage medium | |
| US10393822B1 (en) | Apparatus, systems, and methods for charging partial use batteries |
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 | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191112 |