CN109086232A - A kind of method and device of issued transaction - Google Patents

A kind of method and device of issued transaction Download PDF

Info

Publication number
CN109086232A
CN109086232A CN201810837164.8A CN201810837164A CN109086232A CN 109086232 A CN109086232 A CN 109086232A CN 201810837164 A CN201810837164 A CN 201810837164A CN 109086232 A CN109086232 A CN 109086232A
Authority
CN
China
Prior art keywords
frequency
poll
affairs
processed
processing request
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.)
Pending
Application number
CN201810837164.8A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810837164.8A priority Critical patent/CN109086232A/en
Publication of CN109086232A publication Critical patent/CN109086232A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system
    • G06F13/362Handling requests for interconnection or transfer for access to common bus or bus system with centralised access control
    • G06F13/366Handling requests for interconnection or transfer for access to common bus or bus system with centralised access control using a centralised polling arbiter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/466Transaction processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Bus Control (AREA)

Abstract

The embodiment of the present application discloses a kind of method and device of issued transaction, by obtaining the processing request from storage equipment, processing request is handled affairs to be processed for requesting, the temporary processing request got, if the quantity of processing request reaches preset value, interrupt requests are generated, then so that server is handled affairs to be processed according to interrupt requests.By being kept in processing request, and when the quantity of processing request reaches preset value, generate interrupt requests, reduce the generation number of interrupt requests, obtain simultaneously number of processing to affairs to be processed to reduce device according to interrupt requests, it reduces processor and stores the interaction times between equipment, to improve the working efficiency of processor, while improving the treatment effeciency of affairs to be processed.

Description

A kind of method and device of issued transaction
Technical field
This application involves computer field more particularly to a kind of method and devices of issued transaction.
Background technique
With the development of information technology, be stored with higher requirement of the people for information, information storage means also by It is gradually diversified, specifically, can realize the storage of data by network storage equipment, flash memory device etc., wherein network is deposited Storage usually has biggish memory capacity, flash memory storage such as 3D NAND memory device, usual read or write speed with higher (Input/Output Operations Per Second, IOPS), i.e., input and output amount per second.In actual operation, it deposits Storage equipment can produce affairs to be processed, interrupt requests can be sent to processor, for request processor to affairs to be processed It is handled.
However, when the read or write speed for storing equipment is higher, it will usually more affairs to be processed are generated, thus to processing Device sends more interrupt requests, so that processor is handled affairs to be processed according to interrupt requests, that is to say, that storage Equipment one affairs to be processed of every generation will send an interrupt requests to processor, and processor is often got in one Disconnected request will obtain primary affairs to be processed from storage equipment, and carry out single treatment to affairs to be processed, in this way, place The interaction times managing device and storing between equipment are more, cause the working efficiency of processor lower, the processing to affairs to be processed Efficiency is relatively low.
Summary of the invention
Lower to the treatment effeciency of the affairs to be processed in storage equipment in the prior art, the application in order to solve the problems, such as Embodiment provides a kind of method of issued transaction.
The embodiment of the present application provides a kind of method of issued transaction, which comprises
The processing request from storage equipment is obtained, the processing request is handled affairs to be processed for requesting;
The processing request is kept in, if the quantity of temporary processing request reaches preset value, generates interrupt requests, To handle the affairs to be processed.
Optionally, the method also includes:
According to interruption frequency, determine that poll frequency, the interruption frequency are the frequency for generating interrupt requests;
Processing request is polled according to the poll frequency, the processing request is obtained, so as to the processing Device is requested according to processing, is handled pending data.
It is optionally, described that poll frequency is determined according to the interruption frequency, comprising:
Determine poll original frequency;
The poll original frequency is adjusted according to the interruption frequency, obtains poll frequency.
Optionally, described that the original frequency is adjusted according to the interruption frequency, obtain poll frequency, comprising:
If the interruption frequency is greater than or equal to first threshold, the poll original frequency is improved, poll frequency is obtained;
If the interruption frequency is less than or equal to second threshold, the poll original frequency is reduced, poll frequency is obtained, The second threshold is less than or equal to the first threshold.
The embodiment of the present application provides the method for another issued transaction, which comprises
Determine that poll frequency, the interruption frequency are the frequency for generating interrupt requests according to interruption frequency, the interruption is asked It asks for requesting to handle affairs to be processed;
The affairs to be processed are polled according to the poll frequency, the affairs to be processed are obtained, to handle Device handles the affairs to be processed.
Optionally, the generation interrupt requests include:
The processing request from storage equipment is obtained, the processing request is handled affairs to be processed for requesting;
The processing request is kept in, if the quantity of temporary processing request reaches preset value, generates interrupt requests.
It is optionally, described that poll frequency is determined according to the interruption frequency, comprising:
Determine poll original frequency;
The poll original frequency is adjusted according to the interruption frequency, obtains poll frequency.
Optionally, described that the original frequency is adjusted according to the interruption frequency, obtain poll frequency, comprising:
If the interruption frequency is greater than or equal to first threshold, the poll original frequency is improved, poll frequency is obtained;
If the interruption frequency is less than or equal to second threshold, the poll original frequency is reduced, poll frequency is obtained, The second threshold is less than or equal to the first threshold.
The embodiment of the present application provides a kind of device of issued transaction, and described device includes:
Request unit, for obtaining the processing request from storage equipment, the processing request is treated for requesting Processing affairs are handled;
Temporary storage location, for keeping in the processing request, if the quantity of temporary processing request reaches preset value, Interrupt requests are generated to handle the affairs to be processed so that server is according to the interrupt requests.
Optionally, described device further include:
Poll frequency determination unit, for determining poll frequency according to interruption frequency;The interruption frequency is to generate to interrupt The frequency of request;
Poll units obtain the processing and request for being polled according to the poll frequency to processing request, So that the processor is requested according to processing, pending data is handled.
Optionally, the poll frequency determines subelement, comprising:
Poll original frequency determination unit, for determining poll original frequency;
Frequency adjustment unit obtains poll for being adjusted according to the interruption frequency to the poll original frequency Frequency.
Optionally, the frequency adjustment unit is specifically used for:
If the interruption frequency is greater than or equal to first threshold, the poll original frequency is improved, poll frequency is obtained;
If the interruption frequency is less than or equal to second threshold, the poll original frequency is reduced, poll frequency is obtained, The second threshold is less than or equal to the first threshold.
The embodiment of the present application provides the device of another issued transaction, and described device includes:
Poll frequency determination unit, for determining that poll frequency, the interruption frequency are to generate to interrupt according to interruption frequency The frequency of request, the interrupt requests are handled affairs to be processed for requesting;
Poll units obtain described to be processed for being polled according to the poll frequency to the affairs to be processed Affairs, so that processor handles the affairs to be processed.
Optionally, the generation interrupt requests include:
The processing request from storage equipment is obtained, the processing request is handled affairs to be processed for requesting;
The processing request is kept in, if the quantity of temporary processing request reaches preset value, generates interrupt requests.
Optionally, the poll frequency determination unit, comprising:
Poll original frequency determination unit, for determining poll original frequency;
Frequency adjustment unit obtains poll for being adjusted according to the interruption frequency to the poll original frequency Frequency.
Optionally, the frequency adjustment unit is specifically used for:
If the interruption frequency is greater than or equal to first threshold, the poll original frequency is improved, poll frequency is obtained;
If the interruption frequency is less than or equal to second threshold, the poll original frequency is reduced, poll frequency is obtained, The second threshold is less than or equal to the first threshold.
The method and device of a kind of issued transaction provided by the embodiments of the present application, by obtaining the processing from storage equipment Request, processing request are handled affairs to be processed for requesting, the temporary processing request got, if the number of processing request Amount reaches preset value, then interrupt requests is generated, so that server is handled affairs to be processed according to interrupt requests.By right Processing request is kept in, and when the quantity of processing request reaches preset value, is generated interrupt requests, reduced interrupt requests Generation number, affairs to be processed obtain and number of processing according to interrupt requests to reduce device, reduce processor Interaction times between storage equipment to improve the working efficiency of processor, while improving the processing effect of affairs to be processed Rate.
The method and device of another kind issued transaction provided by the embodiments of the present application, by determining poll according to interruption frequency Frequency, wherein interruption frequency is the frequency for generating interrupt requests, and interrupt requests handle affairs to be processed for requesting, press Affairs to be processed are polled according to poll frequency, obtain affairs to be processed, so that processor handles affairs to be processed. Poll frequency is determined according to interruption frequency, and poll frequency can be made to be adjusted with the generation of affairs to be processed, thus So that poll frequency is reached suitable value, reduces the waste of resource.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application, for those of ordinary skill in the art, without creative efforts, It can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is a kind of flow chart of the method for issued transaction provided by the embodiments of the present application;
Fig. 2 is the flow chart of the method for another issued transaction provided by the embodiments of the present application;
Fig. 3 is the flow chart of the method for another issued transaction provided by the embodiments of the present application;
Fig. 4 is a kind of structural block diagram of the device of issued transaction provided by the embodiments of the present application;
Fig. 5 is the structural block diagram for the device that the application implements another issued transaction provided.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only this Apply for a part of the embodiment, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art exist Every other embodiment obtained under the premise of creative work is not made, shall fall in the protection scope of this application.
In the prior art, storage equipment can produce affairs to be processed, and affairs to be processed can be to be reported to processor Data or session etc. can send interrupt requests to processor, so that processor is asked according to interruption when generating affairs to be processed The affairs to be processed to storage equipment are asked to handle.However, when the read or write speed for storing equipment is higher, it will usually to processing Device sends more interrupt requests, so that processor is handled affairs to be processed according to interrupt requests, that is to say, that storage Equipment one affairs to be processed of every generation will send an interrupt requests to processor, and processor is often got in one Disconnected request will obtain primary affairs to be processed from storage equipment, and carry out single treatment to affairs to be processed, in this way, place The interaction times managing device and storing between equipment are more, cause the working efficiency of processor lower, the processing to affairs to be processed Efficiency is relatively low.
In the prior art, the affairs to be processed in storage equipment can also be obtained by poll, such as according to pre- If poll frequency is polled storage equipment, equipment is stored when generating affairs to be processed, can wait the poll of processor, Processor poll can be handled after obtaining affairs to be processed.However, when affairs to be processed generate less, to storage equipment More resource will often be spent by being polled, and cause the waste of resource.
In order to solve the above-mentioned technical problem, the method and device of a kind of issued transaction provided by the embodiments of the present application, passes through The processing request from storage equipment is obtained, processing request handles affairs to be processed for requesting, temporary to get Processing request generates interrupt requests, so that processor is treated according to interrupt requests if the quantity of processing request reaches preset value Processing affairs are handled.By being kept in processing request, and when the quantity of processing request reaches preset value, generate Interrupt requests, reduce the generation number of interrupt requests, are obtained according to interrupt requests to affairs to be processed to reduce device And number of processing, it reduces processor and stores the interaction times between equipment, to improve the working efficiency of processor, simultaneously Improve the treatment effeciency of affairs to be processed.
With reference to the accompanying drawing, a kind of transaction methods provided by the embodiments of the present application are introduced, wherein storage is set The standby processing to handle request originator, with realization to the affairs to be processed in storage equipment.The application reality is shown with reference to Fig. 1 The flow chart that a kind of transaction methods of example offer are provided, specifically, may comprise steps of.
S101 obtains the processing request from storage equipment.
Storing equipment may include volatile memory, such as non-volatile dynamic random access memory (Nonvolatile Random Access Memory, NVRAM), phase change random access memory (Phase Change RAM, PRAM), reluctance type Random access memory (Magetoresistive RAM, MRAM) etc., can also include nonvolatile memory, for example, at least one A disk memory, Electrical Erasable programmable read only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), flush memory device, such as anti-or flash memory (NOR flash memory) or anti-and flash memory (NAND flash memory)。
In the embodiment of the present application, storage equipment can have higher IOPS, such as flash memory device, can produce it is more to Handle affairs, it is possible to have lower IOPS, it is not limited here.
Storage equipment can generate affairs to be processed in operation, such as the data, request or the meeting that need to send to processor Information etc. is talked about, for these affairs to be processed, processing request can be sent to processor by storing equipment.Wherein, processing request is used Affairs to be processed are handled in request processor.
It may include storage address of the affairs to be processed in storage equipment in processing request, so that processor is according to wait locate The storage address of director's business obtains affairs to be processed, and handles affairs to be processed;Processing request in also may include to Handle the mark of affairs, so that processor obtains affairs to be processed according to the mark of affairs to be processed, and to affairs to be processed into Row processing;It can also include affairs to be processed itself in processing request, such as may include some relatively simple data, request Or session information etc., processor can directly to processing request in affairs to be processed handle, without from storage equipment In go to obtain affairs to be processed.
S102, the temporary processing request got generate interruption if the quantity of temporary processing request reaches preset value Request.
, can be temporary by processing request after getting processing request, specifically, processing request can be temporarily stored in caching In.In this way, processor, which may not necessarily repeatedly access storage equipment, carries out the acquisition of affairs to be processed, to reduce processor and deposit The interaction times between equipment are stored up, the working efficiency of processor is improved.
Preset value can be determined according to the processing speed of processor and the generation speed of affairs to be processed, if processor Processing speed it is lower, then can determine lower preset value, so as to make processor every time affairs to be processed to be treated compared with It is few, avoid the problem that the processing to affairs to be processed seriously lags;It similarly, can if the generation speed of affairs to be processed is larger With the higher preset value of determination, in order to avoid transaction stock to be processed is too many, the treatment effeciency of affairs to be processed is influenced.
For example, preset value can be 100, i.e., when the quantity of temporary processing request reaches 100, generates to interrupt and ask It asks.
Interrupt requests are immediately handled affairs to be processed for request processor, can be level signal, can also be with It is the request signal of other forms, specifically, the content of interrupt requests can be identical as processing request, can also be different.
Processor is handled affairs to be processed according to interrupt requests.
Processor can be handled affairs to be processed according to interrupt requests.Specifically, can according to interrupt requests, Obtain quantity be preset value processing request, according to processing request affairs to be processed, such as according to processing request in The storage location or mark for handling affairs obtain affairs to be processed from storage equipment, can also directly obtain from processing request Take affairs to be processed.After obtaining affairs to be processed, affairs to be processed can be handled, such as affairs to be processed are session When information, which can be replied.
A kind of method of issued transaction provided by the embodiments of the present application is requested by obtaining the processing from storage equipment, Processing request is handled affairs to be processed for requesting, the temporary processing request got, if the quantity of processing request reaches To preset value, then interrupt requests are generated, affairs to be processed are handled according to interrupt requests.It is temporary by being carried out to processing request It deposits, and when the quantity of processing request reaches preset value, generates interrupt requests, reduce the generation number of interrupt requests, from And reduce device and obtain simultaneously number of processing to affairs to be processed according to interrupt requests, it reduces between processor and storage equipment Interaction times, to improve the working efficiency of processor, while improving the treatment effeciency of affairs to be processed.
In order to further increase the working efficiency of processor and the treatment effeciency of affairs to be processed, the embodiment of the present application is also mentioned Another transaction methods are supplied, wherein in a upper embodiment, by keeping in processing request, to reduce processor Interaction times between storage equipment under the premise of improving processor working efficiency are optimized in kernel state, It on the basis of this, in another embodiment of the application, can also be optimized in User space, specifically, can processing to getting Request is polled.
Refering to what is shown in Fig. 2, for the flow chart of another transaction methods provided by the embodiments of the present application, including following step Suddenly.
S201 obtains the processing request from storage equipment.
S202, the temporary processing request got generate interruption if the quantity of temporary processing request reaches preset value Request.
The specific implementation process of above-mentioned S201 and S202 can refer to the process of S101 and S102.
S203 determines poll frequency according to interruption frequency.
Poll frequency is that finger processor is polled frequency to processing request, can reflect the time interval of poll, such as takes turns Inquiry frequency is too big, then the utilization rate of processor is too high, and poll frequency is too small, then handles request and overstock too much, to thing to be processed The processing of business seriously lags, accordingly, it is determined that a suitable poll frequency is more important.
Poll frequency can be related to the acquisition situation of processing request, can also be related to the speed of service of processor.It is right The determination of poll frequency determines poll frequency according to interruption frequency specifically, record generates the interruption frequency of interrupt requests.This It is to generate interrupt requests because the generation of interrupt requests is related to the temporary quantity of processing request, illustrate that temporary processing is asked The quantity asked has reached preset value, and the interruption frequency for generating interrupt requests is higher, illustrates that the frequency of the processing request obtained is got over Height can determine higher poll frequency at this time.
For example, when the quantity of temporary processing request reaches 100, interrupt requests are generated, and generate interrupt requests Interruption frequency be 15 times per minute, and then illustrate within one minute, the processing request got reaches 1500, therefore can It, can be just when the data of temporary processing request reach 100, to processing poll frequency to be determined as 15 times per minute Request is polled, to save the process for generating interrupt requests.
However in fact, processing request acquisition frequency Many times be non-uniform, therefore can according to interruption frequency, The determination of real-time perfoming poll frequency.Specifically, poll original frequency can be determined, according to interruption frequency to poll original frequency It is adjusted, obtains poll frequency.
The frequency being polled to processing request that poll original frequency can be set for the first time, is also possible to last moment pair The frequency that processing request is polled.
Poll original frequency is adjusted according to interruption frequency, obtains poll frequency, can according to the actual situation depending on. When it is implemented, improve poll original frequency if interruption frequency is greater than or equal to first threshold, obtain poll frequency, if in Disconnected frequency is less than or equal to second threshold, then reduces poll original frequency, obtain poll frequency.Wherein, first threshold is judgement Whether too high standard is handled and is requested if interruption frequency illustrates that interruption frequency is too high more than or equal to first threshold interruption frequency Acquisition frequency it is larger, second threshold be judge interruption frequency whether too low standard, if interruption frequency be less than or equal to second Threshold value illustrates that interruption frequency is too low, and the acquisition frequency for handling request is smaller.It should be noted that second threshold usually less than or Equal to first threshold.
For example, if poll original frequency is 5 times, first threshold is 8 times per minute, and second threshold is 3 times per minute, If interruption frequency is 10 times per minute, illustrates that the processing got request is more, poll original frequency, example can be properly increased When reaching preset value as improved the quantity for requesting processing to 12 times per minute, passes right through poll and obtain processing request, make temporarily The processing request deposited saves the step of generating interrupt requests lower than preset value;If interruption frequency is 0 time per minute, illustrate to obtain The processing request got is less, can suitably reduce poll original frequency, such as be reduced to 4 times per minute, request processing It when quantity reaches preset value, passes right through poll and obtains processing request, temporary processing is made to request to save and generate lower than preset value The step of interrupt requests, meanwhile, lower poll frequency, the utilization rate of processor can be reduced.
S204 is polled processing request according to poll frequency, obtains processing request.
After determining poll frequency, processing request can be polled according to poll frequency, obtain temporary processing and ask It asks, while temporary processing request can be emptied.Processor can according to the processing request, at pending data Reason.
The process that processor handles pending data can refer to S103, and this will not be repeated here.
It is understood that temporary processing request is obtained by way of poll, realization pair if poll frequency is higher The processing of affairs to be processed, temporary processing number of requests is less at this time, is not enough to generate interrupt requests;If poll frequency compared with Low, then temporary processing request, which exists, overstocks, and when overstocking to preset value, generates interrupt requests, and execute S103, while can be with Poll frequency is adjusted, to reduce the interruption frequency for generating interrupt requests.
In another kind transaction methods provided by the embodiments of the present application, asked by obtaining the processing from storage equipment It asks, keeps in processing request, if the quantity of temporary processing request reaches preset value, interrupt requests are generated, according to interrupt requests Affairs to be processed are handled, meanwhile, poll frequency can be determined, according to wheel according to the interruption frequency for generating interrupt requests Frequency is ask to be polled temporary processing request.To reduce processor and the interaction between equipment is stored in temporary processing request On the basis of working efficiency of the number to improve processor, by determining poll frequency, to reduce the generation of interrupt requests, into one Step improves the working efficiency of processor, while improving the treatment effeciency of affairs to be processed.
Of the existing technology in order to solve the problems, such as, the embodiment of the present application also provides another transaction methods, should In embodiment, processor is initiator, by poll obtain storage equipment in affairs to be processed, so as to affairs to be processed into Row processing.Refering to what is shown in Fig. 3, being the flow chart of another transaction methods provided by the embodiments of the present application, this method can be with Include the following steps.
S301 determines poll frequency according to interruption frequency.
Interruption frequency is the frequency for generating interrupt requests, and interrupt requests are for requesting to handle affairs to be processed Request.
As a kind of possible implementation, interrupt requests can be storage equipment when generating affairs to be processed, to place Manage device initiate interrupt requests, interrupt requests commonly used in request processor to storage equipment in affairs to be processed at Reason.
As alternatively possible implementation, the processing request that interrupt requests are also possible to be sent according to storage equipment is produced It is raw.Specifically, the available processing request from storage equipment, processing request can be that storage equipment initiates for requesting Processing request is kept in the request that processor handles the affairs to be processed in storage equipment, if temporary processing request Quantity reaches preset value, then generates interrupt requests.
Poll frequency is that finger processor is polled frequency to processing request, can reflect the time interval of poll, such as takes turns Inquiry frequency is too big, then the utilization rate of processor is too high, and poll frequency is too small, then handles request and overstock too much, to thing to be processed The processing of business seriously lags, accordingly, it is determined that a suitable poll frequency is more important.
Poll frequency is determined according to interruption frequency, specifically, poll original frequency can be determined, according to interruption frequency to wheel It askes original frequency to be adjusted, obtains poll frequency.This is because the quantity of the generation of interrupt requests and temporary processing request Correlation, or the generation frequency dependence with affairs to be processed in storage equipment, generate interrupt requests, illustrate temporary processing request Quantity have reached preset value, or storage equipment generates affairs to be processed, and the interruption frequency for generating interrupt requests is higher, says The frequency of the processing request of bright acquisition is higher, can determine higher poll frequency at this time.
Poll original frequency is adjusted according to interruption frequency, obtains poll frequency, it can be specifically, if interruption frequency More than or equal to first threshold, then poll original frequency is improved, poll frequency is obtained;If interruption frequency is less than or equal to the second threshold Value, then reduce poll original frequency, obtain poll frequency.Wherein, first threshold be judge interruption frequency whether too high standard, If interruption frequency is greater than or equal to first threshold, illustrate that interruption frequency is too high, the acquisition frequency for handling request is larger, second threshold It is to judge interruption frequency whether locate if interruption frequency illustrates that interruption frequency is too low less than or equal to second threshold by too low standard The acquisition frequency for managing request is smaller.It should be noted that second threshold is typically less than or equal to first threshold.
S302 is polled affairs to be processed according to poll frequency, obtains affairs to be processed.Determining poll frequency Afterwards, affairs to be processed can be polled according to poll frequency, obtains affairs to be processed.
Affairs to be processed are polled, affairs to be processed can be obtained by being polled to storage equipment;It can also be with The processing request got is polled, processing request is obtained, corresponding affairs to be processed are obtained according to processing request, such as According to the storage location or mark of the affairs to be processed in processing request, affairs to be processed are obtained from storage equipment, it can also be with Directly affairs to be processed are obtained from processing request.After obtaining affairs to be processed, affairs to be processed can be handled.
The method of another issued transaction provided by the embodiments of the present application, by determining poll frequency according to interruption frequency, Wherein interruption frequency is the frequency for generating interrupt requests, and interrupt requests are handled affairs to be processed for requesting, according to wheel It askes frequency to be polled affairs to be processed, affairs to be processed is obtained, so that processor handles affairs to be processed.According to Interruption frequency determines poll frequency, poll frequency can be made to be adjusted with the generation of affairs to be processed, to make to take turns It askes frequency and reaches suitable value, reduce the waste of resource.
Method based on a kind of issued transaction that above embodiments provide, the embodiment of the present application also provides a kind of offices Its working principle is described in detail with reference to the accompanying drawing in the device of reason.
Referring to fig. 4, which is a kind of structural block diagram of the device of issued transaction provided by the embodiments of the present application, the device packet It includes:
Request unit 110, for obtaining the processing request from storage equipment, the processing request is for request pair Affairs to be processed are handled;
Temporary storage location 120, for keeping in the processing request, if the quantity of temporary processing request reaches default Value, then generate interrupt requests so that server is according to the interrupt requests, handle the affairs to be processed.
Optionally, described device further include:
Poll frequency determination unit, for determining poll frequency according to interruption frequency;The interruption frequency is to generate to interrupt The frequency of request;
Poll units obtain the processing and request for being polled according to the poll frequency to processing request, So that the processor is requested according to processing, pending data is handled.
Optionally, the poll frequency determines subelement, comprising:
Poll original frequency determination unit, for determining poll original frequency;
Frequency adjustment unit obtains poll for being adjusted according to the interruption frequency to the poll original frequency Frequency.
Optionally, the frequency adjustment unit is specifically used for:
If the interruption frequency is greater than or equal to first threshold, the poll original frequency is improved, poll frequency is obtained;
If the interruption frequency is less than or equal to second threshold, the poll original frequency is reduced, poll frequency is obtained, The second threshold is less than or equal to the first threshold.
A kind of device of issued transaction provided by the embodiments of the present application is requested by obtaining the processing from storage equipment, Processing request is handled affairs to be processed for requesting, the temporary processing request got, if the quantity of processing request reaches To preset value, then interrupt requests are generated, affairs to be processed are handled according to interrupt requests.It is temporary by being carried out to processing request It deposits, and when the quantity of processing request reaches preset value, generates interrupt requests, reduce the generation number of interrupt requests, from And reduce device and obtain simultaneously number of processing to affairs to be processed according to interrupt requests, it reduces between processor and storage equipment Interaction times, to improve the working efficiency of processor, while improving the treatment effeciency of affairs to be processed.
Based on the method for another issued transaction provided by the embodiments of the present application, the embodiment of the present application also provides another Its working principle is described in detail with reference to the accompanying drawing in the device of issued transaction.
Referring to Fig. 5, which is a kind of structural block diagram of the device of issued transaction provided by the embodiments of the present application, the device packet It includes:
Poll frequency determination unit 210, for determining that poll frequency, the interruption frequency are in generating according to interruption frequency The frequency of disconnected request, the interrupt requests are handled affairs to be processed for requesting;
Poll units 220 obtain described wait locate for being polled according to the poll frequency to the affairs to be processed Director's business, so that processor handles the affairs to be processed.
Optionally, the generation interrupt requests include:
The processing request from storage equipment is obtained, the processing request is handled affairs to be processed for requesting;
The processing request is kept in, if the quantity of temporary processing request reaches preset value, generates interrupt requests.
Optionally, the poll frequency determination unit, comprising:
Poll original frequency determination unit, for determining poll original frequency;
Frequency adjustment unit obtains poll for being adjusted according to the interruption frequency to the poll original frequency Frequency.
Optionally, the frequency adjustment unit is specifically used for:
If the interruption frequency is greater than or equal to first threshold, the poll original frequency is improved, poll frequency is obtained;
If the interruption frequency is less than or equal to second threshold, the poll original frequency is reduced, poll frequency is obtained, The second threshold is less than or equal to the first threshold.
The device of another issued transaction provided by the embodiments of the present application, by determining poll frequency according to interruption frequency, Wherein interruption frequency is the frequency for generating interrupt requests, and interrupt requests are handled affairs to be processed for requesting, according to wheel It askes frequency to be polled affairs to be processed, affairs to be processed is obtained, so that processor handles affairs to be processed.According to Interruption frequency determines poll frequency, poll frequency can be made to be adjusted with the generation of affairs to be processed, to make to take turns It askes frequency and reaches suitable value, reduce the waste of resource.
When introducing the element of various embodiments of the application, the article " one ", "one", " this " and " described " be intended to Indicate one or more elements.Word "include", "comprise" and " having " are all inclusive and mean in addition to listing Except element, there can also be other elements.
It should be noted that those of ordinary skill in the art will appreciate that realizing the whole in above method embodiment or portion Split flow is relevant hardware can be instructed to complete by computer program, and the program can be stored in a computer In read/write memory medium, the program is when being executed, it may include such as the process of above-mentioned each method embodiment.Wherein, the storage Medium can be magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method Part explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separate part description Unit and module may or may not be physically separated.Furthermore it is also possible to select it according to the actual needs In some or all of unit and module achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying In the case where creative work, it can understand and implement.
The above is only the specific embodiment of the application, it is noted that for the ordinary skill people of the art For member, under the premise of not departing from the application principle, several improvements and modifications can also be made, these improvements and modifications are also answered It is considered as the protection scope of the application.

Claims (16)

1. a kind of method of issued transaction, which is characterized in that the described method includes:
The processing request from storage equipment is obtained, the processing request is handled affairs to be processed for requesting;
The processing request is kept in, if the quantity of temporary processing request reaches preset value, generates interrupt requests, so as to Processor is handled the affairs to be processed according to the interrupt requests.
2. the method according to claim 1, wherein the method also includes:
According to interruption frequency, poll frequency is determined;The interruption frequency is the frequency for generating interrupt requests;
Processing request is polled according to the poll frequency, the processing request is obtained, so as to the processor root It is requested according to processing, pending data is handled.
3. according to the method described in claim 2, it is characterized in that, described determine poll frequency according to the interruption frequency, packet It includes:
Determine poll original frequency;
The poll original frequency is adjusted according to the interruption frequency, obtains poll frequency.
4. according to the method described in claim 3, it is characterized in that, it is described according to the interruption frequency to the initial frequency of the poll Rate is adjusted, and obtains poll frequency, comprising:
If the interruption frequency is greater than or equal to first threshold, the poll original frequency is improved, poll frequency is obtained;
If the interruption frequency is less than or equal to second threshold, the poll original frequency is reduced, poll frequency is obtained, it is described Second threshold is less than or equal to the first threshold.
5. a kind of method of issued transaction, which is characterized in that the described method includes:
Determine that poll frequency, the interruption frequency are the frequency for generating interrupt requests according to interruption frequency, the interrupt requests are used Affairs to be processed are handled in request;
The affairs to be processed are polled according to the poll frequency, the affairs to be processed are obtained, so as to processor pair The affairs to be processed are handled.
6. according to the method described in claim 5, it is characterized in that, the generation interrupt requests include:
The processing request from storage equipment is obtained, the processing request is handled affairs to be processed for requesting;
The processing request is kept in, if the quantity of temporary processing request reaches preset value, generates interrupt requests.
7. according to the method described in claim 5, it is characterized in that, described determine poll frequency according to the interruption frequency, packet It includes:
Determine poll original frequency;
The poll original frequency is adjusted according to the interruption frequency, obtains poll frequency.
8. the method according to the description of claim 7 is characterized in that it is described according to the interruption frequency to the initial frequency of the poll Rate is adjusted, and obtains poll frequency, comprising:
If the interruption frequency is greater than or equal to first threshold, the poll original frequency is improved, poll frequency is obtained;
If the interruption frequency is less than or equal to second threshold, the poll original frequency is reduced, poll frequency is obtained, it is described Second threshold is less than or equal to the first threshold.
9. a kind of device of issued transaction, which is characterized in that described device includes:
Request unit, for obtaining the processing request from storage equipment, the processing request is for requesting to be processed Affairs are handled;
Temporary storage location, if the quantity of temporary processing request reaches preset value, is generated for keeping in the processing request Interrupt requests are handled the affairs to be processed so that server is according to the interrupt requests.
10. device according to claim 9, which is characterized in that described device further include:
Poll frequency determination unit, for determining poll frequency according to interruption frequency;The interruption frequency is to generate interrupt requests Frequency;
Poll units obtain the processing and request for being polled according to the poll frequency to processing request, so as to The processor is requested according to processing, is handled pending data.
11. device according to claim 10, which is characterized in that the poll frequency determines subelement, comprising:
Poll original frequency determination unit, for determining poll original frequency;
Frequency adjustment unit obtains poll frequency for being adjusted according to the interruption frequency to the poll original frequency.
12. device according to claim 11, which is characterized in that the frequency adjustment unit is specifically used for:
If the interruption frequency is greater than or equal to first threshold, the poll original frequency is improved, poll frequency is obtained;
If the interruption frequency is less than or equal to second threshold, the poll original frequency is reduced, poll frequency is obtained, it is described Second threshold is less than or equal to the first threshold.
13. a kind of device of issued transaction, which is characterized in that described device includes:
Poll frequency determination unit, for determining that poll frequency, the interruption frequency are to generate interrupt requests according to interruption frequency Frequency, the interrupt requests for request affairs to be processed are handled;
Poll units obtain the affairs to be processed for being polled according to the poll frequency to the affairs to be processed, So that processor handles the affairs to be processed.
14. device according to claim 13, which is characterized in that the generation interrupt requests include:
The processing request from storage equipment is obtained, the processing request is handled affairs to be processed for requesting;
The processing request is kept in, if the quantity of temporary processing request reaches preset value, generates interrupt requests.
15. according to the method for claim 13, which is characterized in that the poll frequency determination unit, comprising:
Poll original frequency determination unit, for determining poll original frequency;
Frequency adjustment unit obtains poll frequency for being adjusted according to the interruption frequency to the poll original frequency.
16. device according to claim 15, which is characterized in that the frequency adjustment unit is specifically used for:
If the interruption frequency is greater than or equal to first threshold, the poll original frequency is improved, poll frequency is obtained;
If the interruption frequency is less than or equal to second threshold, the poll original frequency is reduced, poll frequency is obtained, it is described Second threshold is less than or equal to the first threshold.
CN201810837164.8A 2018-07-26 2018-07-26 A kind of method and device of issued transaction Pending CN109086232A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810837164.8A CN109086232A (en) 2018-07-26 2018-07-26 A kind of method and device of issued transaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810837164.8A CN109086232A (en) 2018-07-26 2018-07-26 A kind of method and device of issued transaction

Publications (1)

Publication Number Publication Date
CN109086232A true CN109086232A (en) 2018-12-25

Family

ID=64830917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810837164.8A Pending CN109086232A (en) 2018-07-26 2018-07-26 A kind of method and device of issued transaction

Country Status (1)

Country Link
CN (1) CN109086232A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022194162A1 (en) * 2021-03-17 2022-09-22 华为技术有限公司 Method and apparatus for processing interrupt request

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101160567A (en) * 2005-04-13 2008-04-09 伊姆西公司 Data storage system having memory controller with embedded cpu
CN101494579A (en) * 2008-01-22 2009-07-29 中兴通讯股份有限公司 Bus scheduling device and method
CN102081555A (en) * 2011-02-24 2011-06-01 华为技术有限公司 Method and device for adjusting clock interrupt cycle
CN202677378U (en) * 2012-03-27 2013-01-16 无锡里外半导体科技有限公司 Self-adaptation interruption regulation and control device of mobile application processor
CN104243543A (en) * 2013-06-07 2014-12-24 国际商业机器公司 Method for smart polling frequency in data storage in computer environment, and system
CN105027081A (en) * 2013-12-20 2015-11-04 华为技术有限公司 Method and apparatus for switching polling and interruption
CN106293523A (en) * 2016-08-04 2017-01-04 浪潮(北京)电子信息产业有限公司 A kind of I/O Request response method to non-volatile memories and device
CN107402894A (en) * 2016-05-19 2017-11-28 三星电子株式会社 Method for performing the adaptive computer system for interrupting control and its control interruption
CN107766268A (en) * 2017-10-27 2018-03-06 郑州云海信息技术有限公司 Interruption sending method, device, system, equipment and the storage medium of storage device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101160567A (en) * 2005-04-13 2008-04-09 伊姆西公司 Data storage system having memory controller with embedded cpu
CN101494579A (en) * 2008-01-22 2009-07-29 中兴通讯股份有限公司 Bus scheduling device and method
CN102081555A (en) * 2011-02-24 2011-06-01 华为技术有限公司 Method and device for adjusting clock interrupt cycle
CN202677378U (en) * 2012-03-27 2013-01-16 无锡里外半导体科技有限公司 Self-adaptation interruption regulation and control device of mobile application processor
CN104243543A (en) * 2013-06-07 2014-12-24 国际商业机器公司 Method for smart polling frequency in data storage in computer environment, and system
CN105027081A (en) * 2013-12-20 2015-11-04 华为技术有限公司 Method and apparatus for switching polling and interruption
CN107402894A (en) * 2016-05-19 2017-11-28 三星电子株式会社 Method for performing the adaptive computer system for interrupting control and its control interruption
CN106293523A (en) * 2016-08-04 2017-01-04 浪潮(北京)电子信息产业有限公司 A kind of I/O Request response method to non-volatile memories and device
CN107766268A (en) * 2017-10-27 2018-03-06 郑州云海信息技术有限公司 Interruption sending method, device, system, equipment and the storage medium of storage device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022194162A1 (en) * 2021-03-17 2022-09-22 华为技术有限公司 Method and apparatus for processing interrupt request

Similar Documents

Publication Publication Date Title
US8959307B1 (en) Reduced latency memory read transactions in storage devices
US9361034B2 (en) Transferring storage resources between snapshot storage pools and volume storage pools in a distributed network
CN109471843B (en) Metadata caching method, system and related device
CN109271110A (en) The wiring method of storing data, writing system and relevant apparatus in storage system
CN105260912A (en) Resource allocation method and resource allocation device
CN103370917A (en) Message processing method and server
US20170153909A1 (en) Methods and Devices for Acquiring Data Using Virtual Machine and Host Machine
US20150134925A1 (en) Granting and revoking supplemental memory allocation requests
CN107920101B (en) File access method, device and system and electronic equipment
CN105468300A (en) IP hard disc management method and device
US20070033372A1 (en) Windowing external block translations
JP5858308B2 (en) Database management system, computer, database management method
CN104601666A (en) Log service method and cloud platform
CN109086232A (en) A kind of method and device of issued transaction
CN110222046B (en) List data processing method, device, server and storage medium
CN111294377B (en) Dependency network request sending method, terminal device and storage medium
CN106034148B (en) Rapid information interaction method, local server, remote server and system
CN111161002A (en) Cloud platform billing method and device
CN111506254A (en) Distributed storage system and management method and device thereof
CN108090087B (en) File processing method and device
CN108920278A (en) Resource allocation methods and device
CN114708094A (en) Transaction current limiting method, apparatus, device, storage medium and program product
CN115964084A (en) Data interaction method, electronic equipment and storage medium
CN111104381A (en) Log management method, device and equipment and computer readable storage medium
CN110688379A (en) Data storage method, system, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181225