CN103503409A - Method and equipment for controlling file scheduling - Google Patents

Method and equipment for controlling file scheduling Download PDF

Info

Publication number
CN103503409A
CN103503409A CN201180002995.XA CN201180002995A CN103503409A CN 103503409 A CN103503409 A CN 103503409A CN 201180002995 A CN201180002995 A CN 201180002995A CN 103503409 A CN103503409 A CN 103503409A
Authority
CN
China
Prior art keywords
equipment
file
speed slow
high speed
time interval
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
CN201180002995.XA
Other languages
Chinese (zh)
Other versions
CN103503409B (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
Publication of CN103503409A publication Critical patent/CN103503409A/en
Application granted granted Critical
Publication of CN103503409B publication Critical patent/CN103503409B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

A method and equipment for controlling file scheduling are provided by embodiments of the invention. The method comprises: judging whether the difference between the popularity value of the first file having the highest visited popularity in a low speed cache equipment and the popularity value of the second file having the lowest visited popularity in a high speed cache equipment is above a hysteresis value, when the difference between the popularity value of the first file and the popularity value of the second file is above the hysteresis value, scheduling the first file into the high speed cache equipment, and the second file into the low speed cache equipment. By adding the hysteresis value, the technical solution of the embodiments of the invention enables to effectively improve the utilization ratio of the high speed cache equipment in the service life.

Description

Method and equipment for controlling file scheduling
File dispatch control method and equipment
The present embodiments relate to field of computer technology, more particularly to a kind of file dispatch control method and equipment for technical field.Background technology
In the prior art, using the Slow with friction speed to deposit equipment composition Slow deposit systems more, the file that user often accesses generally is stored in into relatively high speed Slow to deposit in equipment, the Slow that the file that user is infrequently accessed is stored in relative low speeds is deposited in equipment, can so improve the reading performance of whole Slow deposit systems.For example by solid state hard disc(Solid State Disk;Hereinafter referred to as SSD) and hard disk drive (Hard Disk Drive;Hereinafter referred to as HDD) composition Slow deposit systems in, SSD have per second number of times (the Input/Output Operations Per Second that is written and read operation higher than HDD;Hereinafter referred to as IOPS).Therefore in the Slow deposit systems, SSD is that high speed Slow deposits equipment, can be used for storing the file that user often accesses, HDD is that low speed Slow deposits equipment, can be used for storing the file that user infrequently accesses.
Under normal circumstances, need to carry out file scheduling between the high low speed Slow in Slow deposit systems deposits equipment, and high speed Slow deposits the accessed number of times of the minimum file of accessed temperature in equipment and is less than low speed Slow and deposits when the accessed number of times of temperature highest file is accessed in equipment, low speed Slow is deposited to be accessed temperature highest file in equipment and deposit the minimum file of accessed temperature in equipment with high speed Slow and swapped, to ensure the read-write of whole Slow deposit systems( Input/Output ;Hereinafter referred to as 10) performance.
In process of the present invention is realized, inventor has found that at least there are the following problems in the prior art:It is the higher equipment of cost that high speed Slow, which deposits equipment, and high speed Slow deposits equipment certain limitation to write operation, and equipment is deposited, it is necessary to reduce the number of times that high speed Slow deposits the write operation of equipment as far as possible to effectively utilize high speed Slow.And use above-mentioned prior art, when high low speed Slow each time deposits equipment room progress file scheduling, when the number of times that the minimum file of the accessed temperature that high speed Slow is deposited in equipment is accessed be less than low speed Slow deposit the accessed number of times of temperature highest file is accessed in equipment when, low speed Slow deposited to be accessed temperature highest file in equipment and deposit the minimum file of accessed temperature in equipment with high speed Slow swapped.Because it may not be true that low speed Slow, which is deposited and is accessed temperature highest file in equipment to be accessed number of times increase, Positive access, swapped if now depositing low speed Slow to be accessed temperature highest file in equipment and deposit the minimum file of accessed temperature in equipment with high speed Slow, high speed Slow is dispatched to when file next time is dispatched and deposits the file in equipment it is also possible to the low speed Slow that is scheduled back again is deposited in equipment, therefore using above-mentioned prior art high speed Slow can be caused to deposit the write operation number of times increase of equipment, causes the service life that high speed Slow deposits equipment to shorten.The content of the invention
The embodiment of the present invention provides a kind of file dispatch control method and equipment, to solve in the prior art when high low speed Slow each time deposits equipment room progress file scheduling, when the number of times that the minimum file of the accessed temperature that high speed Slow is deposited in equipment is accessed, which is less than low speed Slow, deposits the accessed number of times of accessed temperature highest file in equipment, low speed Slow is deposited to be accessed temperature highest file in equipment and deposit the minimum file of accessed temperature in equipment with high speed Slow and swapped, high speed Slow is caused to deposit the write operation number of times increase of equipment, high speed Slow is caused to deposit the defect that the service life of equipment shortens.
The embodiment of the present invention provides a kind of file dispatch control method, including:
Judge whether the difference of hot value for minimum the second file of accessed temperature that low speed Slow deposits the hot value of the accessed file of temperature highest first of equipment and high speed Slow deposits equipment is more than stagnant ring value;When the hot value of first file is more than the stagnant ring value with the difference of the hot value of second file, first file is dispatched to the high speed Slow and deposited in equipment, second file is dispatched into the low speed Slow deposits in equipment.
The embodiment of the present invention also provides a kind of file scheduling controlling equipment, including:
Judge module, for judging whether the difference of hot value of low speed Slow deposits the hot value of the accessed file of temperature highest first of equipment and high speed Slow deposits equipment minimum the second file of accessed temperature is more than stagnant ring value;
Scheduler module, for when the hot value of first file is more than the stagnant ring value with the difference of the hot value of second file, first file is dispatched into the high speed Slow to deposit in equipment, second file is dispatched into the low speed Slow deposits in equipment.
The file dispatch control method and equipment of the embodiment of the present invention, by judging whether the difference of hot value of the low speed Slow deposits the hot value of the accessed file of temperature highest first of equipment and the high speed Slow deposits equipment minimum the second file of accessed temperature is more than stagnant ring value;When the hot value of first file is more than the stagnant ring value with the difference of the hot value of second file, by the described first text Part is dispatched to the high speed Slow and deposited in equipment, and second file is dispatched into the low speed Slow deposits in equipment.The technical scheme of the embodiment of the present invention, by increasing stagnant ring value, it can effectively improve and be dispatched to the threshold that high speed Slow deposits the file in equipment, reduction high speed Slow deposits equipment write operation number of times, high speed Slow will not be reduced and deposit the service life of equipment, so that effectively improving high speed Slow deposits utilization rate of the equipment within the service life time limit.Brief description of the drawings is in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, the required accompanying drawing used in embodiment or description of the prior art will be briefly described below, apparently, drawings in the following description are some embodiments of the present invention, for those of ordinary skill in the art, without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
The flow chart for the file dispatch control method that Fig. 1 provides for one embodiment of the invention.
The flow chart for the file dispatch control method that Fig. 2 provides for another embodiment of the present invention.
The structural representation for the file scheduling controlling equipment that Fig. 3 provides for one embodiment of the invention.
The structural representation for the file scheduling controlling equipment that Fig. 4 provides for another embodiment of the present invention.Embodiment is to make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made belongs to the scope of protection of the invention.
The flow chart for the file dispatch control method that Fig. 1 provides for one embodiment of the invention.The executive agent of the file dispatch control method of the present embodiment can be a file scheduling controlling equipment.As shown in figure 1, the file dispatch control method of the present embodiment, can specifically include as follows:
Step 100, judge that low speed Slow deposits the difference of hot value of minimum the second file of accessed temperature that the hot value and high speed Slow of the accessed file of temperature highest first of equipment deposit equipment and whether is more than stagnant ring value;
Step 101, when the difference of the hot value of hot value and the second file of the first file is more than stagnant ring value, the first file is dispatched to high speed Slow and deposited in equipment, the second file is dispatched to low speed Slow deposited and set In standby.
The application scenarios of the present embodiment are to include during high low speed Slow deposits the Slow deposit systems of equipment, in the case of needing to carry out file scheduling between high low speed Slow deposits equipment, such as high low speed Slow deposit equipment it is all stored full when, and when the difference of the hot value of the second minimum file of the accessed temperature that the low speed Slow hot values and high speed Slow for depositing the accessed file of temperature highest first of equipment deposits equipment is more than stagnant ring value, minimum the second file of accessed temperature that the accessed file of temperature highest first and high speed Slow that low speed Slow can be deposited to equipment deposit equipment is interchangeable scheduling, the first file is dispatched into high speed Slow to deposit in equipment, second file is dispatched into low speed Slow to deposit in equipment.
It is to distinguish two kinds of different Slow according to IOPS to deposit equipment that high speed Slow in the present embodiment, which deposits equipment and deposits equipment with low speed Slow, and the IOPS that high speed Slow deposits equipment is higher than the IOPS that low speed Slow deposits equipment.
Alternatively, the executive agent file scheduling controlling equipment of the file dispatching method of the present embodiment can deposit equipment with the high speed Slow in Slow deposit systems and be set together.The file dispatch control method of the present embodiment, by judging whether the difference of hot value of low speed Slow deposits the hot value of the accessed file of temperature highest first of equipment and high speed Slow deposits equipment minimum the second file of accessed temperature is more than stagnant ring value;When the hot value of the first file is more than stagnant ring value with the difference of the hot value of the second file, the first file is dispatched to the high speed Slow and deposited in equipment, the second file is dispatched into low speed Slow deposits in equipment.The technical scheme of the present embodiment, by increasing stagnant ring value, it can effectively improve and be dispatched to the threshold that high speed Slow deposits the file in equipment, reduction high speed Slow deposits equipment write operation number of times, high speed Slow will not be reduced and deposit the service life of equipment, so that effectively improving high speed Slow deposits utilization rate of the equipment within the service life time limit.
It should be noted that the technical scheme in above-described embodiment only considers scheduling strategy, the size of the first file and the second file is not considered.Here it is considered that the size of the first file is equal to the size of the second file, when the size of the first file is less than the second file, accessed temperature can also be looked for be only below the 3rd file of the first file in low speed Slow deposits equipment, and first the size sum of file and the 3rd file be equal to the size of the second file, with ensure high speed Slow deposit equipment and low speed Slow deposit equipment between can carry out accurate file scheduling.For when the size of the first file is more than the second file, accessed temperature is looked for be only above the 4th file of the second file in high speed Slow deposits equipment, and first the size of file be equal to the size sum of the second file and the 4th file, with ensure high speed Slow deposit equipment and low speed Slow deposit equipment between can carry out accurate file scheduling.Case above is only for example, in practical application, can follow that mentioned above principle deposits equipment in high speed Slow and low speed Slow deposits equipment room and carries out file scheduling.
Alternatively, in the technical scheme of above-described embodiment, when hot value and the second file of the first file The difference of hot value when being less than or equal to stagnant ring value, any operation can not be performed, that is to say, that the first file and the second file dispatched without exchanging between high low speed Slow deposits equipment without file.
Alternatively, in the technical scheme of above-described embodiment, stagnant ring value therein can be equal to the product of the stagnant ring factor and the hot value of the second file.Now the step 100 in above-described embodiment, which can be converted to, " judges whether the hot value of the first file is more than the hot value of the second file(The stagnant ring factors of 1+)Times, if more than, it is necessary to perform step 101.
Alternatively, in the technical scheme of above-described embodiment, the hot value of first file is not the accessed number of times of first file, can be the value for being used to characterize the accessed temperature of the first file obtained according to the average access probability of the first file and the average access interval of prediction;Similarly, the hot value of second file is nor the accessed number of times of the second file, the hot value of second file can be the value for being used to characterize the accessed temperature of second file obtained according to the average access probability of the second file and the average access interval of prediction.
Alternatively, in the technical scheme of above-described embodiment, it can also include:Determine the stagnant ring factor.The stagnant ring factor is for example determined, can be included as follows:
(1) in current dispatching cycle, the statistics time interval when data volume that statistics of high speed Slow deposits equipment write-in reaches preset data amount;
It is for example specific that preset data amount interval is reached using the equation below acquisition high speed Slow data volumes for depositing equipment write-in: Wherein, ^ is that the high speed Slow to be calculated deposits statistics time interval when the data volume of equipment write-in reaches preset data amount;It is that high speed Slow deposits former statistics time interval when the data volume of equipment write-in reaches preset data amount;^ is that in current dispatching cycle, the data volume that high speed Slow deposits equipment write-in reaches actual time interval required during preset data amount, is forgetting factor, and the forgetting factor can be an empirical value.Alternatively, for first time dispatch when, be high speed Slow deposit equipment write-in data volume reach that former statistics time interval during preset data amount can take an empirical value, can such as take 1.
(2) capacity of equipment, service life are deposited according to high speed Slow, high speed Slow deposits number of times and the preset data amount that equipment is rewritten in service life, calculates high speed Slow and deposit ideal time interval when equipment write-in data volume reaches preset data amount;
For example it is specific high speed Slow calculated using equation below deposit equipment be written into ideal time interval when data volume reaches preset data amount: _ length*F
times*M
L is that high speed Slow deposits equipment and is written into ideal time interval when data volume reaches preset data amount, M is the capacity that high speed Slow deposits equipment, length is the service life that high speed Slow deposits equipment, times is that high speed Slow deposits the number of times that equipment is rewritten in service life length, and F is the preset data amount.
(3) statistics time interval, the high speed Slow for reaching during preset data amount according to the high speed Slow data volumes for depositing equipment write-in deposit equipment write-in data volume reach during preset data amount ideal time interval and high speed Slow deposit the former stagnant ring factor of equipment and obtain the stagnant ring factor.
It is for example specific that the stagnant ring factor is obtained using equation below:
new old rr new )
P is the stagnant ring factor,pwIt is the former stagnant ring factor, κ is regulation coefficient, regulation coefficient is normal number, and L is that the high speed Slow deposits ideal time interval when the data volume of equipment write-in reaches the preset data amount, is that the high speed Slow deposits statistics time interval when the data volume of equipment write-in reaches preset data amount.
When dispatching first time, the former stagnant ring factorP.Id can be chosen for an empirical value.
The file dispatch control method of above-described embodiment, by using above-mentioned technical proposal, add stagnant ring value, it can effectively improve and be dispatched to the threshold that high speed Slow deposits the file in equipment, reduction high speed Slow deposits equipment write operation number of times, high speed Slow will not be reduced and deposit the service life of equipment, so that effectively improving high speed Slow deposits utilization rate of the equipment within the service life time limit.
The flow chart for the file dispatch control method that Fig. 2 provides for another embodiment of the present invention.The executive agent of the file dispatch control method of the present embodiment can be a file scheduling controlling equipment.As shown in Fig. 2 the file dispatch control method of the present embodiment, can specifically include as follows:
In step 200, current dispatching cycle, the statistics time interval when data volume that statistics of high speed Slow deposits equipment write-in reaches preset data amount;
Current dispatching cycle in the present embodiment deposits equipment and after high speed Slow deposits the file finishing scheduling that a upper cycle was carried out between equipment from low speed Slow, restarts statistics of high speed Slow and deposit the data volume that equipment writes to start.
The application scenarios of the present embodiment be high low speed Slow deposit equipment all it is stored it is full in the case of.Step 201, the capacity for depositing according to high speed Slow equipment, service life, high speed Slow deposits number of times and the preset data amount that equipment is rewritten in service life, calculates high speed Slow and deposits equipment write-in data volume and reaches Ideal time interval during preset data amount;
Step 202, deposited according to high speed Slow statistics time interval, the high speed Slow that the data volume of equipment write-in reaches during preset data amount deposit equipment be written into data volume reach during preset data amount ideal time interval and high speed Slow deposit the former stagnant ring factor of equipment and obtain the stagnant ring factor;
Step 200-202's implements the related record that process may be referred to embodiment described in Fig. 1 in detail, is not repeating herein.
Step 203, statistics of high speed Slow are deposited in equipment and low speed Slow deposits the hot value of the file of each in equipment;The record of embodiment described in Fig. 1 is referred to, hot value here is the value for being used to characterize the accessed temperature of file obtained according to the average access probability of file and the average access interval of prediction.
Step 204, judge that low speed Slow deposits the hot value of the accessed file of temperature highest first of equipment and whether is more than the hot value that high speed Slow deposits minimum the second file of accessed temperature of equipment(The stagnant ring factors of 1+)Times;When low speed Slow hot values for depositing the accessed file of temperature highest first of equipment are more than the hot value that high speed Slow deposits minimum the second file of accessed temperature of equipment(The stagnant ring factors of 1+)Times, step 205 is performed, step 206 is otherwise performed;
Stagnant ring value is the hot value of the second file and the product of the stagnant ring factor in the present embodiment.
Due to including at the same time, high speed Slow deposits equipment and vulgar Slow is deposited in the Slow deposit systems of equipment, in order to ensure the I/O performances of whole Slow deposit systems, need user accessing the high file of temperature and be stored in high speed Slow and deposit in equipment, user is accessed into lower grade file be stored in low speed Slow and deposit in equipment.When high speed Slow deposits equipment and low speed Slow is deposited when being filled with equipment, and low speed Slow deposits the hot value of the accessed file of temperature highest first of equipment and is more than the hot value that high speed Slow deposits accessed temperature minimum the second file of equipment(The stagnant ring factors of 1+)Times when, perform step 205, be scheduled management to deposit the file stored in equipment to high low speed Slow according to the hot value of each file.
Step 205, the first file is dispatched to high speed Slow deposited in equipment, the second file is dispatched into low speed Slow deposits in equipment;
Step 206, do not perform any i.e. low speed Slow of operation deposit equipment and high speed Slow deposit equipment between dispatched without any file, terminate.
The file dispatch control method of the present embodiment, by obtaining the stagnant ring factor, and when the low speed Slow hot values for depositing the accessed file of temperature highest first of equipment are more than the hot value that high speed Slow deposits accessed temperature minimum the second file of equipment(The stagnant ring factors of 1+)Times when, the first file is dispatched to the high speed Slow and deposited in equipment, the second file is dispatched into low speed Slow deposits in equipment.The technology of the present embodiment Scheme, by increasing stagnant ring value, it can effectively improve and be dispatched to the threshold that high speed Slow deposits the file in equipment, reduction high speed Slow deposits equipment write operation number of times, high speed Slow will not be reduced and deposit the service life of equipment, so that effectively improving high speed Slow deposits utilization rate of the equipment within the service life time limit.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can be completed by the related hardware of programmed instruction, foregoing program can be stored in a computer read/write memory medium, the program upon execution, performs the step of including above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or CD etc. are various can be with the medium of store program codes.
The structural representation for the file scheduling controlling equipment that Fig. 3 provides for one embodiment of the invention.As shown in figure 3, the file scheduling controlling equipment of the present embodiment, including judge module 10 and scheduler module 11.
The judge module 10 be used to judging low speed Slow deposit the hot value of the accessed file of temperature highest first of equipment and high speed Slow deposit equipment minimum the second file of accessed temperature hot value difference whether more than stagnant ring value.Scheduler module 11 is connected with judge module 10, scheduler module 11 is used for when judge module 10 judges that the difference of the hot value of the first file and the hot value of the second file is more than stagnant ring value, first file is dispatched into high speed Slow to deposit in equipment, the second file is dispatched into low speed Slow deposits in equipment.
The file scheduling controlling equipment of the present embodiment, realizes that file scheduling controlling is identical with the realization mechanism of above-mentioned related method embodiment by using above-mentioned module, the record of above-mentioned related method embodiment is may be referred in detail, be will not be repeated here.
The file scheduling controlling equipment of the present embodiment, realized by using above-mentioned module judge low speed Slow deposit the hot value of the accessed file of temperature highest first of equipment and high speed Slow deposit equipment minimum the second file of accessed temperature hot value difference whether more than stagnant ring value;When the hot value of the first file is more than stagnant ring value with the difference of the hot value of the second file, the first file is dispatched to the high speed Slow and deposited in equipment, the second file is dispatched into low speed Slow deposits in equipment.The technical scheme of the present embodiment, by increasing stagnant ring value, it can effectively improve and be dispatched to the threshold that high speed Slow deposits the file in equipment, reduction high speed Slow deposits equipment write operation number of times, high speed Slow will not be reduced and deposit the service life of equipment, so that effectively improving high speed Slow deposits utilization rate of the equipment within the service life time limit.
The structural representation for the file scheduling controlling equipment that Fig. 4 provides for another embodiment of the present invention.As shown in figure 4, the file scheduling controlling equipment of the present embodiment is on the basis of above-mentioned embodiment illustrated in fig. 3, it can also include as follows: Stagnant ring value in the present embodiment is equal to the product of the stagnant ring factor and the hot value of the second file.Now judge module 10 can be specifically for judging whether the hot value of the first file is more than the hot value of the second file(The stagnant ring factors of 1+)Times.Scheduler module 11 is specifically for the hot value when the first file more than the hot value of the second file(The stagnant ring factors of 1+)Times when, the first file is dispatched to high speed Slow and deposited in equipment, the second file is dispatched into low speed Slow deposits in equipment.
Alternatively, the hot value of the first file is to be used for the accessed temperature of the first file of sign according to what the average access probability of the first file and the average access interval of prediction were obtained in the present embodiment;The hot value of second file is to be used for the accessed temperature of the second file of sign according to what the average access probability of the second file and the average access interval of prediction were obtained.
Alternatively, in the file scheduling controlling equipment of the present embodiment, determining module 12 can also be included.The determining module 12 is used to determine the stagnant ring factor.
Still optionally further, the determining module 12 includes statistic unit 121, computing unit 122 and acquiring unit 123.
Wherein statistic unit 121 is used in current dispatching cycle, the statistics time interval when data volume that statistics of high speed Slow deposits equipment write-in reaches preset data amount.Such as statistic unit 121 is specifically for depositing the statistics time interval when data volume of equipment write-in reaches preset data amount using equation below acquisition high speed Slow Wherein it is that the high speed Slow to be calculated deposits statistics time interval when the data volume of equipment write-in reaches preset data amount; ^wIt is that high speed Slow deposits former statistics time interval when the data volume of equipment write-in reaches preset data amount;^ is that in current dispatching cycle, the data volume that high speed Slow deposits equipment write-in reaches actual time interval required during preset data amount, is forgetting factor.
Computing unit 122 is used to depositing the capacity of equipment, service life according to high speed Slow, high speed Slow deposits number of times and the preset data amount that equipment is rewritten in service life, calculates high speed Slow and deposits the ideal time interval that equipment write-in data volume reaches preset data amount;For example computing unit 122 specifically reaches the ideal time interval of preset data amount using the equation below calculating high speed Slow data volumes for depositing equipment write-in:
_ length*F
Times*M wherein L are that high speed Slow deposits equipment and is written into ideal time interval when data volume reaches preset data amount, and M is the capacity that high speed Slow deposits equipment, and length is the service life that high speed Slow deposits equipment, times The number of times that equipment is rewritten in the service life length is deposited for high speed Slow, F is preset data amount.Acquiring unit 123 is connected with statistic unit 121 and computing unit 122 respectively, acquiring unit 123 be used for according to statistic unit 121 count obtained high speed Slow deposit statistics time interval, the computing unit 122 that the data volume of equipment write-in reaches during preset data amount calculate obtained high speed Slow deposit equipment write-in data volume reach during preset data amount ideal time interval and high speed Slow deposit the former stagnant ring factor of equipment and obtain the stagnant ring factor.For example acquiring unit 123 specifically obtains the stagnant ring factor using equation below:
Pnew = + K * (L-Wnew), wherein Ρ is the stagnant ring factor,ΡωIt is the former stagnant ring factor,
K is regulation coefficient, regulation coefficient K is normal number, L is that the high speed Slow deposits ideal time interval when the data volume of equipment write-in reaches the preset data amount, is that the high speed Slow deposits statistics time interval when the data volume of equipment write-in reaches preset data amount.
Now acquiring unit 123 is also connected with judge module 10, the stagnant ring factor that judge module 10 can be obtained specifically for acquiring unit 123, judges whether the hot value of the first file is more than the hot value of the second file(The stagnant ring factor that 1+ acquiring units 123 are obtained)Times.Scheduler module 11 is specifically for the hot value when the first file more than the hot value of the second file(The stagnant ring factor that 1+ acquiring units 123 are obtained)Times when, the first file is dispatched to high speed Slow and deposited in equipment, the second file is dispatched into low speed Slow deposits in equipment.When the hot value of the first file is less than or equal to the hot value of the second file(The stagnant ring factor that 1+acquiring unit 123 is obtained)Times when, any operation can not be performed, that is to say, that the first file and the second file dispatched without exchanging between high low speed Slow deposits equipment without file.
It should be noted that with plurality of optional technical scheme and deposit in above-described embodiment and introduce embodiments of the invention, actual to quote, above-mentioned plurality of optional embodiment can in detail be repeated no more using constitute embodiments of the invention by the way of being combined.
The file scheduling controlling equipment of the present embodiment, realizes that file scheduling controlling is identical with the realization mechanism of above-mentioned related method embodiment by using above-mentioned module, the record of above-mentioned related method embodiment is may be referred in detail, be will not be repeated here.
The file scheduling controlling equipment of the present embodiment, by using above-mentioned module by increasing stagnant ring value, it can effectively improve and be dispatched to the threshold that high speed Slow deposits the file in equipment, reduction high speed Slow deposits equipment write operation number of times, high speed Slow will not be reduced and deposit the service life of equipment, so that effectively improving high speed Slow deposits utilization rate of the equipment within the service life time limit.
It should be noted that the file scheduling controlling equipment of the embodiment of the present invention can with Slow deposit systems The high-speed processing apparatus be set together, in order to realize the scheduling controlling of file.Device embodiment described above is only schematical, the unit wherein illustrated as separating component can be or may not be physically separate, the part shown as unit can be or may not be physical location, a place can be located at, or can also be distributed at least two NEs.Some or all of module therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.Those of ordinary skill in the art are not in the case where paying performing creative labour, you can to understand and implement.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although the present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It can still modify to the technical scheme described in foregoing embodiments, or carry out equivalent substitution to which part technical characteristic;And these modifications or replacement, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (15)

  1. Claims
    1st, a kind of file dispatch control method, it is characterised in that including:
    Judge whether the difference of hot value for minimum the second file of accessed temperature that low speed Slow deposits the hot value of the accessed file of temperature highest first of equipment and high speed Slow deposits equipment is more than stagnant ring value;When the hot value of first file is more than the stagnant ring value with the difference of the hot value of second file, first file is dispatched to the high speed Slow and deposited in equipment, second file is dispatched into the low speed Slow deposits in equipment.
    2nd, according to the method described in claim 1, it is characterised in that the stagnant ring value is the product of the stagnant ring factor and the hot value of second file.
    3rd, according to the method described in claim 1, characterized in that, the hot value of first file is the value for being used to characterize the accessed temperature of first file obtained according to the average access probability of first file and the average access interval of prediction;The hot value of second file is the value for being used to characterize the accessed temperature of second file obtained according to the average access probability of second file and the average access interval of prediction.
    4th, method according to claim 2, it is characterised in that also include:
    Determine the stagnant ring factor.
    5th, method according to claim 4, it is characterised in that determine the stagnant ring factor, including:
    In current dispatching cycle, count the high speed Slow and deposit statistics time interval when the data volume of equipment write-in reaches preset data amount;
    The capacity of equipment, service life are deposited according to the high speed Slow, the high speed Slow deposits number of times and the preset data amount that equipment is rewritten in the service life, calculate the high speed Slow and deposit ideal time interval when the data volume of equipment write-in reaches the preset data amount;
    Statistics time interval, the high speed Slow for reaching during the preset data amount according to the high speed Slow data volumes for depositing equipment write-in deposit equipment write-in data volume reach during the preset data amount ideal time interval and the high speed Slow deposit the former stagnant ring factor of equipment and obtain the stagnant ring factor.
    6th, method according to claim 5, it is characterized in that, in current dispatching cycle, count the high speed Slow and deposit statistics time interval when the data volume of equipment write-in reaches preset data amount, it is specific the high speed Slow is obtained using equation below to deposit statistics time interval when the data volume of equipment write-in reaches preset data amount: wnewIt is that the high speed Slow to be calculated deposits statistics time interval when the data volume of equipment write-in reaches preset data amount;wIt is that the high speed Slow deposits former statistics time interval when the data volume of equipment write-in reaches preset data amount;^ is that in the current dispatching cycle, the data volume that the high speed Slow deposits equipment write-in reaches actual time interval required during the preset data amount, is forgetting factor.
    7th, method according to claim 6, it is characterized in that, the capacity of equipment, service life are deposited according to the high speed Slow, the high speed Slow deposits number of times and the preset data amount that equipment is rewritten in the service life, calculate the high speed Slow and deposit ideal time interval when the data volume of equipment write-in reaches the preset data amount, it is specific the high speed Slow is calculated using equation below to deposit ideal time interval when the data volume of equipment write-in reaches the preset data amount:
    _ length*F
    times*M
    L reaches the ideal time interval during preset data amount for the high speed Slow data volumes for depositing equipment write-in, M is the capacity that the high speed Slow deposits equipment, length is the service life that the high speed Slow deposits equipment, times is that the high speed Slow deposits the number of times that equipment is rewritten in the service life length, and F is the preset data amount.
    8th, method according to claim 7, it is characterized in that, statistics time interval, the high speed Slow for reaching during the preset data amount according to the high speed Slow data volumes for depositing equipment write-in deposit equipment write-in data volume reach during the preset data amount ideal time interval and the high speed Slow deposit the former stagnant ring factor of equipment and obtain the stagnant ring factor, it is specific that the stagnant ring factor is obtained using equation below:
    new old rr new )
    P is the stagnant ring factor, P.ldIt is the former stagnant ring factor, K is regulation coefficient, the regulation coefficient is normal number, L is that the high speed Slow deposits ideal time interval when the data volume of equipment write-in reaches the preset data amount, is that the high speed Slow deposits statistics time interval when the data volume of equipment write-in reaches preset data amount.
    9th, a kind of file scheduling controlling equipment, it is characterised in that including:
    Judge module, for judge low speed Slow deposit the hot value of the accessed file of temperature highest first of equipment and high speed Slow deposit equipment minimum the second file of accessed temperature hot value difference whether More than stagnant ring value;
    Scheduler module, for when the hot value of first file is more than the stagnant ring value with the difference of the hot value of second file, first file is dispatched into the high speed Slow to deposit in equipment, second file is dispatched into the low speed Slow deposits in equipment.
    10th, file scheduling controlling equipment according to claim 9, it is characterised in that the stagnant ring value is the product of the stagnant ring factor and the hot value of second file.
    11, file scheduling controlling equipment according to claim 9, characterized in that, the hot value of first file is the value for being used to characterize the accessed temperature of first file obtained according to the average access probability of first file and the average access interval of prediction;The hot value of second file is the value for being used to characterize the accessed temperature of second file obtained according to the average access probability of second file and the average access interval of prediction.
    12nd, file scheduling controlling equipment according to claim 10, it is characterised in that the file scheduling controlling equipment also includes:
    Determining module, for determining the stagnant ring factor.
    13rd, file scheduling controlling equipment according to claim 12, it is characterised in that the determining module, including:
    Statistic unit, in current dispatching cycle, counts the high speed Slow and deposits statistics time interval when the data volume of equipment write-in reaches preset data amount;
    Computing unit, for depositing the capacity of equipment, service life according to the high speed Slow, the high speed Slow deposits number of times and the preset data amount that equipment is rewritten in the service life, calculates the high speed Slow and deposits ideal time interval when the data volume of equipment write-in reaches the preset data amount;
    Acquiring unit, deposited for depositing statistics time interval, the high speed Slow that the data volume of equipment write-in reaches during the preset data amount according to the high speed Slow equipment write-in data volume reach during the preset data amount ideal time interval and the high speed Slow deposit the former stagnant ring factor of equipment and obtain the stagnant ring factor.
    14th, file scheduling controlling equipment according to claim 13, it is characterised in that the statistic unit, pre- statistics time interval is reached especially by the data volume that equipment write-in is deposited using the equation below acquisition high speed Slow:
    WnewIt is that the high speed Slow to be calculated is deposited when the data volume of equipment write-in reaches preset data amount Statistics time interval; ^wIt is that the high speed Slow deposits former statistics time interval when the data volume of equipment write-in reaches preset data amount;^ is that in the current dispatching cycle, the data volume that the high speed Slow deposits equipment write-in reaches actual time interval required during the preset data amount, is forgetting factor.
    15th, file scheduling controlling equipment according to claim 14, it is characterised in that the computing unit, the ideal time interval during preset data amount is reached especially by the data volume that equipment write-in is deposited using the equation below calculating high speed Slow:
    _ length*F
    times*M
    L reaches the ideal time interval during preset data amount for the high speed Slow data volumes for depositing equipment write-in, M is the capacity that the high speed Slow deposits equipment, length is the service life that the high speed Slow deposits equipment, times is that the high speed Slow deposits the number of times that equipment is rewritten in the service life length, and F is the preset data amount.
    16th, file scheduling controlling equipment according to claim 15, it is characterised in that the acquiring unit, the stagnant ring factor is obtained especially by using equation below:
    new old rrNew) it is the stagnant ring factor,P.Ld is the former stagnant ring factor, K is regulation coefficient, the regulation coefficient is normal number, L is that the high speed Slow deposits ideal time interval when the data volume of equipment write-in reaches the preset data amount, is that the high speed Slow deposits statistics time interval when the data volume of equipment write-in reaches preset data amount.
CN201180002995.XA 2011-11-02 2011-11-02 File dispatch control method and equipment Expired - Fee Related CN103503409B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/081676 WO2012167535A1 (en) 2011-11-02 2011-11-02 Method and equipment for controlling file scheduling

Publications (2)

Publication Number Publication Date
CN103503409A true CN103503409A (en) 2014-01-08
CN103503409B CN103503409B (en) 2016-04-06

Family

ID=47295397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201180002995.XA Expired - Fee Related CN103503409B (en) 2011-11-02 2011-11-02 File dispatch control method and equipment

Country Status (2)

Country Link
CN (1) CN103503409B (en)
WO (1) WO2012167535A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030140207A1 (en) * 2002-01-21 2003-07-24 Hitachi. Ltd. Hierarchical storage apparatus and control apparatus thereof
CN1480850A (en) * 2002-12-04 2004-03-10 联想(北京)有限公司 Method for dynamic transferring data and its storing system
CN102215268A (en) * 2011-07-14 2011-10-12 北京飞杰信息技术有限公司 Method and device for transferring file data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030140207A1 (en) * 2002-01-21 2003-07-24 Hitachi. Ltd. Hierarchical storage apparatus and control apparatus thereof
CN1480850A (en) * 2002-12-04 2004-03-10 联想(北京)有限公司 Method for dynamic transferring data and its storing system
CN102215268A (en) * 2011-07-14 2011-10-12 北京飞杰信息技术有限公司 Method and device for transferring file data

Also Published As

Publication number Publication date
CN103503409B (en) 2016-04-06
WO2012167535A1 (en) 2012-12-13

Similar Documents

Publication Publication Date Title
CN104461936B (en) Data cached brush method and device
CN105117180B (en) A kind of date storage method and device and solid state disk
US9021200B1 (en) Data storage system with predictive management of physical storage use by virtual disks
CN101788995B (en) Hotspot data identification method and device
CN105095116A (en) Cache replacing method, cache controller and processor
CN102156738A (en) Method for processing data blocks, and data block storage equipment and system
CN103229136B (en) Disk array brush method and disk array brush device
CN106990926A (en) A kind of processing method of solid state hard disc abrasion equilibrium
CN104503703B (en) The treating method and apparatus of caching
CN105630638A (en) Equipment and method for distributing cache for disk array
CN103092526A (en) Method and device for transferring data between storage devices
CN108089814A (en) A kind of date storage method and device
CN110007870A (en) A kind of storage equipment write request processing method and relevant apparatus
CN109343797A (en) A kind of data cached transmission method, system and associated component
CN104199784A (en) Data migration method and device based on hierarchical storage
CN111597125B (en) Wear balancing method and system for index nodes of nonvolatile memory file system
CN109739442A (en) A kind of data migration method, system and associated component
CN101957729B (en) Logical block transformation method and method and device compatible with reading and writing of user based on same
CN109144419A (en) A kind of solid state hard disk memory read-write method and system
CN105493024A (en) Data threshold prediction method and related apparatus
CN104503924B (en) Region allocation method and device in a kind of Bedding storage system
CN103827837A (en) Method, device and system for accessing solid state disk space
CN109783000A (en) A kind of data processing method and equipment
CN103577349B (en) Select the method and apparatus that data carry out brush in the caches
CN106557277A (en) The reading method and device of disk array

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160406

Termination date: 20191102

CF01 Termination of patent right due to non-payment of annual fee