CN103576835A - Data manipulation method and device for sleep disk - Google Patents

Data manipulation method and device for sleep disk Download PDF

Info

Publication number
CN103576835A
CN103576835A CN201310528922.5A CN201310528922A CN103576835A CN 103576835 A CN103576835 A CN 103576835A CN 201310528922 A CN201310528922 A CN 201310528922A CN 103576835 A CN103576835 A CN 103576835A
Authority
CN
China
Prior art keywords
disk
focus
access
frequent degree
focus disk
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310528922.5A
Other languages
Chinese (zh)
Other versions
CN103576835B (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

Images

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

Abstract

An embodiment of the invention discloses a data manipulation method and device for a sleep disk. The method comprises steps as follows: counting the access frequency of the disk regularly in a disk sleep time interval, and dividing the disk into a hotspot disk and a non-hotspot disk according to the access frequency of the disk; responding a data manipulation request sent by a host in the disk sleep time interval, and determining whether manipulated data aimed by the data manipulation request is in the hotspot disk or the non-hotspot disk; if the manipulated data is in the hotspot disk, only rousing the hotspot disk where the manipulated data is in, and performing relevant data manipulation on the manipulated data in the roused hotspot disk; and if the manipulated data is in the non-hotspot disk, only rousing the non-hotspot disk where the manipulated data is in, and performing relevant data manipulation on the manipulated data in the roused non-hotspot disk, and transferring the data in the roused non-hotspot disk to the hotspot disk. According to the embodiment of the invention, an energy-saving effect of the disk can be realized.

Description

A kind of data manipulation method of dormancy disk and device
Technical field
The present invention relates to field of data storage, particularly relate to a kind of data manipulation method and device of dormancy disk.
Background technology
How at present, guaranteeing under the prerequisite of data reliability, be each large research emphasis and difficult point of storing manufacturer to greatest extent for user is energy-conservation, also by each large main flow of industry, stored manufacturer's high praise and store for green.Wherein, disc dormancy technology is the spotlight technology in green storage concept.
Common disc dormancy method mainly includes RAID(Redundant Arrays of Inexpensive Disks, disk array) group dormancy and storage pool dormancy, these two kinds of dormancy methods are all to carry out dormancy and wake up process for all disks in RAID group or storage pool.Concrete is exactly.Client, configured after dormancy time section, at disc dormancy, in the period, all disks in RAID group or storage pool enter dormant state, otherwise in non-dormancy time section, all disks in RAID group or storage pool are in wake-up states.For example, in including the storage pool of 20 disks, if user is configured to every night 20:00 to 8:00 in morning next day by dormancy time section, within this time period, 20 disks of this storage pool all enter dormant state.
At disc dormancy in the period, consult shown in Fig. 1, if main frame sends data operation request (comprising read requests and write request) by I/O passage, first all disks that are in dormant state in storage pool are all waken up, then according to operation requests, carry out corresponding operation, after end of operation, all disks in storage pool can enter dormant state again.
But, in realizing process of the present invention, the present inventor finds that in prior art, at least there are the following problems: in the dormancy time section having configured user, if main frame continues to send data operation request, and just need to be 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 the problems of the technologies described above, the embodiment of the present invention provides a kind of data manipulation method and device of disc dormancy, to realize the energy-saving effect of disk.
The embodiment of the invention discloses following technical scheme:
According to the first aspect of the embodiment of the present invention, a kind of data manipulation method of dormancy disk is disclosed, at disc dormancy in the period, regularly add up the frequent degree of access of disk, according to the frequent degree of the access of the described disk of regular statistics, disk is divided into focus disk and non-focus disk, wherein, accessing the disk that frequent degree is high is focus disk, and accessing the disk that frequent degree is low is non-focus disk;
Described method comprises:
The data operation request sending in the period at disc dormancy in response to main frame, determine described data operation request for by service data at described focus disk or in described non-focus disk;
If determine described by service data in described focus disk, only wake up describedly by the focus disk at service data place, described in the focus disk waking up carried out to corresponding data manipulation by service data;
If determine described by service data in described non-focus disk, only wake up described by the non-focus disk at service data place, described in the non-focus disk waking up carried out to corresponding data manipulation by service data, and by the Data Migration in the non-focus disk waking up in described focus disk.
In conjunction with a first aspect of the present invention, the present invention also have the first may, described focus disk in described dormancy time section all the time in wake-up states.
In conjunction with a first aspect of the present invention, the present invention also has the second possibility, and described method also comprises:
According to after regularly the frequent degree of access of the described disk of statistics is divided into disk focus disk and non-focus disk, according to the frequent degree of the access of described focus disk arrange described focus disk in described dormancy time section in wake-up states or in dormant state;
Wherein, access frequent degree and be more than or equal to while presetting frequent degree threshold value, described focus disk is set in wake-up states, access frequent degree and be less than while presetting frequent degree threshold value, described focus disk is set in dormant state;
If determine described by service data in described focus disk, only wake up describedly by the focus disk at service data place, described in the focus disk waking up carried out to corresponding data manipulation by service data and is specially:
If determine described by service data in described focus disk, judge that the described focus disk by service data place is current in wake-up states or dormant state, if in dormant state, wake up described by the focus disk at service data place, and described in the focus disk waking up carried out to corresponding data manipulation by service data, if in wake-up states, directly described in the focus disk waking up carried out to corresponding data manipulation by service data.
In conjunction with a first aspect of the present invention, the present invention also has the third possibility, and the frequent degree of the access of described regular statistics disk, is divided into focus disk and non-focus disk according to the frequent degree of the access of described disk by disk, comprising:
After receiving the data operation request of main frame transmission, the frequent degree of access of adding up a disk, is divided into focus disk and non-focus disk according to the frequent degree of the access of the described disk of recent statistics by disk;
Or,
Often carry out after a data manipulation, add up the frequent degree of access of a disk, according to the frequent degree of the 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 the frequent degree of the access of described disk comprises: total access times of disk and/or the longest access interval of disk;
Total access times more greatly and/or the longest access interval more hour, access frequent degree higher, when total less and/or the longest access of access times interval is larger, access frequent degree lower.
According to the second aspect of the embodiment of the present invention, a kind of data manipulation device of dormancy disk is disclosed, comprising:
Disk division unit, be used at disc dormancy in the period, regularly add up the frequent degree of access of disk, according to the frequent degree of the access of the described disk of regular statistics, disk is divided into focus disk and non-focus disk, wherein, accessing the disk that frequent degree is high is focus disk, and accessing the disk that frequent degree is low is non-focus disk;
Operation response unit, for the data operation request sending in the period at disc dormancy in response to main frame, determine described data operation request institute for by service data at described focus disk still in described non-focus disk;
The first data manipulation unit, if for determine described by service data at described focus disk, only wake up describedly by the focus disk at service data place, described in the focus disk waking up carried out to corresponding data manipulation by service data;
The second data manipulation unit, if for determine described by service data at described non-focus disk, only wake up described by the non-focus disk at service data place, described in the non-focus disk waking up carried out to corresponding data manipulation by service data, and by the Data Migration in the non-focus disk waking up in described focus disk.
In conjunction with a second aspect of the present invention, the present invention also have the first may, described focus disk in described dormancy time section all the time in wake-up states.
In conjunction with a second aspect of the present invention, the present invention also has the second possibility, and described device also comprises:
Dormancy time section adjustment unit, for according to after regularly the frequent degree of access of the described disk of statistics is divided into disk focus disk and non-focus disk, according to the frequent degree of the access of described focus disk arrange described focus disk in described dormancy time section in wake-up states or in dormant state;
Wherein, access frequent degree and be more than or equal to while presetting frequent degree threshold value, described focus disk is set in wake-up states, access frequent degree and be less than while presetting frequent degree threshold value, described focus disk is set in dormant state;
Described the first data manipulation unit specifically for, if determine described by service data in described focus disk, judge that the described focus disk by service data place is current in wake-up states or dormant state, if in dormant state, wake up described by the focus disk at service data place, and described in the focus disk waking up carried out to corresponding data manipulation by service data, if in wake-up states, directly described in the focus disk waking up carried out to corresponding data manipulation by service data.
In conjunction with a second aspect of the present invention, the present invention also has the third possibility, and described disk division unit comprises:
First divides subelement, and for after receiving the data operation request of main frame transmission, the frequent degree of access of adding up a disk, is divided into focus disk and non-focus disk according to the frequent degree of the access of the described disk of recent statistics by disk;
Or,
Second divides subelement, for often carrying out after a data manipulation, adds up the frequent degree of access of a disk, according to the frequent degree of the 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 the frequent degree of the access of described disk comprises: total access times of disk and/or the longest access interval of disk;
Total access times more greatly and/or the longest access interval more hour, access frequent degree higher, when total less and/or the longest access of access times interval is larger, access frequent degree lower.
As can be seen from the above-described embodiment, compared with prior art, the invention has the advantages that:
At disc dormancy in the period, once main frame frequently has data operation request, as a rule, these data operation request for data all derive from focus disk, and, only need to frequently wake focus disk up, thereby can ensure the dormant state (and can not wake continually all disks up) of non-focus disk, finally realize energy-conservation effect.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the data manipulation schematic diagram of dormancy disk in prior art;
Fig. 2 is the process flow diagram of an embodiment of the data manipulation method of a kind of dormancy disk of the present invention;
Fig. 3 divides the schematic diagram of dormancy disk in the present invention;
Fig. 4 is the schematic diagram that in the present invention, the frequent degree of a kind of access to disk is added up;
Fig. 5 is the process flow diagram of another embodiment of the data manipulation method of a kind of dormancy disk of the present invention;
Fig. 6 is the process flow diagram of an embodiment of the method for reading data of a kind of dormancy disk of the present invention;
Fig. 7 is the structural drawing of an embodiment of the data manipulation device of a kind of dormancy disk of the present invention;
Fig. 8 is the structural drawing of another embodiment of the data manipulation device of a kind of dormancy disk of the present invention.
Embodiment
The embodiment of the present invention provides data manipulation method and the device of dormancy disk.Core of the present invention is: according to the frequent degree of the access of disk by disk be divided into two types of focus disk and non-focus disks (access frequent degree high be focus disk, access frequent degree low be non-focus disk), and the type of regular update disk.And, whenever data operation request institute is for data in non-focus disk time, just by the Data Migration in non-focus disk in focus disk.In this way, can improve hit rate in focus disk, that is, improve data operation request for data, be positioned at the probability of focus disk. 
Like this, at disc dormancy in the period, once main frame frequently has data operation request, as a rule, these data operation request for data all derive from focus disk, and, only need to frequently wake focus disk up, thereby the dormant state (and can not wake continually all disks up) that can ensure non-focus disk, has finally realized energy-conservation effect.
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with accompanying drawing, the embodiment of the present invention is described in detail.
Embodiment mono-
Refer to Fig. 2, the process flow diagram of an embodiment of its data manipulation method that is a kind of dormancy disk of the present invention, the method comprises the following steps:
Step 201: at disc dormancy in the period, regularly add up the frequent degree of access of disk, according to the frequent degree of the access of the described disk of regular statistics, disk is divided into focus disk and non-focus disk, wherein, accessing the disk that frequent degree is high is focus disk, and accessing the disk that frequent degree is low 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, can have a lot of methods to describe the frequent degree of access of a disk.
Preferred mode is that the frequent degree of access of disk comprises: total access times of disk and/or the longest access interval of disk.And total access times more greatly and/or the longest access interval more hour, access frequent degree higher, when total less and/or the longest access of access times interval is larger, access frequent degree lower.
For example, can preset a frequency threshold value and/or preset an interval threshold, when total access times of disk are more than or equal to this frequency threshold value and/or the longest access interval and are less than or equal to this interval threshold, the frequent degree of access of disk is high, when total access times of disk are less than this frequency threshold value and/or the longest access interval and are more than or equal to this interval threshold, the frequent degree of access of disk is low.Certainly, also can sort to total access times of all disks or the longest access interval, then set a precedence threshold value, the frequent degree of disk access coming before this precedence threshold value is high, can be divided into focus disk, come the frequent degree of this precedence threshold value disk access below ground, can be divided into non-focus disk.
Have again, according to total access times of disk, can also calculate the average access frequency of disk in a certain Preset Time section, that is, and the time of the access times/a certain Preset Time section in average access frequency=a certain Preset Time section.Average access frequency also can be used for describing the frequent degree of access of disk,, when average access frequency is more than or equal to predeterminated frequency threshold value, accesses frequent degree high that is, when average access frequency is less than predeterminated frequency threshold value, accesses frequent degree low.Or, by the average access frequency to each disk, sort to distinguish the frequent degree of access of disk.
Also have, according to all access interval of disk, also can calculate the average access interval of disk in a certain Preset Time section, that is, and average access interval=all access interval/interval number.Equally, average access interval also can be used for describing the frequent degree of access of disk,, when average access interval is less than or equal to predetermined interval threshold value, accesses frequent degree high that is, when average access interval is greater than predetermined interval threshold value, accesses frequent degree low.Or, by the average access interval to each disk, sort to distinguish the frequent degree of access of disk.
In addition, can also obtain by other mathematics differentiation mode the parameter that other can describe the frequent degree of access, will not enumerate here.It should be noted that, default frequency threshold value, default interval threshold and default frequency threshold can be set arbitrarily according to actual needs by user, and technical solution of the present invention is not specifically limited.
Also it should be noted that, Preset Time section also can be set arbitrarily according to actual needs by user, and it can be the time interval between current once statistics and last statistics, consults shown in Fig. 4.Certainly, if the time interval between current once statistics and last statistics is long, it can be also a period of time wherein.In addition, can also be in this dormancy time section, from adding up for the first time, start to the current once time interval statistics.
In technical scheme of the present invention, must improve in the following manner the hit rate of focus disk: the frequent degree of access of regularly adding up disk, according to the frequent degree of the access of disk described in recent statistics, disk is divided into focus disk and non-focus disk, and by the Data Migration in non-focus disk in focus disk.Therefore, it is more frequent that this part is carried out, and the hit rate of focus disk is higher.
Preferred mode is, after receiving the data operation request of main frame transmission, or, often carry out after a data manipulation, just add up the frequent degree of access of a disk, and according to the frequent degree of the 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 in focus disk.
Step 202: the data operation request sending in the period at disc dormancy in response to main frame, determine described data operation request for by service data at described focus disk or in described non-focus disk;
Step 203: if determine described by service data in described focus disk, only wake up describedly by the focus disk at service data place, described in the focus disk waking up carried out to corresponding data manipulation by service data.
Step 204: if determine described by service data in described non-focus disk, only wake up described by the non-focus disk at service data place, described in the non-focus disk waking up carried out to corresponding data manipulation by service data, and by the Data Migration in the non-focus disk waking up in described focus disk.
In the present embodiment, focus disk and non-focus disk disc dormancy in the period all in dormant state.Because focus disk can be accessed continually, therefore, except this implementation, can be also focus disk disc dormancy in the period in wake-up states, and only allow non-focus disk disc dormancy in the period in dormant state.In this case, in step 203, can omit and wake this step of focus disk up.
Finally it should be noted that, in technical solution of the present invention, data operation request comprises data read request and data write request.
For example, main frame sends data read request at disc dormancy in the period, if this data read request for be read data in focus disk, only wake the focus disk that is read data place up, then read the data that are read in the focus disk waking up.If this data read request for reading out data in non-focus disk, only wake the non-focus disk that is read data place up, then read the data that are read in the non-focus disk waking up.
As can be seen from the above-described embodiment, compared with prior art, the invention has the advantages that:
At disc dormancy in the period, once main frame frequently has data operation request, as a rule, these data operation request for data all derive from focus disk, and, only need to frequently wake focus disk up, thereby can ensure the dormant state (and can not wake continually all disks up) of non-focus disk, finally realize energy-conservation effect.
Embodiment bis-
In above embodiment mono-, consider the feature that focus disk is accessed frequently, a kind of preferred mode is, unified arrange focus disk disc dormancy in the period all the time in wake-up states.
And in the present embodiment, consider if focus disk all the time in wake-up states, cannot embody better energy-conservation effect, after the frequent degree of the access of having added up each time disk, according to the frequent degree of the access of focus disk, decide focus disk is now once in wake-up states or in dormant state in the time period before statistics in distance, and then realizes energy-conservation on focus disk by staging treating mode.
Refer to Fig. 5, the process flow diagram of another embodiment of its data manipulation method that is a kind of dormancy disk of the present invention, the method comprises the following steps:
Step 501: at disc dormancy in the period, regularly add up the frequent degree of access of disk, according to the frequent degree of the access of the described disk of regular statistics, disk is divided into focus disk and non-focus disk, wherein, accessing the disk that frequent degree is high is focus disk, and accessing the disk that frequent degree is low is non-focus disk;
Step 502: according to the frequent degree of the access of described focus disk arrange described focus disk in described dormancy time section in wake-up states or in dormant state;
Wherein, access frequent degree and be more than or equal to while presetting frequent degree threshold value, described focus disk is set in wake-up states, access frequent degree and be less than while presetting frequent degree threshold value, described focus disk is set in dormant state.
It should be noted that, default frequent degree threshold value can be set arbitrarily according to actual needs by user, and technical solution of the present invention is not specifically limited.
For example, as shown in Figure 4, after statistics for the second time, if be greater than default frequent degree threshold value according to the frequent degree of access of the determined focus disk of statistics for the second time, arrange focus disk statistics for the second time with add up for the third time between the time interval in wake-up states.
Step 503: the data operation request sending in the period at disc dormancy in response to main frame, determine described data operation request for by service data at described focus disk or in described non-focus disk;
Step 504: if determine described by service data in described focus disk, judge that the described focus disk by service data place is current in wake-up states or dormant state, if in dormant state, enter step 505, if in wake-up states, enter step 506;
Step 505: wake up described by the focus disk at service data place, and to being carried out corresponding data manipulation, process ends by service data in the focus disk waking up;
Step 506: directly to being carried out corresponding data manipulation, process ends, process ends by service data in the focus disk waking up;
Step 507: if determine described by service data in described non-focus disk, only wake up described by the non-focus disk at service data place, to being carried out corresponding data manipulation by service data in the non-focus disk waking up, and by the Data Migration in the non-focus disk waking up in described focus disk, process ends.
As can be seen from the above-described embodiment, compared with prior art, the invention has the advantages that:
At disc dormancy in the period, once main frame frequently has data operation request, as a rule, these data operation request for data all derive from focus disk, and, only need to frequently wake focus disk up, thereby can ensure the dormant state (and can not wake continually all disks up) of non-focus disk, finally realize energy-conservation effect.
Implement three
The concrete application scenarios of take is below example, explains the data manipulation method to dormancy disk.Wherein, be arranged in the disk of storage server in sleep procedure, when receiving the data read request of application server, implementation data operation in the following manner.
Refer to Fig. 6, the process flow diagram of an embodiment of its method for reading data that is a kind of dormancy disk of the present invention, the method comprises the following steps:
Step 601: data query read requests for the disk that shines upon of data;
For convenient description below, by data read request for the disk that shines upon of data referred to as target disk.
Step 602: the history access record of upgrading target disk according to this data read request;
Wherein, in the history access record of disk, at least record total access times of this disk.
Step 603: the attribute of query aim disk, and just wake the disk in dormancy up according to the attribute of target disk, and reading out data returns to application server from target disk;
According to attribute, disk is divided into focus disk and non-focus disk, wherein, at disc dormancy in the period, focus disk is all the time in wake-up states, but not focus disk without data manipulation in the situation that in dormant state, and be waken up in the situation that having data manipulation.
For example, after the attribute of having inquired about target disk, find, in 5 target disks, having 4 target disks is focus disks, and other 1 target disk is non-focus disk.Because focus disk is in wake-up states, but not focus disk is in dormant state, therefore, only need wake 1 non-Thermomagnetic disc in dormant state up.
Step 604: from the history access record of each disk, read total access times of target disk, and according to the attribute of total each disk of access times ranking replacement 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 is upgraded.
It should be noted that, said method is applicable to data write operation too.
As can be seen from the above-described embodiment, compared with prior art, the invention has the advantages that:
At disc dormancy in the period, once main frame frequently has data operation request, as a rule, these data operation request for data all derive from focus disk, and, only need to frequently wake focus disk up, thereby can ensure the dormant state (and can not wake continually all disks up) of non-focus disk, finally realize energy-conservation effect.
Embodiment tetra-
Corresponding with the data manipulation method of above-mentioned a kind of dormancy disk, the embodiment of the present invention also provides a kind of data manipulation device of dormancy disk.Refer to Fig. 7, the structural drawing of an embodiment of its data manipulation device that is a kind of dormancy disk of the present invention, this device comprises: disk division unit 701, operation response unit 702, the first data manipulation unit 703 and the second data manipulation unit 704.Principle of work below in conjunction with this device is further introduced its inner structure and annexation.
Disk division unit 701, be used at disc dormancy in the period, regularly add up the frequent degree of access of disk, according to the frequent degree of the access of the described disk of regular statistics, disk is divided into focus disk and non-focus disk, wherein, accessing the disk that frequent degree is high is focus disk, and accessing the disk that frequent degree is low is non-focus disk;
Operation response unit 702, for the data operation request sending in the period at disc dormancy in response to main frame, determine described data operation request institute for by service data at described focus disk still in described non-focus disk;
The first data manipulation unit 703, if for determine described by service data at focus disk, only wake up describedly by the focus disk at service data place, described in the focus disk waking up carried out to corresponding data manipulation by service data.
The second data manipulation unit 704, if for determine described by service data at described non-focus disk, only wake up described by the non-focus disk at service data place, described in the non-focus disk waking up carried out to corresponding data manipulation by service data, and the Data Migration in the non-focus disk just waking up is in described focus disk.
Preferably, described focus disk in described dormancy time section all the time in wake-up states.
Preferably, disk division unit 701 comprises:
First divides subelement, and for after receiving the data operation request of main frame transmission, the frequent degree of access of adding up a disk, is divided into focus disk and non-focus disk according to the frequent degree of the access of the described disk of recent statistics by disk;
Or,
Second divides subelement, for often carrying out after a data manipulation, adds up the frequent degree of access of a disk, according to the frequent degree of the 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 comprises: disk total access times and/or the longest access interval of disk;
Total access times more greatly and/or the longest access interval more hour, access frequent degree higher, when total less and/or the longest access of access times interval is larger, access frequent degree lower.
Preferably, as shown in Figure 8, described device also comprises:
Dormancy time section adjustment unit 705, for according to after regularly the frequent degree of access of the described disk of statistics is divided into disk focus disk and non-focus disk, according to the frequent degree of the access of described focus disk arrange described focus disk in described dormancy time section in wake-up states or in dormant state;
Wherein, access frequent degree and be more than or equal to while presetting frequent degree threshold value, described focus disk is set in wake-up states, access frequent degree and be less than while presetting frequent degree threshold value, described focus disk is set in dormant state;
Described the first data manipulation unit 703 specifically for, if determine described by service data in described focus disk, judge that the described focus disk by service data place is current in wake-up states or dormant state, if in dormant state, wake up described by the focus disk at service data place, and described in the focus disk waking up carried out to corresponding data manipulation by service data, if in wake-up states, directly described in the focus disk waking up carried out to corresponding data manipulation by service data.
As can be seen from the above-described embodiment, compared with prior art, the invention has the advantages that:
At disc dormancy in the period, once main frame frequently has data operation request, as a rule, these data operation request for data all derive from focus disk, and, only need to frequently wake focus disk up, thereby can ensure the dormant state (and can not wake continually all disks up) of non-focus disk, finally realize energy-conservation effect.
The technician in described field can be well understood to, and with succinct, the specific works process of the system of foregoing description, device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here for convenience of description.
In several embodiment provided by the present invention, should be understood that disclosed system, apparatus and method can realize by another way.For example, described above to device embodiment be only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can be in conjunction with being maybe integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrical, mechanical or other form.
The described unit as separating component explanation can or can be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and can adopt 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, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise 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-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above the data manipulation method of a kind of dormancy disk provided by the present invention and device are described in detail, applied specific embodiment herein principle of the present invention and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (10)

1. the data manipulation method of a dormancy disk, it is characterized in that, at disc dormancy in the period, regularly add up the frequent degree of access of disk, according to the frequent degree of the access of the described disk of regular statistics, disk is divided into focus disk and non-focus disk, wherein, accessing the disk that frequent degree is high is focus disk, and accessing the disk that frequent degree is low is non-focus disk; Described method comprises:
The data operation request sending in the period at disc dormancy in response to main frame, determine described data operation request for by service data at described focus disk or in described non-focus disk;
If determine described by service data in described focus disk, only wake up describedly by the focus disk at service data place, described in the focus disk waking up carried out to corresponding data manipulation by service data;
If determine described by service data in described non-focus disk, only wake up described by the non-focus disk at service data place, described in the non-focus disk waking up carried out to corresponding data manipulation by service data, and by the Data Migration in the non-focus disk waking up in described focus disk.
2. method according to claim 1, is characterized in that, described focus disk in described dormancy time section all the time in wake-up states.
3. method according to claim 1, is characterized in that, described method also comprises:
According to after regularly the frequent degree of access of the described disk of statistics is divided into disk focus disk and non-focus disk, according to the frequent degree of the access of described focus disk arrange described focus disk in described dormancy time section in wake-up states or in dormant state;
Wherein, access frequent degree and be more than or equal to while presetting frequent degree threshold value, described focus disk is set in wake-up states, access frequent degree and be less than while presetting frequent degree threshold value, described focus disk is set in dormant state;
If determine described by service data in described focus disk, only wake up describedly by the focus disk at service data place, described in the focus disk waking up carried out to corresponding data manipulation by service data and is specially:
If determine described by service data in described focus disk, judge that the described focus disk by service data place is current in wake-up states or dormant state, if in dormant state, wake up described by the focus disk at service data place, and described in the focus disk waking up carried out to corresponding data manipulation by service data, if in wake-up states, directly described in the focus disk waking up carried out to corresponding data manipulation by service data.
4. method according to claim 1, is characterized in that, the frequent degree of access of described regular statistics disk is divided into focus disk and non-focus disk according to the frequent degree of the access of described disk by disk, comprising:
After receiving the data operation request of main frame transmission, the frequent degree of access of adding up a disk, is divided into focus disk and non-focus disk according to the frequent degree of the access of the described disk of recent statistics by disk;
Or,
Often carry out after a data manipulation, add up the frequent degree of access of a disk, according to the frequent degree of the access of the described disk of recent statistics, disk is divided into focus disk and non-focus disk.
5. method according to claim 1, is characterized in that, the frequent degree of access of described disk comprises: total access times of disk and/or the longest access interval of disk;
Total access times more greatly and/or the longest access interval more hour, access frequent degree higher, when total less and/or the longest access of access times interval is larger, access frequent degree lower.
6. a data manipulation device for dormancy disk, is characterized in that, described device comprises:
Disk division unit, be used at disc dormancy in the period, regularly add up the frequent degree of access of disk, according to the frequent degree of the access of the described disk of regular statistics, disk is divided into focus disk and non-focus disk, wherein, accessing the disk that frequent degree is high is focus disk, and accessing the disk that frequent degree is low is non-focus disk;
Operation response unit, for the data operation request sending in the period at disc dormancy in response to main frame, determine described data operation request institute for by service data at described focus disk still in described non-focus disk;
The first data manipulation unit, if for determine described by service data at described focus disk, only wake up describedly by the focus disk at service data place, described in the focus disk waking up carried out to corresponding data manipulation by service data;
The second data manipulation unit, if for determine described by service data at described non-focus disk, only wake up described by the non-focus disk at service data place, described in the non-focus disk waking up carried out to corresponding data manipulation by service data, and by the Data Migration in the non-focus disk waking up in described focus disk.
7. device according to claim 6, is characterized in that, described focus disk in described dormancy time section all the time in wake-up states.
8. device according to claim 6, is characterized in that, described device also comprises:
Dormancy time section adjustment unit, for according to after regularly the frequent degree of access of the described disk of statistics is divided into disk focus disk and non-focus disk, according to the frequent degree of the access of described focus disk arrange described focus disk in described dormancy time section in wake-up states or in dormant state;
Wherein, access frequent degree and be more than or equal to while presetting frequent degree threshold value, described focus disk is set in wake-up states, access frequent degree and be less than while presetting frequent degree threshold value, described focus disk is set in dormant state;
Described the first data manipulation unit specifically for, if determine described by service data in described focus disk, judge that the described focus disk by service data place is current in wake-up states or dormant state, if in dormant state, wake up described by the focus disk at service data place, and described in the focus disk waking up carried out to corresponding data manipulation by service data, if in wake-up states, directly described in the focus disk waking up carried out to corresponding data manipulation by service data.
9. device according to claim 6, is characterized in that, described disk division unit comprises:
First divides subelement, and for after receiving the data operation request of main frame transmission, the frequent degree of access of adding up a disk, is divided into focus disk and non-focus disk according to the frequent degree of the access of the described disk of recent statistics by disk;
Or,
Second divides subelement, for often carrying out after a data manipulation, adds up the frequent degree of access of a disk, according to the frequent degree of the access of the described disk of recent statistics, disk is divided into focus disk and non-focus disk.
10. device according to claim 6, is characterized in that, the frequent degree of access of described disk comprises: total access times of disk and/or the longest access interval of disk;
Total access times more greatly and/or the longest access interval more hour, access frequent degree higher, when total less and/or the longest access of access times interval is larger, access frequent degree lower.
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 true CN103576835A (en) 2014-02-12
CN103576835B 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)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015062316A1 (en) * 2013-10-30 2015-05-07 华为技术有限公司 Data manipulation method and device for hibernating disk
WO2015184710A1 (en) * 2014-06-05 2015-12-10 中兴通讯股份有限公司 Method and device for processing magnetic disk hibernation
CN105320246A (en) * 2015-09-29 2016-02-10 联想(北京)有限公司 Information processing method and electronic device
CN105528053A (en) * 2015-12-11 2016-04-27 曙光信息产业股份有限公司 Management method and device for distributed system
CN105574134A (en) * 2015-12-15 2016-05-11 曙光信息产业股份有限公司 File processing method and file processing device
CN106775461A (en) * 2016-11-30 2017-05-31 华为技术有限公司 Hot spot data determines method, equipment and device
WO2017118171A1 (en) * 2016-01-07 2017-07-13 杭州海康威视数字技术股份有限公司 Data migration method and apparatus
CN107704197A (en) * 2016-08-09 2018-02-16 联想企业解决方案(新加坡)有限公司 Modification of when a workload accesses a data unit and/or on which storage devices the data unit is stored to save power
CN108170254A (en) * 2017-12-30 2018-06-15 广东技术师范学院 It is a kind of based on the tactful dispatching method sporadicly asked
CN109614050A (en) * 2018-12-11 2019-04-12 浪潮(北京)电子信息产业有限公司 Disc dormancy condition control method, device, equipment and readable storage medium storing program for executing
CN112988083A (en) * 2021-05-19 2021-06-18 四川省商投信息技术有限责任公司 Cold data storage method and system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (4)

* 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
CN101262580A (en) * 2007-08-31 2008-09-10 深圳市同洲电子股份有限公司 A digital TV receiving device and method and system for monitoring hard disk dormancy
CN101655774A (en) * 2009-09-01 2010-02-24 成都市华为赛门铁克科技有限公司 Magnetic disc control method and system as well as relevant apparatus
CN102609070A (en) * 2011-12-26 2012-07-25 创新科存储技术有限公司 Apparatus for saving energy by using MAID (massive array of independent disks) technique

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 (4)

* 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
CN101262580A (en) * 2007-08-31 2008-09-10 深圳市同洲电子股份有限公司 A digital TV receiving device and method and system for monitoring hard disk dormancy
CN101655774A (en) * 2009-09-01 2010-02-24 成都市华为赛门铁克科技有限公司 Magnetic disc control method and system as well as relevant apparatus
CN102609070A (en) * 2011-12-26 2012-07-25 创新科存储技术有限公司 Apparatus for saving energy by using MAID (massive array of independent disks) technique

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
程波: "磁盘阵列级节能技术的研究与实现", 《中国优秀硕士学位论文全文数据库》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015062316A1 (en) * 2013-10-30 2015-05-07 华为技术有限公司 Data manipulation method and device for hibernating disk
WO2015184710A1 (en) * 2014-06-05 2015-12-10 中兴通讯股份有限公司 Method and device for processing magnetic disk hibernation
CN105320246B (en) * 2015-09-29 2019-01-15 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105320246A (en) * 2015-09-29 2016-02-10 联想(北京)有限公司 Information processing method and electronic device
CN105528053A (en) * 2015-12-11 2016-04-27 曙光信息产业股份有限公司 Management method and device for distributed system
CN105574134A (en) * 2015-12-15 2016-05-11 曙光信息产业股份有限公司 File processing method and file processing device
CN105574134B (en) * 2015-12-15 2019-04-12 曙光信息产业股份有限公司 A kind of document handling method and device
WO2017118171A1 (en) * 2016-01-07 2017-07-13 杭州海康威视数字技术股份有限公司 Data migration method and apparatus
CN107704197A (en) * 2016-08-09 2018-02-16 联想企业解决方案(新加坡)有限公司 Modification of when a workload accesses a data unit and/or on which storage devices the data unit is stored to save power
CN106775461A (en) * 2016-11-30 2017-05-31 华为技术有限公司 Hot spot data determines method, equipment and device
CN108170254A (en) * 2017-12-30 2018-06-15 广东技术师范学院 It is a kind of based on the tactful dispatching method sporadicly asked
CN109614050A (en) * 2018-12-11 2019-04-12 浪潮(北京)电子信息产业有限公司 Disc dormancy condition control method, device, equipment and readable storage medium storing program for executing
CN112988083A (en) * 2021-05-19 2021-06-18 四川省商投信息技术有限责任公司 Cold data storage method and system
CN112988083B (en) * 2021-05-19 2021-08-03 四川省商投信息技术有限责任公司 Cold data storage method and system

Also Published As

Publication number Publication date
CN103576835B (en) 2016-06-29
WO2015062316A1 (en) 2015-05-07

Similar Documents

Publication Publication Date Title
CN103576835A (en) Data manipulation method and device for sleep disk
EP2488929B1 (en) Memory object relocation for power savings
US9355112B1 (en) Optimizing compression based on data activity
US7895398B2 (en) System and method for dynamically adjusting the caching characteristics for each logical unit of a storage array
US20160041596A1 (en) Power efficient method and system for executing host data processing tasks during data retention operations in a storage device
US9471134B2 (en) Method and apparatus for managing power of a storage system
CN102591593A (en) Method for switching hybrid storage modes, device and system
CN102117248A (en) Caching system and method for caching data in caching system
US10346094B2 (en) Storage system, storage device, and hard disk drive scheduling method
KR101114791B1 (en) Power management for storage devices
JP2010015446A (en) Storage device and power control method
CN110941395B (en) Dynamic random access memory, memory management method, system and storage medium
US20210303173A1 (en) Data processing method, controller, storage device, and storage system
US20070061509A1 (en) Power management in a distributed file system
US20100306484A1 (en) Heterogeneous storage array optimization through eviction
US8036076B2 (en) Method of reducing storage power consumption by use of prefetch and computer system using the same
CN103559145A (en) Data reading and writing method and electronic equipment
CN103870319A (en) Method and device for information processing and electronic device
CN111104048B (en) Data processing method and distributed storage system
CN105808150A (en) Solid state disk caching system for hybrid storage device
CN103176753A (en) Storage device and data management method of storage device
KR20240011609A (en) Systems and methods for data prefetching for low latency data read from a remote server
CN102063263A (en) Method, device and system for responding read-write operation request of host computer by solid state disk
JP4778538B2 (en) Storage data management system and storage data management program
JP2013206009A (en) Drive control device, storage system, and drive control method

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