CN107609187A - Method, system and the relevant apparatus of asynchronous operation in a kind of statistics file system - Google Patents
Method, system and the relevant apparatus of asynchronous operation in a kind of statistics file system Download PDFInfo
- Publication number
- CN107609187A CN107609187A CN201710929968.6A CN201710929968A CN107609187A CN 107609187 A CN107609187 A CN 107609187A CN 201710929968 A CN201710929968 A CN 201710929968A CN 107609187 A CN107609187 A CN 107609187A
- Authority
- CN
- China
- Prior art keywords
- asynchronous operation
- information
- operating time
- asynchronous
- preset 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.)
- Pending
Links
Abstract
Method, system and the relevant apparatus of asynchronous operation, methods described include in a kind of statistics file system provided herein:The information of all asynchronous operations and corresponding operating time are obtained, and described information is stored in the data structure of setting;Judge whether the operating time of the asynchronous operation is more than preset value;If so, the information of the asynchronous operation is then counted using query interface;If it is not, the information of the asynchronous operation and corresponding operating time are then removed from the data structure.Removed by obtaining the relevant information of all asynchronous operations, then by the asynchronous operation normally completed, the remaining asynchronous operation postponed of statistics, and then effectively grasp the core operation of file system, extended efficient help for the follow-up debugging of system or upgrading.
Description
Technical field
The application is related to field of filesystems, method, the system of asynchronous operation in more particularly to a kind of statistics file system,
And a kind of computer-readable recording medium and a kind of terminal.
Background technology
In file system, due to needing to ensure high-performance, therefore inside it when request is handled, often using asynchronous
Mode improves the concurrency of system.But asynchronous processing mode, when performance is improved, the positioning that can but throw into question is tired
Difficult phenomenon.The phenomenon that normal request can not be completed for a long time is frequently encountered, can not but know it is because which asynchronous place
Reason operated slow caused.Therefore a kind of method that can count asynchronous operation is needed.
Apply for content
The purpose of the application is to provide method, system and the relevant apparatus of asynchronous operation in a kind of statistics file system, solution
The problem of asynchronous operation postponed can not certainly be positioned in the prior art.
In order to solve the above technical problems, the method that the application provides asynchronous operation in a kind of statistics file system, specific skill
Art scheme is as follows:
The information of all asynchronous operations and corresponding operating time are obtained, and described information is stored in the number of setting
According to structure;
Judge whether the operating time of the asynchronous operation is more than preset value;
If so, the information of the asynchronous operation is then counted using query interface;
If it is not, the information of the asynchronous operation and corresponding operating time are then removed from the data structure.
Wherein, the information of the asynchronous operation includes the title of the asynchronous operation, the specific example of the asynchronous operation
When filename and line number when address, the asynchronous operation in internal memory are called and the called asynchronous operation when
Between.
Wherein, the data structure set is data list.
Wherein, after the information that the asynchronous operation is counted using query interface, in addition to:
Asynchronous operation described in recursive call is less than the preset value up to its operating time.
The system that the application also provides asynchronous operation in a kind of statistics file system, including:
Acquisition module, for the information for obtaining all asynchronous operations and corresponding operating time, and by described information
It is stored in the data structure of setting;
Judge module, for judging whether the operating time of the asynchronous operation is more than preset value;
Statistical module, if the operating time for the asynchronous operation be more than preset value, counted using query interface described in
The information of second class asynchronous operation;
Remove module, if the operating time for the asynchronous operation is less than preset value, removed from the data structure
The information of the asynchronous operation and corresponding operating time.
Wherein, the system also includes:
Loop module, for asynchronous operation described in recursive call until its operating time is less than the preset value.
The application also provides a kind of computer-readable recording medium, is stored thereon with computer program, the computer journey
Following steps are realized when sequence is performed:
The information of all asynchronous operations and corresponding operating time are obtained, and described information is stored in the number of setting
According to structure;
Judge whether the operating time of the asynchronous operation is more than preset value;
If so, the information of the asynchronous operation is then counted using query interface;
If it is not, the information of the asynchronous operation and corresponding operating time are then removed from the data structure.
The application also provides a kind of terminal, including memory and processor, has computer program in the memory, institute
State when processor calls the computer program in the memory and realize following steps:
The information of all asynchronous operations and corresponding operating time are obtained, and described information is stored in the number of setting
According to structure;
Judge whether the operating time of the asynchronous operation is more than preset value;
If so, the information of the asynchronous operation is then counted using query interface;
If it is not, the information of the asynchronous operation and corresponding operating time are then removed from the data structure.
Method, system and the relevant apparatus of asynchronous operation, the side in a kind of statistics file system provided herein
Method includes:The information of all asynchronous operations and corresponding operating time are obtained, and described information is stored in the number of setting
According to structure;Judge whether the operating time of the asynchronous operation is more than preset value;
If so, the information of the asynchronous operation is then counted using query interface;If it is not, then removed from the data structure
The information of the asynchronous operation and corresponding operating time.By obtaining the relevant information of all asynchronous operations, then will be normal
The asynchronous operation of completion removes, the remaining asynchronous operation postponed of statistics, and then effectively grasps the core behaviour of file system
Make, extended efficient help for the follow-up debugging of system or upgrading.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
The embodiment of application, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
The accompanying drawing of offer obtains other accompanying drawings.
The flow chart of the method for asynchronous operation in a kind of statistics file system that Fig. 1 is provided by the embodiment of the present application;
The apparatus structure schematic diagram of asynchronous operation in a kind of statistics file system that Fig. 2 is provided by the embodiment of the present application.
Embodiment
When spirit of the invention is that file system asynchronous operation is initiated, by the information record of asynchronous operation to specific
Data structure in, and provide query interface so that unfinished asynchronous operation, which can look into, to be understood.
To make the purpose, technical scheme and advantage of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belong to the scope of the application protection.
It refer to Fig. 1, the method for asynchronous operation in a kind of statistics file system that Fig. 1 is provided by the embodiment of the present application
Flow chart, concrete technical scheme can include:
S101:The information of all asynchronous operations and corresponding operating time are obtained, and described information is stored in and set
Fixed data structure;
When asynchronous operation is initiated inside file system, start to obtain its information and operating time, the information is usual
Including the relevant information beneficial to positioning the asynchronous operation, such as the title of asynchronous operation, the specific example of asynchronous operation
Address in depositing, it is called when filename and line number and it is called when time etc., the operating time refers to the asynchronous operation
The total time of progress.Certainly there can also be other information, those skilled in the art can be according to the practical application feelings of this programme
Condition is specifically set, and is limited herein without specific.
The data structure of setting is used for the information for storing asynchronous operation, the form species of the data structure is not made herein
Limit, as long as the information of asynchronous operation can be stored, such as can be data list in database etc..
S102:Judge whether the operating time of the asynchronous operation is more than preset value;If so, into step S103;If it is not,
Into step S104;
The purpose of this step is to judge whether it postpones according to the operating time of asynchronous operation.Certainly, it is different different
The operating time for walking operation may be different, judges it should is that those skilled in the art preset according to what actual conditions were set herein
Value, using the actual operating time of asynchronous operation compared with the preset value, and then judges whether to postpone.Certainly can be with
There are other to judge the method whether asynchronous operation postpones, be not construed as limiting herein, all should be in the protection domain of the application.
If so, into step S103;If it is not, into step S104.
S103:The information of the asynchronous operation is counted using query interface;
When exceeding preset value between when operated, illustrate that the asynchronous operation postpones, can now be obtained using query interface
Get the information of the asynchronous operation.Certainly, the step is not necessarily required to inquire about in the asynchronous operation of each discovery delay, can
To unify to count the asynchronous operation that postpones in this time over time, the title, of its operation is obtained
The promoter of elapsed time and asynchronous operation etc. information.Such as the periodically statistical operation time whether can be more than preset value
Asynchronous operation, that is, the asynchronous operation postponed, for example, asynchronous operations of every 10s to delay can be set to and united
Meter, counts its title, the information such as elapsed time.Certainly, the step of example simply counts to asynchronous operation is carried out
Explain, those skilled in the art can specifically be set according to the practical situations of this programme, herein without tool
The restriction of body.
, can be by the presentation of information to screen here, be not construed as limiting to the information for how counting asynchronous operation, Huo Zhe
Display etc. in list.Now, the delay operation of internal system, all can specifically show so that file system is worked as
Preceding running situation more visualizes.
S104:The information of the asynchronous operation and corresponding operating time are removed from the data structure.
When preset value is not above between when operated, illustrate that the asynchronous operation is normal, therefore can select it from above-mentioned
Data structure in remove, advantage of this is that being easy to the statistics of the asynchronous operation to postponing.At this to how to remove
And the mode removed is not construed as limiting.
The embodiment of the present application provides a kind of method method of asynchronous operation in statistics file system, can pass through above-mentioned side
Method realizes that real-time statistics go out the currently outstanding asynchronous operation of file system, so as to effectively grasp the core of file system behaviour
Make, and then extended efficient help for the follow-up debugging of system or upgrade job.
, can be with different described in recursive call after the above method counts the asynchronous operation of delay based on above-described embodiment
Step operation is less than the preset value up to its operating time.Purpose is to allow the asynchronous operation of delay to re-operate, and it is not complete to complete it
Into task.
Referring to Fig. 2, the apparatus structure of asynchronous operation in a kind of statistics file system that Fig. 2 is provided by the embodiment of the present application
Schematic diagram, it can include:
Acquisition module 100, for obtaining information and the operating time of all asynchronous operations, and described information is stored
In the data structure of setting;
Judge module 200, for judging whether the operating time of the asynchronous operation is more than preset value;
Statistical module 300, if the operating time for the asynchronous operation is more than preset value, institute is counted using query interface
State the information of the second class asynchronous operation.
Based on above-described embodiment, as preferred embodiment, the system also includes:
Loop module, for asynchronous operation described in recursive call until its operating time is less than the preset value.
Present invention also provides a kind of computer-readable recording medium, there is computer program thereon, the computer program
The step of above-described embodiment provides can be realized when being performed.The storage medium can include:USB flash disk, mobile hard disk, read-only deposit
Reservoir (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or
CD etc. is various can be with the medium of store program codes.
Present invention also provides a kind of terminal, can include memory and processor, have computer in the memory
Program, when the processor calls the computer program in the memory, it is possible to achieve the step of above-described embodiment provides.
Certain terminal can also include the component such as various network interfaces, power supply.Wherein, the processor of terminal be used for provide calculate and
Control ability.The memory of the terminal can include non-volatile memory medium, built-in storage.
Each embodiment is described by the way of progressive in specification, and what each embodiment stressed is and other realities
Apply the difference of example, between each embodiment identical similar portion mutually referring to.For embodiment provide system and
Speech, because it is corresponding with the method that embodiment provides, so description is fairly simple, related part is referring to method part illustration
.
Method, system and the relevant apparatus of asynchronous operation in a kind of statistics file system provided herein are entered above
Go and be discussed in detail.Specific case used herein is set forth to the principle and embodiment of the application, and the above is implemented
The explanation of example is only intended to help and understands the present processes and its core concept.It should be pointed out that for the general of the art
For logical technical staff, on the premise of the application principle is not departed from, some improvement and modification can also be carried out to the application, this
A little improvement and modification are also fallen into the application scope of the claims.
It should also be noted that, in this manual, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that
A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or
The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged
Except other identical element in the process including the key element, method, article or equipment being also present.
Claims (8)
1. a kind of method of asynchronous operation in statistics file system, it is characterised in that including:
The information of all asynchronous operations and corresponding operating time are obtained, and described information is stored in the data knot of setting
Structure;
Judge whether the operating time of the asynchronous operation is more than preset value;
If so, the information of the asynchronous operation is then counted using query interface;
If it is not, the information of the asynchronous operation and corresponding operating time are then removed from the data structure.
2. according to the method for claim 1, it is characterised in that the information of the asynchronous operation includes the asynchronous operation
Filename and line number when address in internal memory of title, the specific example of the asynchronous operation, the asynchronous operation are called
With time of asynchronous operation when called.
3. according to the method for claim 2, it is characterised in that the data structure set is data list.
4. according to the method described in claim any one of 1-3, it is characterised in that count the asynchronous operation using query interface
Information after, in addition to:
Asynchronous operation described in recursive call is less than the preset value up to its operating time.
A kind of 5. system of asynchronous operation in statistics file system, it is characterised in that including:
Acquisition module, for the information for obtaining all asynchronous operations and corresponding operating time, and described information is stored
In the data structure of setting;
Judge module, for judging whether the operating time of the asynchronous operation is more than preset value;
Statistical module, if the operating time for the asynchronous operation is more than preset value, described second is counted using query interface
The information of class asynchronous operation;
Remove module, if the operating time for the asynchronous operation be less than preset value, from the data structure remove described in
The information of asynchronous operation and corresponding operating time.
6. system according to claim 5, it is characterised in that also include:
Loop module, for asynchronous operation described in recursive call until its operating time is less than the preset value.
7. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program quilt
The method as described in claim any one of 1-4 is realized during execution.
A kind of 8. terminal, it is characterised in that including memory and processor, there is computer program in the memory, it is described
Processor realizes the method as described in claim any one of 1-4 when calling the computer program in the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710929968.6A CN107609187A (en) | 2017-10-09 | 2017-10-09 | Method, system and the relevant apparatus of asynchronous operation in a kind of statistics file system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710929968.6A CN107609187A (en) | 2017-10-09 | 2017-10-09 | Method, system and the relevant apparatus of asynchronous operation in a kind of statistics file system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107609187A true CN107609187A (en) | 2018-01-19 |
Family
ID=61067488
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710929968.6A Pending CN107609187A (en) | 2017-10-09 | 2017-10-09 | Method, system and the relevant apparatus of asynchronous operation in a kind of statistics file system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107609187A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1987803A (en) * | 2005-12-22 | 2007-06-27 | 国际商业机器公司 | Method and apparatus for managing event logs for processes in a digital data processing system |
CN104272271A (en) * | 2012-05-07 | 2015-01-07 | 密克罗奇普技术公司 | Processor device with instruction trace capabilities |
CN106445769A (en) * | 2015-08-11 | 2017-02-22 | 腾讯科技(深圳)有限公司 | Computer operation monitoring method, device and system |
CN106648847A (en) * | 2016-10-14 | 2017-05-10 | 郑州云海信息技术有限公司 | Asynchronous task management method and device in cloud computing operation system |
-
2017
- 2017-10-09 CN CN201710929968.6A patent/CN107609187A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1987803A (en) * | 2005-12-22 | 2007-06-27 | 国际商业机器公司 | Method and apparatus for managing event logs for processes in a digital data processing system |
CN104272271A (en) * | 2012-05-07 | 2015-01-07 | 密克罗奇普技术公司 | Processor device with instruction trace capabilities |
CN106445769A (en) * | 2015-08-11 | 2017-02-22 | 腾讯科技(深圳)有限公司 | Computer operation monitoring method, device and system |
CN106648847A (en) * | 2016-10-14 | 2017-05-10 | 郑州云海信息技术有限公司 | Asynchronous task management method and device in cloud computing operation system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU770289B2 (en) | Method and apparatus for concurrent DBMS table operations | |
CN106547612A (en) | A kind of multi-task processing method and device | |
US8832695B2 (en) | Method of scheduling jobs and information processing apparatus implementing same | |
JP4214712B2 (en) | Database page allocation processing method | |
EP2797014A1 (en) | Database update execution according to power management schemes | |
CN108197306A (en) | SQL statement processing method, device, computer equipment and storage medium | |
US7895185B2 (en) | Row-identifier list processing management | |
CN110018989A (en) | A kind of method and apparatus that snapshot compares | |
CN109240607B (en) | File reading method and device | |
US10013288B2 (en) | Data staging management system | |
CN110807145A (en) | Query engine acquisition method, device and computer-readable storage medium | |
CN107423110A (en) | A kind of virtual machine method of real-time and its device based on libvirt | |
CN107704507A (en) | Data base processing method and equipment | |
CN102841894A (en) | Data storage method of file allocation table | |
CN110209736A (en) | Device, method and the storage medium of block chain data processing | |
CN107632926B (en) | Service quantity statistical method, device, equipment and computer readable storage medium | |
CN107609187A (en) | Method, system and the relevant apparatus of asynchronous operation in a kind of statistics file system | |
CN101510156A (en) | Information system resource recovery method and device | |
CN101833585A (en) | Database server operation control system, method and device | |
CN107832455A (en) | A kind of data capture method of storage object, system, equipment and storage medium | |
CN104902089A (en) | Method for sequencing mobile terminal applications | |
CN103544302A (en) | Partition maintenance method and device of database | |
CN106775450B (en) | A kind of data distribution method in mixing storage system | |
CN110825528B (en) | Resource management method, device and equipment | |
CN102707956B (en) | Probabilistic method is returned results for the treatment of trigger |
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 |
Application publication date: 20180119 |
|
RJ01 | Rejection of invention patent application after publication |