CN103576835B - The data manipulation method of a kind of dormancy disk and device - Google Patents

The data manipulation method of a kind of dormancy disk and device Download PDF

Info

Publication number
CN103576835B
CN103576835B CN201310528922.5A CN201310528922A CN103576835B CN 103576835 B CN103576835 B CN 103576835B CN 201310528922 A CN201310528922 A CN 201310528922A CN 103576835 B CN103576835 B CN 103576835B
Authority
CN
China
Prior art keywords
disk
focus
access
data
frequent degree
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310528922.5A
Other languages
Chinese (zh)
Other versions
CN103576835A (en
Inventor
胡伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310528922.5A priority Critical patent/CN103576835B/en
Publication of CN103576835A publication Critical patent/CN103576835A/en
Priority to PCT/CN2014/083071 priority patent/WO2015062316A1/en
Application granted granted Critical
Publication of CN103576835B publication Critical patent/CN103576835B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0625Power saving in storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses the data manipulation method of a kind of dormancy disk and device.Wherein, method includes: within the disc dormancy period, the frequent degree of access of periodic statistical disk, according to the access of disk frequent degree, disk is divided into focus disk and non-focus disk;The response data operation request that sends within the disc dormancy period of main frame, it is determined that what data operation request was targeted operated data at focus disk still in non-focus disk;If it is determined that by operation data in focus disk, only wake up by the focus disk at operation data place, the data that operated in the focus disk waken up carried out corresponding data manipulation;If it is determined that by operation data in non-focus disk, only wake up by the non-focus disk at operation data place, to the non-focus disk waken up carried out corresponding data manipulation by operation data, and by the Data Migration in the non-focus disk that wakes up to focus disk.According to embodiments of the present invention, it is possible to achieve the energy-saving effect of disk.

Description

The data manipulation method of a kind of dormancy disk and device
Technical field
The present invention relates to field of data storage, particularly relate to data manipulation method and the device of a kind of dormancy disk.
Background technology
At present, under the premise ensureing data reliability, how to greatest extent for user energy-conservation be research emphasis and the difficult point of each big storage manufacturer, also praised highly as green storage by industry each big main flow storage manufacturer.Wherein, disc dormancy technology is the spotlight technology in green storage concept.
Common disc dormancy method mainly includes RAID(RedundantArraysofInexpensiveDisks, disk array) group dormancy and storage pool dormancy, all disks that both dormancy methods are both in RAID group or storage pool carry out dormancy and wake process up.Concrete is exactly.After client is configured with dormancy time section, within the disc dormancy period, all disks in RAID group or storage pool enter resting state, otherwise, within the non-sleep time period, all disks in RAID group or storage pool are in wake-up states.Such as, in the storage pool including 20 disks, if dormancy time section is configured to every night 20:00 to 8:00 in morning next day by user, within this time period, 20 disks of this storage pool fully enter resting state.
Within the disc dormancy period, consult shown in Fig. 1, if main frame sends data operation request (including read requests and write request) by I/O passage, first all disks being in resting state in storage pool are all waken up, then corresponding operation is performed according to operation requests, after end of operation, all disks in storage pool can be again introduced into resting state.
But, in the process realizing the present invention, the inventors found that in prior art, at least there are the following problems: in the dormancy time section that user has configured, if main frame continues to send data operation request, it is necessary to continually by all Suspend To Disks in storage pool.In this case, disc dormancy technology cannot reach energy-saving effect veritably.
Summary of the invention
In order to solve above-mentioned technical problem, embodiments provide data manipulation method and the device of a kind of disc dormancy, to realize the energy-saving effect of disk.
The embodiment of the invention discloses following technical scheme:
First aspect according to embodiments of the present invention, disclose the data manipulation method of a kind of dormancy disk, within the disc dormancy period, the frequent degree of access of periodic statistical disk, disk is divided into focus disk and non-focus disk by the frequent degree of access of the described disk according to periodic statistical, wherein, accessing the high disk of frequent degree is focus disk, and accessing the low disk of frequent degree is non-focus disk;
Described method includes:
In response to the data operation request that main frame sends within the disc dormancy period, it is determined that described data operation request targeted by operation data at described focus disk still in described non-focus disk;
If it is determined that described by operation data in described focus disk, only wake up described by operation data place focus disk, in the focus disk waken up described by operation data carry out corresponding data manipulation;
Data are operated in described non-focus disk if it is determined that described, only wake the described non-focus disk by operation data place up, described in the non-focus disk waken up is carried out corresponding data manipulation by operation data, and by the Data Migration in the non-focus disk that wakes up to described focus disk.
In conjunction with a first aspect of the present invention, the present invention also has the first and is likely to, and namely described focus disk is in wake-up states all the time in described dormancy time section.
In conjunction with a first aspect of the present invention, the present invention also has the second and is likely to, and namely described method also includes:
After disk is divided into focus disk and non-focus disk by the frequent degree of access of the described disk according to periodic statistical, described focus disk is set according to the frequent degree of access of described focus disk in described dormancy time section, is in wake-up states or in a dormant state;
Wherein, access frequent degree more than or equal to when presetting frequent degree threshold value, described focus disk is set and is in wake-up states, access frequent degree less than when presetting frequent degree threshold value, described focus disk is set in a dormant state;
Then if it is determined that described by operation data in described focus disk, only wake up described by operation data place focus disk, in the focus disk waken up described by operation data carry out corresponding data manipulation particularly as follows:
Data are operated in described focus disk if it is determined that described, judge that the described focus disk by operation data place is currently at wake-up states or resting state, if in a dormant state, wake the described focus disk by operation data place up, and in the focus disk waken up described by operation data carry out corresponding data manipulation, if being in wake-up states, directly in the focus disk waken up described by operation data carry out corresponding data manipulation.
In conjunction with a first aspect of the present invention, the present invention also has the third and is likely to, i.e. disk is divided into focus disk and non-focus disk according to the frequent degree of the access of described disk by the frequent degree of access of described periodic statistical disk, including:
After receiving the data operation request that main frame sends, the frequent degree of access of disk of statistics, according to the frequent degree of access of the described disk of recent statistics, disk is divided into focus disk and non-focus disk;
Or,
After often carrying out a data manipulation, the frequent degree of access of disk of statistics, according to the frequent degree of access of the described disk of recent statistics, disk is divided into focus disk and non-focus disk.
In conjunction with a first aspect of the present invention, the present invention also has the 4th kind of possibility, and namely the frequent degree of the access of described disk includes: total access times of disk and/or the longest access interval of disk;
Then total access times are more big and/or the longest access interval more hour, access frequent degree more high, when the more little and/or the longest access interval of total access times is more big, access frequent degree more low.
Second aspect according to embodiments of the present invention, discloses the data operation device of a kind of dormancy disk, including:
Disk division unit, for within the disc dormancy period, the frequent degree of access of periodic statistical disk, disk is divided into focus disk and non-focus disk by the frequent degree of access of the described disk according to periodic statistical, wherein, accessing the high disk of frequent degree is focus disk, and accessing the low disk of frequent degree is non-focus disk;
Operation response unit, for the data operation request that sends within the disc dormancy period in response to main frame, it is determined that what described data operation request was targeted operated data at described focus disk still in described non-focus disk;
First data operating units, for if it is determined that described by operation data in described focus disk, only wake up described by operation data place focus disk, in the focus disk waken up described by operation data carry out corresponding data manipulation;
Second data operating units, for if it is determined that described by operation data in described non-focus disk, only wake the described non-focus disk by operation data place up, described in the non-focus disk waken up is carried out corresponding data manipulation by operation data, and by the Data Migration in the non-focus disk that wakes up to described focus disk.
In conjunction with a second aspect of the present invention, the present invention also has the first and is likely to, and namely described focus disk is in wake-up states all the time in described dormancy time section.
In conjunction with a second aspect of the present invention, the present invention also has the second and is likely to, and namely described device also includes:
Dormancy time section adjustment unit, after disk being divided into focus disk and non-focus disk in the frequent degree of access of the described disk according to periodic statistical, described focus disk is set according to the frequent degree of access of described focus disk in described dormancy time section, is in wake-up states or in a dormant state;
Wherein, access frequent degree more than or equal to when presetting frequent degree threshold value, described focus disk is set and is in wake-up states, access frequent degree less than when presetting frequent degree threshold value, described focus disk is set in a dormant state;
Then described first data operating units specifically for, data are operated in described focus disk if it is determined that described, judge that the described focus disk by operation data place is currently at wake-up states or resting state, if in a dormant state, wake the described focus disk by operation data place up, and in the focus disk waken up described by operation data carry out corresponding data manipulation, if being in wake-up states, directly in the focus disk waken up described by operation data carry out corresponding data manipulation.
In conjunction with a second aspect of the present invention, the present invention also has the third and is likely to, and namely described disk division unit includes:
First divides subelement, for after receiving the data operation request that main frame sends, and the frequent degree of access of disk of statistics, according to the frequent degree of access of the described disk of recent statistics, disk is divided into focus disk and non-focus disk;
Or,
Second divides subelement, for after often carrying out a data manipulation, and the frequent degree of access of disk of statistics, according to the frequent degree of access of the described disk of recent statistics, disk is divided into focus disk and non-focus disk.
In conjunction with a second aspect of the present invention, the present invention also has the 4th kind of possibility, and namely the frequent degree of the access of described disk includes: total access times of disk and/or the longest access interval of disk;
Then total access times are more big and/or the longest access interval more hour, access frequent degree more high, when the more little and/or the longest access interval of total access times is more big, access frequent degree more low.
As can be seen from the above-described embodiment, compared with prior art, it is an advantage of the current invention that:
Within the disc dormancy period, once main frame frequently has data operation request, as a rule, the targeted data of these data operation request are all derived from focus disk, and, have only to frequently wake focus disk up, such that it is able to ensure the resting state (without waking all of disk continually up) of non-focus disk, finally achieve energy-conservation effect.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the data manipulation schematic diagram of dormancy disk in prior art;
Fig. 2 is the flow chart of an embodiment of the data manipulation method of a kind of dormancy disk of the present invention;
Fig. 3 is the schematic diagram dividing dormancy disk in the present invention;
Fig. 4 is a kind of schematic diagram that the frequent degree of access of disk is added up in the present invention;
Fig. 5 is the flow chart of another embodiment of the data manipulation method of a kind of dormancy disk of the present invention;
Fig. 6 is the flow chart of an embodiment of the method for reading data of a kind of dormancy disk of the present invention;
Fig. 7 is the structure chart of an embodiment of the data operation device of a kind of dormancy disk of the present invention; 
Fig. 8 is the structure chart of another embodiment of the data operation device of a kind of dormancy disk of the present invention.
Detailed description of the invention
Embodiments provide data manipulation method and the device of dormancy disk.The core of the present invention is in that: according to the access of disk frequent degree disk is divided into focus disk and non-focus disk two types (access frequent degree high be focus disk, access frequent degree low be non-focus disk), and the type of regular update disk.Further, when the targeted data of data operation request are in non-focus disk, just by the Data Migration in non-focus disk to focus disk.In this way, it is possible to improve hit rate in focus disk, i.e. improve the targeted data of data operation request and be positioned at the probability of focus disk. 
So, within the disc dormancy period, once main frame frequently has data operation request, as a rule, the targeted data of these data operation request are all derived from focus disk, and, it is only necessary to frequently wake focus disk up, such that it is able to ensure the resting state (without waking all of disk continually up) of non-focus disk, finally achieve energy-conservation effect.
Understandable for enabling the above-mentioned purpose of the present invention, feature and advantage to become apparent from, below in conjunction with accompanying drawing, the embodiment of the present invention is described in detail.
Embodiment one
Referring to Fig. 2, it is the flow chart of an embodiment of data manipulation method of a kind of dormancy disk of the present invention, and the method comprises the following steps:
Step 201: within the disc dormancy period, the frequent degree of access of periodic statistical disk, disk is divided into focus disk and non-focus disk by the frequent degree of access of the described disk according to periodic statistical, wherein, accessing the high disk of frequent degree is focus disk, and accessing the low disk of frequent degree is non-focus disk;
Consult shown in Fig. 3, according to the frequent degree of the access of disk, disk is divided into focus disk and non-focus disk.
It should be noted that in technical solution of the present invention, it is possible to there is a lot of methods to describe the frequent degree of access of a disk.
Preferably, the frequent degree of the access of disk includes: total access times of disk and/or the longest access interval of disk.And total access times are more big and/or the longest access interval more hour, access frequent degree more high, when the more little and/or the longest access interval of total access times is more big, access frequent degree more low.
Such as, a frequency threshold value can be preset and/or preset an interval threshold, when total access times of disk more than or equal to this frequency threshold value and/or the longest access interval less than or equal to this interval threshold time, the frequent degree of access of disk is high, when total access times of disk less than this frequency threshold value and/or the longest access interval more than or equal to this interval threshold time, the frequent degree of access of disk is low.Certainly, total access times of all disks or the longest access interval can also be ranked up, then a precedence threshold value is set, come the frequent degree of the disk access before this precedence threshold value high, focus disk can be divided into, come the frequent degree ground of this precedence threshold value disk access below, non-focus disk can be divided into.
Further, the total access times according to disk can also calculate disk average access frequency in a certain preset time period, i.e. the time of the access times in average access frequency=a certain preset time period/a certain preset time period.Average access frequency may also be used for describing the frequent degree of access of disk, i.e. when average access frequency is more than or equal to predeterminated frequency threshold value, accesses frequent degree high, when average access frequency is less than predeterminated frequency threshold value, accesses frequent degree low.Or, by the average access frequency of each disk is ranked up distinguishing the frequent degree of access of disk.
Further, disk average access interval in a certain preset time period can also be calculated according to all access intervals of disk, i.e. average access interval=all access interval/interval numbers.Equally, average access interval may also be used for describing the frequent degree of access of disk, i.e. when average access interval is less than or equal to predetermined interval threshold value, accesses frequent degree high, when average access interval is more than predetermined interval threshold value, accesses frequent degree low.Or, by the average access interval of each disk is ranked up distinguishing the frequent degree of access of disk.
In addition to this it is possible to obtain other by other mathematics differentiation mode can describe the parameter accessing frequent degree, will not enumerate here.It should be noted that the frequency threshold value preset, default interval threshold and default frequency threshold arbitrarily can be set according to actual needs by user, technical solution of the present invention is not specifically limited.
Also, it should be noted preset time period arbitrarily can also be set according to actual needs by user, it can be the interval between current once statistics and last statistics, consults shown in Fig. 4.Certainly, if the interval between current once statistics and last statistics is long, it is also possible to be a period of time therein.Furthermore it is also possible to be in this dormancy time section, start to current once interval statistics from first time statistics.
In the inventive solutions, must flow through in the following manner to improve the hit rate of focus disk: the frequent degree of access of periodic statistical disk, disk is divided into focus disk and non-focus disk by the frequent degree of the access of disk according to recent statistics, and by the Data Migration in non-focus disk to focus disk.Therefore, it is more frequent that this part performs, and the hit rate of focus disk is more high.
Preferably, after receiving the data operation request that main frame sends, or, after often carrying out a data manipulation, just add up the frequent degree of access of a disk, and according to the frequent degree of access of the disk of recent statistics, disk is divided into focus disk and non-focus disk, and by the Data Migration in non-focus disk to focus disk.
Step 202: the data operation request sent within the disc dormancy period in response to main frame, it is determined that described data operation request targeted by operation data at described focus disk still in described non-focus disk;
Step 203: if it is determined that described by operation data in described focus disk, only wake up described by operation data place focus disk, in the focus disk waken up described by operation data carry out corresponding data manipulation.
Step 204: operated data in described non-focus disk if it is determined that described, only wake the described non-focus disk by operation data place up, described in the non-focus disk waken up is carried out corresponding data manipulation by operation data, and by the Data Migration in the non-focus disk that wakes up to described focus disk.
In the present embodiment, focus disk and non-focus disk within the disc dormancy period all in resting state.Owing to focus disk can be accessed continually, therefore, except this implementation, it is also possible to be that focus disk is in wake-up states within the disc dormancy period, and only allow non-focus disk within the disc dormancy period in a dormant state.In this case, step 203 can be omitted wake this step of focus disk up.
It is last it should be noted that in technical solution of the present invention, data operation request includes data read request and data write request.
Such as, main frame sends data read request within the disc dormancy period, if this data read request targeted be read data in focus disk, only wake the focus disk being read data place up, then read and the focus disk waken up is read data.If the targeted reading data of this data read request are in non-focus disk, only wake the non-focus disk being read data place up, then read and the non-focus disk waken up is read data.
As can be seen from the above-described embodiment, compared with prior art, it is an advantage of the current invention that:
Within the disc dormancy period, once main frame frequently has data operation request, as a rule, the targeted data of these data operation request are all derived from focus disk, and, have only to frequently wake focus disk up, such that it is able to ensure the resting state (without waking all of disk continually up) of non-focus disk, finally achieve energy-conservation effect.
Embodiment two
In above example one, it is contemplated that the feature that focus disk is accessed frequently, preferably, unification arranges focus disk and is in wake-up states within the disc dormancy period all the time one.
And in the present embodiment, consider if focus disk is in wake-up states all the time, energy-conservation effect cannot be embodied better, after the frequent degree of the access having added up disk each time, the frequent degree that accesses according to focus disk determines that focus disk now is once in wake-up states in time period before statistics in distance and is in resting state, so by segment processing mode realize on focus disk energy-conservation.
Referring to Fig. 5, it is the flow chart of another embodiment of data manipulation method of a kind of dormancy disk of the present invention, and the method comprises the following steps:
Step 501: within the disc dormancy period, the frequent degree of access of periodic statistical disk, disk is divided into focus disk and non-focus disk by the frequent degree of access of the described disk according to periodic statistical, wherein, accessing the high disk of frequent degree is focus disk, and accessing the low disk of frequent degree is non-focus disk;
Step 502: described focus disk is set according to the frequent degree of access of described focus disk and is in wake-up states or in a dormant state in described dormancy time section;
Wherein, access frequent degree more than or equal to when presetting frequent degree threshold value, described focus disk is set and is in wake-up states, access frequent degree less than when presetting frequent degree threshold value, described focus disk is set in a dormant state.
Arbitrarily can being set according to actual needs by user it should be noted that preset frequent degree threshold value, technical solution of the present invention is not specifically limited.
Such as, as shown in Figure 4, after second time statistics, if according to the frequent degree of access of second time statistical result determined focus disk is more than default frequent degree threshold value, then arranges in focus disk interval between second time statistics and third time statistics and be in wake-up states.
Step 503: the data operation request sent within the disc dormancy period in response to main frame, it is determined that described data operation request targeted by operation data at described focus disk still in described non-focus disk;
Step 504: operated data in described focus disk if it is determined that described, judge that the described focus disk by operation data place is currently at wake-up states or resting state, if in a dormant state, enter step 505, if being in wake-up states, enter step 506;
Step 505: wake the described focus disk by operation data place up, and the data that operated in the focus disk waken up are carried out corresponding data manipulation, process ends;
Step 506: directly the data that operated in the focus disk waken up are carried out corresponding data manipulation, process ends, process ends;
Step 507: operated data in described non-focus disk if it is determined that described, only wake the described non-focus disk by operation data place up, the data that operated in the non-focus disk waken up are carried out corresponding data manipulation, and by the Data Migration in the non-focus disk that wakes up to described focus disk, process ends.
As can be seen from the above-described embodiment, compared with prior art, it is an advantage of the current invention that:
Within the disc dormancy period, once main frame frequently has data operation request, as a rule, the targeted data of these data operation request are all derived from focus disk, and, have only to frequently wake focus disk up, such that it is able to ensure the resting state (without waking all of disk continually up) of non-focus disk, finally achieve energy-conservation effect.
Implement three
Below for a concrete application scenarios, explain the data manipulation method to dormancy disk.Wherein, it is arranged in the disk of storage server in sleep procedure, whenever receiving the data read request of application server, implements data manipulation as follows.
Referring to Fig. 6, it is the flow chart of an embodiment of method for reading data of a kind of dormancy disk of the present invention, and the method comprises the following steps:
Step 601: inquiry data read request for the mapped disk of data;
For convenient description below, by data read request for the mapped disk of data referred to as target disk.
Step 602: update the history access record of target disk according to this data read request;
Wherein, in the history access record of disk, at least record has total access times of this disk.
Step 603: inquire about the attribute of target disk, and the attribute according to target disk wakes up just at the disk of dormancy, and reading data return to application server from target disk;
According to attribute, disk is divided into focus disk and non-focus disk, and wherein, within the disc dormancy period, focus disk is in wake-up states all the time, but not focus disk when no data operates in a dormant state, and be waken up when there being data manipulation.
Such as, finding after queried the attribute of target disk, having 4 target disks in 5 target disks is focus disk, and other 1 target disk is non-focus disk.Owing to focus disk is in wake-up states, but not focus disk is in a dormant state, therefore, only need to wake 1 non-Thermomagnetic disc in a dormant state up.
Step 604: read total access times of target disk the attribute of the total each disk of access times ranking replacement according to each disk from the history access record of each disk, and by the Data Migration in non-focus disk to focus disk;
Step 605: wake the focus disk after renewal up, the non-focus disk after dormancy renewal.
It should be noted that said method is applied equally to data write operation.
As can be seen from the above-described embodiment, compared with prior art, it is an advantage of the current invention that:
Within the disc dormancy period, once main frame frequently has data operation request, as a rule, the targeted data of these data operation request are all derived from focus disk, and, have only to frequently wake focus disk up, such that it is able to ensure the resting state (without waking all of disk continually up) of non-focus disk, finally achieve energy-conservation effect.
Embodiment four
Corresponding with the data manipulation method of above-mentioned a kind of dormancy disk, the embodiment of the present invention additionally provides the data operation device of a kind of dormancy disk.Referring to Fig. 7, it is the structure chart of an embodiment of data operation device of a kind of dormancy disk of the present invention, and this device includes: disk division unit 701, operation response unit the 702, first data operating units 703 and the second data operating units 704.Operation principle below in conjunction with this device is further described its internal structure and annexation.
Disk division unit 701, for within the disc dormancy period, the frequent degree of access of periodic statistical disk, disk is divided into focus disk and non-focus disk by the frequent degree of access of the described disk according to periodic statistical, wherein, accessing the high disk of frequent degree is focus disk, and accessing the low disk of frequent degree is non-focus disk;
Operation response unit 702, for the data operation request that sends within the disc dormancy period in response to main frame, it is determined that what described data operation request was targeted operated data at described focus disk still in described non-focus disk;
First data operating units 703, for if it is determined that described by operation data in focus disk, only wake up described by operation data place focus disk, in the focus disk waken up described by operation data carry out corresponding data manipulation.
Second data operating units 704, for if it is determined that described by operation data in described non-focus disk, only wake the described non-focus disk by operation data place up, by operation data, described in the non-focus disk waken up is carried out corresponding data manipulation, and the Data Migration in the non-focus disk just waken up is in described focus disk.
Preferably, described focus disk is in wake-up states all the time in described dormancy time section.
Preferably, disk division unit 701 includes:
First divides subelement, for after receiving the data operation request that main frame sends, and the frequent degree of access of disk of statistics, according to the frequent degree of access of the described disk of recent statistics, disk is divided into focus disk and non-focus disk;
Or,
Second divides subelement, for after often carrying out a data manipulation, and the frequent degree of access of disk of statistics, according to the frequent degree of access of the described disk of recent statistics, disk is divided into focus disk and non-focus disk.
Preferably, the frequent degree of the access of described disk includes: disk total access times and/or the longest access interval of disk;
Then total access times are more big and/or the longest access interval more hour, access frequent degree more high, when the more little and/or the longest access interval of total access times is more big, access frequent degree more low.
Preferably, as shown in Figure 8, described device also includes:
Dormancy time section adjustment unit 705, after disk being divided into focus disk and non-focus disk in the frequent degree of access of the described disk according to periodic statistical, described focus disk is set according to the frequent degree of access of described focus disk in described dormancy time section, is in wake-up states or in a dormant state;
Wherein, access frequent degree more than or equal to when presetting frequent degree threshold value, described focus disk is set and is in wake-up states, access frequent degree less than when presetting frequent degree threshold value, described focus disk is set in a dormant state;
Then described first data operating units 703 specifically for, data are operated in described focus disk if it is determined that described, judge that the described focus disk by operation data place is currently at wake-up states or resting state, if in a dormant state, wake the described focus disk by operation data place up, and in the focus disk waken up described by operation data carry out corresponding data manipulation, if being in wake-up states, directly in the focus disk waken up described by operation data carry out corresponding data manipulation.
As can be seen from the above-described embodiment, compared with prior art, it is an advantage of the current invention that:
Within the disc dormancy period, once main frame frequently has data operation request, as a rule, the targeted data of these data operation request are all derived from focus disk, and, have only to frequently wake focus disk up, such that it is able to ensure the resting state (without waking all of disk continually up) of non-focus disk, finally achieve energy-conservation effect.
The technical staff in described field is it can be understood that arrive, for convenience of description and succinctly, and the specific works process of the system of foregoing description, device and unit, it is possible to reference to the corresponding process in preceding method embodiment, do not repeat them here.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method, it is possible to realize by another way.Such as, the device embodiment arrived described above is merely schematic, such as, the division of described unit, being only a kind of logic function to divide, actual can have other dividing mode when realizing, for instance multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can ignore, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, device or unit, it is possible to be electrical, mechanical or other form.
The described unit that illustrates as separating component can be or can also be physically separate, and the parts shown as unit can be or may not be physical location, namely may be located at a place, or can also be distributed on multiple NE.Some or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to be that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, it is possible to adopts the form of SFU software functional unit to realize.
It should be noted that, one of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can be by the hardware that computer program carrys out instruction relevant to complete, described program can be stored in a computer read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc..
Data manipulation method and device to a kind of dormancy disk provided by the present invention are described in detail above, principles of the invention and embodiment are set forth by specific embodiment used herein, and the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, all will change in specific embodiments and applications, in sum, this specification content should not be construed as limitation of the present invention.

Claims (10)

1. the data manipulation method of a dormancy disk, it is characterized in that, within the disc dormancy period, the frequent degree of access of periodic statistical disk, disk is divided into focus disk and non-focus disk by the frequent degree of access of the described disk according to periodic statistical, wherein, accessing the high disk of frequent degree is focus disk, and accessing the low disk of frequent degree is non-focus disk;Described method includes:
In response to the data operation request that main frame sends within the disc dormancy period, it is determined that described data operation request targeted by operation data at described focus disk still in described non-focus disk;
If it is determined that described by operation data in described focus disk, only wake up described by operation data place focus disk, in the focus disk waken up described by operation data carry out corresponding data manipulation;
Data are operated in described non-focus disk if it is determined that described, only wake the described non-focus disk by operation data place up, to in the non-focus disk waken up described by operation data carry out corresponding data manipulation, and by the Data Migration in the non-focus disk that wakes up to described focus disk, to improve described focus disk hit rate.
2. method according to claim 1, it is characterised in that described focus disk is in wake-up states all the time in described dormancy time section.
3. method according to claim 1, it is characterised in that described method also includes:
After disk is divided into focus disk and non-focus disk by the frequent degree of access of the described disk according to periodic statistical, described focus disk is set according to the frequent degree of access of described focus disk in described dormancy time section, is in wake-up states or in a dormant state;
Wherein, access frequent degree more than or equal to when presetting frequent degree threshold value, described focus disk is set and is in wake-up states, access frequent degree less than when presetting frequent degree threshold value, described focus disk is set in a dormant state;
Then if it is determined that described by operation data in described focus disk, only wake up described by operation data place focus disk, in the focus disk waken up described by operation data carry out corresponding data manipulation particularly as follows:
Data are operated in described focus disk if it is determined that described, judge that the described focus disk by operation data place is currently at wake-up states or resting state, if in a dormant state, wake the described focus disk by operation data place up, and in the focus disk waken up described by operation data carry out corresponding data manipulation, if being in wake-up states, directly in the focus disk waken up described by operation data carry out corresponding data manipulation.
4. method according to claim 1, it is characterised in that the frequent degree of access of described periodic statistical disk, is divided into focus disk and non-focus disk according to the frequent degree of the access of described disk by disk, including:
After receiving the data operation request that main frame sends, the frequent degree of access of disk of statistics, according to the frequent degree of access of the described disk of recent statistics, disk is divided into focus disk and non-focus disk;
Or,
After often carrying out a data manipulation, the frequent degree of access of disk of statistics, according to the frequent degree of access of the described disk of recent statistics, disk is divided into focus disk and non-focus disk.
5. method according to claim 1, it is characterised in that the frequent degree of access of described disk includes: total access times of disk and/or the longest access interval of disk;
Then total access times are more big and/or the longest access interval more hour, access frequent degree more high, when the more little and/or the longest access interval of total access times is more big, access frequent degree more low.
6. the data operation device of a dormancy disk, it is characterised in that described device includes:
Disk division unit, for within the disc dormancy period, the frequent degree of access of periodic statistical disk, disk is divided into focus disk and non-focus disk by the frequent degree of access of the described disk according to periodic statistical, wherein, accessing the high disk of frequent degree is focus disk, and accessing the low disk of frequent degree is non-focus disk;
Operation response unit, for the data operation request that sends within the disc dormancy period in response to main frame, it is determined that what described data operation request was targeted operated data at described focus disk still in described non-focus disk;
First data operating units, for if it is determined that described by operation data in described focus disk, only wake up described by operation data place focus disk, in the focus disk waken up described by operation data carry out corresponding data manipulation;
Second data operating units, for if it is determined that described by operation data in described non-focus disk, only wake the described non-focus disk by operation data place up, to in the non-focus disk waken up described by operation data carry out corresponding data manipulation, and by the Data Migration in the non-focus disk that wakes up to described focus disk, to improve described focus disk hit rate.
7. device according to claim 6, it is characterised in that described focus disk is in wake-up states all the time in described dormancy time section.
8. device according to claim 6, it is characterised in that described device also includes:
Dormancy time section adjustment unit, after disk being divided into focus disk and non-focus disk in the frequent degree of access of the described disk according to periodic statistical, described focus disk is set according to the frequent degree of access of described focus disk in described dormancy time section, is in wake-up states or in a dormant state;
Wherein, access frequent degree more than or equal to when presetting frequent degree threshold value, described focus disk is set and is in wake-up states, access frequent degree less than when presetting frequent degree threshold value, described focus disk is set in a dormant state;
Then described first data operating units specifically for, data are operated in described focus disk if it is determined that described, judge that the described focus disk by operation data place is currently at wake-up states or resting state, if in a dormant state, wake the described focus disk by operation data place up, and in the focus disk waken up described by operation data carry out corresponding data manipulation, if being in wake-up states, directly in the focus disk waken up described by operation data carry out corresponding data manipulation.
9. device according to claim 6, it is characterised in that described disk division unit includes:
First divides subelement, for after receiving the data operation request that main frame sends, and the frequent degree of access of disk of statistics, according to the frequent degree of access of the described disk of recent statistics, disk is divided into focus disk and non-focus disk;
Or,
Second divides subelement, for after often carrying out a data manipulation, and the frequent degree of access of disk of statistics, according to the frequent degree of access of the described disk of recent statistics, disk is divided into focus disk and non-focus disk.
10. device according to claim 6, it is characterised in that the frequent degree of access of described disk includes: total access times of disk and/or the longest access interval of disk;
Then total access times are more big and/or the longest access interval more hour, access frequent degree more high, when the more little and/or the longest access interval of total access times is more big, access frequent degree more low.
CN201310528922.5A 2013-10-30 2013-10-30 The data manipulation method of a kind of dormancy disk and device Active CN103576835B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310528922.5A CN103576835B (en) 2013-10-30 2013-10-30 The data manipulation method of a kind of dormancy disk and device
PCT/CN2014/083071 WO2015062316A1 (en) 2013-10-30 2014-07-25 Data manipulation method and device for hibernating disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310528922.5A CN103576835B (en) 2013-10-30 2013-10-30 The data manipulation method of a kind of dormancy disk and device

Publications (2)

Publication Number Publication Date
CN103576835A CN103576835A (en) 2014-02-12
CN103576835B true CN103576835B (en) 2016-06-29

Family

ID=50048796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310528922.5A Active CN103576835B (en) 2013-10-30 2013-10-30 The data manipulation method of a kind of dormancy disk and device

Country Status (2)

Country Link
CN (1) CN103576835B (en)
WO (1) WO2015062316A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103576835B (en) * 2013-10-30 2016-06-29 华为技术有限公司 The data manipulation method of a kind of dormancy disk and device
CN105138416A (en) * 2014-06-05 2015-12-09 中兴通讯股份有限公司 Disk sleep processing method and apparatus
CN105320246B (en) * 2015-09-29 2019-01-15 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105528053A (en) * 2015-12-11 2016-04-27 曙光信息产业股份有限公司 Management method and device for distributed system
CN105574134B (en) * 2015-12-15 2019-04-12 曙光信息产业股份有限公司 A kind of document handling method and device
CN106951179B (en) * 2016-01-07 2020-03-27 杭州海康威视数字技术股份有限公司 Data migration method and device
US10168763B2 (en) * 2016-08-09 2019-01-01 Lenovo Enterprise Solutions (Singapore) Pte. Ltd Modification of when workloads access data units and/or on which storage devices data units are stored to conserve power
CN106775461B (en) * 2016-11-30 2020-01-21 华为技术有限公司 Hot spot data determination method, equipment and device
CN108170254B (en) * 2017-12-30 2019-12-06 广东技术师范大学 strategy scheduling method based on sporadic request
CN109614050B (en) * 2018-12-11 2022-03-04 浪潮(北京)电子信息产业有限公司 Method, device and equipment for controlling dormant state of disk and readable storage medium
CN110381153A (en) * 2019-07-24 2019-10-25 深圳市网心科技有限公司 A kind of file dispositions method, deployment facility, system and medium
CN110703998B (en) * 2019-09-29 2021-11-09 百度在线网络技术(北京)有限公司 Control method of memory, controller, chip and electronic equipment
CN112988083B (en) * 2021-05-19 2021-08-03 四川省商投信息技术有限责任公司 Cold data storage method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6324620B1 (en) * 1998-07-23 2001-11-27 International Business Machines Corporation Dynamic DASD data management and partitioning based on access frequency utilization and capacity
CN102609070A (en) * 2011-12-26 2012-07-25 创新科存储技术有限公司 Apparatus for saving energy by using MAID (massive array of independent disks) technique

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262580B (en) * 2007-08-31 2010-09-08 深圳市同洲电子股份有限公司 A digital TV receiving device and method and system for monitoring hard disk dormancy
CN101655774B (en) * 2009-09-01 2012-08-29 成都市华为赛门铁克科技有限公司 Magnetic disc control method and system as well as relevant apparatus
CN103186350B (en) * 2011-12-31 2016-03-30 北京快网科技有限公司 The moving method of mixing storage system and hot spot data block
CN103576835B (en) * 2013-10-30 2016-06-29 华为技术有限公司 The data manipulation method of a kind of dormancy disk and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6324620B1 (en) * 1998-07-23 2001-11-27 International Business Machines Corporation Dynamic DASD data management and partitioning based on access frequency utilization and capacity
CN102609070A (en) * 2011-12-26 2012-07-25 创新科存储技术有限公司 Apparatus for saving energy by using MAID (massive array of independent disks) technique

Also Published As

Publication number Publication date
WO2015062316A1 (en) 2015-05-07
CN103576835A (en) 2014-02-12

Similar Documents

Publication Publication Date Title
CN103576835B (en) The data manipulation method of a kind of dormancy disk and device
US8060759B1 (en) System and method of managing and optimizing power consumption in a storage system
CN105103144B (en) For the device and method of the self adaptive control of memory
US9110669B2 (en) Power management of a storage device including multiple processing cores
JP5661874B2 (en) Idle period reporting for power management
US8495393B2 (en) Remote power management system and method for cluster system
JP2009530709A5 (en)
US8862824B2 (en) Techniques for managing power and performance of multi-socket processors
JP2013508813A (en) Relocation of memory objects for power saving
JP2011523149A (en) Sleep processor
US8868950B2 (en) Reliability-aware disk power management
US9338057B2 (en) Techniques for searching data associated with devices in a heterogeneous data center
US10235072B1 (en) Power saving mechanisms for a dynamic mirror service policy
CN103548004B (en) The method and apparatus of dynamic data attemper is realized in file system
US8036076B2 (en) Method of reducing storage power consumption by use of prefetch and computer system using the same
CN104991874B (en) A kind of multi-controller storage device ALUA collocation methods based on SCST
CN101957729B (en) Logical block transformation method and method and device compatible with reading and writing of user based on same
US20100070706A1 (en) Method of Allocating Physical Volume Area to Virtualized Volume, and Storage Device
US7882373B1 (en) System and method of reducing power consumption in a storage system through shortening of seek distances
CN111104048B (en) Data processing method and distributed storage system
CN102681650B (en) The storage system of a kind of Energy control power-economizing method and correspondence thereof
CN103176753A (en) Storage device and data management method of storage device
CN101655774A (en) Magnetic disc control method and system as well as relevant apparatus
CN105518617A (en) Caching data processing method and device
TW201710889A (en) Server and control method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant