CN107704328A - Client accesses method, system, device and the storage medium of file system - Google Patents
Client accesses method, system, device and the storage medium of file system Download PDFInfo
- Publication number
- CN107704328A CN107704328A CN201710929455.5A CN201710929455A CN107704328A CN 107704328 A CN107704328 A CN 107704328A CN 201710929455 A CN201710929455 A CN 201710929455A CN 107704328 A CN107704328 A CN 107704328A
- Authority
- CN
- China
- Prior art keywords
- file system
- client
- access task
- smb
- thread
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/5038—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/548—Queue
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of method that client accesses file system, including the SMB requests that client is sent are received, and SMB requests are discharged into the request queue of main thread according to time order and function order;Access task in SMB requests in the request queue of main thread is distributed to worker thread to handle access task.Compared to single thread treatment mechanism of the prior art, method provided in an embodiment of the present invention by access task by being distributed to multiple worker threads, realize while handle multiple access tasks, which greatly enhances the efficiency that client accesses file system, avoid because the stand-by period is long and caused by request data lose, so as to optimize Consumer's Experience.The invention also discloses system, device and the computer-readable recording medium that a kind of client accesses file system, equally with above-mentioned beneficial effect.
Description
Technical field
The present invention relates to computer realm, more particularly to the method, system, device of a kind of client access file system
And computer-readable recording medium.
Background technology
At present, the mechanism based on the information communication between SMB protocol processes client and server is all single thread queue
Mechanism, i.e., the SMB of client request is queued up, single thread handles the request in queue successively, only when having handled one
After request, next request could be handled.This mechanism is equivalent to a single-plank bridge, any request for outside access
All can only single thread by, the request so in queue is more, or be presently processing request processing time it is longer
In the case of, the follow-up request stand-by period is longer, not only the experience bad to user, it is also possible to causes request data to lose.
For example, in video monitoring scene, single channel video IO response timeouts can be caused, so as to be kicked out of queue, cause the road video counts
According to loss.
Therefore, how to improve the communication efficiency between client and server, avoid because the stand-by period is long and caused by
Request data is lost, and is those skilled in the art's technical issues that need to address.
The content of the invention
It is an object of the invention to provide a kind of client to access the method for file system, system, device and computer-readable
Storage medium, for improving the communication efficiency between client and server, avoid because the stand-by period is long and caused by ask
Loss of data.
In order to solve the above technical problems, the present invention provides a kind of method that client accesses file system, including:
The SMB requests that client is sent are received, and SMB requests are discharged into asking for main thread according to time order and function order
Ask queue;
It is described to handle that access task in SMB requests in the request queue of the main thread is distributed to worker thread
Access task.
Alternatively, the processing access task is specially:
After the worker thread receives the access task, the file system to be accessed in the access task is analyzed,
Generate corresponding file system interface call instruction;
The worker thread sends the file system interface call instruction to corresponding file system interface, to call
The file system interface, and the access task is completed by the file system interface.
Alternatively, it is described to be specifically included by the file system interface completion access task:
Check whether the caching of the file system interface in preset time hits the data of the access task;
If hit, the access task is completed;
If miss, OSD requests are created, the OSD is asked to send to the text by the file system interface
Part system is to complete the access task.
Alternatively, the SMB requests by the request queue of the main thread are distributed to worker thread, are specially:
SMB requests in the request queue of the main thread are distributed to the worker thread in a manner of poll.
Alternatively, the SMB requests by the request queue of the main thread are distributed to worker thread, are specially:
SMB requests in the request queue of the main thread are distributed to the worker thread in a manner of file is bound.
Alternatively, after the completion of the task, in addition to:
The file system returns to response message by the worker thread to the client.
Alternatively, in addition to:
When the quantity of the response message is more than or equal to threshold value, fluidic switch is opened to stop asking to arrange by the SMB
Enter the request queue of the main thread;
Accordingly, after the quantity of the response message is less than the threshold value, the fluidic switch is closed.
In order to solve the above technical problems, the present invention provides the device that a kind of client accesses file system, including:
Memory, the program of file system is accessed for storing client;
Processor, realize that the client described in any one as described above accesses the side of file system during for performing described program
The step of method.
It is described computer-readable to deposit in order to solve the above technical problems, the present invention provides a kind of computer-readable recording medium
Computer program is stored with storage media, the visitor described in any one as described above is realized when the computer program is executed by processor
Family end accesses the step of method of file system.
The method that client provided by the present invention accesses file system, including the SMB requests that client is sent are received, press
Time order and function order discharges into SMB requests the request queue of main thread;By the visit in the SMB requests in the request queue of main thread
The task of asking is distributed to worker thread to handle access task.Compared to single thread treatment mechanism of the prior art, the present invention carries
The method of confession realizes by the way that access task is distributed into multiple worker threads while handles multiple access tasks, this is carried significantly
High client accesses the efficiency of file system, avoid because the stand-by period is long and caused by request data lose, so as to optimize
Consumer's Experience.System, device and the computer-readable recording medium that client provided by the invention accesses file system are same
With above-mentioned beneficial effect, therefore repeat no more.
Brief description of the drawings
, below will be to embodiment or existing for the clearer explanation embodiment of the present invention or the technical scheme of prior art
The required accompanying drawing used is briefly described in technology description, it should be apparent that, drawings in the following description are only this hair
Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart for the method that the first client provided in an embodiment of the present invention accesses file system;
Fig. 2 is the corresponding flow chart that access task is handled in a kind of step S11 provided in an embodiment of the present invention;
Fig. 3 is to complete access task by file system interface in a kind of step S21 provided in an embodiment of the present invention to correspond to
Flow chart;
Fig. 4 is the flow chart for the method that second of client provided in an embodiment of the present invention accesses file system;
Fig. 5 is the flow chart for the method that the third client provided in an embodiment of the present invention accesses file system;
Fig. 6 is the schematic diagram for the system that a kind of client provided in an embodiment of the present invention accesses file system;
Fig. 7 is the schematic diagram for the device that a kind of client provided in an embodiment of the present invention accesses file system.
Embodiment
The core of the present invention is to provide communication means, system, device and computer between a kind of client and server
Readable storage medium storing program for executing, for improving the communication efficiency between client and server, avoid because the stand-by period is long and caused by
Request data is lost.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Fig. 1 is the flow chart for the method that the first client provided in an embodiment of the present invention accesses file system.Such as Fig. 1 institutes
Show, the method that client accesses file system includes:
S10:The SMB requests that client is sent are received, and SMB requests are discharged into asking for main thread according to time order and function order
Ask queue.
S11:Access task in SMB requests in the request queue of main thread is distributed into worker thread to access to handle
Task.
Because in the prior art, the mechanism based on the information communication between SMB protocol processes client and server is all
It is single thread queue mechanism, i.e., is queued up the SMB requests of client, single thread handles the request in queue successively, only
After a request has been handled, next request could be handled, this mechanism, which causes SMB, asks the stand-by period long to be asked
Topic, therefore method provided in an embodiment of the present invention adds multiple work on the basis of the request queue of original main thread
Thread, equivalent to the passage for adding processing request.
In specific implementation, for step S10, first start SMB services, when the SMB for receiving client is asked,
According to SMB ask caused by the order of time order and function SMB requests are discharged into the request queue of main thread, and from internal memory it is existing enter
A new process is replicated in journey, initializes IO thread pools;The data message of the SMB requests of main thread parsing client, by number
When being asked according to packet parsing for SMB2, distribution request by type.
For step S11, the mode of operation of each worker thread here equivalent to single thread of the prior art,
Only after a request has been handled, next request could be handled, and there is oneself independent request queue.Main thread processing
SMB service requests, the SMB requests that circular treatment client is sent neutralize the related data of client, read data message;If solution
After the SMB2 that analysis data message is obtained for accessing file system is asked, the parameter type in SMB2 requests is parsed, is such as established
Session, certification, reading and writing, read attribute, write attribute etc., (being probably to read to appoint so as to obtain the access task in SMB2 requests
Business, writing task or read-write task), start read-write requests processing procedure and handle the access task, create SMB in this process
Read/write requests, and the reply process to the request can be bound, i.e., asked for accessed file system to SMB read/write requests
Response;Main thread creates a distribution and asked, distribution request association asynchronous process control block, in the asynchronous process control block
Above-mentioned access task is contained, the content of the access task includes SMB read/write requests, the file system to be accessed, it is also possible to wrap
Include the worker thread to be distributed and ask for the request of response, this asynchronous process control block is then distributed to work by distribution policy
Make thread.Here distribution policy is not limited.After worker thread obtains the access task in asynchronous process control block, it will access
Task discharges into the request queue of oneself, and handles access task successively.
The method that the client that the embodiment of the present invention is provided accesses file system, including receive the SMB that client is sent
Ask, and SMB requests are discharged into the request queue of main thread according to time order and function order;By in the request queue of main thread
Access task in SMB requests is distributed to worker thread to handle access task.Compared to single thread of the prior art processing
Mechanism, method provided in an embodiment of the present invention are realized while handled more by the way that access task is distributed into multiple worker threads
Individual access task, which greatly enhances client access file system efficiency, avoid because the stand-by period is long and caused by please
Loss of data is asked, so as to optimize Consumer's Experience.
Fig. 2 is the corresponding flow chart that access task is handled in a kind of step S11 provided in an embodiment of the present invention.Such as Fig. 2
Shown, on the basis of above-mentioned specific embodiment, in another embodiment, in step S11, processing access task specifically includes:
S20:After worker thread receives access task, the file system to be accessed in access task is analyzed, generation is corresponding
File system interface call instruction.
S21:Worker thread sends file system interface call instruction to corresponding file system interface, to call file
System interface, and access task is completed by file system interface.
In specific implementation, for step S20, it has been noted that worker thread is handled successively in upper one embodiment
Access task, the content of the access task includes the file system to be accessed, therefore worker thread handles the access task, first
The file system to be accessed in access task is analyzed, then generates corresponding file system interface call instruction, file calls
The particular content in the information and access task of client can be included in instruction.
For step S21, worker thread sends file system interface call instruction to corresponding file system interface
Mouthful, the connection of client and this document system is established, so as to realize access of the client to server, completes access task.
Fig. 3 is to complete access task by file system interface in a kind of step S21 provided in an embodiment of the present invention to correspond to
Flow chart.As shown in figure 3, on the basis of above-mentioned specific embodiment, in another embodiment, pass through file in step S21
System interface is completed access task and specifically included:
S30:Check preset time in file system interface caching whether the data of hit access task, if hit,
Into step S31;If miss, into step S32.
S31:Access task is completed.
S32:OSD requests are created, OSD are asked to send to corresponding file system by file system interface, so as to complete
Into the task of access.
It should be noted that in step s 30, if miss, step S32 is performed, until task is completed;If hit,
Then illustrate that access task is completed;Therefore, execution of step S32 is equivalent to entering step S31.
In specific implementation, preset time can be that user is set or system default is set.If file system
The data of the cache hit task of interface, file system can obtain the data in the buffer;It is if miss, it is necessary to pass through OSD
The connection of client and file system is directly established in request, so as to complete access task.In this process, for client
It is imperceptible delay.
The method that client provided in an embodiment of the present invention accesses file system, for worker thread and file system interface
Establish the different situations that can be potentially encountered during connection and be provided with different strategies, therefore different situations can be tackled, make user's
It is more smooth to access experience.
On the basis of above-mentioned specific embodiment, in another embodiment, the request queue by main thread in step S11
In SMB requests be distributed to worker thread and be specially:
SMB requests in the request queue of main thread are distributed to worker thread in a manner of poll.
A kind of distribution policy of main thread is present embodiments provided, the SMB in the request queue of main thread is asked to take turns
The mode of inquiry is distributed to worker thread, i.e., is fifty-fifty distributed to the SMB requests in the request queue of main thread in certain sequence
Each worker thread.
On the basis of above-mentioned specific embodiment, in another embodiment, the request queue by main thread in step S11
In SMB requests be distributed to worker thread and be specially:
SMB requests in the request queue of main thread are distributed to worker thread in a manner of file is bound.
Present embodiments provide the distribution policy of another main thread, by the request queue of main thread SMB ask with
The mode of file binding is distributed to worker thread, you can is used to handle certain one kind request to set some worker thread, by main line
This one kind request in the request queue of journey is distributed to the worker thread of this setting.
Fig. 4 is the flow chart for the method that second of client provided in an embodiment of the present invention accesses file system.Such as Fig. 4 institutes
Show, on the basis of the method that the first client provided in an embodiment of the present invention accesses file system, client accesses file
The method of system also includes:
S40:After the completion of access task, file system returns to response message to client.
It should be noted that only in a client accesses the access task of file system, step S40 is finally to perform
's.
In specific implementation, in order that whole communication process is more smooth, after the completion of access task, file system is to visitor
Family end returns to response message.Moreover, if the content of the task of access includes asking for the request of response, completed in the task of access
Afterwards, response message is returned to greater need for file system interface.After the completion of access task, worker thread returns asynchronous process control block
Main thread is back to, new access task is write the asynchronous process control block by main thread, and starts reply process task, by response
Message is back to client.
The method that client provided in an embodiment of the present invention accesses file system, by after the completion of task, file system
Response message is returned to client, facilitates client to carry out follow-up operation.
Fig. 5 is the flow chart for the method that the third client provided in an embodiment of the present invention accesses file system.Such as Fig. 5 institutes
Show, on the basis of the method that second of client provided in an embodiment of the present invention accesses file system, client accesses file
The method of system also includes:
S50:When the quantity of response message is more than or equal to threshold value, fluidic switch is opened to stop SMB requests discharging into master
The request queue of thread;Accordingly, after the quantity of response message is less than threshold value, closing flow control switch.
It should be noted that step S50 does not have ordinal relation with other steps.
In order to prevent the SMB requests from client and the response message from file system to be blocked in request queue,
The threshold value of the quantity of response message can be set according to the processing speed of main thread and worker thread, and start a monitor task
For monitoring the quantity of response message, fluidic switch is opened when the quantity of response message exceeds threshold value, in the number of response message
Closing flow control switch when amount is reduced to below threshold value, continue to the SMB requests from client.
The method that client provided in an embodiment of the present invention accesses file system, client is controlled by fluidic switch
Request queue of the SMB requests into main thread, it is ensured that system handles nonoverload, and then the reliability of lifting system, stably
Property it is smooth with data.
Client as detailed above accesses each embodiment corresponding to the method for file system, on this basis, the present invention
Also disclose system corresponding with the above method.
Fig. 6 is the schematic diagram for the system that a kind of client provided in an embodiment of the present invention accesses file system.Such as Fig. 6 institutes
Show, the system that client accesses file system includes:
Receiving unit 601, SMB is asked to arrange for receiving the SMB requests of client transmission, and according to time order and function order
Enter in the request queue of main thread;
Asynchronous process control unit 602, for the access task distribution in the SMB requests in the request queue by main thread
To worker thread to handle access task.
Because the embodiment of components of system as directed and the embodiment of method part are mutually corresponding, therefore the embodiment of components of system as directed please
Referring to the description of the embodiment of method part, wouldn't repeat here.
The system that the client that the embodiment of the present invention is provided accesses file system, including receiving unit, for receiving visitor
The SMB requests that family end is sent, and discharge into SMB requests in the request queue of main thread according to time order and function order;Asynchronous process
Control unit, it is distributed to worker thread for the access task in the SMB requests in the request queue by main thread and is visited with handling
Ask task.Compared to single thread treatment mechanism of the prior art, system provided by the invention is by by the request team of main thread
SMB requests in row are distributed to multiple worker threads, realize while handle multiple requests, which greatly enhances client access
The efficiency of file system, avoid because the stand-by period is long and caused by request data lose, so as to optimize Consumer's Experience.
Client as detailed above accesses each embodiment corresponding to the method and system of file system, on this basis,
The invention also discloses device corresponding with the above method.
Fig. 7 is the schematic diagram for the device that a kind of client provided in an embodiment of the present invention accesses file system.Such as Fig. 7 institutes
Show, the device 700 that client accesses file system can produce bigger difference because configuration or performance are different, can include one
Individual or more than one processor (central processing units, CPU) 710 is (for example, one or more are handled
Device) and memory 720, one or more storage application programs 733 or data 732 storage medium 730 (such as one or
More than one mass memory unit).Wherein, memory 720 and storage medium 730 can be of short duration storage or persistently storage.Deposit
The program stored up in storage medium 730 can include one or more units (diagram does not mark), and each unit can include
The series of instructions accessed client in the device 700 of file system operates.Further, processor 710 can be set
To be communicated with storage medium 730, accessed in client a series of in execution storage medium 730 on the device 700 of file system
Command operating.
The device 700 that client accesses file system can also include one or more power supplys 740, one or one
Above wired or wireless network interface 750, one or more input/output interfaces 760, and/or, one or more
Operating system 731, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Knot of the step as shown in device based on the Fig. 7 in above-mentioned Fig. 1 to the method for the software performance test described by Fig. 5
Structure is realized.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description
And the specific work process of computer-readable recording medium, the corresponding process in preceding method embodiment is may be referred to, herein not
Repeat again.
In several embodiments provided herein, it should be understood that disclosed method, system, device and calculating
Machine readable storage medium storing program for executing, it can realize by another way.For example, device embodiment described above is only schematic
, for example, the division of unit, only a kind of division of logic function, can there is other dividing mode when actually realizing, such as
Multiple units or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device
Or INDIRECT COUPLING or the communication connection of unit, can be electrical, mechanical or other forms.The unit illustrated as separating component
It can be or may not be physically separate, can be as the part that unit is shown or may not be physics list
Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs
In some or all of unit realize the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can
To be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the application substantially or
Saying all or part of the part to be contributed to prior art or the technical scheme can be embodied in the form of software product
Out, the computer software product is stored in a storage medium, including some instructions are causing a computer equipment
(can be personal computer, funcall device, or network equipment etc.) performs the whole of each embodiment method of the application
Or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read-Only Memory,
ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. are various can be with storage program
The medium of code.
Method, system, device and the computer for accessing a kind of client provided by the present invention file system above can
Storage medium is read to be described in detail.Each embodiment is described by the way of progressive in specification, each embodiment emphasis
What is illustrated is all the difference with other embodiment, between each embodiment identical similar portion mutually referring to.For
For device disclosed in embodiment, because it is corresponded to the method disclosed in Example, so description is fairly simple, correlation
Place is referring to method part illustration.It should be pointed out that for those skilled in the art, this hair is not being departed from
On the premise of bright principle, some improvement and modification can also be carried out to the present invention, these are improved and modification also falls into power of the present invention
In the protection domain that profit requires.
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 (10)
1. a kind of method that client accesses file system, it is characterised in that including:
The SMB requests that client is sent are received, and SMB requests are discharged into the request team of main thread according to time order and function order
Row;
Access task in SMB requests in the request queue of the main thread is distributed to worker thread to handle the access
Task.
2. according to the method for claim 1, it is characterised in that the processing access task is specially:
After the worker thread receives the access task, the file system to be accessed in the access task is analyzed, is generated
Corresponding file system interface call instruction;
The worker thread sends the file system interface call instruction to corresponding file system interface, with described in calling
File system interface, and the access task is completed by the file system interface.
3. according to the method for claim 2, it is characterised in that described that the access is completed by the file system interface
Task specifically includes:
Check whether the caching of the file system interface in preset time hits the data of the access task;
If hit, the access task is completed;
If miss, OSD requests are created, the OSD is asked to send to the file system by the file system interface
Unite to complete the access task.
4. according to the method for claim 1, it is characterised in that the SMB by the request queue of the main thread please
Ask and be distributed to worker thread, be specially:
SMB requests in the request queue of the main thread are distributed to the worker thread in a manner of poll.
5. according to the method for claim 1, it is characterised in that the SMB by the request queue of the main thread please
Ask and be distributed to worker thread, be specially:
SMB requests in the request queue of the main thread are distributed to the worker thread in a manner of file is bound.
6. according to the method for claim 1, it is characterised in that after the completion of the access task, in addition to:
The file system returns to response message to the client.
7. according to the method for claim 6, it is characterised in that also include:
When the quantity of the response message is more than or equal to threshold value, fluidic switch is opened to stop SMB requests discharging into institute
State the request queue of main thread;
Accordingly, after the quantity of the response message is less than the threshold value, the fluidic switch is closed.
A kind of 8. system that client accesses file system, it is characterised in that including:
Receiving unit, SMB requests are discharged into for receiving the SMB requests of client transmission, and according to time order and function order
In the request queue of main thread;
Asynchronous process control unit, for the access task in the SMB requests in the request queue of the main thread to be distributed to
Worker thread is to handle the access task.
9. a kind of client accesses the device of file system, it is characterised in that including:
Memory, the program of file system is accessed for storing client;
Processor, the client access file system as described in any one of claim 1 to 7 is realized during for performing described program
Method the step of.
10. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium
Program, realize that the client as described in any one of claim 1 to 7 accesses file when the computer program is executed by processor
The step of method of system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710929455.5A CN107704328A (en) | 2017-10-09 | 2017-10-09 | Client accesses method, system, device and the storage medium of file system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710929455.5A CN107704328A (en) | 2017-10-09 | 2017-10-09 | Client accesses method, system, device and the storage medium of file system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107704328A true CN107704328A (en) | 2018-02-16 |
Family
ID=61184686
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710929455.5A Pending CN107704328A (en) | 2017-10-09 | 2017-10-09 | Client accesses method, system, device and the storage medium of file system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107704328A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110515706A (en) * | 2019-08-16 | 2019-11-29 | 苏州浪潮智能科技有限公司 | A kind of request processing method, device, equipment and readable storage medium storing program for executing |
CN112395076A (en) * | 2019-08-15 | 2021-02-23 | 阿里巴巴集团控股有限公司 | Network data processing method, equipment and storage medium |
CN113032829A (en) * | 2021-03-26 | 2021-06-25 | 山东英信计算机技术有限公司 | Multichannel concurrent file authority management method, device, server and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104572277A (en) * | 2014-12-17 | 2015-04-29 | 大唐移动通信设备有限公司 | Thread flow control method and thread flow control device |
CN105353987A (en) * | 2015-11-13 | 2016-02-24 | 曙光信息产业股份有限公司 | File processing method and device |
CN106161503A (en) * | 2015-03-27 | 2016-11-23 | 中兴通讯股份有限公司 | File reading in a kind of distributed memory system and service end |
US20160378712A1 (en) * | 2015-06-23 | 2016-12-29 | International Business Machines Corporation | Lock-free processing of stateless protocols over rdma |
-
2017
- 2017-10-09 CN CN201710929455.5A patent/CN107704328A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104572277A (en) * | 2014-12-17 | 2015-04-29 | 大唐移动通信设备有限公司 | Thread flow control method and thread flow control device |
CN106161503A (en) * | 2015-03-27 | 2016-11-23 | 中兴通讯股份有限公司 | File reading in a kind of distributed memory system and service end |
US20160378712A1 (en) * | 2015-06-23 | 2016-12-29 | International Business Machines Corporation | Lock-free processing of stateless protocols over rdma |
CN105353987A (en) * | 2015-11-13 | 2016-02-24 | 曙光信息产业股份有限公司 | File processing method and device |
Non-Patent Citations (2)
Title |
---|
[美]萨伯等著: "《samba开发使用手册》", 31 March 2001 * |
钱渊: "《现代交换技术》", 30 November 2014, 北京邮电大学出版社 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112395076A (en) * | 2019-08-15 | 2021-02-23 | 阿里巴巴集团控股有限公司 | Network data processing method, equipment and storage medium |
CN110515706A (en) * | 2019-08-16 | 2019-11-29 | 苏州浪潮智能科技有限公司 | A kind of request processing method, device, equipment and readable storage medium storing program for executing |
CN110515706B (en) * | 2019-08-16 | 2022-07-08 | 苏州浪潮智能科技有限公司 | Request processing method, device, equipment and readable storage medium |
CN113032829A (en) * | 2021-03-26 | 2021-06-25 | 山东英信计算机技术有限公司 | Multichannel concurrent file authority management method, device, server and medium |
CN113032829B (en) * | 2021-03-26 | 2022-06-10 | 山东英信计算机技术有限公司 | Multichannel concurrent file authority management method, device, server and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10664169B2 (en) | Performance of object storage system by reconfiguring storage devices based on latency that includes identifying a number of fragments that has a particular storage device as its primary storage device and another number of fragments that has said particular storage device as its replica storage device | |
CA2898053C (en) | Deep packet inspection method, device, and coprocessor | |
US10747451B2 (en) | Auto allocation of storage system resources to heterogeneous categories of resource consumer | |
US10275345B2 (en) | Application experiment system | |
US20050154576A1 (en) | Policy simulator for analyzing autonomic system management policy of a computer system | |
US20120198254A1 (en) | Capping power consumption in a data storage system | |
CN105487987B (en) | A kind of concurrent sequence of processing reads the method and device of IO | |
US20110313752A2 (en) | Electronic data store | |
CN108874324B (en) | Access request processing method, device, equipment and readable storage medium | |
CN107704328A (en) | Client accesses method, system, device and the storage medium of file system | |
KR101719500B1 (en) | Acceleration based on cached flows | |
US11102322B2 (en) | Data processing method and apparatus, server, and controller | |
US10176125B2 (en) | Dynamically adjusting read data return sizes based on interconnect bus utilization | |
WO2021093365A1 (en) | Gpu video memory management control method and related device | |
CN104702592A (en) | Method and device for downloading stream media | |
EP3369238B1 (en) | Method, apparatus, computer-readable medium and computer program product for cloud file processing | |
US8938634B2 (en) | User generated data center power savings | |
CN108363649A (en) | A kind of method and device of distribution statistical log visit capacity | |
CN111885667B (en) | Network resource allocation method and system | |
WO2021128897A1 (en) | Method, apparatus and device for creating thick-provisioned volume, and medium | |
CN103095833B (en) | Cloud service system update method and device | |
CN107239572A (en) | The data cache method and device of a kind of storage management software | |
CN104349506A (en) | Association management method, wireless access device and system | |
CN107040509A (en) | A kind of file transmitting method and device | |
CN106815250A (en) | A kind of method for sending data, data server and server |
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: 20180216 |
|
RJ01 | Rejection of invention patent application after publication |