CN103268298B - Exchange resource management method, device and memory device - Google Patents

Exchange resource management method, device and memory device Download PDF

Info

Publication number
CN103268298B
CN103268298B CN201310192445.XA CN201310192445A CN103268298B CN 103268298 B CN103268298 B CN 103268298B CN 201310192445 A CN201310192445 A CN 201310192445A CN 103268298 B CN103268298 B CN 103268298B
Authority
CN
China
Prior art keywords
request
resource
concurrent
exchange
exchange resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310192445.XA
Other languages
Chinese (zh)
Other versions
CN103268298A (en
Inventor
杨俊涛
赵健
王云龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310192445.XA priority Critical patent/CN103268298B/en
Publication of CN103268298A publication Critical patent/CN103268298A/en
Application granted granted Critical
Publication of CN103268298B publication Critical patent/CN103268298B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

This application discloses a kind of exchange resource management method, device and memory device, wherein, described method comprises: obtain the exchange resource amount sending and receive needed for I/O I/O request respectively; According to the exchange resource amount needed for described transmission I/O request, being that starter resource module distributes exchange resource from resource pool, according to the exchange resource amount needed for described reception I/O request, is that object machine resource module distributes exchange resource from described resource pool.By the way, the application can avoid two kinds of business of the memory device possessing same mouth attribute to occur that exchange resource is competed, and prevents the impact of abnormal business on another kind of business, improves reliability.

Description

Exchange resource management method, device and memory device
Technical field
The application relates to technical field of photo communication, particularly relates to a kind of exchange resource management method, device and memory device.
Background technology
In network store system, memory device is connected with server or other memory devices by optical-fibre channel (FibreChannel, be called for short FC), realizes the data sharing between the communication of server and memory device or memory device.The FC port of memory device has starter (Initiator simultaneously, be called for short INI) attribute and object machine (Target, be called for short TGT) attribute, namely there is same mouth attribute, the FC port with same mouth attribute had both had INI business model and had also had TGT business model, two way traffic can be achieved simultaneously, namely both distally can send I/O I/O request by equipment, also can receive and respond the I/O request that remote equipment sends.
Memory device is when carrying out communication service, this Business Initiator's port-mark of (Exchange) resource record (SourceIdentity is exchanged by distributing in resource pool, be called for short SID), take over party's port-mark (DestinationIdentity, be called for short DID), initiator's Resource Exchange mark (OriginatorExchangeIdentity, be called for short OX_ID) and take over party's Resource Exchange mark (ResponderExchangeIdentity, be called for short RX_ID) etc., to realize the management to memory device business, wherein, described resource pool is the discrete or continuous print virtual memory space of a group of the storage port inside being arranged at memory device, for depositing swapace data structure.Particularly, when memory device sends or receive I/O request, memory device drives inside to distribute exchange resource from resource pool, the information updatings such as SID, DID, OX_ID, the RX_ID relevant by this I/O request are in newly assigned exchange resource, and described exchange resource is designated using state, make other business of memory device cannot use described exchange resource.Memory device completes this I/O request business according to the information of described exchange resource, until after memory device receives the response that remote equipment sends or the response completing remote equipment, namely after completing a service interaction, described exchange resource mark as being used to complete or unused state by memory device, and described exchange resource is discharged into resource pool, use for later business.
When memory device is in same mouth pattern, memory device uses INI business module, when initiatively sending I/O request to other remote equipments, to resource pool application exchange resource.Meanwhile, memory device also can use TGT business model, receives the I/O request that other remote equipments send, also to resource pool application exchange resource.When memory device runs INI and TGT two kinds of business models simultaneously, then there will be exchange resource competition, affect the performance of both sides' business.Particularly, the resource management of general memory device has mutual exclusion lock character, and such as memory device runs INI business and TGT business model, all needs to resource pool application exchange resource.Now, if memory device is first that INI business model is to resource pool application exchange resource, then must wait for that the exchange resource application of above-mentioned INI business model completes, could be above-mentioned TGT business model to resource pool application exchange resource, thus affect the performance of TGT business model.If occur abnormal with any one business model in the INI of the memory device of mouth pattern or pattern, such as memory device runs INI business model and occurs abnormal, in a large number to resource pool application resource, causes the resource exhaustion of resource pool.Now, although TGT business model is normal, due to resource pool resource exhaustion, make cannot apply for exchange resource when running TGT business model, and then affect the operation of TGT business model, finally cause two-way services pattern all unavailable, reliability is lower.
Summary of the invention
The embodiment of the present invention is the above-mentioned technical matters solving prior art existence, provides a kind of exchange resource management method, device and memory device.
Embodiment of the present invention first aspect provides a kind of exchange resource management method, comprising: obtain the exchange resource amount sending and receive needed for I/O I/O request respectively; According to the exchange resource amount needed for described transmission I/O request, being that starter resource module distributes exchange resource from resource pool, according to the exchange resource amount needed for described reception I/O request, is that object machine resource module distributes exchange resource from described resource pool; Wherein, the exchange resource of described starter resource module and the exchange resource of described object machine resource module separate, described starter resource module is for providing the exchange resource needed for described transmission I/O request; Described object machine resource module is for providing the exchange resource needed for described reception I/O request; Described transmission I/O request is the I/O request of distally equipment transmission, and described reception I/O request is the I/O request receiving remote equipment transmission.
In conjunction with first aspect, in the first possible embodiment of embodiment of the present invention first aspect, the described step obtaining the exchange resource amount sending and receive needed for I/O request respectively comprises: add up sending the concurrent number of times of I/O request and receiving the concurrent number of times of I/O request respectively within the very first time of presetting, wherein, the concurrent number of times of described transmission I/O request is that distally equipment sends the concurrent number of times of I/O request, and the concurrent number of times of described reception I/O request is the concurrent number of times receiving the I/O request that remote equipment sends, according to the statistics within the described default very first time, obtain the concurrent value of the first I/O request and the concurrent value of the second I/O request, using the exchange resource amount needed for the concurrent value of described first I/O request as the exchange resource amount needed for described transmission I/O request, using the concurrent value of described second I/O request as the exchange resource amount needed for described reception I/O request, wherein, the concurrent value of described first I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of described transmission I/O request that obtains, the concurrent value of described second I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of described reception I/O request that obtains, or, the concurrent value of described first I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described transmission I/O request obtained, the concurrent value of described second I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described reception I/O request obtained.
In conjunction with the first possible embodiment of first aspect, in the embodiment that the second of embodiment of the present invention first aspect is possible, described exchange resource amount needed for described transmission I/O request, from resource pool be starter resource module distribute exchange resource, according to the exchange resource amount needed for described reception I/O request, be specially from described resource pool for object machine resource module distributes the step of exchange resource: from described resource pool for described starter resource module distributes exchange resource needed for the concurrent value of described first I/O request, from described resource pool for described object machine resource module distributes exchange resource needed for the concurrent value of described second I/O request.
In conjunction with the first possible embodiment of first aspect, in the third possible embodiment of embodiment of the present invention first aspect, described exchange resource amount needed for described transmission I/O request, from resource pool be starter resource module distribute exchange resource, according to the exchange resource amount needed for described reception I/O request, also comprise after described resource pool is the step of object machine resource module distribution exchange resource: first in the second default time that obtains respectively overflows exchange resource amount and second and overflows exchange resource amount, wherein, described first spilling exchange resource amount is the exchange resource amount that described starter resource module lacks, described second spilling exchange resource amount is the exchange resource amount that described object machine resource module lacks, exchange resource amount is overflowed according to described first, from described resource pool be again described starter resource module distribute exchange resource, exchange resource amount is overflowed according to described second, again be that described object machine resource module distributes exchange resource from described resource pool, the exchange resource meeting and send needed for I/O request be provided to make described starter resource module and make described object machine resource module provide the exchange resource meeting and receive needed for I/O request.
In conjunction with first aspect, in 4th kind of possible embodiment of embodiment of the present invention first aspect, the described step obtaining the exchange resource amount sending and receive needed for I/O request respectively comprises: add up sending the concurrent number of times of I/O request and receiving the concurrent number of times of I/O request respectively within the very first time of presetting, according to the statistics within the described default very first time, obtain the concurrent value of the first I/O request and the concurrent value of the second I/O request, wherein, the concurrent value of described first I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of described transmission I/O request that obtains, the concurrent value of described second I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of described reception I/O request that obtains, or, the concurrent value of described first I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described transmission I/O request obtained, the concurrent value of described second I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described reception I/O request obtained, repeat to add up the concurrent number of times of transmission I/O request and the concurrent number of times of reception I/O request respectively in N the described very first time presetting, to obtain the concurrent value of N number of described first I/O request and the concurrent value of N number of described second I/O request, according to the concurrent mean value of described N number of described first I/O request concurrent value acquisition first I/O request obtained, according to the concurrent mean value of described N number of second I/O request concurrent value acquisition second I/O request obtained, using the exchange resource amount needed for the concurrent mean value of described first I/O request as the exchange resource amount needed for described transmission I/O request, using the exchange resource amount needed for the concurrent mean value of described second I/O request as the exchange resource amount needed for described reception I/O request, wherein N is natural number.
Embodiment of the present invention second aspect provides a kind of exchange resource management devices, comprises starter resource module, object machine resource module, acquisition module and the first distribution module; Described acquisition module is used for obtaining the exchange resource amount sending and receive needed for I/O I/O request respectively, and described transmission and the exchange resource amount received needed for I/O request are sent to described first distribution module; Described first distribution module is used for the exchange resource amount needed for described transmission I/O request, from resource pool be described starter resource module distribute exchange resource, according to the exchange resource amount needed for described reception I/O request, be that described object machine resource module distributes exchange resource from described resource pool; Described starter resource module is for providing the exchange resource needed for described transmission I/O request, and described transmission I/O request is the I/O request of distally equipment transmission; Described object machine resource module is for providing the exchange resource needed for described reception I/O request, and described reception I/O request is the I/O request receiving remote equipment transmission; The exchange resource of described starter resource module and the exchange resource of described object machine resource module separate.
In conjunction with second aspect, in the first possible embodiment of embodiment of the present invention second aspect, the first statistic unit and the first computing unit, described first statistic unit is used for adding up the concurrent number of times of transmission I/O request and the concurrent number of times of reception I/O request respectively within the very first time of presetting, and statistics is sent to described first computing unit, wherein, the concurrent number of times of described transmission I/O request is that distally equipment sends the concurrent number of times of I/O request, and the concurrent number of times of described reception I/O request is the concurrent number of times receiving the I/O request that remote equipment sends, described first computing unit is used for according to the statistics within the described default very first time, obtain the concurrent value of the first I/O request and the concurrent value of the second I/O request, using the exchange resource amount needed for the concurrent value of described first I/O request as the exchange resource amount needed for described transmission I/O request, using the concurrent value of described second I/O request as the exchange resource amount needed for described reception I/O request, wherein, the concurrent value of described first I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of described transmission I/O request that obtains, the concurrent value of described second I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of described reception I/O request that obtains, or, the concurrent value of described first I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described transmission I/O request obtained, the concurrent value of described second I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described reception I/O request obtained.
In conjunction with the first possible embodiment of second aspect, in the embodiment that the second of embodiment of the present invention second aspect is possible, described first distribution module specifically for from described resource pool for described starter resource module distributes exchange resource needed for the concurrent value of described first I/O request, from described resource pool for described object machine resource module distributes exchange resource needed for the concurrent value of described second I/O request.
In conjunction with the first possible embodiment of second aspect, in the third possible embodiment of embodiment of the present invention second aspect, also comprise the second distribution module, described second distribution module is used for the first spilling exchange resource amount and second obtained respectively in the second default time and overflows exchange resource amount, exchange resource amount is overflowed according to described first, from described resource pool be again described starter resource module distribute exchange resource, exchange resource amount is overflowed according to described second, from described resource pool be again described object machine resource module distribute exchange resource, the exchange resource meeting and send needed for I/O request is provided to make described starter resource module and makes described object machine resource module provide the exchange resource meeting and receive needed for I/O request, wherein, described first spilling exchange resource amount is the exchange resource amount that described starter resource module lacks, described second spilling exchange resource amount is the exchange resource amount that described object machine resource module lacks.
In conjunction with second aspect, in the 4th kind of possible embodiment of embodiment of the present invention second aspect, described acquisition module comprises the second statistic unit and the second computing unit, described second statistic unit is used for adding up the concurrent number of times of transmission I/O request and the concurrent number of times of reception I/O request respectively within N number of default very first time, and the statistics in described N number of default very first time is sent to described second computing unit, described second computing unit is used for respectively according to the statistics in described N number of default very first time, obtain the concurrent value of N number of first I/O request and the concurrent value of N number of second I/O request, according to the concurrent mean value of described N number of described first I/O request concurrent value acquisition first I/O request obtained, according to the concurrent mean value of described N number of second I/O request concurrent value acquisition second I/O request obtained, using the exchange resource amount needed for the concurrent mean value of described first I/O request as the exchange resource amount needed for described transmission I/O request, using the concurrent mean value of described second I/O request as the exchange resource amount needed for described reception I/O request, wherein, the concurrent value of described first I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of described transmission I/O request that obtains, the concurrent value of described second I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of described reception I/O request that obtains, or, the concurrent value of described first I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described transmission I/O request obtained, the concurrent value of described second I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described reception I/O request obtained, wherein N is natural number.
The embodiment of the present invention third aspect provides a kind of memory device, comprises the exchange resource management devices of above-mentioned any one.
The embodiment of the present invention is according to sending and receiving the stock number needed for I/O request, be respectively separate starter resource module and object machine resource module distribution exchange resource from resource pool, and described starter resource module is for providing the exchange resource needed for described transmission I/O request; Described object machine resource module, for providing the exchange resource needed for described reception I/O request, makes the exchange resource of INI and TGT two kinds of business models separate, avoids INI business model and TGT business model in same mouth pattern and occurs that exchange resource is competed.Meanwhile, a kind of business occurs abnormal wherein, when causing corresponding resource module exchange resource to exhaust, also can not affect the application of another kind of operation exchange resource, another kind of business normally can be run, improve the reliability of memory device.
Accompanying drawing explanation
Fig. 1 is the structural representation of the application's memory device one embodiment;
Fig. 2 is the process flow diagram of the application's exchange resource management method one embodiment;
Fig. 3 is the process flow diagram of another embodiment of the application's exchange resource management method;
Fig. 4 is the structural representation of the application's exchange resource management devices one embodiment;
Fig. 5 is the structural representation of another embodiment of the application's exchange resource management devices;
Fig. 6 is the structural representation of the application's exchange resource management devices embodiment again;
Fig. 7 is the structural representation of an application exchange resource management devices embodiment more again.
Embodiment
Be described below in conjunction with accompanying drawing and concrete embodiment.
Refer to Fig. 1, Fig. 1 is the structural representation of the application's memory device one embodiment.Memory device comprises resource pool 110, starter resource module 120 and object machine resource module 130.
In network store system, described memory device can run INI business model, and distally equipment (as other memory devices or server) sends I/O request, or runs TGT business model, receives and responds remote equipment I/O request.Described memory device sends I/O request in distally equipment (not shown), application exchange resource is to record SID, DID, OX_ID and RX_ID etc. of INI business model, or receive remote equipment I/O request, application exchange resource is to record SID, DID, OX_ID and RX_ID etc. of TGT business model, during INI or TGT service operation, memory device, by the information in described exchange resource, realizes communicating with correct remote equipment.
The resource pool 110 of described memory device for depositing exchange resource, and distributes exchange resource for starter resource module 120 and object machine resource module 130.Particularly, described memory device obtains memory device and sends and receive the exchange resource amount needed for I/O request, according to the exchange resource amount needed for described transmission I/O request, be starter resource module 120 from resource pool 110, according to the exchange resource amount needed for described reception I/O request, distribute exchange resource from resource pool 110 for object machine resource module 130.Such as, memory device obtains to preset in the very first time and sends the concurrent number of times of I/O request and receive the concurrent number of times of I/O request, to obtain the exchange resource amount sending the concurrent number of times of I/O request and receive needed for the concurrent number of times difference of I/O request respectively, and be the exchange resource that starter resource module 120 distributes needed for the concurrent number of times of described transmission I/O request from resource pool 110, for object machine resource module 130 distributes the exchange resource needed for the concurrent number of times of described reception I/O request.
Described starter resource module 120 for provide memory device distally equipment send the exchange resource needed for I/O request, namely the exchange resource deposited of starter resource module 120 is only for INI business model.Described object machine resource module 130 is for providing the exchange resource received needed for I/O request that remote equipment sends, and namely the exchange resource deposited of object machine resource module 130 is only for TGT business model.
Described memory device is when distally equipment sends I/O request (needing to run INI business model), preferentially apply for exchange resource to starter resource module 120, when receiving the I/O request (needing to run TGT business model) that remote equipment sends, preferentially apply for exchange resource to object machine resource module 130.After memory device application to exchange resource, the mutual of INI or TGT business can be carried out with described remote equipment.After this business completes, the exchange resource that this business takies is discharged into corresponding resource module by memory device, i.e. starter resource module 120 or object machine resource module 130.
If memory device is applied for less than exchange resource to starter resource module 120 or object machine resource module 130, then memory device applies for exchange resource to resource pool 110.If memory device applies for exchange resource to resource pool 110, then carry out the mutual of this business with described remote equipment, and after this business completes, the exchange resource of this business is discharged back resource pool 110.If memory device is applied for less than exchange resource to resource pool 110, then return the information of application less than exchange resource, now, memory device cannot carry out the mutual of this business with described remote equipment, occurs abnormal.
The application's embodiment is according to the stock number sent needed for I/O request, from resource pool be starter resource module distribute exchange resource, stock number needed for reception I/O request is that object machine resource module distributes exchange resource, the exchange resource of starter resource module and object machine resource module is separate, and the exchange resource needed for INI business model is provided by described starter resource module, exchange resource needed for TGT business model is provided by object machine resource module, make the exchange resource of INI and TGT two kinds of business models separate, avoid INI business model and TGT business model in same mouth pattern and occur that exchange resource is competed.Meanwhile, a kind of business occurs abnormal wherein, when causing corresponding resource module exchange resource to exhaust, also can not affect the application of another kind of operation exchange resource, another kind of business normally can be run, improve the reliability of memory device.
Refer to Fig. 2, Fig. 2 is the process flow diagram of the application's exchange resource management method one embodiment.Described exchange resource management method comprises the following steps:
Step S201: memory device obtains the exchange resource amount sending and receive needed for I/O request respectively.
Memory device has same mouth attribute, can run INI and TGT business model.Memory device is when running INI business model, and distally equipment sends I/O request, and applies for exchange resource, when running TGT business model, receiving the I/O request that remote equipment sends, and applying for exchange resource.Memory device obtains memory device respectively and sends and receive the exchange resource amount needed for I/O request.Such as, memory device obtains respectively and sends the concurrent number of times of I/O request and receive the concurrent number of times of I/O request, and using the exchange resource amount needed for the concurrent number of times of transmission I/O request as the exchange resource amount sent needed for I/O request, using the exchange resource amount needed for the concurrent number of times of reception I/O request as the exchange resource amount received needed for I/O request.Wherein, the concurrent number of times of described transmission I/O request is in Preset Time, and memory device distally equipment sends the number of times of I/O request.The concurrent number of times of described reception I/O request is in Preset Time, and memory device receives the number of times of the I/O request that remote equipment sends.Preset Time in the embodiment of the present invention can set according to concrete performance, and the present invention does not do concrete restriction to this.
Step S202: the exchange resource amount of memory device needed for described transmission I/O request, from resource pool be starter resource module distribute exchange resource, according to the exchange resource amount needed for described reception I/O request, be that object machine resource module distributes exchange resource from described resource pool.
Described memory device is provided with resource pool, starter resource module and object machine resource module.Wherein, described resource pool deposits the total exchange resource of memory device, and provides exchange resource for described starter resource module and described object machine resource module.The exchange resource of described starter resource module and object machine resource module is separate.
The exchange resource amount of described memory device needed for described transmission I/O request, from resource pool be starter resource module distribute exchange resource, according to the exchange resource amount needed for described reception I/O request, be that object machine resource module distributes exchange resource from described resource pool.Such as, memory device obtains the exchange resource amount sending and receive needed for the concurrent number of times of I/O request respectively, from resource pool for starter resource module distributes the exchange resource sent needed for the concurrent number of times of I/O request, for object machine resource module distributes the exchange resource received needed for the concurrent number of times of I/O request.Wherein, the exchange resource distributing to described starter resource module is separate with the exchange resource distributing to described object machine resource module.The exchange resource that described starter resource module is deposited only for INI business model, memory device distally equipment send I/O request time, for described memory device provides exchange resource.The exchange resource that described object machine resource module is deposited only for TGT business model, memory device receive remote equipment send I/O request time, for described memory device provides exchange resource.
After memory device is respectively described starter resource module and object machine resource module distribution exchange resource from resource pool, if memory device distally equipment sends I/O request, then to described starter resource module application exchange resource, if memory device receives the I/O request that remote equipment sends, then preferential to described object machine resource module application exchange resource.Memory device, after starter resource module or the application to exchange resource of object machine resource module, can communicate with described remote equipment.After INI or TGT business completes, the exchange resource that this business takies is discharged into corresponding resource module by memory device, i.e. starter resource module or object machine resource module.If memory device is to starter resource module or the application of object machine resource module less than exchange resource, then memory device is to resource pool application exchange resource.If memory device is to resource pool application to exchange resource, then communicate with described remote equipment, and after this business completes, the exchange resource of this business is discharged back resource pool.If memory device is to resource pool application less than exchange resource, then return the information of application less than exchange resource, now, memory device cannot communicate with described remote equipment, occurs abnormal.
Refer to Fig. 3, Fig. 3 is the process flow diagram of another embodiment of the application's exchange resource management method.Described exchange resource management method comprises the following steps:
Step S301: memory device is added up the concurrent number of times of transmission I/O request and the concurrent number of times of reception I/O request respectively within the very first time of presetting.
Memory device is added up the transmission concurrent number of times of I/O request and the concurrent number of times of reception I/O request respectively within the very first time of presetting, wherein, the concurrent number of times of described transmission I/O request is the concurrent number of times of the I/O request of distally equipment transmission, namely in the given time, the memory device distally number of times of I/O request that sends of equipment.The concurrent number of times of I/O request of the concurrent number of times of described reception I/O request for receiving remote equipment and sending, namely in Preset Time, memory device receives the number of times of the I/O request that remote equipment sends.Such as, the described default very first time is 10 seconds (S), and memory device obtains the 1st, the 2nd, the 3rd respectively ... 10th second internal memory devices be the number of times of I/O request that sends of equipment and the number of times that receives the I/O request that remote equipment sends distally.In this example, the number of times of the I/O request that memory device distally equipment per second sends is the concurrent number of times of described transmission I/O request, and the memory device number of times receiving the I/O request that remote equipment sends per second is the concurrent number of times of described reception I/O request.Certainly, memory device may not add up all transmissions and the concurrent number of times of reception I/O request in the default very first time, in other embodiments, memory device also can carry out sampling statistics to the transmission in the very first time of presetting and the concurrent number of times of reception I/O request, in this no limit, Preset Time in the embodiment of the present invention and the predetermined very first time can set according to concrete performance, and the present invention does not do concrete restriction to this.
Step S302: memory device, according to the statistics within the described default very first time, obtains the concurrent value of the first I/O request and the concurrent value of the second I/O request.
Memory device according within the described default very first time to the statistics sending I/O request concurrent number of times, obtain the concurrent value of the first I/O request, to the statistics receiving the concurrent number of times of I/O request within the described default very first time, obtain the concurrent value of the second I/O request.Further, the concurrent value of the first I/O request and the concurrent value of the second I/O request are kept in the internal memory of memory device by memory device.Wherein, the concurrent value of described first I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of transmission I/O request that obtains, the concurrent value of described second I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of reception I/O request that obtains, or, the concurrent value of described first I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described transmission I/O request obtained, the concurrent value of described second I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described reception I/O request obtained.
In embody rule, memory device can according to statistics, to select to add up the maximal value of the concurrent number of times of transmission I/O request obtained as the concurrent value of described first I/O request within the described default very first time, the maximal value of the concurrent number of times of reception I/O request obtained will be added up as the concurrent value of the second I/O request within the described default very first time, or select to add up the mean value of the concurrent number of times of transmission I/O request obtained as the concurrent value of described first I/O request within the described default very first time, the mean value of the reception O request Concurrency number of times obtained will be added up as the concurrent value of the second I/O request within the described default very first time.If the service concurrence amount that memory device runs is more unstable, send within the very first time of presetting or receive between the concurrent number of times of I/O request and differ larger, for ensureing that the exchange resource that memory device distributes meets transmission as much as possible or receives needed for the concurrent number of times of I/O request, memory device using the maximal value of adding up within the described default very first time in the concurrent number of times of transmission I/O request that obtains as the concurrent value of the first I/O request, using the maximal value that receives in the concurrent number of times of I/O request as the concurrent value of the second I/O request.If the service concurrence amount that memory device runs is more stable, sending within the very first time of presetting or receive between the concurrent number of times of I/O request changes not quite, then memory device can will send the mean value of the concurrent number of times of I/O request as the concurrent value of the first I/O request in the default very first time, or the mean value of the concurrent number of times of reception I/O request is as the concurrent value of the second I/O request.
Step S303: memory device obtains the concurrent value of N number of first I/O request and the concurrent value of N number of second I/O request, according to the concurrent mean value of N number of described first I/O request concurrent value acquisition first I/O request obtained, according to the concurrent mean value of described N number of second I/O request concurrent value acquisition second I/O request obtained, using the exchange resource amount needed for the concurrent mean value of the first I/O request as the exchange resource amount sent needed for I/O request, using the exchange resource amount needed for the concurrent mean value of the second I/O request as the exchange resource amount received needed for I/O request.Wherein, N is natural number, and the concrete value of N can be determined according to concrete actual conditions, and the embodiment of the present invention does not do concrete restriction to this.
Memory device repeats above-mentioned steps S301 and step S302, to obtain in the concurrent value of N number of first I/O request and the concurrent value of N number of second I/O request, and according to the concurrent value of N number of first I/O request, calculate the concurrent mean value of acquisition first I/O request, according to the concurrent value of N number of second I/O request, calculate the concurrent mean value of acquisition second I/O request.Wherein, the concurrent mean value of described first I/O request is the mean value of the concurrent value of described N number of first I/O request, and the concurrent mean value of the second I/O request is the mean value of the concurrent value of described N number of second I/O request.
Memory device obtains first, after the concurrent mean value of second I/O request, using the exchange resource amount needed for the concurrent mean value of described first I/O request as the exchange resource amount needed for described transmission I/O request, using the exchange resource amount needed for the concurrent mean value of described second I/O request as the exchange resource amount needed for described reception I/O request, to make the exchange resource amount of memory device needed for the concurrent mean value of the first I/O request, from resource pool be starter resource module distribute exchange resource, according to the exchange resource amount needed for the concurrent mean value of the second I/O request, from resource pool be object machine resource module distribute exchange resource.
Citing is described, memory device in 10 seconds respectively to the 2nd, 4, 6, 8, the concurrent number of times of transmission I/O request and the concurrent number of times of reception I/O request of 10 seconds are added up, obtaining statistics is: the 2nd, 4, 6, 8, the concurrent number of times of transmission I/O request of 10 seconds is respectively 210, 180, 260, 190, 350, the 2nd, 4, 6, 8, the concurrent number of times of reception I/O request of 10 seconds is respectively 100, 150, 260, 80, 170, to send the maximal value of the concurrent number of times of I/O request as the concurrent value of the first I/O request, to receive the maximal value of the concurrent number of times of I/O request as the concurrent value of the second I/O request.Namely the concurrent value of first, second I/O request is respectively 350,260.Memory device continued at next 10 seconds to carry out above-mentioned statistics to the transmission concurrent number of times of I/O request and the concurrent number of times of reception I/O request, to obtain the concurrent value of first, second I/O request in these 10 seconds, until obtain 6 concurrent values of first, second I/O request in 10 seconds.Wherein, described 6 concurrent values of the first I/O request are followed successively by 350,350,370,360,320, it is 350 that memory device obtains the concurrent mean value of the first I/O request, the exchange resource amount of the exchange resource amount namely needed for the concurrent mean value of the first I/O request needed for transmission 350 I/O request.Described 6 concurrent values of the second I/O request are followed successively by 260,230,270,300,280, it is 270 that memory device obtains the concurrent mean value of described first I/O request, the exchange resource amount of the exchange resource amount namely needed for the concurrent mean value of the second I/O request needed for reception 270 I/O request.Exchange resource amount needed for transmission 350 I/O request is sent exchange resource amount needed for I/O request, using the exchange resource amount needed for reception 270 I/O request as the exchange resource amount received needed for I/O request as memory device by memory device.
Step S304: memory device from described resource pool for starter resource module distributes exchange resource needed for the concurrent mean value of the first I/O request, from described resource pool for object machine resource module distributes exchange resource needed for the concurrent mean value of the second I/O request.
In present embodiment, after memory device obtains the concurrent mean value of described first I/O request and the concurrent mean value of the second I/O request, for starter resource module quantity allotted equals the exchange resource of the exchange resource amount needed for the concurrent mean value of the first I/O request from described resource pool, for object machine resource module quantity allotted equals the exchange resource of the exchange resource amount needed for the concurrent mean value of the second I/O request from described resource pool.
Certainly, the exchange resource that memory device is not limited to quantity is equal with the exchange resource amount needed for the concurrent mean value of described first I/O request distributes to starter resource module, and the exchange resource equal with the exchange resource amount needed for the concurrent mean value of described second I/O request is distributed to object machine resource module.In other embodiments, as memory device can according to as described in the ratio of exchange resource amount needed for the concurrent mean value of the first I/O request, the exchange resource of described resource pool is distributed to starter resource module respectively, according to the ratio of the exchange resource amount needed for the concurrent mean value of the second I/O request, the exchange resource of described resource pool is distributed to object machine resource module respectively, or memory device is respectively obtain described first, on exchange resource basis needed for the concurrent mean value of second I/O request, increase some exchange resources again, to ensure that starter resource module and object machine resource module obtain enough exchange resources.
In present embodiment, memory device is by obtaining multiple first, the concurrent value of second I/O request, obtain more stable first, the concurrent mean value of second I/O request, and the exchange resource amount needed for the concurrent mean value of the first I/O request, for starter resource module distributes exchange resource from resource pool, according to the exchange resource amount needed for the concurrent mean value of the second I/O request, for object machine resource module distributes exchange resource from resource pool, decrease starter resource module, the error of the exchange resource amount of the exchange resource amount that object machine resource module is assigned to business actual needs corresponding to memory device.
It should be noted that in addition, step S303 is optional step.In another embodiment, after memory device execution step S301, step S302 obtain the concurrent value of first, second I/O request, using the exchange resource amount needed for the concurrent value of the first I/O request as the exchange resource amount needed for described transmission I/O request, using the concurrent value of the second I/O request as the exchange resource amount needed for described reception I/O request.Memory device performs step S304, with the exchange resource amount needed for the concurrent value of the first I/O request, for starter resource module distributes exchange resource from described resource pool, according to the exchange resource amount needed for the concurrent value of the second I/O request, for object machine resource module distributes exchange resource from described resource pool.
Step S305: the first spilling exchange resource amount and second that memory device obtains in the second default time respectively overflows exchange resource amount.
Memory device distally equipment send I/O request time, preferentially to starter resource module application exchange resource.If memory device is to the application of starter resource module less than exchange resource, then memory device is to resource pool application exchange resource.Described to the application of starter resource module less than exchange resource amount be the exchange resource amount that starter resource module lacks, namely first overflows exchange resource amount.When memory device receives the I/O request that described remote equipment sends, preferentially to described object machine resource module application exchange resource.If memory device is to the application of object machine resource module less than exchange resource, then memory device is to resource pool application exchange resource.Described to the application of object machine resource module less than exchange resource amount be the exchange resource amount that object machine resource module lacks, namely second overflows exchange resource amount.The first spilling exchange resource amount and second that memory device obtained within second time of presetting overflows exchange resource amount.
Step S306: memory device overflows exchange resource amount according to described first, from described resource pool be again described starter resource module distribute exchange resource, overflowing exchange resource amount according to described second, is that described object machine resource module distributes exchange resource from described resource pool again.
After memory device the first spilling exchange resource amount and second obtained in the second default time overflows exchange resource amount, again be that starter resource module and object machine resource module distribute exchange resource from resource pool, the exchange resource meeting and send needed for I/O request be provided to make described starter resource module and make described object machine resource module provide the exchange resource meeting and receive needed for I/O request.Wherein, the exchange resource amount that memory device distributes for starter resource module be again the exchange resource amount and described first distributing to starter resource module last time overflows exchange resource amount and, memory device again for the exchange resource amount of object machine resource module distribution be the exchange resource amount and described second distributing to described object machine resource module last time overflow exchange resource amount with.
If the exchange resource amount in resource pool be less than memory device need to be reassigned to starter resource module and object machine resource module exchange resource amount and, then need according to current storage devices the ratio being reassigned to starter resource module and object machine resource module exchange resource amount, all exchange resources of resource pool are reassigned to starter resource module and object machine resource module.
Repeated execution of steps S305, step S306, with every described the second default time, overflow exchange resource amount and described second according to described first and overflow exchange resource amount, again be that starter resource module and object machine resource module distribute exchange resource from described resource pool, until be after starter resource module and object machine resource module distribute exchange resource again from described resource pool, described resource pool is without remaining exchange resource, now, memory device is that starter resource module and object machine resource module distribute exchange resource no longer again.
It should be noted that, memory device again for starter resource module distribute exchange resource amount and first that exchange resource amount is not limited to sub-distribution on described starter resource module overflows exchange resource amount and, the exchange resource amount and second that memory device is not limited to the distribution of described object machine resource module for object machine resource module distribution exchange resource amount again overflow exchange resource amount with.
In present embodiment, described first, second default time and N are by memory apparatus system default settings.But in other embodiments, described first, second default time and N also can be preset by user, in this no limit, and wherein N is natural number.
Further, when carrying out exchange resource and redistributing, memory device also may not overflow exchange resource amount with first, second, is that starter resource module and object machine resource module distribute exchange resource again from resource pool.In other embodiments, memory device can at execution step S304, according to the exchange resource amount sent needed for I/O request, from resource pool be starter resource module distribute exchange resource, according to the exchange resource amount received needed for I/O request, after being object machine resource module distribution exchange resource from resource pool, do not perform step S305, S306.Memory device is every default 3rd time, re-execute step S301 to step S304, with the exchange resource amount needed for the transmission I/O request regained, from resource pool again for starter resource module distributes exchange resource, according to the exchange resource amount needed for the reception I/O request regained, resource pool is again for object machine resource module distributes exchange resource.The 3rd time of wherein presetting is greater than the default very first time.
In present embodiment, memory device arranges separate starter resource module and object machine resource module, simultaneously, the each exchange resource amount of the second time to starter resource module and object machine resource module of presetting of memory device is redistributed, make the exchange resource amount of starter resource module and object machine resource module can actual with the current storage devices as far as possible exchange resource amount sending and receive needed for I/O request corresponding, ensure that the exchange resource of resource module can meet business demand corresponding to memory device, improve the performance of memory device service operation.
Specifically, in conjunction with following table one, two, memory device existing resource way to manage and the application's resource management mode are contrasted, so that technique effect of the present invention to be described.
Please first consult following table one, memory device runs INI business model and TGT business model, be all that the resource management due to memory device has mutual exclusion lock character to resource pool application exchange resource, namely must wait for that an exchange resource application completes the application just carrying out next exchange resource.Therefore memory device is when running two kinds of business models simultaneously, there is exchange resource competition.Now, when a kind of business model of memory device occurs abnormal, then the runnability of another kind of business model can be affected.Such as, total exchange resource amount of resource pool is 2048.INI business model occurs abnormal, and constantly to resource pool application exchange resource, until take all exchange resources of resource pool, i.e. the stock number of INI business model application is 2048.Now, TGT business model less than any exchange resource to resource pool application, makes TGT business model normally to run, therefore have impact on TGT business model.In like manner, TGT business model occurs abnormal, occupy all of resource pool or most of exchange resource, make INI business apply for completely less than exchange resource or the exchange resource that can apply for little, and then INI business model cannot normally be run or operation progress is affected.
Refer to following table two, the exchange resource amount of the present invention needed for described transmission I/O request, from resource pool be starter resource module distribute exchange resource, according to the exchange resource amount needed for described reception I/O request, from described resource pool be object machine resource module distribute exchange resource, and provide the exchange resource needed for INI business model by starter resource module, object machine resource module provides the exchange resource of formula needed for TGT business, make the exchange resource of INI and TGT two kinds of business models separate, therefore there is not the exchange resource competition of INI and TGT two kinds of business.In addition, even if wherein a kind of business model occurs abnormal, also another kind of business model can not be affected.Such as, total exchange resource amount of resource pool is 2048, and the exchange resource amount distributing to starter resource module is 1024, and the exchange resource amount distributing to object machine resource module is 512.INI business model occurs abnormal, and after the exchange resource exhausting starter resource module, continue to resource pool application exchange resource, until the remaining exchange resource of resource pool also exhausts, now, the exchange resource amount of INI business model application is 1536.Due to starter resource module and object machine resource module separate, therefore, INI business model cannot to object machine resource module application exchange resource, and object machine resource module still deposits the exchange resource of 512 for the application of TGT business model.In like manner, the exception of TGT business model also can not have influence on INI business model.
Table one: existing resource administrative situation
The total exchange resource amount of resource pool 2048 2048 2048
Two kinds of service operation situations Normally INI service exception TGT service exception
Resource pool residue exchange resource amount 512 0 0
The exchange resource amount of INI business application 1024 2048 0
The exchange resource amount of TGT business application 512 0 2048
Whether there is exchange resource competition Be Be Be
Whether there are abnormal conditions to influence each other No Be Be
Table two: resource management situation of the present invention
The total exchange resource amount of resource pool 2048 2048 2048
The exchange resource amount of starter resource module 1024 1024 1024
The exchange resource amount of object machine resource module 512 512 512
Two kinds of service operation situations Normally INI service exception TGT service exception
Resource pool residue exchange resource amount 512 0 0
The exchange resource amount of INI business application 1024 1536 1020
The exchange resource amount of TGT business application 512 510 1536
Whether there is exchange resource competition No No No
Whether there are abnormal conditions to influence each other No No No
Fig. 4 is the structural representation of the application's exchange resource management devices one embodiment.Refer to Fig. 4, described exchange resource management devices comprises starter resource module 410, object machine resource module 420, acquisition module 430 and the first distribution module 440.
Starter resource module 410 is for providing the exchange resource needed for described transmission I/O request, and described transmission I/O request is the I/O request of distally equipment transmission.
Object machine resource module 420 is for providing the exchange resource needed for described reception I/O request, and described reception I/O request is the I/O request receiving remote equipment transmission.
Exchange resource amount needed for described transmission and described reception I/O request for obtaining the exchange resource amount sending and receive needed for I/O request respectively, and is sent to the first distribution module 440 by acquisition module 430.Memory device has same mouth attribute, can run INI and TGT business model.Memory device is when running INI business model, and distally equipment sends I/O request, and applies for exchange resource, when running TGT business model, receiving the I/O request that remote equipment sends, and applying for exchange resource.Acquisition module 430 obtains memory device respectively and sends and receive the exchange resource amount needed for I/O request.Such as, acquisition module 430 obtains memory device respectively and sends the concurrent number of times of I/O request and receive the concurrent number of times of I/O request, and using the exchange resource amount needed for the concurrent number of times of transmission I/O request as the exchange resource amount sent needed for I/O request, using the exchange resource amount needed for the concurrent number of times of reception I/O request as the exchange resource amount received needed for I/O request.Wherein, the concurrent number of times of described transmission I/O request is in the given time, and memory device distally equipment sends the number of times of I/O request.The concurrent number of times of described reception I/O request is in the schedule time, and memory device receives the number of times of the I/O request that remote equipment sends.Preset Time in the embodiment of the present invention can set according to concrete performance, and the present invention does not do concrete restriction to this.
First distribution module 440 is for the exchange resource amount needed for described transmission I/O request, be that described starter resource module 410 distributes exchange resource from resource pool, according to the exchange resource amount needed for described reception I/O request, be that described object machine resource module 420 distributes exchange resource from described resource pool.
Described memory device is provided with resource pool, and described resource pool deposits the total exchange resource of memory device, and provides exchange resource for described starter resource module and described object machine resource module.The exchange resource amount of the first distribution module 440 respectively needed for memory device transmission and reception I/O request, is respectively starter resource module 410 from resource pool and object machine resource module 420 distributes exchange resource.Such as, first distribution module 440 is according to the exchange resource amount obtained needed for the concurrent number of times of memory device transmission I/O request, from resource pool for starter resource module 410 distributes the exchange resource sent needed for the concurrent number of times of I/O request, first distribution module 440 receives the exchange resource amount needed for the concurrent number of times of I/O request, from resource pool for object machine resource module 420 distributes the exchange resource received needed for the concurrent number of times of I/O request according to acquisition memory device.
Fig. 5 is the structural representation of another embodiment of the application's exchange resource management devices.Refer to Fig. 5, described exchange resource management devices comprises starter resource module 510, object machine resource module 520, acquisition module 530, first distribution module 540 and the second distribution module 550.Wherein, acquisition module 530 comprises the first statistic unit 531 and the first computing unit 532.Starter resource module, the object machine resource module of the starter resource module 510 in present embodiment, object machine resource module 520 and a upper embodiment are identical, refer to related text and illustrate, do not repeat them here.
Statistics for adding up the concurrent number of times of transmission I/O request and the concurrent number of times of reception I/O request respectively within the very first time of presetting, and is sent to the first computing unit 532 by the first statistic unit 531.
Particularly, first statistic unit 531 is added up the transmission concurrent number of times of I/O request and the concurrent number of times of reception I/O request respectively within the very first time of presetting, wherein, the concurrent number of times of described transmission I/O request is the memory device distally concurrent number of times of I/O request that sends of equipment, namely in the given time, the memory device distally number of times of I/O request that sends of equipment.The concurrent number of times of described reception I/O request receives the concurrent number of times of the I/O request that remote equipment sends for memory device, and namely in the given time, memory device receives the number of times of the I/O request that remote equipment sends.Such as, the described default very first time is 10 seconds (S), and the first statistic unit 531 obtains the 1st, the 2nd, the 3rd respectively ... within 10th second, send the concurrent number of times of I/O request and receive the concurrent number of times of I/O request.In this example, the number of times of the I/O request that memory device distally equipment per second sends is the concurrent number of times of described transmission I/O request, and the memory device number of times receiving the I/O request that remote equipment sends per second is the concurrent number of times of described reception I/O request.Certainly, first statistic unit may not add up all transmissions and the concurrent number of times of reception I/O request in the default very first time, in other embodiments, the first statistic unit also can carry out sampling statistics to the transmission in the very first time of presetting and the concurrent number of times of reception I/O request, in this no limit.
First computing unit 532 is for the statistics of basis within the described default very first time, obtain the concurrent value of the first I/O request and the concurrent value of the second I/O request, using the exchange resource amount needed for the concurrent value of the first I/O request as the exchange resource amount sent needed for I/O request, using the exchange resource amount needed for the concurrent value of the second I/O request as the exchange resource amount received needed for I/O request.
First computing unit 532 is according to memory device statistics to the concurrent number of times of transmission I/O request within the described default very first time, obtain the concurrent value of the first I/O request, to the statistics receiving the concurrent number of times of I/O request within the described default very first time, obtain the concurrent value of the second I/O request.First computing unit 532 using the exchange resource amount needed for the concurrent value of the first I/O request as the exchange resource amount sent needed for I/O request, using the exchange resource amount needed for the concurrent value of the second I/O request as the exchange resource amount received needed for I/O request, and described transmission and the required respectively exchange resource amount of described reception I/O request are sent to the first distribution module 540.Wherein, the concurrent value of described first I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of transmission I/O request that obtains, the concurrent value of described second I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of reception I/O request that obtains, or, the concurrent value of described first I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described transmission I/O request obtained, the concurrent value of described second I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described reception I/O request obtained.
In embody rule, first computing unit 532 can according to statistics, to select the maximal value adding up transmission and the concurrent number of times of reception I/O request obtained within the described default very first time as the concurrent value of described first and second I/O request, to select the mean value adding up transmission and the concurrent number of times of reception I/O request obtained within the described default very first time as the concurrent value of described first and second I/O request.If the service concurrence amount that memory device runs is more unstable, send within the very first time of presetting or receive between the concurrent number of times of I/O request and differ larger, for ensureing that the exchange resource that memory device distributes meets transmission as much as possible or receives needed for the concurrent number of times of I/O request, first computing unit 532 using the maximal value of adding up within the described default very first time in the concurrent number of times of transmission I/O request that obtains as the concurrent value of the first I/O request, using the maximal value of adding up within the described default very first time in the concurrent number of times of reception I/O request that obtains as the concurrent value of the second I/O request.If the service concurrence amount that memory device runs is more stable, sending within the very first time of presetting or receive between the concurrent number of times of I/O request changes not quite, then the first computing unit 532 can will send the mean value of the concurrent number of times of I/O request as the concurrent value of the first I/O request in the default very first time, will receive the mean value of the concurrent number of times of I/O request as the concurrent value of the second I/O request in the very first time of establishing.
First distribution module 540 is for the exchange resource amount needed for described transmission I/O request, be that described starter resource module 510 distributes exchange resource from resource pool, according to the exchange resource amount needed for described reception I/O request, be that described object machine resource module 520 distributes exchange resource from described resource pool.
In present embodiment, the first distribution module 540 from described resource pool for starter resource module 510 distributes the exchange resource needed for the concurrent value of the first I/O request, for object machine resource module 520 distributes the exchange resource needed for the concurrent value of the second I/O request.
Certainly, the first distribution module is not limited to distribute to starter resource module by corresponding for the exchange resource equal with described first I/O request concurrent value quantity, and exchange resource correspondence equal for described second I/O request concurrent value quantity is distributed to object machine resource module.In other embodiments, first distribution module can according to the ratio of the concurrent value of described first I/O request and the concurrent value of described second I/O request, the exchange resource of described resource pool is distributed to respectively starter resource module and object machine resource module, or the first distribution module is respectively on the exchange resource basis described in obtaining needed for the concurrent mean value of first, second I/O request, increase some exchange resources again, to ensure that starter resource module and object machine resource module obtain enough exchange resources.
Second distribution module 550 for every preset the second time, the the first spilling stock number and second obtained within described the second default time overflows stock number, and overflow stock number according to the current exchange resource amount and first distributing to starter resource module 510, the exchange resource of described resource pool is reassigned to starter resource module 510, overflow stock number according to the current exchange resource amount and second distributing to object machine resource module 520, the exchange resource of described resource pool is reassigned to object machine resource module 520.Wherein, described first spilling exchange resource amount is the exchange resource amount that described starter resource module 510 lacks, and described second spilling exchange resource amount is the exchange resource amount that described object machine resource module 520 lacks.
Memory device distally equipment send I/O request time, preferentially apply for exchange resource to starter resource module 510.If memory device is applied for less than exchange resource to starter resource module 510, then memory device is to resource pool application exchange resource.Described to starter resource module 510 apply for less than exchange resource amount be the exchange resource amount that starter resource module 510 lacks, namely first overflows exchange resource amount.When memory device receives the I/O request that described remote equipment sends, preferentially apply for exchange resource to described object machine resource module 520.If memory device is applied for less than exchange resource to object machine resource module 520, then memory device is to resource pool application exchange resource.Described to object machine resource module 520 apply for less than exchange resource amount be the exchange resource amount that object machine resource module 520 lacks, namely second overflows exchange resource amount.
The first spilling exchange resource amount and second that second distribution module 550 obtained respectively within second time of presetting overflows exchange resource amount, and from resource pool again for starter resource module 510, object machine resource module 520 distribute exchange resource, the exchange resource meeting and send needed for I/O request is provided to make starter resource module 510 and makes object machine resource module 520 provide the exchange resource meeting and receive needed for I/O request.Wherein, the exchange resource amount that second distribution module 550 is distributed for starter resource module 510 be again the exchange resource amount and first distributing to starter resource module 510 last time overflows exchange resource amount and, the second distribution module 550 again for the exchange resource amount of object machine resource module 520 distribution be the exchange resource amount and second distributing to object machine resource module 520 last time overflow exchange resource amount with.
If the exchange resource amount of resource pool be less than the second distribution module 550 need to be reassigned to the exchange resource amount of starter resource module 510 and object machine resource module 520 and, then the second distribution module 550 is according to the current ratio needing the exchange resource amount being reassigned to starter resource module 510 and object machine resource module 520, and all exchange resources of resource pool are reassigned to starter resource module 510 and object machine resource module 520 respectively.
Every described the second default time, second distribution module 550 is overflowed exchange resource amount and described second according to described first and is overflowed exchange resource amount, again starter resource module 510 is respectively and object machine resource module 520 distributes exchange resource from described resource pool, until be that after starter resource module 510 and object machine resource module 520 distribute exchange resource, described resource pool is without remaining exchange resource again from described resource pool.Now, the second distribution module 550 distributes exchange resource for starter resource module 510 and object machine resource module 520 no longer again.
It should be noted that, second distribution module again for starter resource module distribute exchange resource amount be not limited to the exchange resource amount and first distributing to starter resource module last time overflows exchange resource amount and, the second distribution module again for object machine resource module distribution exchange resource amount be not limited to the exchange resource amount and second distributing to object machine resource module last time overflow exchange resource amount with.In other embodiments, second distribution module can according to described two and ratio, the exchange resource of described resource pool is distributed to respectively starter resource module and object machine resource module, or the second distribution module is respectively on the exchange resource basis described in obtaining needed for the concurrent mean value of first, second I/O request, increase certain data volume exchange resource again, to ensure that starter resource module and object machine resource module obtain enough exchange resources.
In present embodiment, described first, second default time and N are the value that exchange resource management devices is preset.But in other application implementation modes, described first, second default time and N also can be the value that user presets, in this no limit, and wherein N is natural number.
Further, when carrying out exchange resource and redistributing, exchange resource management devices also may not overflow exchange resource amount according to first, second, is that starter resource module and object machine resource module distribute exchange resource again from resource pool.In other embodiments, exchange resource management devices can not comprise the second distribution module, the acquisition module of exchange resource management devices is also for every default 3rd time, respectively according to the concurrent number of times of transmission I/O request and the concurrent number of times of reception I/O request of memory device, obtain the concurrent value of the first and second I/O request, the exchange resource amount of the first distribution module needed for the concurrent value of the first I/O request, from resource pool again for starter resource module distributes exchange resource, according to the exchange resource amount needed for the concurrent value of the second I/O request, from resource pool again for object machine resource module distributes exchange resource.Wherein, the 3rd time of presetting is greater than the default very first time.
Further, in other embodiments, exchange resource management devices of the present invention can also comprise application module, described application module is used for when distally equipment sends I/O request to memory device, to described starter resource module application exchange resource, when memory device receives the I/O request that remote equipment sends, preferentially to described object machine resource module application exchange resource.To starter resource module or the application of object machine resource module less than exchange resource time, to resource pool application exchange resource.
In present embodiment, exchange resource management devices arranges separate starter resource module and object machine resource module, and the exchange resource of starter resource module and object machine resource module is separate, simultaneously, the exchange resource amount of exchange resource management devices every second time of presetting to starter resource module and object machine resource module carries out distribution again, make the exchange resource amount of starter resource module and object machine resource module can the actual exchange resource amount sending and receive needed for I/O request with current storage devices as far as possible, ensure that the exchange resource of resource module can meet business demand corresponding to memory device, improve the performance of memory device service operation.
Optimally, refer to Fig. 6, Fig. 6 is the structural representation of an exchange resource management devices of the present invention embodiment again.Resource management apparatus in present embodiment is substantially identical with the resource management apparatus of a upper embodiment, and its difference is, acquisition module 630 comprises the second statistic unit 631 and the second computing unit 632.
Statistics in N number of default very first time for adding up the concurrent number of times of transmission I/O request and the concurrent number of times of reception I/O request respectively within N number of default very first time, and is sent to the second computing unit 632 by the second statistic unit 631.Wherein, the mode that the second statistic unit 631 carries out adding up is identical with the statistical of upper embodiment first statistic unit, and therefore not to repeat here.
Second computing unit 632 is for respectively according to the statistics in N number of default very first time, obtain the concurrent value of N number of first I/O request and the concurrent value of N number of second I/O request, according to the concurrent mean value of described N number of described first I/O request concurrent value acquisition first I/O request obtained, according to the concurrent mean value of described N number of second I/O request concurrent value acquisition second I/O request obtained, using the exchange resource amount needed for the concurrent mean value of described first I/O request as the exchange resource amount needed for described transmission I/O request, using the concurrent mean value of described second I/O request as the exchange resource amount needed for described reception I/O request, and the exchange resource amount that described transmission and described reception I/O request are required is respectively sent to the first distribution module 640.Wherein, the concurrent value of first, second I/O request in present embodiment is identical with the concurrent value of first, second I/O request in upper embodiment, therefore does not do repeated description.The concurrent mean value of described first I/O request is the mean value of the concurrent value of described N number of first I/O request, and the concurrent mean value of described second I/O request is the mean value of the concurrent value of described N number of second I/O request.
First distribution module 640 is according to the concurrent mean value of described first I/O request, exchange resource in described resource pool is distributed to starter resource module 610, according to the concurrent mean value of described second I/O request, the exchange resource in described resource pool is distributed to object machine resource module 620.
Citing is described, second statistic unit 631 was added up the transmission concurrent number of times of I/O request and the concurrent number of times of reception I/O request respectively in 10 seconds, obtaining statistics is: the concurrent number of times of transmission I/O request at the 2nd, 4,6,8,10 second is respectively 210,180,260,190,350, and the concurrent number of times of reception I/O request at the 2nd, 4,6,8,10 second is respectively 100,150,260,80,170.First computing unit 532 is respectively to send and to receive the maximal value of the concurrent number of times of I/O request as the concurrent value of first, second I/O request, and namely the concurrent value of the first and second I/O request is respectively 350,260.Second statistic unit 631 continued at next 10 seconds to carry out above-mentioned statistics to the transmission concurrent number of times of I/O request and the concurrent number of times of reception I/O request, the concurrent value of the first and second I/O request in these 10 seconds is obtained respectively to make the second computing unit 632, until obtain 6 concurrent values of the first and second I/O request in 10 seconds, wherein, described 6 concurrent values of the first I/O request are followed successively by 350, 350, 370, 360, 320, the mean value that second computing unit 632 obtains described 6 concurrent values of the first I/O request is 350, namely the exchange resource amount of the exchange resource amount needed for the concurrent mean value of the first I/O request needed for transmission 350 I/O request.Described 6 concurrent values of the second I/O request are followed successively by 260,230,270,300,280, the mean value that second computing unit 63 obtains described 6 concurrent values of the second I/O request is 270, the exchange resource amount of the exchange resource amount namely needed for the concurrent mean value of the second I/O request needed for reception 270 I/O request.The exchange resource amount sent needed for 350 I/O request in resource pool is distributed to starter resource module 610 by the first distribution module 640, and the exchange resource amount received needed for 270 I/O request in resource pool is distributed to object machine resource module 620.
In present embodiment, resource management apparatus is respectively according to the mean value of the concurrent value of N number of first I/O request and the mean value of the concurrent value of N number of second I/O request, exchange resource correspondence in described resource pool is distributed to starter resource module and object machine resource module, the exchange resource amount that starter resource module and object machine resource module are assigned to is more stable, decreases the error of the exchange resource amount of business actual needs corresponding to memory device.
Refer to Fig. 7, Fig. 7 is the structural representation of the application's exchange resource management devices embodiment more again.Exchange resource management devices comprises processor 710 and storer 740.Wherein, storer 740 comprises starter resource module 720 and object machine resource module 730, and storer 740 is connected with processor 710 by bus (as diagram).
The starter resource module 720 stored in processor 710 execute store 740 and the computer instruction of object machine resource module 730, exchange resource in resource pool is adhered to separately starter resource module 720 and object machine resource module 730, described in adhere to the exchange resource of starter resource module 720 separately and to adhere to the exchange resource of object machine resource module 730 separately separate; And when distally equipment sends I/O request, provide to this INI business model the exchange resource adhering to starter resource module 720 separately, when the response of the I/O request of described transmission completes, discharge the exchange resource that described INI business model takies; When receiving the I/O request that remote equipment sends, provide to this TGT business model the exchange resource adhering to object machine resource module 730 separately, when the response of the I/O request to described reception completes, the described TGT business model of release takies exchange resource.
Particularly, the computer instruction of the starter resource module 720 that processor 710 execute store 740 stores and object machine resource module 730, respectively the concurrent number of times of transmission I/O request and the concurrent number of times of reception I/O request are added up within the very first time of presetting, according to the statistics within the described default very first time, obtain the concurrent value of the first I/O request and the concurrent value of the second I/O request, using the exchange resource amount needed for the concurrent value of the first I/O request as the exchange resource amount sent needed for I/O request, using the exchange resource amount needed for the concurrent value of the second I/O request as the exchange resource amount received needed for I/O request, and according to the exchange resource amount sent needed for the concurrent value of I/O request, be that starter resource module 720 distributes exchange resource from resource pool, namely according to the exchange resource amount sent needed for the concurrent value of I/O request, adhere to the exchange resource in resource pool separately starter resource module 720, according to the exchange resource amount received needed for the concurrent value of I/O request, be that object machine resource module 730 distributes exchange resource from resource pool, namely according to the exchange resource amount received needed for the concurrent value of I/O request, adhere to the exchange resource in resource pool separately object machine resource module 730.
Further particularly, processor 710 is added up the transmission concurrent number of times of I/O request and the concurrent number of times of reception I/O request respectively within the very first time of presetting, wherein, the concurrent number of times of described transmission I/O request is the memory device distally concurrent number of times of I/O request that sends of equipment, namely in the given time, the memory device distally number of times of I/O request that sends of equipment.The concurrent number of times of described reception I/O request receives the concurrent number of times of the I/O request that remote equipment sends for memory device, and namely in the schedule time, memory device receives the number of times of the I/O request that remote equipment sends.
Processor 710 according within the described default very first time to the statistics sending I/O request concurrent number of times, obtain the concurrent value of the first I/O request, to the statistics receiving the concurrent number of times of I/O request within the described default very first time, obtain the concurrent value of the second I/O request.Wherein, the concurrent value of described first I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of transmission I/O request that obtains, the concurrent value of described second I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of reception I/O request that obtains, or, the concurrent value of described first I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described transmission I/O request obtained, the concurrent value of described second I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described reception I/O request obtained.
In embody rule, processor 710 can according to statistics, to select the maximal value adding up transmission and the concurrent number of times of reception I/O request obtained within the described default very first time as the concurrent value of described first and second I/O request, or to select the mean value adding up transmission and the concurrent number of times of reception I/O request obtained within the described default very first time as the concurrent value of described first and second I/O request.If the service concurrence amount that memory device runs is more unstable, send within the very first time of presetting or receive between the concurrent number of times of I/O request and differ larger, send or receive for ensureing that exchange resource that memory device distributes meets as much as possible needed for I/O request concurrent number of times, processor 710 will add up the transmission obtained and the maximal value received in the concurrent number of times of I/O request as the concurrent value of the first I/O request and the concurrent value of the second I/O request within the described default very first time.If the service concurrence amount that memory device runs is more stable, within the very first time of presetting, sending or receive change between I/O request concurrent number of times, not quite, then processor 710 can send and receive the mean value of the concurrent number of times of I/O request as the concurrent value of the first I/O request and the concurrent value of the second I/O request within the very first time of presetting.
Processor 710 from described resource pool for starter resource module 720 distributes exchange resource needed for the concurrent value of the first I/O request, for object machine resource module 730 distributes the exchange resource needed for the concurrent value of the second I/O request.
Certainly, processor is not limited to distribute to starter resource module by corresponding for the exchange resource equal with described first I/O request concurrent value quantity, and by measuring with the concurrent value of described second I/O request, equal exchange resource is corresponding distributes to object machine resource module.In other embodiments, processor can according to the ratio of the concurrent value of the first I/O request and the concurrent value of the second I/O request, the exchange resource of described resource pool is distributed to respectively starter resource module and object machine resource module, or processor is respectively on the exchange resource basis described in obtaining needed for the concurrent mean value of first, second I/O request, increase some exchange resources again, to ensure that starter resource module and object machine resource module obtain enough exchange resources.
Optimally, processor 710 is further used for adding up the concurrent number of times of transmission I/O request and the concurrent number of times of reception I/O request respectively within N number of default very first time, respectively according to the statistics in N number of default very first time, obtain the concurrent value of N number of first I/O request and the concurrent value of N number of second I/O request, according to the concurrent mean value of described N number of described first I/O request concurrent value acquisition first I/O request obtained, according to the concurrent mean value of described N number of second I/O request concurrent value acquisition second I/O request obtained, and according to the concurrent mean value of the first I/O request, exchange resource is distributed for starter resource module 720 from described resource pool, according to the concurrent mean value of the second I/O request, exchange resource is distributed for object machine resource module 730 from described resource pool.
Further optimally, processor 710 also for every preset the second time, the the first spilling stock number and second obtained within described the second default time is overflowed stock number, and is again distributed exchange resource for starter resource module 720 and object machine resource module 730 from resource pool.Wherein, the exchange resource amount that processor 710 distributes for starter resource module 720 be again the exchange resource amount and first distributing to starter resource module 720 last time overflows exchange resource amount and, processor 710 again for the exchange resource amount of object machine resource module 730 distribution be the exchange resource amount and second distributing to object machine resource module 730 last time overflow exchange resource amount with.
If the exchange resource amount of resource pool be less than processor 710 need to be reassigned to the exchange resource amount of starter resource module 720 and object machine resource module 730 and, then processor 710 is according to the current ratio needing the exchange resource amount being reassigned to starter resource module 720 and object machine resource module 730, and all exchange resources of resource pool are distributed to starter resource module 720 and object machine resource module 730 again respectively.
When being again respectively after starter resource module 720 and object machine resource module 730 distribute exchange resource from described resource pool, when described resource pool is without remaining exchange resource, processor 710 distributes exchange resource for starter resource module 720 and object machine resource module 730 no longer again.
In present embodiment, described first, second default time and N are the value that exchange resource management devices is preset.But in other application implementation modes, described in, described first, second default time and N also can be the value that user presets, in this no limit, and wherein N is natural number.
Further, when carrying out exchange resource and redistributing, processor also may not overflow exchange resource amount and second according to first and overflow exchange resource amount, is that starter resource module and object machine resource module distribute exchange resource again from resource pool.In other embodiments, processor can every default 3rd time, the concurrent value of the first I/O request is obtained according to the concurrent number of times of I/O request that memory device sends, and the exchange resource amount needed for the concurrent value of the first I/O request, from resource pool again for starter resource module distributes exchange resource, the concurrent value of the second I/O request is obtained according to the concurrent number of times of I/O request that memory device receives, and the exchange resource amount needed for the concurrent value of the second I/O request, from resource pool again for object machine resource module distributes exchange resource.Wherein, the 3rd time of presetting is greater than the default very first time.Further, in other embodiments, processor be also used in memory device distally equipment send I/O request time, to described starter resource module application exchange resource, when memory device receives the I/O request that remote equipment sends, to described object machine resource module application exchange resource.To starter resource module or the application of object machine resource module less than exchange resource time, to resource pool application exchange resource.
It should be noted that, starter resource module and object machine resource module is included in the above-mentioned embodiment of exchange resource management devices of the present invention, but exchange resource management devices of the present invention is not limited to comprise starter resource module and object machine resource module, be provided with in the embodiment of starter resource module and object machine resource module at memory device itself, exchange resource management devices of the present invention does not then comprise starter resource module and object machine resource module.
In addition, the application's exchange resource management devices is generally applied in the memory device with same mouth attribute, but in a particular application, the application's exchange resource management devices also can be applicable to the server only with starter attribute, or only there is the memory device of object machine attribute, in this no limit.
Present invention also provides a kind of memory device, described memory device comprises the exchange resource management devices in any one embodiment above-mentioned, and its embodiment refers to Fig. 1, Fig. 4 to Fig. 7 and related text illustrates, does not repeat them here.
Pass through such scheme, the application is according to sending and receiving the stock number needed for I/O request, separate starter resource module and object machine resource module distribution exchange resource is respectively from resource pool, the exchange resource of starter resource module and object machine resource module is separate, and the exchange resource needed for INI business model is provided by described starter resource module, exchange resource needed for TGT business model is provided by object machine resource module, make the exchange resource of INI and TGT two kinds of business models separate, avoid INI business model and TGT business model in same mouth pattern and occur that exchange resource is competed.Meanwhile, a kind of business occurs abnormal wherein, when causing corresponding resource module exchange resource to exhaust, also can not affect the application of another kind of operation exchange resource, another kind of business normally can be run, improve the reliability of memory device.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiments described above is only schematic, such as, the division of described module or unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of present embodiment scheme.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that the technical scheme of the application contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each embodiment of the application.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.

Claims (11)

1. an exchange resource management method, is characterized in that, described method comprises:
Obtain the exchange resource amount sending and receive needed for I/O I/O request respectively;
According to the exchange resource amount needed for described transmission I/O request, being that starter resource module distributes exchange resource from resource pool, according to the exchange resource amount needed for described reception I/O request, is that object machine resource module distributes exchange resource from described resource pool; Wherein, the exchange resource of described starter resource module and the exchange resource of described object machine resource module separate, described starter resource module is for providing the exchange resource needed for described transmission I/O request; Described object machine resource module is for providing the exchange resource needed for described reception I/O request; Described transmission I/O request is the I/O request of distally equipment transmission, and described reception I/O request is the I/O request receiving remote equipment transmission.
2. method according to claim 1, is characterized in that, the described step obtaining the exchange resource amount sending and receive needed for I/O request respectively comprises:
Respectively the concurrent number of times of transmission I/O request and the concurrent number of times of reception I/O request are added up within the very first time of presetting, wherein, the concurrent number of times of described transmission I/O request is that distally equipment sends the concurrent number of times of I/O request, and the concurrent number of times of described reception I/O request is the concurrent number of times receiving the I/O request that remote equipment sends;
According to the statistics within the described default very first time, obtain the concurrent value of the first I/O request and the concurrent value of the second I/O request, using the exchange resource amount needed for the concurrent value of described first I/O request as the exchange resource amount needed for described transmission I/O request, using the concurrent value of described second I/O request as the exchange resource amount needed for described reception I/O request, wherein, the concurrent value of described first I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of described transmission I/O request that obtains, the concurrent value of described second I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of described reception I/O request that obtains, or, the concurrent value of described first I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described transmission I/O request obtained, the concurrent value of described second I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described reception I/O request obtained.
3. method according to claim 2, it is characterized in that, described exchange resource amount needed for described transmission I/O request, from resource pool be starter resource module distribute exchange resource, according to the exchange resource amount needed for described reception I/O request, the step being object machine resource module distribution exchange resource from described resource pool is specially:
From described resource pool for described starter resource module distributes exchange resource needed for the concurrent value of described first I/O request, from described resource pool for described object machine resource module distributes exchange resource needed for the concurrent value of described second I/O request.
4. method according to claim 2, it is characterized in that, described exchange resource amount needed for described transmission I/O request, from resource pool be starter resource module distribute exchange resource, according to the exchange resource amount needed for described reception I/O request, be also comprise after object machine resource module distributes the step of exchange resource from described resource pool:
First in the second default time that obtains respectively overflows exchange resource amount and second and overflows exchange resource amount, wherein, described first spilling exchange resource amount is the exchange resource amount that described starter resource module lacks, and described second spilling exchange resource amount is the exchange resource amount that described object machine resource module lacks;
Exchange resource amount is overflowed according to described first, from described resource pool be again described starter resource module distribute exchange resource, exchange resource amount is overflowed according to described second, again be that described object machine resource module distributes exchange resource from described resource pool, the exchange resource meeting and send needed for I/O request be provided to make described starter resource module and make described object machine resource module provide the exchange resource meeting and receive needed for I/O request.
5. method according to claim 1, is characterized in that, the described step obtaining the exchange resource amount sending and receive needed for I/O request respectively comprises:
Respectively the concurrent number of times of transmission I/O request and the concurrent number of times of reception I/O request are added up within the very first time of presetting;
According to the statistics within the described default very first time, obtain the concurrent value of the first I/O request and the concurrent value of the second I/O request, wherein, the concurrent value of described first I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of described transmission I/O request that obtains, the concurrent value of described second I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of described reception I/O request that obtains, or, the concurrent value of described first I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described transmission I/O request obtained, the concurrent value of described second I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described reception I/O request obtained,
Repeat to add up the concurrent number of times of transmission I/O request and the concurrent number of times of reception I/O request respectively in N the described very first time presetting, to obtain the concurrent value of N number of described first I/O request and the concurrent value of N number of described second I/O request, according to the concurrent mean value of described N number of described first I/O request concurrent value acquisition first I/O request obtained, according to the concurrent mean value of described N number of second I/O request concurrent value acquisition second I/O request obtained, using the exchange resource amount needed for the concurrent mean value of described first I/O request as the exchange resource amount needed for described transmission I/O request, using the exchange resource amount needed for the concurrent mean value of described second I/O request as the exchange resource amount needed for described reception I/O request, wherein N is natural number.
6. an exchange resource management devices, is characterized in that, comprises starter resource module, object machine resource module, acquisition module and the first distribution module;
Described acquisition module is used for obtaining the exchange resource amount sending and receive needed for I/O I/O request respectively, and described transmission and the exchange resource amount received needed for I/O request are sent to described first distribution module;
Described first distribution module is used for the exchange resource amount needed for described transmission I/O request, from resource pool be described starter resource module distribute exchange resource, according to the exchange resource amount needed for described reception I/O request, be that described object machine resource module distributes exchange resource from described resource pool;
Described starter resource module is for providing the exchange resource needed for described transmission I/O request, and described transmission I/O request is the I/O request of distally equipment transmission;
Described object machine resource module is for providing the exchange resource needed for described reception I/O request, and described reception I/O request is the I/O request receiving remote equipment transmission;
The exchange resource of described starter resource module and the exchange resource of described object machine resource module separate.
7. device according to claim 6, is characterized in that, described acquisition module comprises the first statistic unit and the first computing unit;
Described first statistic unit is used for adding up the concurrent number of times of transmission I/O request and the concurrent number of times of reception I/O request respectively within the very first time of presetting, and statistics is sent to described first computing unit, wherein, the concurrent number of times of described transmission I/O request is that distally equipment sends the concurrent number of times of I/O request, and the concurrent number of times of described reception I/O request is the concurrent number of times receiving the I/O request that remote equipment sends;
Described first computing unit is used for according to the statistics within the described default very first time, obtain the concurrent value of the first I/O request and the concurrent value of the second I/O request, using the exchange resource amount needed for the concurrent value of described first I/O request as the exchange resource amount needed for described transmission I/O request, using the concurrent value of described second I/O request as the exchange resource amount needed for described reception I/O request, wherein, the concurrent value of described first I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of described transmission I/O request that obtains, the concurrent value of described second I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of described reception I/O request that obtains, or, the concurrent value of described first I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described transmission I/O request obtained, the concurrent value of described second I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described reception I/O request obtained.
8. device according to claim 7, is characterized in that,
Described first distribution module specifically for from described resource pool for described starter resource module distributes exchange resource needed for the concurrent value of described first I/O request, from described resource pool for described object machine resource module distributes exchange resource needed for the concurrent value of described second I/O request.
9. device according to claim 7, is characterized in that, also comprises the second distribution module;
Described second distribution module is used for the first spilling exchange resource amount and second obtained respectively in the second default time and overflows exchange resource amount, exchange resource amount is overflowed according to described first, from described resource pool be again described starter resource module distribute exchange resource, exchange resource amount is overflowed according to described second, from described resource pool be again described object machine resource module distribute exchange resource, the exchange resource meeting and send needed for I/O request is provided to make described starter resource module and makes described object machine resource module provide the exchange resource meeting and receive needed for I/O request, wherein, described first spilling exchange resource amount is the exchange resource amount that described starter resource module lacks, described second spilling exchange resource amount is the exchange resource amount that described object machine resource module lacks.
10. device according to claim 6, is characterized in that, described acquisition module comprises the second statistic unit and the second computing unit;
Described second statistic unit is used for adding up the concurrent number of times of transmission I/O request and the concurrent number of times of reception I/O request respectively within N number of default very first time, and the statistics in described N number of default very first time is sent to described second computing unit;
Described second computing unit is used for respectively according to the statistics in described N number of default very first time, obtain the concurrent value of N number of first I/O request and the concurrent value of N number of second I/O request, according to the concurrent mean value of described N number of described first I/O request concurrent value acquisition first I/O request obtained, according to the concurrent mean value of described N number of second I/O request concurrent value acquisition second I/O request obtained, using the exchange resource amount needed for the concurrent mean value of described first I/O request as the exchange resource amount needed for described transmission I/O request, using the concurrent mean value of described second I/O request as the exchange resource amount needed for described reception I/O request, wherein, the concurrent value of described first I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of described transmission I/O request that obtains, the concurrent value of described second I/O request is within the described default very first time, add up the maximal value in the concurrent number of times of described reception I/O request that obtains, or, the concurrent value of described first I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described transmission I/O request obtained, the concurrent value of described second I/O request is within the described default very first time, add up the mean value of the concurrent number of times of described reception I/O request obtained, wherein N is natural number.
11. 1 kinds of memory devices, is characterized in that, comprise the exchange resource management devices described in any one of claim 6 to 10.
CN201310192445.XA 2013-05-22 2013-05-22 Exchange resource management method, device and memory device Active CN103268298B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310192445.XA CN103268298B (en) 2013-05-22 2013-05-22 Exchange resource management method, device and memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310192445.XA CN103268298B (en) 2013-05-22 2013-05-22 Exchange resource management method, device and memory device

Publications (2)

Publication Number Publication Date
CN103268298A CN103268298A (en) 2013-08-28
CN103268298B true CN103268298B (en) 2016-04-13

Family

ID=49011929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310192445.XA Active CN103268298B (en) 2013-05-22 2013-05-22 Exchange resource management method, device and memory device

Country Status (1)

Country Link
CN (1) CN103268298B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634888A (en) * 2018-12-12 2019-04-16 浪潮(北京)电子信息产业有限公司 A kind of FC interface card exchange resource identification processing method and associated component

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0770964A1 (en) * 1995-10-26 1997-05-02 Matsushita Electric Industrial Co., Ltd. File system
US7529781B2 (en) * 2004-04-30 2009-05-05 Emc Corporation Online initial mirror synchronization and mirror synchronization verification in storage area networks
US7773521B2 (en) * 2004-04-30 2010-08-10 Emc Corporation Storage switch traffic bandwidth control
PT3444992T (en) * 2006-02-03 2020-06-17 Guangdong Oppo Mobile Telecommunications Corp Ltd Uplink resource allocation in a mobile communication system

Also Published As

Publication number Publication date
CN103268298A (en) 2013-08-28

Similar Documents

Publication Publication Date Title
CN107534583B (en) Method implemented in a management node and related apparatus
CN103180830B (en) Central processing unit resource allocation methods and calculating node
CN109873868A (en) A kind of computing capability sharing method, system and relevant device
CN104243405A (en) Request processing method, device and system
CN103164253A (en) Virtual machine deployment system and virtual machine deployment method
CN103136104B (en) A kind of EMS memory management process and system
CN111694646A (en) Resource scheduling method and device, electronic equipment and computer readable storage medium
CN105227489A (en) A kind of bandwidth management method and electronic equipment
CN110389843A (en) A kind of business scheduling method, device, equipment and readable storage medium storing program for executing
CN109618174A (en) A kind of live data transmission method, device, system and storage medium
CN103793332B (en) Date storage method based on internal memory, device, processor and electronic equipment
CN103294552A (en) Method for increasing configuration quantity of virtual machines of server
CN103902320A (en) Virtual machine installing system and virtual machine installing method
CN103268298B (en) Exchange resource management method, device and memory device
CN103617024A (en) Concurrent-data processing method, concurrent-data processing device and concurrent-data system
CN101853185B (en) Blade server and service dispatching method thereof
CN105095112A (en) Method and device for controlling caches to write and readable storage medium of non-volatile computer
CN109522129A (en) A kind of resource method for dynamically balancing, device and relevant device
CN106447755A (en) Animation rendering system
CN103677994B (en) Distributed data processing system, device and method
CN108762786A (en) A kind of firmware update of server cabinet, server cabinet and host
CN105389212A (en) Job assigning method and apparatus
CN104063451A (en) Database connection management method and system
CN103905473A (en) Cloud computing system, load balancing system, load balancing method and device
CN103929378A (en) Method and system for allocating communication link for transmitting cross-domain data and method and system for transmitting cross-domain data

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