CN108984112A - Store the implementation method and device of QoS control strategy - Google Patents

Store the implementation method and device of QoS control strategy Download PDF

Info

Publication number
CN108984112A
CN108984112A CN201810570493.0A CN201810570493A CN108984112A CN 108984112 A CN108984112 A CN 108984112A CN 201810570493 A CN201810570493 A CN 201810570493A CN 108984112 A CN108984112 A CN 108984112A
Authority
CN
China
Prior art keywords
issue
belonging
volume
currently
sequence
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
CN201810570493.0A
Other languages
Chinese (zh)
Other versions
CN108984112B (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.)
Chengdu Huawei Technology Co Ltd
Original Assignee
Huawei Symantec 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 Symantec Technologies Co Ltd filed Critical Huawei Symantec Technologies Co Ltd
Priority to CN201810570493.0A priority Critical patent/CN108984112B/en
Publication of CN108984112A publication Critical patent/CN108984112A/en
Application granted granted Critical
Publication of CN108984112B publication Critical patent/CN108984112B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of method and devices of QoS control strategy, are related to technical field of memory, are able to solve the problem of QoS control strategy is issued as granularity sequence using the single I/O of each volume, reduces the treatment effeciency of storage system in the prior art.The method comprise the steps that determining the quantity of processing input/output I/O in the unit time;The weight ratio for currently needing to issue volume belonging to I/O is determined when receiving each volume and needing the I/O issued;The quantity that I/O is handled according to the weight ratio and in the unit time determines that I/O is issued and belongs to the continuously arranged quantitative value of same volume I/O in sequence;Determine that the I/O issues sequence, in order to which the sequence for issuing sequence according to the I/O issues the current I/O for needing to issue, the I/O issues the continuously arranged number of I/O for belonging to same volume in sequence equal to the quantitative value.

Description

Store the implementation method and device of QoS control strategy
Technical field
The present invention relates to technical field of memory more particularly to a kind of implementation methods and device for storing QoS control strategy.
Background technique
A kind of Security Mechanism of Intra-Network of the QoS (Quality of Service, service quality) as network, can be specified Network communication better service ability is provided, QoS main indexes have IOPS (Input/Output Operations Per Second, the number per second being written and read) bound, MBPS (Million bits per second, it is megabit every Second) bound, weight share, delay latency upper limit etc..In storage system, the mode for generalling use competition determines each application I/O (Input/Output, input/output) is issued to the sequence of hardware, will not can guarantee some in this way or certain using I/O Service quality need to be scheduled it before I/O is issued to hardware to guarantee some service quality using I/O Or the processing of flow control, so the concept of QoS is introduced into storage system, i.e. storage QoS.It stores QoS and is ensureing application In the case where IOPS, MBPS or time delay, the resource of reasonable distribution storage system, make to apply between resource isolation while promoted it is single The performance of a or certain applications, and then guarantee service quality.Storage QoS control strategy predominantly stores QoS clothes in the prior art Layer be engaged in using the single I/O of each volume (application) as granularity, issuing according to preset algorithm arrangement is sequence, for example, SFQ (Start- Time Fair Queuing, time Fair Queue) etc., algorithm be store QoS service layer according to the IOPS lower limit of setting, MBPS lower limit or weight etc. calculate the timestamp of each I/O, and are marked, then according to the successive to each I/O of timestamp Sequence, is issued to bottom hardware according still further to the sequence sequenced.
At least there are the following problems in the prior art: storage QoS service layer is using the single I/O of each volume as under granularity sequence Hair, it is easy to make the frequent cross arrangement of the I/O of different volumes, as soon as and then the every processing time I/O of storage system, CPU is caused to need Once switched, CPU switches every time takes around 100ns, so the method for storing QoS control strategy in the prior art reduces The treatment effeciency of storage system.
Summary of the invention
The embodiment of the present invention provides a kind of implementation method and device for storing QoS control strategy, is able to solve existing skill QoS control strategy is stored in art to issue by granularity sequence of the single I/O of each volume, reduces asking for the treatment effeciency of storage system Topic.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, the embodiment of the present invention provides a kind of implementation method for storing QoS control strategy, comprising:
Determine the quantity of processing input/output I/O in the unit time;
When receiving the I/O message that each volume needs to issue, the weight ratio that currently needs to issue and roll up belonging to I/O is determined;
The quantity that I/O is handled according to the weight ratio and in the unit time determines that I/O is issued and belongs to phase in sequence With the volume continuously arranged quantitative value of I/O;
Determine that the I/O issues sequence, in order to which the sequence for issuing sequence according to the I/O issues under the current needs The I/O of hair, the I/O issue the continuously arranged number of I/O for belonging to same volume in sequence equal to the quantitative value.
With reference to first aspect, in the first implementation of first aspect, the determination currently needs to issue belonging to I/O The weight ratio of volume includes:
According to the current number for needing to issue the Gigabits per second MBPS or per second of volume belonging to I/O and being written and read IOPS determines the weight ratio that currently needs to issue and roll up belonging to I/O.
With reference to first aspect or the first implementation of first aspect, in second of implementation of first aspect, Before the determination currently needs to issue the weight ratio of volume belonging to I/O, the method also includes:
Judge whether the delay period for currently needing to issue volume belonging to I/O has been started up, the delay period is each The I/O that volume needs to issue waits the time of sequence;
When the delay period for currently needing to issue volume belonging to I/O is inactive, start the delay period;
When the delay period for currently needing to issue volume belonging to I/O has been started up, the delay period is waited to terminate Afterwards, it executes the step and determines the weight ratio that currently needs to issue and roll up belonging to I/O.
Second of implementation with reference to first aspect, in the third implementation of first aspect, the judgement institute It states currently to need to issue the delay period rolled up belonging to I/O and whether have been started up and includes:
It judges whether there is and belongs to the I/O for currently needing to issue and rolling up belonging to I/O and not issuing;
When exist belong to the I/O for currently needing to issue belonging to I/O volume and not issuing when, determined the delay period It is activated;
When there is no the I/O for currently needing to issue belonging to I/O volume and not issuing is belonged to, the delay period is determined It is inactive.
Second aspect, the embodiment of the present invention provide a kind of realization device for storing QoS control strategy, comprising:
Determination unit, for determining the quantity for handling input/output I/O in the unit time;
The determination unit is also used to when receiving the I/O message that each volume needs to issue, and determination currently needs to issue I/O The weight ratio of affiliated volume;
The quantity that the determination unit is also used to handle I/O according to the weight ratio and in the unit time determines I/ O, which is issued, belongs to the continuously arranged quantitative value of same volume I/O in sequence;
The determination unit is also used to determine that the I/O issues sequence, in order to issue the sequence of sequence according to the I/O It issues and described current needs the I/O that issues, the I/O to issue to belong to the continuously arranged number of I/O of same volume in sequence and be equal to The quantitative value.
In conjunction with second aspect, in the first implementation of second aspect, the determination unit is specifically used for according to institute State the determining current needs of number IOPS for currently needing to issue that the Gigabits per second MBPS or per second rolled up belonging to I/O is written and read Issue the weight ratio rolled up belonging to I/O.
In conjunction with the first of second aspect or second aspect implementation, in second of implementation of second aspect, Described device further include:
Judging unit, it is described for judging whether the delay period for currently needing to issue volume belonging to I/O has been started up Delay period is the time that the I/O that each volume needs to issue waits sequence;
Start unit, for when it is described currently need to issue volume belonging to I/O delay period it is inactive when, when starting described Prolong the period.
Wait unit, for when it is described currently need to issue the delay period of volume belonging to I/O and have been started up when, described in waiting After delay period, executes the step and determine the weight ratio that currently needs to issue and roll up belonging to I/O.
In conjunction with second of implementation of second aspect, in the third implementation of second aspect, the judgement is single Member, which is specifically used for judging whether there is, belongs to the I/O for currently needing to issue and rolling up belonging to I/O and not issuing;
The determination unit be also used to when exist belong to the I/O for currently needing to issue belonging to I/O volume and not issuing when, Determine that the delay period has been started up;And for when there is no belong to it is described currently need to issue belonging to I/O volume and not under When the I/O of hair, determine that the delay period is inactive.
A kind of implementation method and device storing QoS control strategy provided in an embodiment of the present invention determines in the present invention single The quantity of processing I/O in the time of position;Then it is determined when receiving each volume and needing the I/O message issued and currently needs to issue I/O The weight ratio of affiliated volume, and the quantity that I/O is handled according to weight ratio and in the unit time determines that I/O is issued in sequence and belongs to The continuously arranged quantitative value of same volume I/O;Determine that I/O issues sequence, works as in order to which the sequence for issuing sequence according to I/O issues again The preceding I/O for needing to issue ,/O issue the continuously arranged number of I/O for belonging to same volume in sequence equal to quantitative value.In this way, this hair The bright middle quantity that I/O is handled according to weight ratio and in the unit time determines that I/O is issued and belongs to same volume I/O in sequence and continuously arrange The number of column is realized to roll up the sequence for carrying out IO based on timeslice for granularity and issue, so that determining I/O be avoided to issue in sequence Difference volume the frequent cross arrangements of I/O, and then when issuing I/O reduce CPU switching times, promote the efficiency of I O process, Handover overhead is reduced simultaneously.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without creative efforts, can also be attached according to these Figure obtains other attached drawings.
Fig. 1 is the method flow diagram that one embodiment of the invention provides;
Fig. 2 is the method flow diagram that further embodiment of this invention provides;
Fig. 3, Fig. 4 are the apparatus structure schematic diagram that further embodiment of this invention provides;
Fig. 5 is the server architecture schematic diagram that further embodiment of this invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts all other Embodiment shall fall within the protection scope of the present invention.
The advantages of to make technical solution of the present invention, is clearer, makees specifically to the present invention with reference to the accompanying drawings and examples It is bright.
Method described in the embodiment of the present invention stores upper layer and the virtual machine of QoS service layer for storing QoS service layer Virtual disk vDisk connection, to receive the I/O message that each volume needs to issue, lower layer is connect by interface with bottom hardware, to Bottom hardware is issued through the I/O after storage QoS control strategy sequence, and receives the feedback etc. of bottom hardware.
One embodiment of the invention provides a kind of implementation method for storing QoS control strategy, as shown in Figure 1, the method packet It includes:
101, the quantity of processing I/O in the unit time is determined.
Wherein, the quantity of processing I/O can be determined according to storage system actual motion state in the unit time, such as I/O Rate and I/O read and write rate etc. are issued, and can be adjusted in due course according to storage actual motion state change.
102, when receiving the I/O message that each volume needs to issue, the weight ratio that currently needs to issue and roll up belonging to I/O is determined Value.
Wherein, the relevant information of I/O is carried in I/O message, for example, volume, address read or write belonging to I/O etc..Currently need The MBPS or IOPS for issuing the weight ratio volume according to belonging to I/O rolled up belonging to I/O are determining, can also be by may be implemented Other modes determine, it is not limited here.
It should be noted that step 101 and step 102 may be performed simultaneously, can also successively it execute, execution sequence is not done It limits.
103, the quantity that I/O is handled according to weight ratio and in the unit time determines that I/O is issued and belongs to same volume in sequence The continuously arranged quantitative value of I/O.
104, determine that I/O issues sequence, in order to which the sequence for issuing sequence according to I/O issues the I/O for currently needing to issue.
Wherein, I/O issues the continuously arranged number of I/O for belonging to same volume in sequence equal to quantitative value.
The quantity of processing I/O in the unit time is determined in the embodiment of the present invention;Then when receiving what each volume needed to issue The weight ratio that currently needs to issue and roll up belonging to I/O is determined when I/O message, and I/ is handled according to weight ratio and in the unit time The quantity of O determines that I/O is issued and belongs to the continuously arranged quantitative value of same volume I/O in sequence;Determine that I/O issues sequence again, so as to Issue the I/O for currently needing to issue in the sequence for issuing sequence according to I/O ,/O issue belong in sequence same volume I/O it is continuous The number of arrangement is equal to quantitative value.In this way, the quantity for handling I/O in the present invention according to weight ratio and in the unit time determines I/ O, which is issued, belongs to the continuously arranged number of same volume I/O in sequence, realize to roll up under the sequence for carrying out IO based on timeslice for granularity Hair, so that determining I/O be avoided to issue the different frequent cross arrangements of I/O rolled up in sequence, and then the reduction when issuing I/O The switching times of CPU, promote the efficiency of I O process, while reducing handover overhead.
Further embodiment of this invention provides a kind of implementation method for storing QoS control strategy, as shown in Fig. 2, the method Include:
201, the quantity of processing I/O in the unit time is determined.
Wherein, the quantity of processing I/O can be determined according to storage system actual motion state in the unit time, and can root It is adjusted in due course according to storage actual motion state change.For example, current storage system I/O issues rate and I/O read and write rate It is higher, it is determined that the quantity of processing I/O issues rate and I/O read-write for 10 or current storage system I/O in the unit time Rate is lower, it is determined that the quantity of processing I/O is 5 etc. in the unit time.
202, it when receiving the I/O message that each volume needs to issue, judges whether there is to belong to and currently needs to issue I/O institute The I/O for belonging to volume and not issuing belongs to if it exists and currently needs to issue volume and the I/O not issued belonging to I/O, executes step 204;If There is no belonging to currently to need to issue volume and the I/O not issued belonging to I/O, step 203 is executed.
It should be noted that the relevant information of I/O is carried in I/O message, for example, volume, the address read or write belonging to I/O Deng, the volume according to belonging to I/O can distinguish volume belonging to each I/O in the case where storing the QoS service layer multiple I/O of reception, so as to It is ranked up in multiple I/O.Delay period is the time that I/O waits sequence.The I/O for once needing to issue in order to avoid each volume Negligible amounts, there is the frequent situation of cross arrangement in the I/O of different volumes after sequence, in the embodiment of the present invention, carry out to I/O When sequence, delayed submission mechanism is added, i.e., when the I/O rolled up a preparation issues, waits predetermined period, i.e. delay period, makes Unified sequence issues after the I/O of predetermined period curls inward reaches certain amount, avoids the I/O cross arrangement of different volumes frequent as far as possible The case where, to further promote the efficiency that bottom hardware I/O merges.
Wherein, it judges whether there is and belongs to that currently to need to issue volume and the I/O not issued belonging to I/O be current in order to judge Need to issue whether the delay period rolled up belonging to I/O has been started up, when exist belong to currently need to issue volume belonging to I/O and not under When the I/O of hair, determine that currently needing to issue the delay period rolled up belonging to I/O has been started up;When there is no belong under current need Volume belonging to hair I/O and when the I/O not issued determines that currently to need to issue the delay period rolled up belonging to I/O inactive.
203, starting, which currently needs to issue, rolls up delay period belonging to I/O.
204, waiting currently needs to issue volume delay period belonging to I/O and terminates.
It should be noted that executing step 204 after executing the step 203, after executing the step 204, step is executed 205。
205, the volume that delay period terminates is determined, and the MBPS or IOPS of the volume terminated according to delay period determine weight ratio Value.
It should be noted that currently need to issue the weight ratio volume according to belonging to I/O rolled up belonging to I/O MBPS or IOPS is determined, can also be determined by the other modes that may be implemented, it is not limited here.
It should be noted that step 201 and the data handling procedure of step 202-205 may be performed simultaneously, it can also be first After execute, execution sequence without limitation.
206, the quantity that I/O is handled according to weight ratio and in the unit time determines that I/O is issued and belongs to same volume in sequence The continuously arranged quantitative value of I/O.
207, determine that I/O issues sequence according to belonging to the continuously arranged number of same volume I/O.
Wherein, I/O issues the continuously arranged number of I/O for belonging to same volume in sequence equal to the number determined in step 206 Magnitude.
For example, there are three volume be respectively vol01, vol02 and vol03 I/O needs be ranked up issue and three volume Delay period be over, their weight ratio is 1:1:1, and processing I/O in the unit time is calculated in step 201 Quantity is 3, then step 207 can determine I/O issue belong in sequence the continuously arranged number of same volume I/O be 3, this step The rapid ranking results gone out should are as follows: vol01, vol01, vol01, vol02, vol02, vol02, vol03, vol03, vol03.
For another example vol01, vol02 and vol03 I/O need be ranked up issue and three volume delay periods Through terminating, their weight ratio is 1:2:3, and the quantity that processing I/O in the unit time is calculated in step 201 is 3, then walks Rapid 207 can determine I/O issue belong in sequence the continuously arranged number of vol01 volumes of I/O be 3, belong to vol01 volumes of I/O Continuously arranged number is 6, and belonging to the continuously arranged number of vol01 volumes of I/O is 9, and the ranking results gone out of this step are answered Should are as follows: vol01, vol01, vol01, vol02, vol02, vol02, vol02, vol02, vol02, vol03, vol03, vol03, vol03、vol03、vol03、vol03、vol03、vol03。
208, I/O is issued according to the sequence after arrangement.
The quantity of processing I/O in the unit time is determined in the embodiment of the present invention;Then when receiving what each volume needed to issue The weight ratio that currently needs to issue and roll up belonging to I/O is determined when I/O message, and I/ is handled according to weight ratio and in the unit time The quantity of O determines that I/O is issued and belongs to the continuously arranged quantitative value of same volume I/O in sequence;Determine that I/O issues sequence again, so as to Issue the I/O for currently needing to issue in the sequence for issuing sequence according to I/O ,/O issue belong in sequence same volume I/O it is continuous The number of arrangement is equal to quantitative value.In this way, the quantity for handling I/O in the present invention according to weight ratio and in the unit time determines I/ O, which is issued, belongs to the continuously arranged number of same volume I/O in sequence, realize to roll up under the sequence for carrying out IO based on timeslice for granularity Hair, so that determining I/O be avoided to issue the different frequent cross arrangements of I/O rolled up in sequence, and then the reduction when issuing I/O The switching times of CPU, promote the efficiency of I O process, while reducing handover overhead.
Further embodiment of this invention provides a kind of realization device 30 for storing QoS control strategy, as shown in figure 3, the dress Setting 30 includes:
Determination unit 31, for determining the quantity for handling input/output I/O in the unit time;
The determination unit 31 is also used to when receiving the I/O message that each volume needs to issue, and determines that current needs issue The weight ratio rolled up belonging to I/O;
The quantity that the determination unit 31 is also used to handle I/O according to the weight ratio and in the unit time determines I/O, which is issued, belongs to the continuously arranged number of same volume I/O in sequence;
The determination unit 31 is also used to determine that the I/O issues sequence, in order to issue the suitable of sequence according to the I/O Sequence issues the current I/O for needing to issue, and the I/O, which is issued, belongs to continuously arranged number of I/O of same volume etc. in sequence In the quantitative value.
Further, the determination unit 31 is specifically used for currently needing to issue the megabit every of volume belonging to I/O according to described The number IOPS that second MBPS or per second is written and read determines the weight ratio that currently needs to issue and roll up belonging to I/O.
Further, as shown in figure 4, described device 30 can also include:
Judging unit 32, for judging whether the delay period for currently needing to issue volume belonging to I/O has been started up, institute Stating delay period is the time that the I/O that each volume needs to issue waits sequence;
Start unit 33, for when the delay period for currently needing to issue volume belonging to I/O is inactive, described in starting Delay period;
Unit 34 is waited, for waiting institute when the delay period for currently needing to issue volume belonging to I/O has been started up After stating delay period, executes the step and determine the weight ratio that currently needs to issue and roll up belonging to I/O.
Further, the judging unit 32, which is specifically used for judging whether there is belonging to, described currently needs to issue I/O institute The I/O for belonging to volume and not issuing;
The determination unit 31, which is also used to work as to exist, belongs to the I/O for currently needing to issue and rolling up belonging to I/O and not issuing When, determine that the delay period has been started up;And for when there is no belong to it is described currently need to issue belonging to I/O volume and When the I/O not issued, determine that the delay period is inactive.
The quantity of processing I/O in the unit time is determined in the embodiment of the present invention;Then when receiving what each volume needed to issue The weight ratio that currently needs to issue and roll up belonging to I/O is determined when I/O message, and I/ is handled according to weight ratio and in the unit time The quantity of O determines that I/O is issued and belongs to the continuously arranged quantitative value of same volume I/O in sequence;Determine that I/O issues sequence again, so as to Issue the I/O for currently needing to issue in the sequence for issuing sequence according to I/O ,/O issue belong in sequence same volume I/O it is continuous The number of arrangement is equal to quantitative value.In this way, the quantity for handling I/O in the present invention according to weight ratio and in the unit time determines I/ O, which is issued, belongs to the continuously arranged number of same volume I/O in sequence, realize to roll up under the sequence for carrying out IO based on timeslice for granularity Hair, so that determining I/O be avoided to issue the different frequent cross arrangements of I/O rolled up in sequence, and then the reduction when issuing I/O The switching times of CPU, promote the efficiency of I O process, while reducing handover overhead.
Further embodiment of this invention provides a kind of server 40, and the server is used to store the realization of QoS control strategy Method also shows memory 43 and total in Fig. 5 as shown in figure 5, the server 40 includes processor 41 and interface circuit 42 Line 44, the processor 41, interface circuit 42 and memory 43 connect by bus 44 and complete mutual communication.
It should be noted that processor 41 here can be a processing element, it is also possible to multiple processing elements It is referred to as.For example, the processing element can be central processing unit (Central Processing Unit, CPU), it is also possible to spy Determine integrated circuit (Application Specific Integrated Circuit, ASIC), or is arranged to implement this One or more integrated circuits of inventive embodiments, such as: one or more microprocessors (digital singnal Processor, DSP), or, one or more field programmable gate array (Field Programmable Gate Array, FPGA)。
Memory 43 can be a storage device, be also possible to the general designation of multiple memory elements, and for storing and can hold Parameter, data required for line program code or access net management equipment are run etc..And memory 43 may include random access memory It (RAM), also may include nonvolatile memory (non-volatile memory), such as magnetic disk storage, flash memory (Flash) etc..
Bus 44 can be industry standard architecture (Industry Standard Architecture, ISA) bus, External equipment interconnection (Peripheral Component, PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc..The bus 44 can be divided into address bus, data/address bus, Control bus etc..Only to be indicated with a thick line in Fig. 5, it is not intended that an only bus or a seed type convenient for indicating Bus.
Wherein, processor 41 calls the program code in memory 43, stores QoS for executing in above method embodiment The operation that service layer executes.
Specifically, the processor 41 is used to determine the quantity of processing input/output I/O in the unit time;And it is used for When receiving the I/O message that each volume needs to issue, the weight ratio that currently needs to issue and roll up belonging to I/O is determined;And it is used for The quantity that I/O is handled according to the weight ratio and in the unit time determines that I/O is issued and belongs to same volume I/O company in sequence The quantitative value of continuous arrangement;And for determining that the I/O issues sequence, in order to which the sequence for issuing sequence according to the I/O is logical It crosses interface circuit 42 and issues and described current need the I/O that issues, the I/O to issue to belong to the I/O of same volume in sequence and continuously arrange The number of column is equal to the quantitative value.
Further, the processor 41 is also used to according to the Gigabits per second for currently needing to issue volume belonging to I/O The number IOPS that MBPS or per second is written and read determines the weight ratio that currently needs to issue and roll up belonging to I/O.
Further, the processor 41 is also used to judge that the delay period for currently needing to issue volume belonging to I/O is No to have been started up, the delay period is the time that the I/O that each volume needs to issue waits sequence;And for when described current Need to issue the delay period rolled up belonging to I/O it is inactive when, start the delay period;And for working as the current needs When issuing the delay period rolled up belonging to I/O and having been started up, after waiting the delay period, execute the step determine it is current Need to issue the weight ratio rolled up belonging to I/O.
Further, the processor 41, which is also used to judge whether there is to belong to, described currently needs to issue volume belonging to I/O And the I/O not issued;And for when exist belong to the I/O for currently needing to issue belonging to I/O volume and not issuing when, really The fixed delay period has been started up;And for when there is no belong to described currently to need to issue belonging to I/O volume and do not issue I/O when, determine that the delay period is inactive.
The quantity of processing I/O in the unit time is determined in the embodiment of the present invention;Then when receiving what each volume needed to issue The weight ratio that currently needs to issue and roll up belonging to I/O is determined when I/O message, and I/ is handled according to weight ratio and in the unit time The quantity of O determines that I/O is issued and belongs to the continuously arranged quantitative value of same volume I/O in sequence;Determine that I/O issues sequence again, so as to Issue the I/O for currently needing to issue in the sequence for issuing sequence according to I/O ,/O issue belong in sequence same volume I/O it is continuous The number of arrangement is equal to quantitative value.In this way, the quantity for handling I/O in the present invention according to weight ratio and in the unit time determines I/ O, which is issued, belongs to the continuously arranged number of same volume I/O in sequence, realize to roll up under the sequence for carrying out IO based on timeslice for granularity Hair, so that determining I/O be avoided to issue the different frequent cross arrangements of I/O rolled up in sequence, and then the reduction when issuing I/O The switching times of CPU, promote the efficiency of I O process, while reducing handover overhead.
The method that above-mentioned offer may be implemented in the realization device of storage QoS control strategy provided in an embodiment of the present invention is implemented Example, concrete function realize the explanation referred in embodiment of the method, and details are not described herein.Storage provided in an embodiment of the present invention The implementation method and device of QoS control strategy can be adapted for storing QoS service layer, but be not limited only to this.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (8)

1. a kind of implementation method of storage service quality Q oS control strategy characterized by comprising
It determines the quantity of processing input/output I/O in the unit time and currently needs to issue the weight ratio rolled up belonging to I/O;
The quantity that I/O is handled according to the weight ratio and in the unit time determines that I/O is issued and belongs to same volume in sequence The continuously arranged quantitative value of I/O;Wherein, the I/O issues the continuously arranged number of I/O for belonging to same volume in sequence equal to institute State quantitative value.
2. the method according to claim 1, wherein the determination currently needs to issue the weight rolled up belonging to I/O Ratio includes:
According to the current number for needing to issue the Gigabits per second MBPS or per second of volume belonging to I/O and being written and read
IOPS determines the weight ratio that currently needs to issue and roll up belonging to I/O.
3. method according to claim 1 or 2, which is characterized in that currently need to issue volume belonging to I/O in the determination Before weight ratio, the method also includes:
Judge whether the delay period for currently needing to issue volume belonging to I/O has been started up, the delay period needs for each volume The I/O to be issued waits the time of sequence;
When the delay period for currently needing to issue volume belonging to I/O is inactive, start the delay period;
When the delay period for currently needing to issue volume belonging to I/O has been started up, after waiting the delay period, hold Row step determines the weight ratio that currently needs to issue and roll up belonging to I/O.
4. according to the method described in claim 3, it is characterized in that, the judgement is described currently to need to issue volume belonging to I/O Whether delay period has been started up
It judges whether there is and belongs to the I/O for currently needing to issue and rolling up belonging to I/O and not issuing;
When exist belong to the I/O for currently needing to issue belonging to I/O volume and not issuing when, determine that the delay period has opened It is dynamic;
When there is no the I/O for currently needing to issue belonging to I/O volume and not issuing is belonged to, determine that the delay period does not open It is dynamic.
5. a kind of realization device of storage service quality Q oS control strategy characterized by comprising
Determination unit, for determining that the quantity for handling input/output I/O in the unit time needs to issue volume belonging to I/O with current Weight ratio;
The quantity that the determination unit is also used to handle I/O according to the weight ratio and in the unit time determines under I/O Belong to the continuously arranged quantitative value of same volume I/O in hair sequence;Wherein, the I/O issues the I/O company for belonging to same volume in sequence The number of continuous arrangement is equal to the quantitative value.
6. device according to claim 5, which is characterized in that the determination unit is specifically used for according to the current needs It issues the number IOPS that the Gigabits per second MBPS or per second rolled up belonging to I/O is written and read and determines and currently need to issue I/O institute Belong to the weight ratio of volume.
7. device according to claim 5 or 6, which is characterized in that described device further include:
Judging unit, for judging whether the delay period for currently needing to issue volume belonging to I/O has been started up, the time delay Period is the time that the I/O that each volume needs to issue waits sequence;
Start unit, for starting the time delay week when the delay period for currently needing to issue volume belonging to I/O is inactive Phase;
Unit is waited, for waiting the time delay when the delay period for currently needing to issue volume belonging to I/O has been started up After end cycle, executes step and determine the weight ratio that currently needs to issue and roll up belonging to I/O.
8. device according to claim 7, which is characterized in that the judging unit is specifically used for judging whether there is belonging to It is described currently to need to issue volume and the I/O not issued belonging to I/O;
The determination unit be also used to when exist belong to the I/O for currently needing to issue belonging to I/O volume and not issuing when, determine The delay period has been started up;And for when there is no belong to described currently to need to issue belonging to I/O volume and do not issue When I/O, determine that the delay period is inactive.
CN201810570493.0A 2015-09-29 2015-09-29 Method and device for realizing storage QoS control strategy Active CN108984112B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810570493.0A CN108984112B (en) 2015-09-29 2015-09-29 Method and device for realizing storage QoS control strategy

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810570493.0A CN108984112B (en) 2015-09-29 2015-09-29 Method and device for realizing storage QoS control strategy
CN201510632334.5A CN105159620B (en) 2015-09-29 2015-09-29 Store the implementation method and device of QoS control strategies

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510632334.5A Division CN105159620B (en) 2015-09-29 2015-09-29 Store the implementation method and device of QoS control strategies

Publications (2)

Publication Number Publication Date
CN108984112A true CN108984112A (en) 2018-12-11
CN108984112B CN108984112B (en) 2022-02-25

Family

ID=54800494

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201510632334.5A Active CN105159620B (en) 2015-09-29 2015-09-29 Store the implementation method and device of QoS control strategies
CN201810570493.0A Active CN108984112B (en) 2015-09-29 2015-09-29 Method and device for realizing storage QoS control strategy

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201510632334.5A Active CN105159620B (en) 2015-09-29 2015-09-29 Store the implementation method and device of QoS control strategies

Country Status (1)

Country Link
CN (2) CN105159620B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107357523B (en) * 2017-06-27 2021-06-15 联想(北京)有限公司 Data processing method and electronic equipment
CN108762687B (en) * 2018-06-05 2019-11-08 星环信息科技(上海)有限公司 I/O service quality control method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6170023B1 (en) * 1998-10-07 2001-01-02 International Business Machines Corporation System for accessing an input/output device using multiple addresses
CN101059750A (en) * 2006-04-20 2007-10-24 株式会社日立制作所 Storage system, path management method and path management device
CN101299181A (en) * 2008-07-08 2008-11-05 杭州华三通信技术有限公司 Method and device for performing I/O request buffer memory based on magnetic disc and SAN memory apparatus
CN102915260A (en) * 2012-09-17 2013-02-06 记忆科技(深圳)有限公司 Solid-state drive and fault tolerant method thereof
CN103631537A (en) * 2013-11-29 2014-03-12 华为技术有限公司 Method and device for managing virtual disk
CN103744808A (en) * 2013-12-31 2014-04-23 百度在线网络技术(北京)有限公司 Method and device used for controlling I/O (Input/Output) request
US8732354B1 (en) * 2005-09-30 2014-05-20 Symantec Operating Corporation Method and apparatus for controlling access to a storage area network
CN104536919A (en) * 2014-12-11 2015-04-22 浪潮(北京)电子信息产业有限公司 Method and device both for avoiding IO conflict in cloning system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9515899B2 (en) * 2012-12-19 2016-12-06 Veritas Technologies Llc Providing optimized quality of service to prioritized virtual machines and applications based on quality of shared resources
CN103248622B (en) * 2013-04-09 2016-02-24 中国科学院计算技术研究所 A kind of Online Video QoS guarantee method of automatic telescopic and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6170023B1 (en) * 1998-10-07 2001-01-02 International Business Machines Corporation System for accessing an input/output device using multiple addresses
US8732354B1 (en) * 2005-09-30 2014-05-20 Symantec Operating Corporation Method and apparatus for controlling access to a storage area network
CN101059750A (en) * 2006-04-20 2007-10-24 株式会社日立制作所 Storage system, path management method and path management device
CN101299181A (en) * 2008-07-08 2008-11-05 杭州华三通信技术有限公司 Method and device for performing I/O request buffer memory based on magnetic disc and SAN memory apparatus
CN102915260A (en) * 2012-09-17 2013-02-06 记忆科技(深圳)有限公司 Solid-state drive and fault tolerant method thereof
CN103631537A (en) * 2013-11-29 2014-03-12 华为技术有限公司 Method and device for managing virtual disk
CN103744808A (en) * 2013-12-31 2014-04-23 百度在线网络技术(北京)有限公司 Method and device used for controlling I/O (Input/Output) request
CN104536919A (en) * 2014-12-11 2015-04-22 浪潮(北京)电子信息产业有限公司 Method and device both for avoiding IO conflict in cloning system

Also Published As

Publication number Publication date
CN105159620A (en) 2015-12-16
CN108984112B (en) 2022-02-25
CN105159620B (en) 2018-07-20

Similar Documents

Publication Publication Date Title
EP2176773B1 (en) Data packet processing method for a multi core processor
CN103124957B (en) Method and apparatus for the Dynamic Resource Allocation for Multimedia of processing unit
CN105893126A (en) Task scheduling method and device
CN104268018B (en) Job scheduling method and job scheduler in a kind of Hadoop clusters
CN110489217A (en) A kind of method for scheduling task and system
CN111782355B (en) Cloud computing task scheduling method and system based on mixed load
CN107491346A (en) A kind of task processing method of application, apparatus and system
CN106776395B (en) A kind of method for scheduling task and device of shared cluster
US20240160474A1 (en) Multi-core processor task scheduling method, and device and storage medium
Cheng et al. Mitigating the negative impact of preemption on heterogeneous mapreduce workloads
CN105159620B (en) Store the implementation method and device of QoS control strategies
US8090903B2 (en) Fair and dynamic disk input/output bandwidth distribution
CN115454589A (en) Task scheduling method and device and Kubernetes scheduler
CN107704310A (en) A kind of method, apparatus and equipment for realizing container cluster management
CN114257559A (en) Method and device for forwarding data message
CN108255595A (en) A kind of dispatching method of data task, device, equipment and readable storage medium storing program for executing
Li et al. A network-aware scheduler in data-parallel clusters for high performance
TWI505673B (en) Flow control for network packets from applications in electronic devices
CN109800074A (en) Task data concurrently executes method, apparatus and electronic equipment
CN106469088A (en) A kind of I/O request scheduling method and scheduler
CN104572276A (en) Cloud-computation-based concurrent data processing method
CN105337888B (en) Load-balancing method, device and virtual switch based on multicore forwarding
CN109471679A (en) The method that a kind of pair of PCIE exchange chip configuration file is configured
CN110309036A (en) A kind of CPU usage detection method and detection device
CN105740064B (en) The method and device for preventing server-side from restarting in linux system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220901

Address after: No. 1899 Xiyuan Avenue, high tech Zone (West District), Chengdu, Sichuan 610041

Patentee after: Chengdu Huawei Technologies Co.,Ltd.

Address before: 611731 Qingshui River District, Chengdu hi tech Zone, Sichuan, China

Patentee before: HUAWEI DIGITAL TECHNOLOGIES (CHENG DU) Co.,Ltd.

TR01 Transfer of patent right