CN108628550A - A kind of method, apparatus and system of reading disk mapped file - Google Patents
A kind of method, apparatus and system of reading disk mapped file Download PDFInfo
- Publication number
- CN108628550A CN108628550A CN201810403771.3A CN201810403771A CN108628550A CN 108628550 A CN108628550 A CN 108628550A CN 201810403771 A CN201810403771 A CN 201810403771A CN 108628550 A CN108628550 A CN 108628550A
- Authority
- CN
- China
- Prior art keywords
- file
- read
- disk
- fileinfo
- reading
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
- G06F3/0611—Improving I/O performance in relation to response time
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0674—Disk device
- G06F3/0676—Magnetic disk device
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of methods of reading disk mapped file, including:It is acted according to the Disk Mapping file operation of acquisition, determines pre-read fileinfo;Pre-read fileinfo is sent to destination end, so that destination end reads corresponding target disk mapped file according to pre-read fileinfo;The target disk mapped file that caching of target end is sent;When initiating Disk Mapping File read operation, corresponding target disk mapped file is read from caching;This method passes through pre-read target disk mapped file, it is deposited into local terminal, it can directly be read from local terminal caching subsequently in reading disk mapped file, to reduce the number for the network I/O Request for reading data from Disk Mapping file, file transfer speed is promoted, and then improves Disk Mapping file reading speed.The invention also discloses a kind of device, system and the computer readable storage mediums of reading disk mapped file, have above-mentioned advantageous effect.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method, apparatus, the system of reading disk mapped file
And computer readable storage medium.
Background technology
Currently, when accessing Disk Mapping file, the operation all to Disk Mapping file, which is required for issuing network I/O, asks
It asks, and the delay of each network I/O Request can seriously affect the reading speed of Disk Mapping file.Especially for multiple small
The reading of file or single mass file needs the network I/O Request in terms of ten thousand to complete the reading of associative disk mapped file
It takes, the delay each asked can seriously affect the reading speed of Disk Mapping file.Wherein, Disk Mapping is a kind of by target
The physical disk at end (such as client computer) is mapped to application end (such as virtual machine), so that the latter can directly use the former physics
The technology of magnetic disk media.
Therefore, transmission speed when reading disk mapped file how is promoted, is that those skilled in the art need to solve
Technical problem.
Invention content
The object of the present invention is to provide a kind of method, apparatus of reading disk mapped file, system and computer-readable deposit
Storage media can reduce the number for the network I/O Request for reading data from Disk Mapping file, promote file transfer speed, into
And improve Disk Mapping file reading speed.
In order to solve the above technical problems, the present invention provides a kind of method of reading disk mapped file, the method includes:
It is acted according to the Disk Mapping file operation of acquisition, determines pre-read fileinfo;
The pre-read fileinfo is sent to destination end, so that the destination end is according to the pre-read fileinfo
Read corresponding target disk mapped file;
Cache the target disk mapped file that the destination end is sent;
When initiating Disk Mapping File read operation, corresponding target disk mapped file is read from caching.
Optionally, it is acted according to the Disk Mapping file operation of acquisition, determines pre-read fileinfo, including:
It is acted according to the Disk Mapping file operation of acquisition, determines the action type of Disk Mapping file;
When the action type be small file operation when, then using the corresponding listed files information of the small file operation as
Pre-read fileinfo;
When the action type is big file operation, then the sector that will be operated in the corresponding file of the big file operation
Information is as pre-read fileinfo.
Optionally, the acquisition modes of the Disk Mapping file operation action, including:
Monitor whether that there are Disk Mapping file operation actions in real time using monitoring programme;
If in the presence of the Disk Mapping file operation action is obtained.
The present invention also provides a kind of device of reading disk mapped file, described device includes:
Pre-read fileinfo acquisition module determines pre-read for being acted according to the Disk Mapping file operation of acquisition
Fileinfo;
Sending module, for the pre-read fileinfo to be sent to destination end, so that the destination end is according to
Pre-read fileinfo reads corresponding target disk mapped file;
Cache module, the target disk mapped file sent for caching the destination end;
File read module, for when initiating Disk Mapping File read operation, corresponding target to be read from caching
Disk Mapping file.
Optionally, the pre-read fileinfo acquisition module, including:
Action type determination unit determines Disk Mapping file for being acted according to the Disk Mapping file operation of acquisition
Action type;
Pre-read fileinfo acquiring unit is used for when the action type is small file operation, then by the small text
Part operates corresponding listed files information as pre-read fileinfo;When the action type is big file operation, then will
The sector auxiliary information operated in the corresponding file of the big file operation is as pre-read fileinfo.
Optionally, the pre-read fileinfo acquisition module further includes:
Disk Mapping file operation acts acquiring unit, for monitoring whether that there are Disk Mappings in real time using monitoring programme
File operation acts;If in the presence of the Disk Mapping file operation action is obtained.
The present invention also provides a kind of system of reading disk mapped file, the system comprises:
Application end acts according to the Disk Mapping file operation of acquisition for processor, determines pre-read fileinfo;It will
The pre-read fileinfo is sent to destination end;Cache the target disk mapped file;It is read when initiating Disk Mapping file
When extract operation, corresponding target disk mapped file is read from caching;
The destination end, for reading corresponding target disk mapped file according to the pre-read fileinfo, and by institute
It states target disk mapped file and is sent to the application end.
Optionally, the application end is specifically used for being acted according to the Disk Mapping file operation of acquisition, determines Disk Mapping
The action type of file;When the action type is small file operation, then by the corresponding listed files of the small file operation
Information is as pre-read fileinfo;It is when the action type is big file operation, then the big file operation is corresponding
The sector auxiliary information operated in file is as pre-read fileinfo.
Optionally, the destination end is specifically used for being sent to the application after compressing the target disk mapped file
End.
The present invention also provides a kind of computer readable storage medium, calculating is stored on the computer readable storage medium
Machine program, the computer program realize the step of the method for reading disk mapped file as described above when being executed by processor
Suddenly.
A kind of method of reading disk mapped file provided by the present invention, including:According to the Disk Mapping file of acquisition
Operational motion determines pre-read fileinfo;Pre-read fileinfo is sent to destination end, so that destination end is according to pre-read
Fileinfo reads corresponding target disk mapped file;The target disk mapped file that caching of target end is sent;When initiation disk
When mapped file read operation, corresponding target disk mapped file is read from caching.
As it can be seen that this method is deposited into local terminal by pre-read target disk mapped file, subsequently reflected in initiation disk
Can corresponding target disk mapped file directly be read from local terminal caching when penetrating File read operation, to reduce from disk
The number that the network I/O Request of corresponding target disk mapped file is read in mapped file promotes Disk Mapping file transmission speed
Degree, and then improve Disk Mapping file reading speed.The present invention also provides a kind of device of reading disk mapped file, it is
System and computer readable storage medium have above-mentioned advantageous effect, and details are not described herein.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
The flow chart of the method for the reading disk mapped file that Fig. 1 is provided by the embodiment of the present invention;
The process schematic of the method for the specific reading disk mapped file that Fig. 2 is provided by the embodiment of the present invention;
The time diagram of the method for the specific reading disk mapped file that Fig. 3 is provided by the embodiment of the present invention;
The structure diagram of the device for the reading disk mapped file that Fig. 4 is provided by the embodiment of the present invention;
The structure diagram of the system for the reading disk mapped file that Fig. 5 is provided by the embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Each embodiment can be adapted for any network scenarios in the application.Such as LAN scene or wide area network scene.
The one end for reading target disk mapped file will be needed to be known as application end in each embodiment in the application, target disk is provided and is reflected
The one end for penetrating file is referred to as destination end.Destination end and application end are not defined (such as in each embodiment in the application
Application end and destination end can correspond to physical machine and virtual machine or virtual machine and virtual machine or physical machine and physical machine or void
Quasi- machine and physical machine), it is defined into without the operating system to destination end and application end.Such as the operating system of destination end and
The operating system of application end can be isomery.Wherein, virtual machine (VM) is simulated by software, has complete hardware system
System function, operate in complete computer in a completely isolated environment.Physical machine such as client computer, i.e., dedicated for
The terminal device of access of virtual machine, client computer include individual physics PC and thin terminal.
In the prior art when accessing Disk Mapping file, the operation all to Disk Mapping file is required for issuing network
I/O Request, and the delay of each network I/O Request can seriously affect the reading speed of Disk Mapping file.Below with application end
It is respectively to illustrate the process of reading disk mapped file for virtual machine and physical machine such as client with destination end.Wherein, virtually
Machine passes through VDI technology access clients.VDI (VirtualDesktop Infrastructure, virtual desktop architecture) is logical
The server crossed in data center runs desktop operating system, the transport protocol that user passes through client device (client computer or PC)
Long-range desktop is attached with these so that it is like to access traditional local desktop that user, which accesses their desktop,.
I.e. in the case where virtualizing scene, Disk Mapping is realized using RPC technologies, and the substantially operating process of file is transmitted such as from Disk Mapping
Under:
1, the API that virtual machine call (such as application call) operating system provides initiates associated documents read request.
2, virtual machine kernel driving is packaged API operations, and is packaged into internet message and is sent to client computer.
3, client resolves (such as Agent parsing) message and relevant API is called, reads local disk file, so
After compressed.
4, compressed data are packaged into message and return to virtual machine by client computer.
5, virtual machine receives (such as application program reception) message and is decompressed to related data, completes API Calls.
Wherein, RPC (Remote Procedure Call, remote procedure call) be it is a kind of by network from remote computation
Service is asked in machine program, the agreement without understanding underlying network technology.API(Application Programming
Interface, application programming interface) refer to the service interface function that operating system is supplied to application program.Aforesaid way
In, in virtual machine when reading disk mapped file, all requests operation of Disk Mapping file is required in client
It is completed under machine interaction scenario.Reading for multiple small documents or single mass file needs the request in terms of ten thousand to complete
The reading of associated documents.I.e. for the reading of file in Disk Mapping, virtual machine may generate largely within the short time
Read request, these requests must all be completed by network and client interaction.The delay of each read request data or number of request
The speed of Disk Mapping file read-write can be all influenced according to the delay of network transmission.The present embodiment can be reduced and be read from Map Disk
The network I/O for evidence of fetching asks number, promotes Disk Mapping file transfer speed.Specifically referring to FIG. 1, Fig. 1 is present invention implementation
The flow chart of the method for the reading disk mapped file that example is provided;The executive agent of this method is application end, and detailed process can
To include:
S100, it is acted according to the Disk Mapping file operation of acquisition, determines pre-read fileinfo;
The purpose of the step is currently to be acted to Disk Mapping file operation according to application end, determines that pre-read file is believed
Breath.The fileinfo for needing to read in the future is obtained currently to Disk Mapping file operation according to application end.Subsequent step is main
Purpose is to need the corresponding Disk Mapping file of fileinfo i.e. pre-read fileinfo read as target using following in advance
Disk Mapping file reads application end in advance.It can be directly from answering when application end is actually needed and reads the Disk Mapping file
Corresponding target disk mapped file is read with end, without obtaining target disk in real time from destination end using network I/O Request
Mapped file.To reduce the number for the network I/O Request for reading data from the Disk Mapping file of destination end, file is promoted
Transmission speed, and then improve Disk Mapping file reading speed.
The present embodiment does not limit the concrete mode of the Disk Mapping file operation action of acquisition and obtains frequency, such as can
Be using monitoring programme (plug-in unit installed in such as application end) identification application end application file read operation judges its
Whether acted comprising Disk Mapping file operation.The Disk Mapping file operation action of corresponding acquisition can be according to default week
Phase carries out, and can also be real-time execution.Optionally, it is dynamic to monitor whether that there are Disk Mapping file operations in real time using monitoring programme
Make;If in the presence of Disk Mapping file operation action is obtained.The present embodiment can determine pre-read in time by monitoring in real time
Fileinfo, and then ensure to be promoted the reading speed of Disk Mapping file when application end executes File read operation every time
Degree.I.e. by identifying the operation that application end application file is read in monitoring programme, it would be desirable to the pre- read buffer of file of reading
To application end;When application end application program reading disk mapped file, directly corresponding mesh is read from application end caching
Disk Mapping file data is marked, to reduce the network I/O request number for reading data from Map Disk, promotes Disk Mapping
File transfer speed.
The content of specific Disk Mapping file operation action is not defined in the present embodiment, and then does not limit tool
The slave Disk Mapping file operation action of body determines the content of the pre-read fileinfo rule of correspondence.Such as when Disk Mapping file
When operational motion is in the presence of the instruction for accessing fileinfo, it can determine that it subsequently needs to access by the particular content of the instruction
File information data, and then can determine pre-read fileinfo.Such as when the current instruction of application end is if so, obtaining the
One file, corresponding pre-read fileinfo are the first file.The content even currently executed instruction includes subsequently to need to access
Fileinfo when corresponding pre-read fileinfo determined according to the content currently executed instruction.When Disk Mapping file operation
When action is obtains some file, some fileinfo can be determined by the particular content of the instruction, and then can be true
Fixed fileinfo associated with some file is as pre-read fileinfo.Such as when the current instruction of application end is to obtain the
One file, corresponding pre-read fileinfo are the file for having serial relation with the first file.Pass through the text of current accessed
Part information estimates the fileinfo for subsequently needing to access as pre-read fileinfo.
Optionally, it is acted according to the Disk Mapping file operation of acquisition, determines that pre-read fileinfo may include:
It is acted according to the Disk Mapping file operation of acquisition, determines the action type of Disk Mapping file;
When action type is small file operation, then using the corresponding listed files information of small file operation as pre-read text
Part information;
When action type be big file operation when, then using the sector auxiliary information operated in the corresponding file of big file operation as
Pre-read fileinfo.
Wherein, the small documents defined in the present embodiment and big file are carried out according to the size of the corresponding data volume of file
It divides.When the data volume of file is more than data threshold, this document is big file, when the data volume of file is less than data threshold
When this document be small documents.For example, as data threshold 500KB, the file of 300KB sizes is small documents, the text of 1MB sizes
Part is big file.The present embodiment does not limit the concrete numerical value of data threshold, and concrete numerical value can be according to user according to certainly
Body application scenarios are set or are changed.
Specifically, application end (monitoring programme of such as application end) obtains Disk Mapping file operation action:If it is from magnetic
Multiple small documents are read in disk mapping, then plug-in unit gets the listed files for needing to read;If it is reading single big file,
So obtain the sector auxiliary information operated in file.Wherein, listed files information can be the small text of the corresponding whole of small file operation
Part composition listed files information, can also be the corresponding small documents of small file operation and with these small documents it is relevant other
Small documents collectively constitute listed files information.The present embodiment does not limit other relevant small documents and establishes rules then really, such as can
Being determined by the internal association between file.The corresponding entire big text of sector auxiliary information, that is, big file operation operated in file
Space, that is, sector auxiliary information corresponding to part.
The present embodiment can be in advance by the either big file behaviour of other corresponding small documents of small file operation by the operation
Make the alternative document information in corresponding big file and from destination end be cached to application end in advance, does not make application end in actual use not
It needs to issue the corresponding file of network I/O acquisition request to destination end in real time again.
S110, pre-read fileinfo is sent to destination end, so that destination end is according to the reading pair of pre-read fileinfo
Answer target disk mapped file;
Specifically, the pre-read fileinfo subsequently needed is sent to destination end, obtained in advance from destination end corresponding
Target disk mapped file.Application end can be driven by kernel proxy pre-read fileinfo being sent to target under normal conditions
End.For the accuracy and reliability that pre-read fileinfo is sent, pre-read fileinfo can be carried out in the present embodiment
Destination end is sent to after encapsulation.
Destination end reads the corresponding target disk of pre-read fileinfo according to the pre-read fileinfo of reception and maps text
Part.Further, it when what is received is the data packet after encapsulating, needs to parse data packet, obtains pre-reading after parsing
Fileinfo is taken, and then gets the information and reading disk data for needing reading disk according to pre-read fileinfo, is obtained
Corresponding target disk mapped file.It needs to send it to application end after destination end gets target disk mapped file.
Further, it in order to improve data transmission efficiency, is sent after being compressed target disk mapped file using compress technique
To application end.The present embodiment does not limit specific compress mode.
The target disk mapped file that S120, caching of target end are sent;
Specifically, the target disk mapped file received is saved in caching by application end.Further, work as target disk
When mapped file is compressed data, decompression operations are first carried out, are cached by the target disk mapped file after decompression.
Decompression operations are corresponding with squeeze operation at this time.
S130, when initiating Disk Mapping File read operation, corresponding target disk mapped file is read from caching.
Specifically, when application end initiates Disk Mapping File read operation, application end is directly read from local terminal caching
Corresponding target disk mapped file need not send network I/O Request to destination end.It can see the present embodiment only
It needs to send primary network I/O Request to destination end after determining pre-read fileinfo, need not need to read text every time
Primary network I/O Request will be sent when part to destination end.And then it reduces the corresponding target disk of the reading from Disk Mapping file and reflects
The number of the network I/O Request of file is penetrated, Disk Mapping file transfer speed is promoted, and then improves the reading of Disk Mapping file
Speed.
Referring to FIG. 2, below by application end and destination end be respectively virtual machine and physical machine (in figure by taking client computer as an example)
Operating process as illustrated the present embodiment for client.
1, the monitoring programme (such as virtual machine plug-in unit) of virtual machine obtains Disk Mapping file operation action, and then determination is pre-read
Take fileinfo;Wherein, if pre-read fileinfo is specially to read multiple small documents from Disk Mapping, then getting needs
The listed files to be read is as pre-read fileinfo;If reading single big file, then obtaining the sector operated in file
Information is as pre-read fileinfo.
2, the encapsulation of pre-read fileinfo is sent to Client Agent by the kernel proxy driving of virtual machine.
3, the optimization layer of client parses data packet, gets the information for needing reading disk and reading disk data conduct
Target disk mapped file.
4, the optimization layer of client uses compress technique, is compressed to target disk mapped file;It is then sent to generation
Manage layer.
5, the Agent layer of client transmits data to the optimization layer of virtual machine, and the optimization layer of virtual machine delays data
It deposits.
6, the application program of virtual machine initiates File read operation.
7, the target disk of reading virtual machine reflects the kernel proxy layer of virtual machine directly from the optimization layer of virtual machine caching
Penetrate file.
Disk Mapping file operation action is identified by virtual machine plug-in unit, gets the file for the Map Disk for needing to read
Target disk mapped file is read virtual machine caching by list and sector auxiliary information in advance according to listed files and sector auxiliary information;
Virtual machine application read target disk mapped file when directly from the optimization layer of virtual machine read, reduce reading when
Between.
The transmission operation of entire Disk Mapping file is divided into two parts:The first, target disk mapped file pre-reads and caches;
The second, the application program of application end reads target disk mapped file from caching.Correlation timing figure please refers to Fig.3.Fig. 3 Chinese
The identification of part read action is the acquisition of Disk Mapping file operation action.
Based on the above-mentioned technical proposal, the method for reading disk mapped file provided in an embodiment of the present invention, this method pass through
Pre-read target disk mapped file, is deposited into local terminal, subsequently can be straight when initiating Disk Mapping File read operation
It connects and reads corresponding target disk mapped file from local terminal caching, corresponding target is read from Disk Mapping file to reduce
The number of the network I/O Request of Disk Mapping file promotes Disk Mapping file transfer speed, and then greatly improves disk and reflect
Penetrate file reading speed.
Below to device, system and the computer-readable storage medium of reading disk mapped file provided in an embodiment of the present invention
Matter is introduced, device, system and the computer readable storage medium of reading disk mapped file described below with retouch above
The method for the reading disk mapped file stated can correspond reference.
Referring to FIG. 4, the structure diagram of the device for the reading disk mapped file that Fig. 4 is provided by the embodiment of the present invention;
The device may include:
Pre-read fileinfo acquisition module 110, for being acted according to the Disk Mapping file operation of acquisition, determination is pre-read
Take fileinfo;
Sending module 120, for pre-read fileinfo to be sent to destination end, so that destination end is according to pre-read file
Information reads corresponding target disk mapped file;
Cache module 130, the target disk mapped file sent for caching of target end;
File read module 140, for when initiating Disk Mapping File read operation, corresponding mesh to be read from caching
Mark Disk Mapping file.
Based on above-described embodiment, pre-read fileinfo acquisition module 110 may include:
Action type determination unit determines Disk Mapping file for being acted according to the Disk Mapping file operation of acquisition
Action type;
Pre-read fileinfo acquiring unit is used for when action type is small file operation, then by small file operation pair
The listed files information answered is as pre-read fileinfo;When action type is big file operation, then by big file operation pair
The sector auxiliary information operated in the file answered is as pre-read fileinfo.
Based on above-mentioned any embodiment, pre-read fileinfo acquisition module 110 can also include:
Disk Mapping file operation acts acquiring unit, for monitoring whether that there are Disk Mappings in real time using monitoring programme
File operation acts;If in the presence of Disk Mapping file operation action is obtained.
It should be noted that being based on above-mentioned any embodiment, described device can be realized based on programmable logic device
, programmable logic device includes FPGA, CPLD, microcontroller etc..
Referring to FIG. 5, the structure diagram of the system for the reading disk mapped file that Fig. 5 is provided by the embodiment of the present invention,
The system may include:
Application end 100 acts according to the Disk Mapping file operation of acquisition for processor, determines that pre-read file is believed
Breath;Pre-read fileinfo is sent to destination end;Caching of target Disk Mapping file;Behaviour is read when initiating Disk Mapping file
When making, corresponding target disk mapped file is read from caching;
Destination end 200, for reading corresponding target disk mapped file according to pre-read fileinfo, and by target disk
Mapped file is sent to application end.
Based on above-described embodiment, application end 100 is specifically used for being acted according to the Disk Mapping file operation of acquisition, determines magnetic
The action type of disk mapped file;When action type is small file operation, then the corresponding listed files of small file operation is believed
Breath is used as pre-read fileinfo;When action type is big file operation, then will be operated in the corresponding file of big file operation
Sector auxiliary information as pre-read fileinfo.
Based on above-mentioned any embodiment, destination end 200, which is specifically used for being sent to after compressing target disk mapped file, answers
With end.
The present invention also provides a kind of computer readable storage medium, computer journey is stored on computer readable storage medium
Sequence, when computer program is executed by processor the method for reading disk mapped file of the realization as described in above-mentioned any embodiment
Step.
The computer readable storage medium may include:USB flash disk, mobile hard disk, read-only memory (Read-OnlyMemory,
ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. are various can store program
The medium of code.
Each embodiment is described by the way of progressive in specification, the highlights of each of the examples are with other realities
Apply the difference of example, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is referring to method part illustration
.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, depends on the specific application and design constraint of technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Above to a kind of method, apparatus of reading disk mapped file provided by the present invention, system and computer-readable
Storage medium is described in detail.Specific case used herein explains the principle of the present invention and embodiment
It states, the explanation of above example is only intended to facilitate the understanding of the method and its core concept of the invention.It should be pointed out that for this skill
For the those of ordinary skill in art field, without departing from the principle of the present invention, several change can also be carried out to the present invention
Into and modification, these improvement and modification also fall within the protection scope of the claims of the present invention.
Claims (10)
1. a kind of method of reading disk mapped file, which is characterized in that the method includes:
It is acted according to the Disk Mapping file operation of acquisition, determines pre-read fileinfo;
The pre-read fileinfo is sent to destination end, so that the destination end is read according to the pre-read fileinfo
Corresponding target disk mapped file;
Cache the target disk mapped file that the destination end is sent;
When initiating Disk Mapping File read operation, corresponding target disk mapped file is read from caching.
2. according to the method described in claim 1, it is characterized in that, according to the Disk Mapping file operation of acquisition action, determine
Pre-read fileinfo, including:
It is acted according to the Disk Mapping file operation of acquisition, determines the action type of Disk Mapping file;
When the action type is small file operation, then using the corresponding listed files information of the small file operation as pre-reading
Take fileinfo;
When the action type is big file operation, then the sector auxiliary information that will be operated in the corresponding file of the big file operation
As pre-read fileinfo.
3. according to the method described in claim 2, it is characterized in that, the Disk Mapping file operation action acquisition modes,
Including:
Monitor whether that there are Disk Mapping file operation actions in real time using monitoring programme;
If in the presence of the Disk Mapping file operation action is obtained.
4. a kind of device of reading disk mapped file, which is characterized in that described device includes:
Pre-read fileinfo acquisition module determines pre-read file for being acted according to the Disk Mapping file operation of acquisition
Information;
Sending module, for the pre-read fileinfo to be sent to destination end, so that the destination end is pre-read according to
Fileinfo is taken to read corresponding target disk mapped file;
Cache module, the target disk mapped file sent for caching the destination end;
File read module, for when initiating Disk Mapping File read operation, corresponding target disk to be read from caching
Mapped file.
5. device according to claim 4, which is characterized in that the pre-read fileinfo acquisition module, including:
Action type determination unit determines the behaviour of Disk Mapping file for being acted according to the Disk Mapping file operation of acquisition
Make type;
Pre-read fileinfo acquiring unit, for when the action type is small file operation, then grasping the small documents
Make corresponding listed files information as pre-read fileinfo;It, then will be described when the action type is big file operation
The sector auxiliary information operated in the corresponding file of big file operation is as pre-read fileinfo.
6. device according to claim 5, which is characterized in that the pre-read fileinfo acquisition module further includes:
Disk Mapping file operation acts acquiring unit, for monitoring whether that there are Disk Mapping files in real time using monitoring programme
Operational motion;If in the presence of the Disk Mapping file operation action is obtained.
7. a kind of system of reading disk mapped file, which is characterized in that the system comprises:
Application end acts according to the Disk Mapping file operation of acquisition for processor, determines pre-read fileinfo;It will be described
Pre-read fileinfo is sent to destination end;Cache the target disk mapped file;Behaviour is read when initiating Disk Mapping file
When making, corresponding target disk mapped file is read from caching;
The destination end, for reading corresponding target disk mapped file according to the pre-read fileinfo, and by the mesh
Mark Disk Mapping file is sent to the application end.
8. device according to claim 7, which is characterized in that the application end is specifically used for the Disk Mapping according to acquisition
File operation acts, and determines the action type of Disk Mapping file;It, then will be described when the action type is small file operation
The corresponding listed files information of small file operation is as pre-read fileinfo;When the action type is big file operation,
Then using the sector auxiliary information operated in the corresponding file of the big file operation as pre-read fileinfo.
9. device according to claim 7, which is characterized in that the destination end is specifically used for mapping the target disk
The application end is sent to after compressing file.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the reading disk mapped file as described in any one of claims 1 to 3 when the computer program is executed by processor
Method the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810403771.3A CN108628550B (en) | 2018-04-28 | 2018-04-28 | Method, device and system for reading disk mapping file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810403771.3A CN108628550B (en) | 2018-04-28 | 2018-04-28 | Method, device and system for reading disk mapping file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108628550A true CN108628550A (en) | 2018-10-09 |
CN108628550B CN108628550B (en) | 2022-02-22 |
Family
ID=63695021
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810403771.3A Active CN108628550B (en) | 2018-04-28 | 2018-04-28 | Method, device and system for reading disk mapping file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108628550B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112035071A (en) * | 2020-09-27 | 2020-12-04 | 万兴科技(湖南)有限公司 | Disk data reading method and device, computer equipment and storage medium |
CN113760191A (en) * | 2021-08-31 | 2021-12-07 | 荣耀终端有限公司 | Data reading method, data reading apparatus, storage medium, and program product |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101140548A (en) * | 2007-10-23 | 2008-03-12 | 北京握奇数据系统有限公司 | Method for operating data file by card operating system and smart card thereof |
CN101814038A (en) * | 2010-03-23 | 2010-08-25 | 杭州顺网科技股份有限公司 | Method for increasing booting speed of computer |
CN103177080A (en) * | 2013-02-07 | 2013-06-26 | 华为技术有限公司 | File pre-reading method and file pre-reading device |
CN104461940A (en) * | 2014-12-17 | 2015-03-25 | 南京莱斯信息技术股份有限公司 | Efficient caching and delayed writing method for network virtual disk client side |
CN105516548A (en) * | 2015-11-27 | 2016-04-20 | 中央电视台 | File pre-reading method and device |
CN107450859A (en) * | 2017-08-14 | 2017-12-08 | 北京盛和大地数据科技有限公司 | A kind of method and apparatus for reading file data |
CN107480150A (en) * | 2016-06-07 | 2017-12-15 | 阿里巴巴集团控股有限公司 | A kind of file loading method and device |
CN107590278A (en) * | 2017-09-28 | 2018-01-16 | 郑州云海信息技术有限公司 | A kind of pre-reading method of files and relevant apparatus based on CEPH |
-
2018
- 2018-04-28 CN CN201810403771.3A patent/CN108628550B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101140548A (en) * | 2007-10-23 | 2008-03-12 | 北京握奇数据系统有限公司 | Method for operating data file by card operating system and smart card thereof |
CN101814038A (en) * | 2010-03-23 | 2010-08-25 | 杭州顺网科技股份有限公司 | Method for increasing booting speed of computer |
CN103177080A (en) * | 2013-02-07 | 2013-06-26 | 华为技术有限公司 | File pre-reading method and file pre-reading device |
CN104461940A (en) * | 2014-12-17 | 2015-03-25 | 南京莱斯信息技术股份有限公司 | Efficient caching and delayed writing method for network virtual disk client side |
CN105516548A (en) * | 2015-11-27 | 2016-04-20 | 中央电视台 | File pre-reading method and device |
CN107480150A (en) * | 2016-06-07 | 2017-12-15 | 阿里巴巴集团控股有限公司 | A kind of file loading method and device |
CN107450859A (en) * | 2017-08-14 | 2017-12-08 | 北京盛和大地数据科技有限公司 | A kind of method and apparatus for reading file data |
CN107590278A (en) * | 2017-09-28 | 2018-01-16 | 郑州云海信息技术有限公司 | A kind of pre-reading method of files and relevant apparatus based on CEPH |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112035071A (en) * | 2020-09-27 | 2020-12-04 | 万兴科技(湖南)有限公司 | Disk data reading method and device, computer equipment and storage medium |
CN112035071B (en) * | 2020-09-27 | 2023-06-06 | 万兴科技(湖南)有限公司 | Disk data reading method, device, computer equipment and storage medium |
CN113760191A (en) * | 2021-08-31 | 2021-12-07 | 荣耀终端有限公司 | Data reading method, data reading apparatus, storage medium, and program product |
CN113760191B (en) * | 2021-08-31 | 2022-09-23 | 荣耀终端有限公司 | Data reading method, data reading apparatus, storage medium, and program product |
Also Published As
Publication number | Publication date |
---|---|
CN108628550B (en) | 2022-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10587544B2 (en) | Message processing method, processing server, terminal, and storage medium | |
CN102137059B (en) | Method and system for blocking malicious accesses | |
CN102984286B (en) | Method and device and system of domain name server (DNS) for buffering updating | |
US20030145230A1 (en) | System for exchanging data utilizing remote direct memory access | |
CN109391703B (en) | Domain name resolution method, device, equipment and computer storage medium | |
CN102546612B (en) | Remote procedure call implementation method based on remote direct memory access (RDMA) protocol in user mode | |
US20180027074A1 (en) | System and method for storage access input/output operations in a virtualized environment | |
US20140067994A1 (en) | Reducing costs related to use of networks based on pricing heterogeneity | |
CN109710185B (en) | Data processing method and device | |
CN107229415A (en) | A kind of data write method, data read method and relevant device, system | |
CN110837479A (en) | Data processing method, related device and computer storage medium | |
CN105393228B (en) | Read and write the method, apparatus and user equipment of data in flash memory | |
KR20140101370A (en) | Autonomous network streaming | |
US20170153909A1 (en) | Methods and Devices for Acquiring Data Using Virtual Machine and Host Machine | |
WO2019134403A1 (en) | Method and apparatus for sending data packet, and computer-readable storage medium | |
CN108628550A (en) | A kind of method, apparatus and system of reading disk mapped file | |
WO2019041670A1 (en) | Method, device and system for reducing frequency of functional page requests, and storage medium | |
WO2015180650A1 (en) | Method and device for generating key value in storage area network | |
CN112597039A (en) | Virtual machine access method, system, device and computer readable storage medium | |
WO2017032152A1 (en) | Method for writing data into storage device and storage device | |
WO2013153694A1 (en) | Communication device, method, and system for relaying communication between client and server | |
CN110855786B (en) | Processing method and device for network data request and computer storage medium | |
US20190026047A1 (en) | Random file i/o and chunked data upload | |
JP4606998B2 (en) | Network cache device and program | |
CN108063713B (en) | Network request processing method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |