CN107728954A - A kind of control method, device and the equipment of disk running status - Google Patents

A kind of control method, device and the equipment of disk running status Download PDF

Info

Publication number
CN107728954A
CN107728954A CN201711079403.XA CN201711079403A CN107728954A CN 107728954 A CN107728954 A CN 107728954A CN 201711079403 A CN201711079403 A CN 201711079403A CN 107728954 A CN107728954 A CN 107728954A
Authority
CN
China
Prior art keywords
disk
read
running status
preset duration
control method
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
Application number
CN201711079403.XA
Other languages
Chinese (zh)
Inventor
刘兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201711079403.XA priority Critical patent/CN107728954A/en
Publication of CN107728954A publication Critical patent/CN107728954A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0625Power saving in storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0659Command handling arrangements, e.g. command buffers, queues, command scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices

Abstract

This application discloses a kind of control method of disk running status, including:Obtain and recording disc current time read-write state data;Judge whether disk is in read-write state according to read-write state data;If it is not, then judge whether the duration that disk stops being read and write exceedes preset duration according to record;If exceeding preset duration, dormancy instruction or deceleration instruction are sent to disk.The application makes idle running duration exceed the disc dormancy of preset duration or reduces rotating speed by detecting and judging whether the time of disk continuing spinning exceedes preset duration, so as to reach the purpose for reducing power consumption, saving the energy.Control device, equipment and the computer-readable recording medium of disk running status provided herein, it is possible to achieve the control method of above-mentioned disk running status, equally with above-mentioned beneficial effect.

Description

A kind of control method, device and the equipment of disk running status
Technical field
The application is related to technical field of memory, more particularly to a kind of control method of disk running status, device, equipment and Computer-readable recording medium.
Background technology
With the gradual enhancing of people's environmental consciousness, energy-saving and emission-reduction, reduction power consumption have been to be concerned by more and more people, more Become key reference factor of some clients when submitting a tender.In recent years, in technical field of memory, how Overall Power Consumption is reduced Become person skilled topic of concern.
Within the storage system, an important factor for one influences Overall Power Consumption is that the idle running of substantial amounts of storage disk produces Huge waste of energy.It is without work in the most of the time due to many disks in storage system, such as backup disk Make, because many business can't use all disks simultaneously.Therefore, now the idle running of disk is not only meaningless, also Electric energy is wasted, more accelerates the abrasion of disk.
As can be seen here, using the control method of which kind of disk running status to reduce system power dissipation, had in this area Significant technical problem.
The content of the invention
The purpose of the application is to provide a kind of control method of disk running status, device, equipment and computer-readable Storage medium, to be effectively reduced system power dissipation.
In order to solve the above technical problems, the application provides a kind of control method of disk running status, including:
Obtain and recording disc current time read-write state data;
Judge whether the disk is in read-write state according to the read-write state data;
If it is not, then judge whether the duration that the disk stops being read and write exceedes preset duration according to the record;
If exceeding preset duration, dormancy instruction or deceleration instruction are sent to the disk.
Alternatively, the preset duration is 10 minutes.
Alternatively, in addition to:
After the call request to the disk is received, sent to the disk and recover instruction.
Present invention also provides a kind of control device of disk running status, including:
Acquisition module:For obtain and recording disc current time read-write state data;
Judge module:For judging whether the disk is in read-write state according to the read-write state data;If it is not, then Judge whether the duration that the disk stops being read and write exceedes preset duration according to the record;
Command module:If judge that the duration that the disk stops being read and write exceedes described default for the judge module It is long, then send dormancy instruction or deceleration instruction to the disk.
Alternatively, the preset duration is 10 minutes.
Alternatively, the command module is additionally operable to:
After the call request to the disk is received, sent to the disk and recover instruction.
Present invention also provides a kind of control device of disk running status, including:
Memory:For storing computer program;
Processor:For performing the computer program to realize the control of any disk running status as described above The step of method.
Present invention also provides a kind of computer-readable recording medium, meter is stored with the computer-readable recording medium Calculation machine program, the controlling party of any disk running status as described above is realized when the computer program is executed by processor The step of method.
The control method of disk running status provided herein includes:Acquisition simultaneously reading of the recording disc at current time Write state data;Judge whether the disk is in read-write state according to the read-write state data;If it is not, then according to the note Record judges whether the duration that the disk stops being read and write exceedes preset duration;If exceeding preset duration, sent out to the disk Send dormancy instruction or deceleration instruction.
It can be seen that compared to prior art, in the control method for the disk running status that the embodiment of the present application is provided, pass through Detect and judge whether the time of disk continuing spinning exceedes preset duration, and make idle running duration exceed the disk of preset duration and stop Sleep or reduce rotating speed, so as to reach the purpose for reducing power consumption, saving the energy.Disk running status provided herein Control device can realize the control method of above-mentioned disk running status, equally with above-mentioned beneficial effect.
Brief description of the drawings
In order to illustrate more clearly of the technical scheme in prior art and the embodiment of the present application, below will to prior art and The accompanying drawing needed to use in the embodiment of the present application description makees brief introduction.Certainly, the accompanying drawing about the embodiment of the present application below Part of the embodiment in only the application of description, to those skilled in the art, is not paying creativeness On the premise of work, other accompanying drawings can also be obtained according to the accompanying drawing of offer, the other accompanying drawings obtained fall within the application Protection domain.
A kind of flow chart of the control method for disk running status that Fig. 1 is provided by the embodiment of the present application;
A kind of structured flowchart of the control device for disk running status that Fig. 2 is provided by the embodiment of the present application.
Embodiment
The core of the application is to provide a kind of control method of disk running status, device, equipment and computer-readable Storage medium, to be effectively reduced system power dissipation.
In order to more clearly and completely be described to the technical scheme in the embodiment of the present application, below in conjunction with this Shen Accompanying drawing that please be in embodiment, the technical scheme in the embodiment of the present application is introduced.Obviously, described embodiment is only Some embodiments of the present application, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belong to the scope of the application protection.
It refer to Fig. 1, a kind of flow of the control method for disk running status that Fig. 1 is provided by the embodiment of the present application Figure, is mainly included the following steps that:
Step 1:Obtain and recording disc current time read-write state data.
Specifically, disk includes reading and writing two states when being operated.In order to understand whether disk is in work shape State, read-write state data of the disk at current time can be obtained, so that whether clear and definite disk is currently written and read.
Certainly, the process of acquisition described in this step can be carried out with suitable fixed frequency.If the fixed frequency mistake Height, processor burden can be increased;If the fixed frequency is too low, the reading of read-write state data, this area skill may be delayed again Art personnel can voluntarily be selected according to actual use situation and set realization, and the embodiment of the present application is not defined to this.
Step 2:Judge whether disk is in read-write state according to read-write state data, if it is not, into step 3.
Step 3:Judge whether the duration that disk stops being read and write exceedes preset duration according to record;If so, into step 4。
When disk is not on read-write state, that is, illustrate that now disk is in idle condition.In order to avoid disk Dallied always in idle condition and waste the energy, a preset duration can be set, when the duration of disk continuing spinning exceedes After preset duration, you can send instruction and make the disk stop operating or reduce rotating speed.
Specifically, can according to the record of disk read-write status data come judge the now disk continuing spinning when Between.And the preset duration voluntarily can be selected and set by those skilled in the art, the embodiment of the present application is not defined to this.
Step 4:Dormancy instruction or deceleration instruction are sent to disk.
After having exceeded in the idle period that determined the disk preset duration by step 3, you can send and stop to disk Instruction of sleeping saves energy to make disk stop operating, or deceleration instruction can also be sent to disk to reduce turning for disk Speed, reduce the consumption of the energy.Certainly, specifically by the rotating speed of the disk reduce how much, can voluntarily be selected by those skilled in the art And set, the embodiment of the present application is not defined to this.
It can be seen that in the control method for the disk running status that the embodiment of the present application is provided, by detecting and judging disk Whether the time of continuing spinning exceedes preset duration, and makes idle running duration exceed the disc dormancy of preset duration or reduce and turn Speed, so as to reach the purpose for reducing power consumption, saving the energy.
The control method of disk running status provided herein, on the basis of above-described embodiment:
As a kind of preferred embodiment, preset duration is 10 minutes.
According to described previously, preset duration is whether by the disc dormancy of idle running or to reduce the comparison of rotating speed for weighing Standard.If preset duration is too short, be likely to result in frequent dormancy, the startup of disk, increase power consumption, and if preset duration is long, Energy-saving effect can then be reduced.The embodiment of the present application considers two aspects, and the preset duration provided is preferably 10 minutes.
As a kind of preferred embodiment, in addition to:
After receiving to the call request of disk, sent to disk and recover instruction.
Specifically, can also be to after processor receives the call request to disk such as other application or equipment Disk, which is sent, recovers instruction, in order to make the state that disk is returned to before dormancy or reduction rotating speed.Certainly, if in step 4 What it is to disk transmission is dormancy instruction, then recovery instruction mentioned here can specifically make disk recover to start;If in step 4 to What disk was sent is deceleration instruction, then recovery instruction described here can specifically make disk recover the rated speed before deceleration, So that disk enters read-write state.
Certainly, the recovery of disk is a process, it is necessary to expend some times.What those skilled in the art will also be appreciated that It is, can be in some before its fixation is started working for the disk that some are only operated in fixed time period Time point sends to the backup disk of dormancy or deceleration recovers instruction, to allow disk to enter rated speed shape in advance State, avoid delay the progress of work.For example, for being arranged to only daily 1:00-4:00 period carried out the standby of back-up job Part disk, can be 0:Sent when 55 to disk and recover instruction.Certainly, as specifically how far ahead of time, also can be by art technology Personnel are voluntarily selected and set, and the embodiment of the present application is not limited this.
The control device of the disk running status provided below the embodiment of the present application is introduced.
Referring to Fig. 2, Fig. 2 is a kind of structured flowchart of the control device of disk running status provided herein;Bag Include acquisition module 1, judge module 2 and command module 3;
Acquisition module 1 is used for acquisition simultaneously read-write state data of the recording disc at current time;
Judge module 2 is used to judge whether disk is in read-write state according to read-write state data;If it is not, then according to record Judge whether the duration that disk stops being read and write exceedes preset duration;
Command module 3 is used for when judge module 2 judges that the duration that disk stops being read and write exceedes preset duration, to disk Send dormancy instruction or deceleration instruction.
It can be seen that the control device of disk running status provided herein, by detecting and judging disk continuing spinning Time whether exceed preset duration, and make idle running duration exceed preset duration disc dormancy or reduce rotating speed, so as to To reach the purpose for reducing power consumption, saving the energy.
The control device of disk running status provided herein, on the basis of above-described embodiment:
As a kind of preferred embodiment, preset duration is 10 minutes.
As a kind of preferred embodiment, the command module 3 is additionally operable to:
After receiving to the call request of disk, sent to disk and recover instruction.
Present invention also provides a kind of control device of disk running status, including:
Memory:For storing computer program;
Processor:For performing computer program to realize the control of the disk running status as described in any of the above embodiment The step of method processed.
Present invention also provides a kind of computer-readable recording medium, computer is stored with computer-readable recording medium Program, the control method of the disk running status as described in any of the above embodiment is realized when computer program is executed by processor The step of.
The specific reality of the control device of disk running status provided herein, equipment and computer-readable recording medium The control method for applying mode and disk running status as described above can just repeat no more here mutually to should refer to.
Each embodiment is described by the way of progressive in the application, and what each embodiment stressed is and other realities Apply the difference of example, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment Speech, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is referring to method part illustration .
It should be noted that in present specification, the relational terms of such as " first " and " second " etc, it is used merely to By an entity either operate with another entity or operation make a distinction, and not necessarily require or imply these entities or Any this actual relation or order be present between person's operation.In addition, term " comprising ", "comprising" or its any other Variant is intended to including for nonexcludability, so that process, method, article or equipment including a series of elements are not only Including those key elements, but also the other element including being not expressly set out, or also include for this process, method, thing Product or the intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", It is not precluded from other identical element in the process including the key element, method, article or equipment being also present.
Technical scheme provided herein is described in detail above.Specific case used herein is to this Shen Principle and embodiment please is set forth, the explanation of above example be only intended to help understand the present processes and its Core concept.It should be pointed out that for those skilled in the art, the premise of the application principle is not being departed from Under, some improvement and modification can also be carried out to the application, these are improved and modification also falls into the protection of the application claim In the range of.

Claims (8)

  1. A kind of 1. control method of disk running status, it is characterised in that including:
    Obtain and recording disc current time read-write state data;
    Judge whether the disk is in read-write state according to the read-write state data;
    If it is not, then judge whether the duration that the disk stops being read and write exceedes preset duration according to the record;
    If exceeding preset duration, dormancy instruction or deceleration instruction are sent to the disk.
  2. 2. control method according to claim 1, it is characterised in that the preset duration is 10 minutes.
  3. 3. the control method according to claims 1 or 2, it is characterised in that also include:
    After the call request to the disk is received, sent to the disk and recover instruction.
  4. A kind of 4. control device of disk running status, it is characterised in that including:
    Acquisition module:For obtain and recording disc current time read-write state data;
    Judge module:For judging whether the disk is in read-write state according to the read-write state data;If it is not, then basis The record judges whether the duration that the disk stops being read and write exceedes preset duration;
    Command module:If judging that the duration that the disk stops being read and write exceedes the preset duration for the judge module, Then dormancy instruction or deceleration instruction are sent to the disk.
  5. 5. control device according to claim 4, it is characterised in that the preset duration is 10 minutes.
  6. 6. according to the control device described in claim 4 or 5, it is characterised in that the command module is additionally operable to:
    After the call request to the disk is received, sent to the disk and recover instruction.
  7. A kind of 7. control device of disk running status, it is characterised in that including:
    Memory:For storing computer program;
    Processor:For performing the computer program to realize the disk running status as described in any one of claims 1 to 3 Control method the step of.
  8. 8. a kind of computer-readable recording medium, it is characterised in that be stored with computer in the computer-readable recording medium Program, the disk running status as described in any one of claims 1 to 3 is realized when the computer program is executed by processor The step of control method.
CN201711079403.XA 2017-11-06 2017-11-06 A kind of control method, device and the equipment of disk running status Pending CN107728954A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711079403.XA CN107728954A (en) 2017-11-06 2017-11-06 A kind of control method, device and the equipment of disk running status

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711079403.XA CN107728954A (en) 2017-11-06 2017-11-06 A kind of control method, device and the equipment of disk running status

Publications (1)

Publication Number Publication Date
CN107728954A true CN107728954A (en) 2018-02-23

Family

ID=61222575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711079403.XA Pending CN107728954A (en) 2017-11-06 2017-11-06 A kind of control method, device and the equipment of disk running status

Country Status (1)

Country Link
CN (1) CN107728954A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108873806A (en) * 2018-06-12 2018-11-23 四川省达州钢铁集团有限责任公司 Double-core axle control method
CN109886542A (en) * 2019-01-15 2019-06-14 新奥数能科技有限公司 A kind of equipment is had holidays by turns recommended method, device, readable medium and electronic equipment
CN110795293A (en) * 2019-09-27 2020-02-14 苏州浪潮智能科技有限公司 Method, system and device for testing soft shutdown of server
CN111352592A (en) * 2020-02-27 2020-06-30 腾讯科技(深圳)有限公司 Disk read-write control method, device, equipment and computer readable storage medium
CN112513646A (en) * 2018-08-22 2021-03-16 深圳迈瑞生物医疗电子股份有限公司 Instrument state control method and system on assembly line and analysis device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510117A (en) * 2009-03-12 2009-08-19 成都市华为赛门铁克科技有限公司 Method, apparatus and storage apparatus for controlling state of storage apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510117A (en) * 2009-03-12 2009-08-19 成都市华为赛门铁克科技有限公司 Method, apparatus and storage apparatus for controlling state of storage apparatus

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108873806A (en) * 2018-06-12 2018-11-23 四川省达州钢铁集团有限责任公司 Double-core axle control method
CN108873806B (en) * 2018-06-12 2021-07-09 四川省达州钢铁集团有限责任公司 Double-core-rod control method
CN112513646A (en) * 2018-08-22 2021-03-16 深圳迈瑞生物医疗电子股份有限公司 Instrument state control method and system on assembly line and analysis device
CN112513646B (en) * 2018-08-22 2024-04-16 深圳迈瑞生物医疗电子股份有限公司 Instrument state control method and system on assembly line and analysis device
CN109886542A (en) * 2019-01-15 2019-06-14 新奥数能科技有限公司 A kind of equipment is had holidays by turns recommended method, device, readable medium and electronic equipment
CN110795293A (en) * 2019-09-27 2020-02-14 苏州浪潮智能科技有限公司 Method, system and device for testing soft shutdown of server
CN110795293B (en) * 2019-09-27 2022-07-15 苏州浪潮智能科技有限公司 Method, system and device for testing soft shutdown of server
CN111352592A (en) * 2020-02-27 2020-06-30 腾讯科技(深圳)有限公司 Disk read-write control method, device, equipment and computer readable storage medium
CN111352592B (en) * 2020-02-27 2021-04-20 腾讯科技(深圳)有限公司 Disk read-write control method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN107728954A (en) A kind of control method, device and the equipment of disk running status
EP2380081B1 (en) Method and system for hibernation or suspend using a non-volatile-memory device
US6647472B2 (en) Fast suspend to disk
US9436251B2 (en) Fast platform hibernation and resumption of computing systems
EP2661661B1 (en) Method and system for managing sleep states of interrupt controllers in a portable computing device
CN102053697B (en) Hard disk control method, device and computer
CN101916201A (en) Android-based mobile terminal cold-boot method and device
CN105446916B (en) USB bus state switching method and device
CN111562836A (en) Power saving method, device, equipment and storage medium applied to electronic equipment
CN107357408B (en) NVMe JBOF energy-saving method and system and data center
CN102279784A (en) Electronic equipment and method and system for reminding user of use condition of system resource of electronic equipment
WO2014008653A1 (en) Method for switching a device between hibernat mode and wake-up
CN102736928B (en) Fast wake-up computer system method and computer system
US20120291043A1 (en) Minimizing Resource Latency Between Processor Application States In A Portable Computing Device By Using A Next-Active State Set
CN106200860B (en) Hard disk power consumption and hard disk power consumption management service control method and device
TWI587309B (en) Systems and methods for managing data in a device for hibernation states
CN105573860A (en) STD (Suspend to disk) management method and STD management system used in computer system
CN105320246B (en) A kind of information processing method and electronic equipment
US20090103404A1 (en) Optic disk drive power management method for computer system
CN105843363B (en) A kind of chip low power consumption optimization method and device
CN101673138B (en) Power management method of computer and computer
TWI284283B (en) Operating systems switching method under sleep mode and switching apparatus thereof
CN109614050A (en) Disc dormancy condition control method, device, equipment and readable storage medium storing program for executing
CN103513746B (en) A kind of ultra-low power consumption standby method and circuit
CN113268135A (en) Low-power-consumption standby method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180223

RJ01 Rejection of invention patent application after publication