CN103268298A - Method and device for managing exchanging resources and storage device - Google Patents

Method and device for managing exchanging resources and storage device Download PDF

Info

Publication number
CN103268298A
CN103268298A CN201310192445XA CN201310192445A CN103268298A CN 103268298 A CN103268298 A CN 103268298A CN 201310192445X A CN201310192445X A CN 201310192445XA CN 201310192445 A CN201310192445 A CN 201310192445A CN 103268298 A CN103268298 A CN 103268298A
Authority
CN
China
Prior art keywords
resource
concurrent
exchange
module
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310192445XA
Other languages
Chinese (zh)
Other versions
CN103268298B (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

Images

Landscapes

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

Abstract

The invention discloses a method and device for managing exchanging resources and a storage device. The method comprises a step of respectively obtaining exchanging resource quantity needed by sending and receiving input/output IO requests, and a step of distributing exchanging resources to an initiator resource module from a resource pool according to the exchanging resource quantity needed by sending the IO requests and distributing exchanging resources to a target resource module from the resource pool according to the exchanging resource quantity needed by receiving the IO requests. By means of the method, the occurrence that two services of the storage device with the same-terminal attribute compete with each other on the exchanging resources is avoided, the other service is prevented from being affected by an abnormal service, and reliability is improved.

Description

Exchange resource management method, device and memory device
Technical field
The application relates to the optical communication technique field, particularly relates to a kind of exchange resource management method, device and memory device.
Background technology
In the network store system, memory device can pass through optical-fibre channel (Fibre Channel, be called for short FC) and be connected with server or other memory devices, realization server and memory device communicate by letter or memory device between data sharing.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 have with a mouthful attribute, FC port with same mouthful attribute had both had the INI business model and had also had the TGT business model, can realize two way traffic simultaneously, namely both can send I/O IO request to remote equipment, also can receive and respond the IO request that remote equipment sends.
Memory device is when communicating business, by in resource pool, distributing this Business Initiator's port-mark of exchange (Exchange) resource record (Source Identity, be called for short SID), take over party's port-mark (Destination Identity, be called for short DID), initiator's Resource Exchange sign (Originator Exch ange Identity, be called for short OX_ID) and take over party's Resource Exchange sign (Responder Exchange Identity, be called for short RX_ID) etc., to realize the management to the memory device business, wherein, described resource pool is one group of discrete or continuous virtual memory space that is arranged at the storage port inside of memory device, is used for depositing the swapace data structure.Particularly, when memory device sends or receives the IO request, memory device drives the inner exchange resource that distributes from resource pool, SID, the DID that this IO request is relevant, information updatings such as OX_ID, RX_ID are in newly assigned exchange resource, and described exchange resource is designated the use state, make other business of memory device can't use described exchange resource.Memory device is finished this IO requested service according to the information of described exchange resource, after memory device receives the response that remote equipment sends or finishes response to remote equipment, after namely finishing service interaction, memory device is marking described exchange resource for being used to complete or unused state, and described exchange resource is discharged into resource pool, use for later business.
When memory device was in the mouth pattern, memory device used the INI business module, when initiatively sending the IO request to other remote equipments, to resource pool application exchange resource.Simultaneously, memory device also can use the TGT business model, receives the IO request that other remote equipments send, also to resource pool application exchange resource.When memory device moves INI and two kinds of business models of TGT simultaneously, the exchange resource competition then can appear, influence both sides' performance of services.Particularly, the resource management of general memory device has mutual exclusion lock character, and for example professional the and TGT business model of memory device operation INI all needs to resource pool application exchange resource.At this moment, if memory device is that the INI business model is to resource pool application exchange resource earlier, must wait for that then the exchange resource application of above-mentioned INI business model finishes, could for above-mentioned TGT business model to resource pool application exchange resource, thereby influence the performance of TGT business model.If any business model occurs unusually in the memory device I NI of mouthful pattern or the pattern together, for example the generation of memory device operation INI business model is unusual, to resource pool application resource, causes the resource exhaustion of resource pool in a large number.At this moment, though the TGT business model is normal, because the resource pool resource exhaustion can't be applied for exchange resource when making operation TGT business model, and then influence the operation of TGT business model that finally cause the two-way services pattern all unavailable, reliability is lower.
Summary of the invention
The embodiment of the invention provides a kind of exchange resource management method, device and memory device for solving the above-mentioned technical matters that prior art exists.
Embodiment of the invention first aspect provides a kind of exchange resource management method, comprising: obtain to send and receive the required exchange resource amount of I/O IO request respectively; According to the required exchange resource amount of described transmission IO request, distribute exchange resource from resource pool for the starter resource module, according to the required exchange resource amount of described reception IO request, distribute exchange resource from described resource pool for the object machine resource module; Wherein, the exchange resource of the exchange resource of described starter resource module and described object machine resource module is separate, and described starter resource module is used for providing described transmission IO request required exchange resource; Described object machine resource module is used for providing described reception IO request required exchange resource; The IO request of described transmission IO request for sending to remote equipment, the IO request that described reception IO request sends for receiving remote equipment.
In conjunction with first aspect, in first kind of possible embodiment of embodiment of the invention first aspect, the step that described acquisition respectively sent and received the required exchange resource amount of IO request comprises: respectively transmission IO is asked concurrent number of times and receives IO to ask concurrent number of times to be added up in the default very first time, wherein, it is the concurrent number of times that sends the IO request to remote equipment that described transmission IO asks concurrent number of times, and it is the concurrent number of times that receives the IO request of remote equipment transmission that described reception IO asks concurrent number of times; According to the statistics in described default very first time, obtaining an IO asks concurrent value and the 2nd IO to ask concurrent value, ask the required exchange resource amount of concurrent value as the required exchange resource amount of described transmission IO request a described IO, ask concurrent value as the required exchange resource amount of described reception IO request described the 2nd IO; Wherein, the described transmission IO that a described IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, the described reception IO that described the 2nd IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, perhaps, a described IO asks concurrent value for add up the mean value that the described transmission IO that obtains asks concurrent number of times in the described default very first time, and described the 2nd IO asks concurrent value for add up the mean value that the described reception IO that obtains asks concurrent number of times in the described default very first time.
In conjunction with first kind of first aspect possible embodiment, in second kind of possible embodiment of embodiment of the invention first aspect, described according to the required exchange resource amount of described transmission IO request, distribute exchange resource from resource pool for the starter resource module, according to the required exchange resource amount of described reception IO request, be specially for the object machine resource module distributes the step of exchange resource from described resource pool: being that described starter resource module distributes a described IO to ask the required exchange resource of concurrent value from described resource pool, is that described object machine resource module distributes described the 2nd IO to ask the required exchange resource of concurrent value from described resource pool.
In conjunction with first kind of first aspect possible embodiment, in the third possible embodiment of embodiment of the invention first aspect, described according to the required exchange resource amount of described transmission IO request, distribute exchange resource from resource pool for the starter resource module, according to the required exchange resource amount of described reception IO request, also comprise after the step of described resource pool for object machine resource module distribution exchange resource: first in the second default time that obtains respectively overflows exchange resource amount and second and overflows the exchange resource amount, wherein, described first to overflow the exchange resource amount be the exchange resource amount that described starter resource module lacks, and described second to overflow the exchange resource amount be the exchange resource amount that described object machine resource module lacks; Overflow the exchange resource amount according to described first, again be that described starter resource module distributes exchange resource from described resource pool, overflow the exchange resource amount according to described second, again be that described object machine resource module distributes exchange resource from described resource pool, receive the required exchange resource of IO request so that described starter resource module provides to satisfy to send the required exchange resource of IO request and described object machine resource module is provided to satisfy.
In conjunction with first aspect, in the 4th kind of possible embodiment of embodiment of the invention first aspect, the step that described acquisition respectively sent and received the required exchange resource amount of IO request comprises: respectively transmission IO is asked concurrent number of times and receives IO to ask concurrent number of times to be added up in the default very first time; According to the statistics in described default very first time, obtaining an IO asks concurrent value and the 2nd IO to ask concurrent value, wherein, the described transmission IO that a described IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, the described reception IO that described the 2nd IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, perhaps, a described IO asks concurrent value for add up the mean value that the described transmission IO that obtains asks concurrent number of times in the described default very first time, and described the 2nd IO asks concurrent value for add up the mean value that the described reception IO that obtains asks concurrent number of times in the described default very first time; Repeating N time describedly asked concurrent number of times and receives IO to ask concurrent number of times to be added up to sending IO respectively in the default very first time, ask concurrent value and N described the 2nd IO to ask concurrent value to obtain a N described IO, ask concurrent value to obtain an IO according to the described N that obtains a described IO and ask concurrent mean value, ask concurrent value to obtain the 2nd IO according to the described N that obtains the 2nd IO and ask concurrent mean value, ask the required exchange resource amount of concurrent mean value as the required exchange resource amount of described transmission IO request a described IO, ask the required exchange resource amount of concurrent mean value as the required exchange resource amount of described reception IO request described the 2nd IO, wherein N is natural number.
Embodiment of the invention second aspect provides a kind of exchange resource management devices, comprises starter resource module, object machine resource module, acquisition module and first distribution module; Described acquisition module is used for obtaining respectively transmission and receives the required exchange resource amount of I/O IO request, and described transmission and the required exchange resource amount of reception IO request are sent to described first distribution module; Described first distribution module is used for according to the required exchange resource amount of described transmission IO request, be that described starter resource module distributes exchange resource from resource pool, according to the required exchange resource amount of described reception IO request, be that described object machine resource module distributes exchange resource from described resource pool; Described starter resource module is used for providing described transmission IO request required exchange resource, the IO request of described transmission IO request for sending to remote equipment; Described object machine resource module is used for providing described reception IO request required exchange resource, the IO request that described reception IO request sends for receiving remote equipment; The exchange resource of the exchange resource of described starter resource module and described object machine resource module is separate.
In conjunction with second aspect, in first kind of possible embodiment of embodiment of the invention second aspect, first statistic unit and first computing unit; Described first statistic unit is used for asking concurrent number of times and receive IO to ask concurrent number of times to be added up to sending IO respectively in the default very first time, and statistics sent to described first computing unit, wherein, it is the concurrent number of times that sends the IO request to remote equipment that described transmission IO asks concurrent number of times, and it is the concurrent number of times that receives the IO request of remote equipment transmission that described reception IO asks concurrent number of times; Described first computing unit is used for according to the statistics in described default very first time, obtaining an IO asks concurrent value and the 2nd IO to ask concurrent value, ask the required exchange resource amount of concurrent value as the required exchange resource amount of described transmission IO request a described IO, ask concurrent value as the required exchange resource amount of described reception IO request described the 2nd IO; Wherein, the described transmission IO that a described IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, the described reception IO that described the 2nd IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, perhaps, a described IO asks concurrent value for add up the mean value that the described transmission IO that obtains asks concurrent number of times in the described default very first time, and described the 2nd IO asks concurrent value for add up the mean value that the described reception IO that obtains asks concurrent number of times in the described default very first time.
In conjunction with first kind of second aspect possible embodiment, in second kind of possible embodiment of embodiment of the invention second aspect, it is that described starter resource module distributes a described IO to ask the required exchange resource of concurrent value that described first distribution module specifically is used for from described resource pool, is that described object machine resource module distributes described the 2nd IO to ask the required exchange resource of concurrent value from described resource pool.
In conjunction with first kind of second aspect possible embodiment, in the third possible embodiment of embodiment of the invention second aspect, also comprise second distribution module; In second time that described second distribution module is used for obtaining respectively to preset first overflows exchange resource amount and second and overflows the exchange resource amount, overflow the exchange resource amount according to described first, again be that described starter resource module distributes exchange resource from described resource pool, overflow the exchange resource amount according to described second, again be that described object machine resource module distributes exchange resource from described resource pool, so that providing to satisfy to send the required exchange resource of IO request and described object machine resource module is provided to satisfy, described starter resource module receives the required exchange resource of IO request, wherein, described first to overflow the exchange resource amount be the exchange resource amount that described starter resource module lacks, and described second to overflow the exchange resource amount be 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 invention second aspect, described acquisition module comprises second statistic unit and second computing unit; Described second statistic unit is used for asking concurrent number of times and receive IO to ask concurrent number of times to be added up to sending IO respectively in N the default very first time, and the statistics in described N the 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 the default very first time, obtaining a N IO asks concurrent value and N the 2nd IO to ask concurrent value, ask concurrent value to obtain an IO according to the described N that obtains a described IO and ask concurrent mean value, ask concurrent value to obtain the 2nd IO according to the described N that obtains the 2nd IO and ask concurrent mean value, ask the required exchange resource amount of concurrent mean value as the required exchange resource amount of described transmission IO request a described IO, ask concurrent mean value as the required exchange resource amount of described reception IO request described the 2nd IO; Wherein, the described transmission IO that a described IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, the described reception IO that described the 2nd IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, perhaps, a described IO asks concurrent value for add up the mean value that the described transmission IO that obtains asks concurrent number of times in the described default very first time, described the 2nd IO asks concurrent value for add up the mean value that the described reception IO that obtains asks concurrent number of times in the described default very first time, and wherein N is natural number.
The embodiment of the invention third aspect provides a kind of memory device, comprises above-mentioned each exchange resource management devices.
The embodiment of the invention is according to sending and receive the required stock number of IO request, the starter resource module and the object machine resource module that are respectively separate from resource pool distribute exchange resource, and described starter resource module is used for providing described transmission IO request required exchange resource; Described object machine resource module is used for providing described reception IO request required exchange resource, makes that the exchange resource of INI and two kinds of business models of TGT is separate, has avoided the exchange resource competition occurring with INI business model and TGT business model in mouthful pattern.Simultaneously, therein a kind of professional appearance unusually, when causing corresponding resource module exchange resource to exhaust, also can not influence the application of another kind of operation exchange resource, make another kind of business normally to move, improve the reliability of memory device.
Description of drawings
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 application's exchange resource management devices structural representation of an embodiment again;
Fig. 7 is the application exchange resource management devices structural representation of an embodiment more again.
Embodiment
Describe below in conjunction with accompanying drawing and concrete embodiment.
See also 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 move the INI business model, sends the IO request to remote equipment (as other memory devices or server), perhaps moves the TGT business model, receives and response remote equipment IO request.Described memory device is sending the IO request to the remote equipment (not shown), the application exchange resource is with SID, DID, OX_ID and the RX_ID etc. of record INI business model, perhaps receive remote equipment IO request, the application exchange resource is with SID, DID, OX_ID and the RX_ID etc. of record TGT business model, during INI or TGT service operation, memory device is realized communicating with correct remote equipment by the information in the described exchange resource.
The resource pool 110 of described memory device is used for depositing exchange resource, and is that starter resource module 120 and object machine resource module 130 distribute exchange resource.Particularly, described memory device obtains memory device and sends and receive the required exchange resource amount of IO request, according to the required exchange resource amount of described transmission IO request, be starter resource module 120 from resource pool 110, according to the required exchange resource amount of described reception IO request, be that object machine resource module 130 distributes exchange resource from resource pool 110.For example, memory device obtains the interior IO of transmission of the default very first time and asks concurrent number of times and receive IO to ask concurrent number of times, ask concurrent number of times and receive IO to ask the required exchange resource amount of concurrent number of times difference to obtain sending IO respectively, and asking the required exchange resource of concurrent number of times from resource pool 110 for starter resource module 120 distributes described transmissions IO, described reception IO asks the required exchange resource of concurrent number of times for 130 distribution of object machine resource module.
Described starter resource module 120 is used for providing memory device to send the required exchange resource of IO request to remote equipment, and namely the exchange resource deposited of starter resource module 120 only is used for the INI business model.Described object machine resource module 130 is used for providing and receives the required exchange resource of IO request that remote equipment sends, and namely the exchange resource deposited of object machine resource module 130 only is used for the TGT business model.
Described memory device is sending the IO request when (needing operation INI business model) to remote equipment, preferentially to starter resource module 120 application exchange resources, receiving the IO request that remote equipment sends when (needing operation TGT business model), preferentially to object machine resource module 130 application exchange resources.The memory device application can be carried out the mutual of INI or TGT business with described remote equipment behind exchange resource.After this business was finished, the exchange resource that memory device takies this business was discharged into corresponding resource module, i.e. starter resource module 120 or object machine resource module 130.
If memory device applies for less than exchange resource that to starter resource module 120 or object machine resource module 130 then memory device is to resource pool 110 application exchange resources.If memory device to exchange resource, then carry out the mutual of this business with described remote equipment, and after this business was finished, the exchange resource that this is professional discharged back resource pool 110 to resource pool 110 applications.If memory device less than exchange resource, then returns application less than the information of exchange resource to resource pool 110 applications, at this moment, memory device can't carry out the mutual of this business with described remote equipment, occurs unusual.
The application's embodiment is according to sending the required stock number of IO request, distribute exchange resource from resource pool for the starter resource module, distribute exchange resource according to receiving the required stock number of IO request for the object machine resource module, the exchange resource of starter resource module and object machine resource module is separate, and the required exchange resource of INI business model is provided by described starter resource module, the required exchange resource of TGT business model is provided by the object machine resource module, make that the exchange resource of INI and two kinds of business models of TGT is separate, avoided the exchange resource competition occurring with INI business model and TGT business model in mouthful pattern.Simultaneously, therein a kind of professional appearance unusually, when causing corresponding resource module exchange resource to exhaust, also can not influence the application of another kind of operation exchange resource, make another kind of business normally to move, improve the reliability of memory device.
See also Fig. 2, Fig. 2 is the process flow diagram of the application's exchange resource management method one embodiment.Described exchange resource management method may further comprise the steps:
Step S201: memory device obtains to send and receive the required exchange resource amount of IO request respectively.
Memory device has with a mouthful attribute, can move INI and TGT business model.Memory device sends the IO request to remote equipment when operation INI business model, and the application exchange resource, when operation TGT business model, receives the IO request that remote equipment sends, and the application exchange resource.Memory device obtains memory device respectively and sends and receive the required exchange resource amount of IO request.For example, memory device obtains to send IO respectively and asks concurrent number of times and receive IO to ask concurrent number of times, and will send IO and ask the required exchange resource amount of concurrent number of times as sending the required exchange resource amount of IO request, ask the required exchange resource amount of concurrent number of times as receiving the required exchange resource amount of IO request with receiving IO.Wherein, described transmission IO asks concurrent number of times in Preset Time, and memory device sends the number of times of IO request to remote equipment.It is in the Preset Time that described reception IO asks concurrent number of times, and memory device receives the number of times of the IO request that remote equipment sends.Preset Time in the embodiment of the invention can be set according to concrete performance, and the present invention does not do concrete restriction to this.
Step S202: memory device is according to the required exchange resource amount of described transmission IO request, distribute exchange resource from resource pool for the starter resource module, according to the required exchange resource amount of described reception IO request, distribute exchange resource from described resource pool for the object machine resource module.
Described memory device is provided with resource pool, starter resource module and object machine resource module.Wherein, described resource pool is deposited 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.
Described memory device is according to the required exchange resource amount of described transmission IO request, distribute exchange resource from resource pool for the starter resource module, according to the required exchange resource amount of described reception IO request, distribute exchange resource from described resource pool for the object machine resource module.For example, memory device obtains to send and receive IO respectively and asks the required exchange resource amount of concurrent number of times, send IO from resource pool for the starter resource module distributes and ask the required exchange resource of concurrent number of times, ask the required exchange resource of concurrent number of times for the object machine resource module distributes reception IO.Wherein, the exchange resource of distributing to described starter resource module is separate with the exchange resource of distributing to described object machine resource module.The exchange resource that described starter resource module is deposited only is used for the INI business model, when memory device sends the IO request to remote equipment, for described memory device provides exchange resource.The exchange resource that described object machine resource module is deposited only is used for the TGT business model, when memory device receives the IO request of remote equipment transmission, for described memory device provides exchange resource.
Memory device is respectively described starter resource module and object machine resource module distribution exchange resource from resource pool after, if memory device sends the IO request to remote equipment, then to described starter resource module application exchange resource, if memory device receives the IO request that remote equipment sends, then preferentially to described object machine resource module application exchange resource.Memory device, can communicate with described remote equipment behind exchange resource to starter resource module or the application of object machine resource module.After INI or TGT business were finished, the exchange resource that memory device takies this business was discharged into corresponding resource module, i.e. starter resource module or object machine resource module.If less than exchange resource, then memory device is to resource pool application exchange resource to starter resource module or the application of object machine resource module for memory device.If memory device then communicate with described remote equipment, and after this business was finished, the exchange resource that this is professional discharged back resource pool to the resource pool application to exchange resource.If memory device less than exchange resource, then returns application less than the information of exchange resource to the resource pool application, at this moment, memory device can't communicate with described remote equipment, occurs unusual.
See also 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 may further comprise the steps:
Step S301: memory device asked concurrent number of times and receives IO to ask concurrent number of times to be added up to sending IO respectively in the default very first time.
Memory device asked concurrent number of times and receives IO to ask concurrent number of times to be added up to sending IO respectively in the default very first time, wherein, the concurrent number of times that described transmission IO asks concurrent number of times to be asked for the IO that sends to remote equipment, namely in the given time, memory device is to the number of times of the IO request of remote equipment transmission.It is the concurrent number of times that receives the IO request that remote equipment sends that described reception IO asks concurrent number of times, and namely in the Preset Time, memory device receives the number of times of the IO request that remote equipment sends.For example, the described default very first time is 10 seconds (S), and memory device obtains the 1st, the 2nd, the 3rd respectively ... the number of times of the IO request that the 10th second internal memory devices sends to remote equipment and receive the number of times of the IO request that remote equipment sends.In this example, the number of times of the IO request that the memory device per second sends to remote equipment is described transmissions IO asks concurrent number of times, and the memory device per second receives number of times that IO that remote equipment sends asks and is described reception IO and asks concurrent number of times.Certainly, memory device may not be added up interior all transmissions of the default very first time and receive IO and ask concurrent number of times, in other embodiments, memory device also can and receive IO to the transmission in the default very first time asks concurrent number of times to carry out sampling statistics, do not limit at this, Preset Time in the embodiment of the invention and the predetermined very first time can be set according to concrete performance, and the present invention does not do concrete restriction to this.
Step S302: memory device obtains an IO and asks concurrent value and the 2nd IO to ask concurrent value according to the statistics in described default very first time.
Memory device according in described default very first time to sending the statistics that IO asks concurrent number of times, obtain an IO and ask concurrent value, in the described default very first time, to receiving the statistics that IO asks concurrent number of times, obtain the 2nd IO and ask concurrent value.And memory device asks concurrent value and the 2nd IO to ask concurrent value to be kept in the internal memory of memory device an IO.Wherein, the transmission IO that a described IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, the reception IO that described the 2nd IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, perhaps, a described IO asks concurrent value for add up the mean value that the described transmission IO that obtains asks concurrent number of times in the described default very first time, and described the 2nd IO asks concurrent value for add up the mean value that the described reception IO that obtains asks concurrent number of times in the described default very first time.
In concrete the application, memory device can be according to statistics, ask the maximal value of concurrent number of times to ask concurrent value as a described IO to select in the described default very first time, to add up the transmission IO that obtains, to add up the reception IO that obtains in the described default very first time asks the maximal value of concurrent number of times to ask concurrent value as the 2nd IO, perhaps select in the described default very first time, to add up the transmission IO that obtains and ask the mean value of concurrent number of times to ask concurrent value as a described IO, will in the described default very first time, add up the reception O that obtains and ask the mean value of concurrent number of times to ask concurrent value as the 2nd IO.If the service concurrence amount of memory device operation is relatively more unstable, in the default very first time, send or receive IO and ask to differ bigger between concurrent number of times, ask concurrent number of times required for guaranteeing the exchange resource satisfied transmission as much as possible that memory device distributes or receiving IO, memory device will be added up the transmission IO that obtains in the described default very first time asks the maximal value in the concurrent number of times to ask concurrent value as an IO, asks the maximal value in the concurrent number of times to ask concurrent value as the 2nd IO with receiving IO.If the service concurrence amount of memory device operation is more stable, sending or receive IO in the default very first time asks to change between concurrent number of times little, then memory device can ask the mean value of concurrent number of times to ask concurrent value as an IO with sending IO in the default very first time, or reception IO asks the mean value of concurrent number of times to ask concurrent value as the 2nd IO.
Step S303: memory device obtains a N IO asks concurrent value and N the 2nd IO to ask concurrent value, ask concurrent value to obtain an IO according to the N that obtains a described IO and ask concurrent mean value, ask concurrent value to obtain the 2nd IO according to the described N that obtains the 2nd IO and ask concurrent mean value, ask the required exchange resource amount of concurrent mean value as sending the required exchange resource amount of IO request the one IO, ask the required exchange resource amount of concurrent mean value as receiving the required exchange resource amount of IO request the 2nd IO.Wherein, N is natural number, and the concrete value of N can determine that the embodiment of the invention is not done concrete restriction to this according to concrete actual conditions.
Memory device repeats above-mentioned steps S301 and step S302, ask concurrent value and N the 2nd IO to ask concurrent value to obtain at a N IO, and ask concurrent value according to a N IO, calculate acquisition the one IO and ask concurrent mean value, ask concurrent value according to N the 2nd IO, calculate acquisition the 2nd IO and ask concurrent mean value.Wherein, it is the mean value that a described N IO asks concurrent value that a described IO asks concurrent mean value, and it is the mean value that described N the 2nd IO asks concurrent value that the 2nd IO asks concurrent mean value.
Memory device obtains first, after the 2nd IO asks concurrent mean value, ask the required exchange resource amount of concurrent mean value as the required exchange resource amount of described transmission IO request a described IO, ask the required exchange resource amount of concurrent mean value as the required exchange resource amount of described reception IO request described the 2nd IO, so that memory device is asked the required exchange resource amount of concurrent mean value according to an IO, distribute exchange resource from resource pool for the starter resource module, ask the required exchange resource amount of concurrent mean value according to the 2nd IO, distribute exchange resource from resource pool for the object machine resource module.
Describe for example, memory device in 10 seconds respectively to the 2nd, 4,6,8,10 seconds transmission IO asks concurrent number of times and receives IO to ask concurrent number of times to be added up, obtaining statistics is: the 2nd, 4,6,8,10 seconds transmission IO asks concurrent number of times to be respectively 210,180,260,190,350, the 2nd, 4,6,8,10 seconds reception IO asks concurrent number of times to be respectively 100,150,260,80,170, ask the maximal value of concurrent number of times to ask concurrent value as an IO to send IO, ask the maximal value of concurrent number of times to ask concurrent value as the 2nd IO to receive IO.Be that first, second IO asks concurrent value to be respectively 350,260.Memory device continued at next 10 seconds to ask concurrent number of times and receive IO to ask concurrent number of times to carry out above-mentioned statistics to sending IO, ask concurrent value with first, second IO that obtains in these 10 seconds, ask concurrent value up to obtaining 6 first, second IO in 10 seconds.Wherein, described 6 IO ask concurrent value to be followed successively by 350,350,370,360,320, memory device obtains an IO, and to ask concurrent mean value be 350, and namely an IO asks the required exchange resource amount of concurrent mean value for sending the required exchange resource amounts of IO request 350 times.Described 6 the 2nd IO ask concurrent value to be followed successively by 260,230,270,300,280, memory device obtains a described IO, and to ask concurrent mean value be 270, and namely the 2nd IO asks the required exchange resource amount of concurrent mean value for receiving the required exchange resource amounts of IO request 270 times.Memory device will send the required exchange resource amount of 350 IO requests and send the required exchange resource amount of IO request as memory device, will receive the required exchange resource amount of 270 IO requests as receiving the required exchange resource amount of IO request.
Step S304: memory device is asked the required exchange resource of concurrent mean value from described resource pool for the starter resource module distributes an IO, asks the required exchange resource of concurrent mean value from described resource pool for the object machine resource module distributes the 2nd IO.
In the present embodiment, memory device obtains a described IO ask concurrent mean value and the 2nd IO to ask concurrent mean value after, from described resource pool, equal the exchange resource that an IO asks the required exchange resource amount of concurrent mean value for starter resource module quantity allotted, from described resource pool, equal the exchange resource that the 2nd IO asks the required exchange resource amount of concurrent mean value for object machine resource module quantity allotted.
Certainly, memory device is not limited to quantity is distributed to the starter resource module with the exchange resource that a described IO asks the required exchange resource amount of concurrent mean value to equate, will distribute to the object machine resource module with the exchange resource that described the 2nd IO asks the required exchange resource amount of concurrent mean value to equate.In other embodiments, as memory device can according to as described in an IO ask the ratio of the required exchange resource amount of concurrent mean value, the exchange resource of described resource pool is distributed to the starter resource module respectively, ask the ratio of the required exchange resource amount of concurrent mean value according to the 2nd IO, the exchange resource of described resource pool is distributed to the object machine resource module respectively, perhaps memory device is respectively in described first of acquisition, the 2nd IO asks on the required exchange resource basis of concurrent mean value, increase some exchange resources again, obtain enough exchange resources to guarantee starter resource module and object machine resource module.
In the present embodiment, memory device is by obtaining a plurality of first, the 2nd IO asks concurrent value, obtain more stable first, the 2nd IO asks concurrent mean value, and ask the required exchange resource amount of concurrent mean value according to an IO, from resource pool, distribute exchange resource for the starter resource module, ask the required exchange resource amount of concurrent mean value according to the 2nd IO, from resource pool, for the object machine resource module distributes exchange resource, reduced the starter resource module, the error of the exchange resource amount that the object machine resource module is assigned to and the exchange resource amount of the corresponding professional actual needs of memory device.
Need to prove that in addition step S303 is optional step.In another embodiment, after memory device execution in step S301, step S302 obtain first, second IO and ask concurrent value, ask the required exchange resource amount of concurrent value as the required exchange resource amount of described transmission IO request the one IO, ask concurrent value as the required exchange resource amount of described reception IO request the 2nd IO.Memory device execution in step S304, to ask the required exchange resource amount of concurrent value according to an IO, from described resource pool, distribute exchange resource for the starter resource module, ask the required exchange resource amount of concurrent value according to the 2nd IO, from described resource pool, distribute exchange resource for the object machine resource module.
Step S305: first in second time that memory device obtains respectively to preset overflows exchange resource amount and second and overflows the exchange resource amount.
When memory device sends the IO request to remote equipment, preferentially to starter resource module application exchange resource.If less than exchange resource, then memory device is to resource pool application exchange resource to the application of starter resource module for memory device.Described to the application of starter resource module less than the exchange resource amount be the exchange resource amount that the starter resource module lacks, namely first overflows the exchange resource amount.When memory device receives the IO request that described remote equipment sends, preferentially to described object machine resource module application exchange resource.If less than exchange resource, then memory device is to resource pool application exchange resource to the application of object machine resource module for memory device.Described to the application of object machine resource module less than the exchange resource amount be the exchange resource amount that the object machine resource module lacks, namely second overflows the exchange resource amount.Memory device obtains first overflowing exchange resource amount and second and overflow the exchange resource amount in the second default time.
Step S306: memory device overflows the exchange resource amount according to described first, again be that described starter resource module distributes exchange resource from described resource pool, overflowing the exchange resource amount according to described second, is that described object machine resource module distributes exchange resource from described resource pool again.
Memory device obtains for first in the second default time and overflows after exchange resource amount and second overflows the exchange resource amount, again be that starter resource module and object machine resource module distribute exchange resource from resource pool, receive the required exchange resource of IO request so that described starter resource module provides to satisfy to send the required exchange resource of IO request and described object machine resource module is provided to satisfy.Wherein, the exchange resource amount that memory device distributes for the starter resource module again be the exchange resource amount and described first of distributing to the starter resource module last time overflow the 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 of distributing to described object machine resource module last time overflow the exchange resource amount with.
If the exchange resource amount in the resource pool less than memory device need redistribute to starter resource module and object machine resource module exchange resource amount and, then need redistribute ratio to starter resource module and object machine resource module exchange resource amount according to current memory device, all exchange resources of resource pool are redistributed to starter resource module and object machine resource module.
Repeated execution of steps S305, step S306, with every the described second default time, overflow exchange resource amount and described second according to described first and overflow the exchange resource amount, again be that starter resource module and object machine resource module distribute exchange resource from described resource pool, after from described resource pool being starter resource module and object machine resource module distribution exchange resource again, described resource pool does not have remaining exchange resource, at this moment, memory device is that starter resource module and object machine resource module distribute exchange resource no longer again.
Need to prove, the exchange resource amount and first that memory device distributes the exchange resource amount to be not limited to sub-distribution on the described starter resource module for the starter resource module again overflow the exchange resource amount and, the exchange resource amount and second that memory device distributes the exchange resource amount to be not limited to described object machine resource module distribution for the object machine resource module again overflow the exchange resource amount with.
In the present embodiment, described first, second default time and N are by the memory apparatus system default settings.But in other embodiments, described first, second default time and N also can be preestablished by the user, do not limit at this, and wherein N is natural number.
Further, carrying out exchange resource when redistributing, memory device also may not overflow the 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 be at execution in step S304, according to sending the required exchange resource amount of IO request, distribute exchange resource from resource pool for the starter resource module, according to receiving the required exchange resource amount of IO request, after distributing exchange resource for the object machine resource module from resource pool, not execution in step S305, S306.Memory device is every default the 3rd time, re-execute step S301 to step S304, to ask required exchange resource amount according to the transmission IO that regains, again distribute exchange resource for the starter resource module from resource pool, according to the required exchange resource amount of reception IO request that regains, resource pool distributes exchange resource for the object machine resource module again.Wherein default the 3rd time is greater than the default very first time.
In the present embodiment, memory device arranges separate starter resource module and object machine resource module, simultaneously, each default second time of memory device is redistributed the exchange resource amount of starter resource module and object machine resource module, make the exchange resource amount of starter resource module and object machine resource module to ask required exchange resource amount corresponding with the actual transmission of current memory device and reception IO as far as possible, the exchange resource that has guaranteed resource module can satisfy memory device corresponding service demand, has improved 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 compared, so that technique effect of the present invention to be described.
Please consult following table one earlier, memory device operation INI business model and TGT business model, all be to resource pool application exchange resource, because the resource management of memory device has mutual exclusion lock character, must wait for namely that a last exchange resource application is finished just can carry out the application of next exchange resource.So when memory device moves two kinds of business models simultaneously, exist the exchange resource competition.At this moment, when a kind of business model of memory device occurs when unusual, then can influence the runnability of another kind of business model.For example, total exchange resource amount of resource pool is 2048.The INI business model occurs unusual, and constantly to resource pool application exchange resource, up to all exchange resources that take resource pool, namely the stock number of INI business model application is 2048.At this moment, the TGT business model less than any exchange resource, makes the TGT business model normally to move to the resource pool application, so influenced the TGT business model.In like manner, the TGT business model occurs unusual, taken all or most of exchange resource of resource pool, make the INI business apply for fully less than exchange resource or the exchange resource that can apply for seldom, and then the INI business model can't normally have been moved or the operation progress is affected.
See also following table two, the present invention is according to the required exchange resource amount of described transmission IO request, distribute exchange resource from resource pool for the starter resource module, according to the required exchange resource amount of described reception IO request, distribute exchange resource from described resource pool for the object machine resource module, and provide the INI business model required exchange resource by the starter resource module, the object machine resource module provides TGT the exchange resource of professional required formula, make that the exchange resource of INI and two kinds of business models of TGT is separate, therefore do not have the exchange resource competition of INI and two kinds of business of TGT.In addition, even wherein a kind of business model occurs also can not influencing another kind of business model unusually.For example, total exchange resource amount of resource pool is 2048, and the exchange resource amount of distributing to the starter resource module is 1024, and the exchange resource amount of distributing to the object machine resource module is 512.The INI business model occurs unusual, behind the exchange resource that exhausts the starter resource module, continues to resource pool application exchange resource, also exhausts up to the remaining exchange resource of resource pool, and at this moment, the exchange resource amount of INI business model application is 1536.Because starter resource module and object machine resource module are separate, therefore, the INI business model can't be to object machine resource module application exchange resource, and the object machine resource module is still being deposited 512 exchange resource for the application of TGT business model.In like manner, the TGT business model unusually can not have influence on the INI business model yet.
Table one: existing resource administrative situation
The total exchange resource amount of resource pool 2048 2048 2048
Two kinds of service operation situations Normally The INI service exception The TGT service exception
Resource pool residue exchange resource amount 512 0 0
The exchange resource amount of the professional application of INI 1024 2048 0
The exchange resource amount of the professional application of TGT 512 0 2048
Whether there is the exchange resource competition Be Be Be
Whether exist abnormal conditions to influence each other Not 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 The INI service exception The TGT service exception
Resource pool residue exchange resource amount 512 0 0
The exchange resource amount of the professional application of INI 1024 1536 1020
The exchange resource amount of the professional application of TGT 512 510 1536
Whether there is the exchange resource competition Not Not Not
Whether exist abnormal conditions to influence each other Not Not Not
Fig. 4 is the structural representation of the application's exchange resource management devices one embodiment.See also Fig. 4, described exchange resource management devices comprises starter resource module 410, object machine resource module 420, acquisition module 430 and first distribution module 440.
Starter resource module 410 is used for providing described transmission IO request required exchange resource, the IO request of described transmission IO request for sending to remote equipment.
Object machine resource module 420 is used for providing described reception IO request required exchange resource, the IO request that described reception IO request sends for receiving remote equipment.
Acquisition module 430 is used for obtaining respectively transmission and receives the required exchange resource amount of IO request, and described transmission and the required exchange resource amount of described reception IO request are sent to first distribution module 440.Memory device has with a mouthful attribute, can move INI and TGT business model.Memory device sends the IO request to remote equipment when operation INI business model, and the application exchange resource, when operation TGT business model, receives the IO request that remote equipment sends, and the application exchange resource.Acquisition module 430 obtains memory device respectively and sends and receive the required exchange resource amount of IO request.For example, acquisition module 430 obtains memory device transmission IO respectively asks concurrent number of times and receives IO to ask concurrent number of times, and will send IO and ask the required exchange resource amount of concurrent number of times as sending the required exchange resource amount of IO request, ask the required exchange resource amount of concurrent number of times as receiving the required exchange resource amount of IO request with receiving IO.Wherein, described transmission IO asks concurrent number of times in the given time, and memory device sends the number of times of IO request to remote equipment.It is in the schedule time that described reception IO asks concurrent number of times, and memory device receives the number of times of the IO request that remote equipment sends.Preset Time in the embodiment of the invention can be set according to concrete performance, and the present invention does not do concrete restriction to this.
First distribution module 440 is used for according to the required exchange resource amount of described transmission IO request, be that described starter resource module 410 distributes exchange resources from resource pool, according to the required exchange resource amount of described reception IO 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 is deposited the total exchange resource of memory device, and provides exchange resource for described starter resource module and described object machine resource module.First distribution module 440 sends and receives the required exchange resource amount of IO request respectively according to memory device, be respectively starter resource module 410 and object machine resource module 420 distribution exchange resources from resource pool.For example, first distribution module 440 is asked the required exchange resource amount of concurrent number of times according to obtaining memory device transmission IO, be that starter resource module 410 distributes and sends IO and ask the required exchange resource of concurrent number of times from resource pool, first distribution module 440 is asked the required exchange resource amount of concurrent number of times according to obtaining memory device reception IO, is that object machine resource module 420 distributes reception IO to ask the required exchange resource of concurrent number of times from resource pool.
Fig. 5 is the structural representation of another embodiment of the application's exchange resource management devices.See also 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 second distribution module 550.Wherein, acquisition module 530 comprises first statistic unit 531 and first computing unit 532.Starter resource module 510 in the present embodiment, object machine resource module 520 are identical with starter resource module, the object machine resource module of a last embodiment, see also the related text explanation, do not repeat them here.
First statistic unit 531 is used for asking concurrent number of times and receive IO to ask concurrent number of times to be added up to sending IO respectively in the default very first time, and statistics is sent to first computing unit 532.
Particularly, first statistic unit 531 asked concurrent number of times and receives IO to ask concurrent number of times to be added up to sending IO respectively in the default very first time, wherein, it is that memory device is to the concurrent number of times of the IO request of remote equipment transmission that described transmission IO asks concurrent number of times, namely in the given time, memory device is to the number of times of the IO request of remote equipment transmission.It is the concurrent number of times that memory device receives the IO request that remote equipment sends that described reception IO asks concurrent number of times, and namely in the given time, memory device receives the number of times of the IO request that remote equipment sends.For example, the described default very first time is 10 seconds (S), and first statistic unit 531 obtains the 1st, the 2nd, the 3rd respectively ... sending IO on the 10th second asks concurrent number of times and receives IO to ask concurrent number of times.In this example, the number of times of the IO request that the memory device per second sends to remote equipment is described transmissions IO asks concurrent number of times, and the memory device per second receives number of times that IO that remote equipment sends asks and is described reception IO and asks concurrent number of times.Certainly, first statistic unit may not be added up interior all transmissions of the default very first time and receive IO and ask concurrent number of times, in other embodiments, first statistic unit also can and receive IO to the transmission in the default very first time asks concurrent number of times to carry out sampling statistics, does not limit at this.
First computing unit 532 is used for according to the statistics in described default very first time, obtaining an IO asks concurrent value and the 2nd IO to ask concurrent value, ask the required exchange resource amount of concurrent value as sending the required exchange resource amount of IO request the one IO, ask the required exchange resource amount of concurrent value as receiving the required exchange resource amount of IO request the 2nd IO.
First computing unit 532 according to memory device in described default very first time to sending the statistics that IO asks concurrent number of times, obtain an IO and ask concurrent value, in the described default very first time, to receiving the statistics that IO asks concurrent number of times, obtain the 2nd IO and ask concurrent value.First computing unit 532 asks the required exchange resource amount of concurrent value as sending the required exchange resource amount of IO request the one IO, ask the required exchange resource amount of concurrent value to ask required exchange resource amount as receiving IO the 2nd IO, and ask required respectively exchange resource amount to send to first distribution module 540 described transmission and described reception IO.Wherein, the transmission IO that a described IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, the reception IO that described the 2nd IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, perhaps, a described IO asks concurrent value for add up the mean value that the described transmission IO that obtains asks concurrent number of times in the described default very first time, and described the 2nd IO asks concurrent value for add up the mean value that the described reception IO that obtains asks concurrent number of times in the described default very first time.
In concrete the application, first computing unit 532 can be according to statistics, ask the maximal value of concurrent number of times to ask concurrent value as described first and second IO respectively to select in the described default very first time, to add up the transmission that obtains and to receive IO, ask the mean value of concurrent number of times to ask concurrent value as described first and second IO respectively to select in the described default very first time, to add up the transmission that obtains and to receive IO.If the service concurrence amount of memory device operation is relatively more unstable, in the default very first time, send or receive IO and ask to differ bigger between concurrent number of times, ask concurrent number of times required for guaranteeing the exchange resource satisfied transmission as much as possible that memory device distributes or receiving IO, first computing unit 532 will be added up the transmission IO that obtains in the described default very first time asks the maximal value in the concurrent number of times to ask concurrent value as an IO, will add up the reception IO that obtains in the described default very first time and ask the maximal value in the concurrent number of times to ask concurrent value as the 2nd IO.If the service concurrence amount of memory device operation is more stable, sending or receive IO in the default very first time asks to change between concurrent number of times little, then first computing unit 532 can ask the mean value of concurrent number of times to ask concurrent value as an IO with sending IO in the default very first time, asks the mean value of concurrent number of times to ask concurrent value as the 2nd IO with receiving IO in the very first time of establishing.
First distribution module 540 is used for according to the required exchange resource amount of described transmission IO request, be that described starter resource module 510 distributes exchange resources from resource pool, according to the required exchange resource amount of described reception IO request, be that described object machine resource module 520 distributes exchange resource from described resource pool.
In the present embodiment, first distribution module 540 is asked the required exchange resource of concurrent value for starter resource module 510 distributes an IO from described resource pool, asks the required exchange resource of concurrent value for object machine resource module 520 distributes the 2nd IO.
Certainly, first distribution module is not limited to asking the equal corresponding starter resource module of distributing to of exchange resource of concurrent value quantity with a described IO exchange resource correspondence that described the 2nd IO asks concurrent value quantity to equate be distributed to the object machine resource module.In other embodiments, first distribution module can ask concurrent value and described the 2nd IO to ask the ratio of concurrent value according to a described IO, the exchange resource of described resource pool is distributed to starter resource module and object machine resource module respectively, perhaps first distribution module is asked on the required exchange resource basis of concurrent mean value at described first, second IO that obtains respectively, increase some exchange resources again, obtain enough exchange resources to guarantee starter resource module and object machine resource module.
Second distribution module 550 was used for every the second default time, acquisition first overflowing stock number and second and overflow stock number in described default second time, and overflow stock number according to the current exchange resource amount and first of distributing to starter resource module 510, the exchange resource of described resource pool is redistributed to starter resource module 510, overflow stock number according to the current exchange resource amount and second of distributing to object machine resource module 520, the exchange resource of described resource pool is redistributed to object machine resource module 520.Wherein, described first to overflow the exchange resource amount be the exchange resource amount that described starter resource module 510 lacks, and described second to overflow the exchange resource amount be the exchange resource amount that described object machine resource module 520 lacks.
When memory device sends the IO request to remote equipment, preferentially to starter resource module 510 application exchange resources.If less than exchange resource, then memory device is to resource pool application exchange resource to 510 applications of starter resource module for memory device.Described to starter resource module 510 application less than the exchange resource amount be the exchange resource amount that starter resource module 510 lacks, namely first overflows the exchange resource amount.When memory device receives the IO request that described remote equipment sends, preferentially to described object machine resource module 520 application exchange resources.If less than exchange resource, then memory device is to resource pool application exchange resource to 520 applications of object machine resource module for memory device.Described to object machine resource module 520 application less than the exchange resource amount be the exchange resource amount that object machine resource module 520 lacks, namely second overflows the exchange resource amount.
Second distribution module 550 obtains first overflowing exchange resource amount and second and overflow the exchange resource amount in the second default time respectively, and be that starter resource module 510, object machine resource module 520 distributes exchange resources again from resource pool, so that providing to satisfy to send the required exchange resource of IO request and object machine resource module 520 is provided to satisfy, starter resource module 510 receives the required exchange resource of IO request.Wherein, the exchange resource amount that second distribution module 550 is distributed for starter resource module 510 again be the exchange resource amount and first of distributing to starter resource module 510 last time overflow the exchange resource amount and, the exchange resource amount that second distribution module 550 is distributed for object machine resource module 520 again be the exchange resource amount and second of distributing to object machine resource module 520 last time overflow the exchange resource amount with.
If the exchange resource amount of resource pool less than second distribution module 550 need redistribute to the exchange resource amount of starter resource module 510 and object machine resource module 520 and, then second distribution module 550 is redistributed ratio to the exchange resource amount of starter resource module 510 and object machine resource module 520 according to current needs, and all exchange resources of resource pool are redistributed respectively to starter resource module 510 and object machine resource module 520.
Every the described second default time, second distribution module 550 is overflowed exchange resource amount and described second according to described first and is overflowed the exchange resource amount, again be respectively starter resource module 510 and object machine resource module 520 distribution exchange resources from described resource pool, after from described resource pool being starter resource module 510 and object machine resource module 520 distribution exchange resources again, described resource pool does not have remaining exchange resource.At this moment, second distribution module 550 is that starter resource module 510 and object machine resource module 520 distribute exchange resource no longer again.
Need to prove, the exchange resource amount that second distribution module is distributed for the starter resource module again be not limited to the exchange resource amount and first of distributing to the starter resource module last time overflow the exchange resource amount and, second distribution module again for the exchange resource amount of object machine resource module distribution be not limited to the exchange resource amount and second of distributing to the object machine resource module last time overflow the 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 starter resource module and object machine resource module respectively, perhaps second distribution module is asked on the required exchange resource basis of concurrent mean value at described first, second IO that obtains respectively, increase certain data volume exchange resource again, obtain enough exchange resources to guarantee starter resource module and object machine resource module.
In the present embodiment, described first, second default time and N are the default value of exchange resource management devices.But in other application implementation modes, described first, second default time and N also can be the predefined value of user, do not limit at this, and wherein N is natural number.
Further, carrying out exchange resource when redistributing, the exchange resource management devices also may not overflow the 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, the exchange resource management devices can not comprise second distribution module, the acquisition module of exchange resource management devices also is used for every default the 3rd time, transmission IO according to memory device asks concurrent number of times and receives IO to ask concurrent number of times respectively, obtain first and second IO and ask concurrent value, first distribution module is asked the required exchange resource amount of concurrent value according to an IO, again distribute exchange resource for the starter resource module from resource pool, ask the required exchange resource amount of concurrent value according to the 2nd IO, distribute exchange resource for the object machine resource module again from resource pool.Wherein, default the 3rd time is greater than the default very first time.
Further, in other embodiments, exchange resource management devices of the present invention can also comprise the application module, described application module is used for when memory device sends the IO request to remote equipment, to described starter resource module application exchange resource, when memory device receives the IO 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 during less than exchange resource, to resource pool application exchange resource.
In the present embodiment, the 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 management devices carries out again distribution every default second time to the exchange resource amount of starter resource module and object machine resource module, make the exchange resource amount of starter resource module and object machine resource module to ask required exchange resource amount with the actual transmission of current memory device and reception IO as far as possible, the exchange resource that has guaranteed resource module can satisfy memory device corresponding service demand, has improved the performance of memory device service operation.
Optimally, see also Fig. 6, Fig. 6 is the exchange resource management devices of the present invention structural representation of an embodiment again.The resource management apparatus of the resource management apparatus in the present embodiment and a last embodiment is basic identical, and its difference is that acquisition module 630 comprises second statistic unit 631 and second computing unit 632.
Second statistic unit 631 is used for asking concurrent number of times and receive IO to ask concurrent number of times to be added up to sending IO respectively in N the default very first time, and the statistics in N the default very first time is sent to second computing unit 632.Wherein, the mode that second statistic unit 631 is added up is identical with the statistical of a last embodiment first statistic unit, does not give unnecessary details at this.
Second computing unit 632 is used for respectively according to the statistics in N the default very first time, obtaining a N IO asks concurrent value and N the 2nd IO to ask concurrent value, ask concurrent value to obtain an IO according to the described N that obtains a described IO and ask concurrent mean value, ask concurrent value to obtain the 2nd IO according to the described N that obtains the 2nd IO and ask concurrent mean value, ask the required exchange resource amount of concurrent mean value as the required exchange resource amount of described transmission IO request a described IO, ask concurrent mean value as the required exchange resource amount of described reception IO request described the 2nd IO, and ask required respectively exchange resource amount to send to first distribution module 640 described transmission and described reception IO.Wherein, first, second IO in the present embodiment asks concurrent value to ask concurrent value identical with first, second IO in the last embodiment, so be not repeated in this description.It is the mean value that a described N IO asks concurrent value that a described IO asks concurrent mean value, and it is the mean value that described N the 2nd IO asks concurrent value that described the 2nd IO asks concurrent mean value.
First distribution module 640 is asked concurrent mean value according to a described IO, exchange resource in the described resource pool is distributed to starter resource module 610, ask concurrent mean value according to described the 2nd IO, the exchange resource in the described resource pool is distributed to object machine resource module 620.
Describe for example, second statistic unit 631 asked concurrent number of times and received IO to ask concurrent number of times to be added up to sending IO respectively in 10 seconds, obtaining statistics is: the transmission IO at the 2nd, 4,6,8,10 second asks concurrent number of times to be respectively 210,180,260,190,350, and the reception IO at the 2nd, 4,6,8,10 second asks concurrent number of times to be respectively 100,150,260,80,170.First computing unit 532 asks the maximal value of concurrent number of times to ask concurrent value as first, second IO to send and to receive IO respectively, and namely first and second IO ask concurrent value to be respectively 350,260.Second statistic unit 631 continued at next 10 seconds to ask concurrent number of times and receive IO to ask concurrent number of times to carry out above-mentioned statistics to sending IO, so that first and second IO that second computing unit 632 obtains respectively in these 10 seconds ask concurrent value, ask concurrent value up to obtaining 6 first and second IO in 10 seconds, wherein, described 6 IO ask concurrent value to be followed successively by 350,350,370,360,320, it is 350 that described 6 IO of second computing unit, 632 acquisitions ask the mean value of concurrent value, and namely an IO asks the required exchange resource amount of concurrent mean value for sending the required exchange resource amounts of IO request 350 times.Described 6 the 2nd IO ask concurrent value to be followed successively by 260,230,270,300,280, it is 270 that described 6 the 2nd IO of second computing unit, 63 acquisitions ask the mean value of concurrent value, and namely the 2nd IO asks the required exchange resource amount of concurrent mean value for receiving the required exchange resource amounts of IO request 270 times.First distribution module 640 is distributed to starter resource module 610 with sending 350 required exchange resource amounts of IO request in the resource pool, distributes to object machine resource module 620 with receiving 270 required exchange resource amounts of IO request in the resource pool.
In the present embodiment, resource management apparatus is asked the mean value of concurrent value and the mean value that individual the 2nd IO of N asks concurrent value according to a N IO respectively, exchange resource correspondence in the described resource pool is distributed to starter resource module and object machine resource module, the exchange resource amount that makes starter resource module and object machine resource module be assigned to is more stable, has reduced the error with the exchange resource amount of the corresponding professional actual needs of memory device.
See also Fig. 7, Fig. 7 is the application's exchange resource management devices structural representation of an embodiment more again.The 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 shown).
The starter resource module 720 of storage and the computer instruction of object machine resource module 730 in processor 710 execute stores 740, adhere to the exchange resource in the resource pool separately starter resource module 720 and object machine resource module 730, the described exchange resource that adheres to starter resource module 720 separately and to adhere to the exchange resource of object machine resource module 730 separately separate; And when sending the IO request to remote equipment, provide the exchange resource that adheres to starter resource module 720 separately to this INI business model, when the IO of described transmission request responding is finished, discharge the exchange resource that described INI business model takies; When receiving the IO request that remote equipment sends, provide the exchange resource that adheres to object machine resource module 730 separately to this TGT business model, when the IO request responding of described reception was finished, the described TGT business model of release took exchange resource.
Particularly, the starter resource module 720 of processor 710 execute stores 740 storages and the computer instruction of object machine resource module 730, in the default very first time, ask concurrent number of times and receive IO to ask concurrent number of times to be added up to sending IO respectively, according to the statistics in described default very first time, obtaining an IO asks concurrent value and the 2nd IO to ask concurrent value, ask the required exchange resource amount of concurrent value as sending the required exchange resource amount of IO request the one IO, ask the required exchange resource amount of concurrent value as receiving the required exchange resource amount of IO request the 2nd IO, and ask the required exchange resource amount of concurrent value according to sending IO, be that starter resource module 720 distributes exchange resources from resource pool, namely ask the required exchange resource amount of concurrent value according to sending IO, adhere to the exchange resource in the resource pool separately starter resource module 720, ask the required exchange resource amount of concurrent value according to receiving IO, be that object machine resource module 730 distributes exchange resources from resource pool, namely ask the required exchange resource amount of concurrent value according to receiving IO, adhere to the exchange resource in the resource pool separately object machine resource module 730.
Further particularly, processor 710 asked concurrent number of times and receives IO to ask concurrent number of times to be added up to sending IO respectively in the default very first time, wherein, it is that memory device is to the concurrent number of times of the IO request of remote equipment transmission that described transmission IO asks concurrent number of times, namely in the given time, memory device is to the number of times of the IO request of remote equipment transmission.It is the concurrent number of times that memory device receives the IO request that remote equipment sends that described reception IO asks concurrent number of times, i.e. in the schedule time, memory device receives the number of times of the IO request that remote equipment sends.
Processor 710 according in the described default very first time to sending the statistics that IO asks concurrent number of times, obtain an IO and ask concurrent value, in the described default very first time, to receiving the statistics that IO asks concurrent number of times, obtain the 2nd IO and ask concurrent value.Wherein, the transmission IO that a described IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, the reception IO that described the 2nd IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, perhaps, a described IO asks concurrent value for add up the mean value that the described transmission IO that obtains asks concurrent number of times in the described default very first time, and described the 2nd IO asks concurrent value for add up the mean value that the described reception IO that obtains asks concurrent number of times in the described default very first time.
In concrete the application, processor 710 can be according to statistics, ask the maximal value of concurrent number of times to ask concurrent value as described first and second IO respectively to select in the described default very first time, to add up the transmission that obtains and to receive IO, perhaps to select in the described default very first time, to add up the transmission that obtains and to receive IO the asking mean value of concurrent number of times to ask concurrent value as described first and second IO respectively.If the service concurrence amount of memory device operation is relatively more unstable, in the default very first time, send or receive IO and ask to differ bigger between concurrent number of times, the exchange resource satisfied transmission as much as possible or the reception IO that distribute for the assurance memory device ask concurrent number of times required, and processor 710 will be added up the transmission that obtains and receive IO in the described default very first time and ask the maximal value in the concurrent number of times to ask concurrent value and the 2nd IO to ask concurrent value as an IO respectively.If the service concurrence amount of memory device operation is more stable, send or receive IO and ask to change between concurrent number of times not quite in the default very first time, then processor 710 can ask the mean value of concurrent number of times to ask concurrent value and the 2nd IO to ask concurrent value as an IO respectively with sending and receive IO in the default very first time.
Processor 710 is that starter resource module 720 distributes an IO to ask the required exchange resource of concurrent value from described resource pool, asks the required exchange resource of concurrent value for object machine resource module 730 distributes the 2nd IO.
Certainly, processor is not limited to and will asks the equal corresponding starter resource module of distributing to of exchange resource of concurrent value quantity with a described IO, will ask the equal corresponding object machine resource module of distributing to of exchange resource of concurrent value amount with described the 2nd IO.In other embodiments, processor can ask concurrent value and the 2nd IO to ask the ratio of concurrent value according to an IO, the exchange resource of described resource pool is distributed to starter resource module and object machine resource module respectively, perhaps processor is asked on the required exchange resource basis of concurrent mean value at described first, second IO that obtains respectively, increase some exchange resources again, obtain enough exchange resources to guarantee starter resource module and object machine resource module.
Optimally, processor 710 is further used for asking concurrent number of times and receive IO to ask concurrent number of times to be added up to sending IO respectively in N the default very first time, respectively according to the statistics in N the default very first time, obtaining a N IO asks concurrent value and N the 2nd IO to ask concurrent value, ask concurrent value to obtain an IO according to the described N that obtains a described IO and ask concurrent mean value, ask concurrent value to obtain the 2nd IO according to the described N that obtains the 2nd IO and ask concurrent mean value, and ask concurrent mean value according to an IO, be that starter resource module 720 distributes exchange resource from described resource pool, asking concurrent mean value according to the 2nd IO, is that object machine resource module 730 distributes exchange resource from described resource pool.
Further optimally, processor 710 also was used for every the second default time, acquisition first overflowing stock number and second and overflow stock number in described default second time, and be that starter resource module 720 and object machine resource module 730 distribute exchange resources again from resource pool.Wherein, the exchange resource amount that processor 710 distributes for starter resource module 720 again be the exchange resource amount and first of distributing to starter resource module 720 last time overflow the exchange resource amount and, the exchange resource amount that processor 710 distributes for object machine resource module 730 again be the exchange resource amount and second of distributing to object machine resource module 730 last time overflow the exchange resource amount with.
If the exchange resource amount of resource pool less than processor 710 need redistribute to the exchange resource amount of starter resource module 720 and object machine resource module 730 and, then processor 710 is redistributed ratio to the exchange resource amount of starter resource module 720 and object machine resource module 730 according to current needs, and all exchange resources of resource pool are distributed to starter resource module 720 and object machine resource module 730 again respectively.
After from described resource pool, being respectively starter resource module 720 and object machine resource module 730 distribution exchange resources again, when described resource pool did not have remaining exchange resource, processor 710 was that starter resource module 720 and object machine resource module 730 distribute exchange resources no longer again.
In the present embodiment, described first, second default time and N are the default value of exchange resource management devices.But in other application implementation modes, described, described first, second default time and N also can be the predefined value of user, do not limit at this, and wherein N is natural number.
Further, carrying out exchange resource when redistributing, processor also may not overflow exchange resource amount and second according to first and overflow the 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 be every default the 3rd time, the IO that sends according to memory device asks concurrent number of times to obtain an IO and asks concurrent value, and ask the required exchange resource amount of concurrent value according to an IO, again distribute exchange resource for the starter resource module from resource pool, the IO that receives according to memory device asks concurrent number of times to obtain the 2nd IO and asks concurrent value, and ask the required exchange resource amount of concurrent value according to the 2nd IO, be that the object machine resource module distributes exchange resource again from resource pool.Wherein, default the 3rd time is greater than the default very first time.Further, in other embodiments, when processor also is used in memory device to remote equipment transmission IO request, to described starter resource module application exchange resource, when memory device receives the IO 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 during less than exchange resource, to resource pool application exchange resource.
Need to prove, include starter resource module and object machine resource module 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 generally is applied in the memory device that has with mouthful attribute, but in concrete the application, the application's exchange resource management devices also can be applicable to the server that only has the starter attribute, perhaps only have the memory device of object machine attribute, do not limit at this.
The application also provides a kind of memory device, and described memory device comprises the exchange resource management devices in above-mentioned any embodiment, and its embodiment sees also Fig. 1, Fig. 4 to Fig. 7 and related text explanation, does not repeat them here.
Pass through such scheme, the application is according to sending and receive the required stock number of IO request, the starter resource module and the object machine resource module that are respectively separate from resource pool distribute exchange resource, the exchange resource of starter resource module and object machine resource module is separate, and the required exchange resource of INI business model is provided by described starter resource module, the required exchange resource of TGT business model is provided by the object machine resource module, make that the exchange resource of INI and two kinds of business models of TGT is separate, avoided the exchange resource competition occurring with INI business model and TGT business model in mouthful pattern.Simultaneously, therein a kind of professional appearance unusually, when causing corresponding resource module exchange resource to exhaust, also can not influence the application of another kind of operation exchange resource, make another kind of business normally to move, improve the reliability of memory device.
In the several embodiments that the application provides, should be understood that, disclosed system, apparatus and method can realize by other mode.For example, device embodiments described above only is schematic, for example, the division of described module or unit, only be that a kind of logic function is divided, during actual the realization other dividing mode can be arranged, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, the shown or coupling each other discussed or directly to be coupled or to communicate to connect can be by some interfaces, the indirect coupling of device or unit or communicate to connect can be electrically, machinery or other form.
Described unit as separating component explanation can or can not be physically to separate also, and the parts that show as the unit can be or can not be physical locations also, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select wherein some or all of unit to realize the purpose of present embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the application can be integrated in the processing unit, also can be that the independent physics in each unit exists, and also can be integrated in the unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, also can adopt the form of SFU software functional unit to realize.
If described integrated unit is realized with the form of SFU software functional unit and during as independently production marketing or use, can be stored in the computer read/write memory medium.Based on such understanding, part or all or part of of this technical scheme that the application's technical scheme contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) or processor (processor) carry out all or part of step of the described method of each embodiment of the application.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD.

Claims (11)

1. an exchange resource management method is characterized in that, described method comprises:
Obtain to send and receive the required exchange resource amount of I/O IO request respectively;
According to the required exchange resource amount of described transmission IO request, distribute exchange resource from resource pool for the starter resource module, according to the required exchange resource amount of described reception IO request, distribute exchange resource from described resource pool for the object machine resource module; Wherein, the exchange resource of the exchange resource of described starter resource module and described object machine resource module is separate, and described starter resource module is used for providing described transmission IO request required exchange resource; Described object machine resource module is used for providing described reception IO request required exchange resource; The IO request of described transmission IO request for sending to remote equipment, the IO request that described reception IO request sends for receiving remote equipment.
2. method according to claim 1 is characterized in that, the step that described acquisition respectively sent and received the required exchange resource amount of IO request comprises:
In the default very first time, ask concurrent number of times and receive IO to ask concurrent number of times to be added up to sending IO respectively, wherein, it is the concurrent number of times that sends the IO request to remote equipment that described transmission IO asks concurrent number of times, and it is the concurrent number of times that receives the IO request of remote equipment transmission that described reception IO asks concurrent number of times;
According to the statistics in described default very first time, obtaining an IO asks concurrent value and the 2nd IO to ask concurrent value, ask the required exchange resource amount of concurrent value as the required exchange resource amount of described transmission IO request a described IO, ask concurrent value as the required exchange resource amount of described reception IO request described the 2nd IO; Wherein, the described transmission IO that a described IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, the described reception IO that described the 2nd IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, perhaps, a described IO asks concurrent value for add up the mean value that the described transmission IO that obtains asks concurrent number of times in the described default very first time, and described the 2nd IO asks concurrent value for add up the mean value that the described reception IO that obtains asks concurrent number of times in the described default very first time.
3. method according to claim 2, it is characterized in that, described according to the required exchange resource amount of described transmission IO request, distribute exchange resource from resource pool for the starter resource module, according to the required exchange resource amount of described reception IO request, be specially for the object machine resource module distributes the step of exchange resource from described resource pool:
Being that described starter resource module distributes a described IO to ask the required exchange resource of concurrent value from described resource pool, is that described object machine resource module distributes described the 2nd IO to ask the required exchange resource of concurrent value from described resource pool.
4. method according to claim 2, it is characterized in that, described according to the required exchange resource amount of described transmission IO request, distribute exchange resource from resource pool for the starter resource module, according to the required exchange resource amount of described reception IO request, after the step of described resource pool for object machine resource module distribution exchange resource, also comprise:
First in the second default time that obtains respectively overflows exchange resource amount and second and overflows the exchange resource amount, wherein, described first to overflow the exchange resource amount be the exchange resource amount that described starter resource module lacks, and described second to overflow the exchange resource amount be the exchange resource amount that described object machine resource module lacks;
Overflow the exchange resource amount according to described first, again be that described starter resource module distributes exchange resource from described resource pool, overflow the exchange resource amount according to described second, again be that described object machine resource module distributes exchange resource from described resource pool, receive the required exchange resource of IO request so that described starter resource module provides to satisfy to send the required exchange resource of IO request and described object machine resource module is provided to satisfy.
5. method according to claim 1 is characterized in that, the step that described acquisition respectively sent and received the required exchange resource amount of IO request comprises:
In the default very first time, ask concurrent number of times and receive IO to ask concurrent number of times to be added up to sending IO respectively;
According to the statistics in described default very first time, obtaining an IO asks concurrent value and the 2nd IO to ask concurrent value, wherein, the described transmission IO that a described IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, the described reception IO that described the 2nd IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, perhaps, a described IO asks concurrent value for add up the mean value that the described transmission IO that obtains asks concurrent number of times in the described default very first time, and described the 2nd IO asks concurrent value for add up the mean value that the described reception IO that obtains asks concurrent number of times in the described default very first time;
Repeating N time describedly asked concurrent number of times and receives IO to ask concurrent number of times to be added up to sending IO respectively in the default very first time, ask concurrent value and N described the 2nd IO to ask concurrent value to obtain a N described IO, ask concurrent value to obtain an IO according to the described N that obtains a described IO and ask concurrent mean value, ask concurrent value to obtain the 2nd IO according to the described N that obtains the 2nd IO and ask concurrent mean value, ask the required exchange resource amount of concurrent mean value as the required exchange resource amount of described transmission IO request a described IO, ask the required exchange resource amount of concurrent mean value as the required exchange resource amount of described reception IO request described the 2nd IO, 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 first distribution module;
Described acquisition module is used for obtaining respectively transmission and receives the required exchange resource amount of I/O IO request, and described transmission and the required exchange resource amount of reception IO request are sent to described first distribution module;
Described first distribution module is used for according to the required exchange resource amount of described transmission IO request, be that described starter resource module distributes exchange resource from resource pool, according to the required exchange resource amount of described reception IO request, be that described object machine resource module distributes exchange resource from described resource pool;
Described starter resource module is used for providing described transmission IO request required exchange resource, the IO request of described transmission IO request for sending to remote equipment;
Described object machine resource module is used for providing described reception IO request required exchange resource, the IO request that described reception IO request sends for receiving remote equipment;
The exchange resource of the exchange resource of described starter resource module and described object machine resource module is separate.
7. device according to claim 6 is characterized in that, described acquisition module comprises first statistic unit and first computing unit;
Described first statistic unit is used for asking concurrent number of times and receive IO to ask concurrent number of times to be added up to sending IO respectively in the default very first time, and statistics sent to described first computing unit, wherein, it is the concurrent number of times that sends the IO request to remote equipment that described transmission IO asks concurrent number of times, and it is the concurrent number of times that receives the IO request of remote equipment transmission that described reception IO asks concurrent number of times;
Described first computing unit is used for according to the statistics in described default very first time, obtaining an IO asks concurrent value and the 2nd IO to ask concurrent value, ask the required exchange resource amount of concurrent value as the required exchange resource amount of described transmission IO request a described IO, ask concurrent value as the required exchange resource amount of described reception IO request described the 2nd IO; Wherein, the described transmission IO that a described IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, the described reception IO that described the 2nd IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, perhaps, a described IO asks concurrent value for add up the mean value that the described transmission IO that obtains asks concurrent number of times in the described default very first time, and described the 2nd IO asks concurrent value for add up the mean value that the described reception IO that obtains asks concurrent number of times in the described default very first time.
8. device according to claim 7 is characterized in that,
It is that described starter resource module distributes a described IO to ask the required exchange resource of concurrent value that described first distribution module specifically is used for from described resource pool, is that described object machine resource module distributes described the 2nd IO to ask the required exchange resource of concurrent value from described resource pool.
9. device according to claim 7 is characterized in that, also comprises second distribution module;
In second time that described second distribution module is used for obtaining respectively to preset first overflows exchange resource amount and second and overflows the exchange resource amount, overflow the exchange resource amount according to described first, again be that described starter resource module distributes exchange resource from described resource pool, overflow the exchange resource amount according to described second, again be that described object machine resource module distributes exchange resource from described resource pool, so that providing to satisfy to send the required exchange resource of IO request and described object machine resource module is provided to satisfy, described starter resource module receives the required exchange resource of IO request, wherein, described first to overflow the exchange resource amount be the exchange resource amount that described starter resource module lacks, and described second to overflow the exchange resource amount be 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 second statistic unit and second computing unit;
Described second statistic unit is used for asking concurrent number of times and receive IO to ask concurrent number of times to be added up to sending IO respectively in N the default very first time, and the statistics in described N the 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 the default very first time, obtaining a N IO asks concurrent value and N the 2nd IO to ask concurrent value, ask concurrent value to obtain an IO according to the described N that obtains a described IO and ask concurrent mean value, ask concurrent value to obtain the 2nd IO according to the described N that obtains the 2nd IO and ask concurrent mean value, ask the required exchange resource amount of concurrent mean value as the required exchange resource amount of described transmission IO request a described IO, ask concurrent mean value as the required exchange resource amount of described reception IO request described the 2nd IO; Wherein, the described transmission IO that a described IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, the described reception IO that described the 2nd IO asks concurrent value to obtain for statistics in described default very first time asks the maximal value in the concurrent number of times, perhaps, a described IO asks concurrent value for add up the mean value that the described transmission IO that obtains asks concurrent number of times in the described default very first time, described the 2nd IO asks concurrent value for add up the mean value that the described reception IO that obtains asks concurrent number of times in the described default very first time, and wherein N is natural number.
11. a memory device is characterized in that, comprises each described exchange resource management devices 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 true CN103268298A (en) 2013-08-28
CN103268298B 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)

Cited By (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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1156862A (en) * 1995-10-26 1997-08-13 松下电器产业株式会社 File system
US20060036648A1 (en) * 2004-04-30 2006-02-16 Frey Robert T Online initial mirror synchronization and mirror synchronization verification in storage area networks
US20060098572A1 (en) * 2004-04-30 2006-05-11 Chao Zhang Storage switch traffic bandwidth control
CN102202414A (en) * 2006-02-03 2011-09-28 松下电器产业株式会社 Uplink resource allocation in a mobile communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1156862A (en) * 1995-10-26 1997-08-13 松下电器产业株式会社 File system
US20060036648A1 (en) * 2004-04-30 2006-02-16 Frey Robert T Online initial mirror synchronization and mirror synchronization verification in storage area networks
US20060098572A1 (en) * 2004-04-30 2006-05-11 Chao Zhang Storage switch traffic bandwidth control
CN102202414A (en) * 2006-02-03 2011-09-28 松下电器产业株式会社 Uplink resource allocation in a mobile communication system

Cited By (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

Also Published As

Publication number Publication date
CN103268298B (en) 2016-04-13

Similar Documents

Publication Publication Date Title
US11297130B2 (en) Cluster resource management in distributed computing systems
CN102082692B (en) Method and equipment for migrating virtual machines based on network data flow direction, and cluster system
CN104243405A (en) Request processing method, device and system
CN101361045B (en) Method for modeling on-demand free pool of resources
CN104375824A (en) Data processing method
CN105227489A (en) A kind of bandwidth management method and electronic equipment
CN105404506A (en) Construction method and system of cloud computing mirror image document
CN109669775A (en) Distributed task dispatching method, system and storage medium
CN109976907A (en) Method for allocating tasks and system, electronic equipment, computer-readable medium
CN108984125A (en) A kind of method, apparatus and storage medium of resource allocation
CN104537045A (en) Service distribution method and device based on distributive system
CN108574645A (en) A kind of array dispatching method and device
CN103369038A (en) PaaS (platform as a service) management platform and method
CN108958950A (en) Task management method, host and the storage device of electronic storage device
CN108241535B (en) Resource management method and device and server equipment
CN103713852A (en) Method for processing information, service platform and electronic devices
CN113347249B (en) Operation loading method, device and equipment
CN108153494B (en) A kind of I/O request processing method and processing device
EP3370179A1 (en) Method and system for distributing floating licenses for real-time services
CN102521155B (en) Method and device for realizing table item dynamic allocation on physical storage
CN103268298A (en) Method and device for managing exchanging resources and storage device
CN105511959A (en) Method and device for distributing virtual resource
CN109522129A (en) A kind of resource method for dynamically balancing, device and relevant device
CN104052778A (en) Distributed phone bill statistical method, device thereof and system thereof
CN105389212A (en) Job assigning method and apparatus

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