CN107590278A - A kind of pre-reading method of files and relevant apparatus based on CEPH - Google Patents

A kind of pre-reading method of files and relevant apparatus based on CEPH Download PDF

Info

Publication number
CN107590278A
CN107590278A CN201710900002.XA CN201710900002A CN107590278A CN 107590278 A CN107590278 A CN 107590278A CN 201710900002 A CN201710900002 A CN 201710900002A CN 107590278 A CN107590278 A CN 107590278A
Authority
CN
China
Prior art keywords
file
reading
read
size
attribute information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710900002.XA
Other languages
Chinese (zh)
Inventor
苏志恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710900002.XA priority Critical patent/CN107590278A/en
Publication of CN107590278A publication Critical patent/CN107590278A/en
Pending legal-status Critical Current

Links

Abstract

This application discloses a kind of pre-reading method of files based on CEPH, the pre- read apparatus of file, computer-readable recording medium and server, this method to include:The list information of catalogue where reading current file, obtains according to list information and pre-reads file;The attribute information for pre-reading file is read, judges whether the size for pre-reading file is less than or equal to default size according to attribute information;Wherein, it is storage system without the file size that pre-reads to preset size;If the size for pre-reading file is less than or equal to default size, the content for pre-reading file is read in caching using asynchronous reading interface;Read next attribute information for pre-reading file.By the way that the content less than the file of default size is read in caching, reading next time file can directly hit the file in caching, increase cache hit rate and simultaneously utilize the efficient characteristic of caching read-write, accelerate the reading speed of small documents, file performance is read in lifting.And the mode of asynchronous reading is employed, does not influence original reading performance.

Description

A kind of pre-reading method of files and relevant apparatus based on CEPH
Technical field
The application is related to field of computer technology, and more particularly to a kind of pre-reading method of files based on CEPH, file are pre-read Device, computer-readable recording medium and server.
Background technology
With the development of information technology, the data of distributed storage are more and more, for its storage system performance will Also more and more higher is sought, therefore just extends the pre-head method of file, the reading speed of file is improved when system reads file. When the file under catalogue is read in user's scene, after reading interface reads file content and pre-reads this document by step read mode of escaping Continue some bytes to be put into caching, increase the hit rate of read buffer, improve the performance of reading.In general, when file size not Meet when file pre-reads condition then pre-reading without file content.
But when there are substantial amounts of small documents under the catalogue for needing to pre-read, wherein, small documents are above-mentioned pre-head method The file not read.Therefore, now pre- read apparatus does not read the content of small documents, causes the reduction of the reading speed of small documents.
Therefore, how to solve small documents pre-head method, be those skilled in the art's Important Problems of interest.
The content of the invention
The purpose of the application is to provide a kind of pre-reading method of files based on CEPH, the pre- read apparatus of file, computer-readable Storage medium and server, by judging the size of file, the content less than the file of default size is read in caching, under Secondary reading file can directly hit the file in caching, increase cache hit rate simultaneously using the efficient characteristic of caching read-write, add File performance is read in the reading speed of fast small documents, lifting.And the mode of asynchronous reading is employed, does not influence original reading Performance.
In order to solve the above technical problems, the application provides a kind of pre-reading method of files based on CEPH, including:
The list information of catalogue where reading current file, obtains according to the list information and pre-reads file;
The attribute information of file is pre-read described in reading, according to the attribute information judge described in pre-read file size whether Less than or equal to default size;Wherein, the default size is storage system without the file size that pre-reads;
If the size for pre-reading file is less than or equal to the default size, text is pre-read described in using asynchronous reading interface The content of part is read in caching;
Read next attribute information for pre-reading file.
Optionally, in addition to:
When pre-reading the quantity of file described in read in the caching and being more than upper limit quantity, stop reading.
Optionally, in addition to:
If the size for pre-reading file is more than the default size, next category for pre-reading file is read Property information;
If the size for pre-reading file is less than or equal to the default size, determine whether other processes to the file Operated;
If so, then read next attribute information for pre-reading file;
If it is not, whether the content that file is pre-read described in then judging has been loaded into the caching;
If so, then read next attribute information for pre-reading file.
Optionally, the list information for reading current file place catalogue, obtains according to the list information and pre-reads text Part, including:
The father node of present node is obtained, judges whether the present node is root node;
If it is not, then judge the current file whether be catalogue last file;
If it is not, next file is then pre-read into file as described in.
The application also provides a kind of pre- read apparatus of the file based on CEPH, including:
File acquisition module is pre-read, for the list information of catalogue where reading current file, according to the list information Acquisition pre-reads file;
File attribute judge module, for reading the attribute information for pre-reading file, judged according to the attribute information Whether the size for pre-reading file is less than or equal to default size;Wherein, the default size is storage system without pre-reading File size;
The pre- read through model of file, if being less than or equal to the default size for the size for pre-reading file, using asynchronous Interface is read to read in caching the content for pre-reading file;
Loop module, read next attribute information for pre-reading file.
Optionally, in addition to:
Stopping modular is pre-read, when the quantity for pre-reading file described in read in the caching is more than upper limit quantity, Stop reading.
Optionally, in addition to:
First judge module, for being less than or equal to the default size when the size for pre-reading file, determine whether Other processes operate to the file;
Second judge module, for judging whether the content for pre-reading file has been loaded into the caching;
Jump module, it is next described for when the size for pre-reading file is more than the default size, then reading Pre-read the attribute information of file;When there are other processes to operate the file, read and next described pre-read text The attribute information of part;When the content for pre-reading file has been loaded into the caching, reading is next described pre- Read the attribute information of file.
Optionally, it is described to pre-read file acquisition module, including:
Root node judging unit, for obtaining the father node of present node, judge whether the present node is root node;
End file judging unit, for judge the current file whether be catalogue last file;
Processing unit, for next file to be pre-read into file as described in.
The application also provides a kind of computer-readable recording medium, and calculating is stored with the computer-readable recording medium Machine program, when the computer program is executed by processor, realize the steps:
The list information of catalogue where reading current file, obtains according to the list information and pre-reads file;
The attribute information of file is pre-read described in reading, according to the attribute information judge described in pre-read file size whether Less than or equal to default size;Wherein, the default size is storage system without the file size that pre-reads;
If the size for pre-reading file is less than or equal to the default size, text is pre-read described in using asynchronous reading interface The content of part is read in caching;
Read next attribute information for pre-reading file.
The application also provides a kind of server, including:
Memory, for storing computer program;
Processor, during for performing the computer program, realize the steps:
The list information of catalogue where reading current file, obtains according to the list information and pre-reads file;
The attribute information of file is pre-read described in reading, according to the attribute information judge described in pre-read file size whether Less than or equal to default size;Wherein, the default size is storage system without the file size that pre-reads;
If the size for pre-reading file is less than or equal to the default size, text is pre-read described in using asynchronous reading interface The content of part is read in caching;
Read next attribute information for pre-reading file.
A kind of pre-reading method of files based on CEPH provided herein, including:Catalogue where reading current file List information, obtained according to the list information and pre-read file;The attribute information of file is pre-read described in reading, according to the attribute Whether information pre-reads the size of file less than or equal to default size described in judging;Wherein, the default size be storage system not The file size pre-read;If the size for pre-reading file is less than or equal to the default size, asynchronous reading interface is utilized The content for pre-reading file is read in caching;Read next attribute information for pre-reading file.
By judging the size of file, the content less than the file of default size is read in caching, next time reads text Part can directly hit the file in caching, increase cache hit rate and read and write efficient characteristic using caching, accelerate small documents Reading speed, lifting read file performance.And the mode of asynchronous reading is employed, does not influence original reading performance.
A kind of file based on CEPH pre- read apparatus, computer-readable recording medium and the server that the application also provides, With above-mentioned beneficial effect, will not be repeated here.
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.
A kind of flow chart for pre-reading method of files based on CEPH that Fig. 1 is provided by the embodiment of the present application;
A kind of flow of the policer operation for pre-reading method of files based on CEPH that Fig. 2 is provided by the embodiment of the present application Figure;
Fig. 3 is pre-read the stream of file by a kind of acquisition for pre-reading method of files based on CEPH that the embodiment of the present application provides Cheng Tu;
A kind of structural representation for the pre- read apparatus of file based on CEPH that Fig. 4 is provided by the embodiment of the present application.
Embodiment
The core of the application is to provide a kind of pre-reading method of files based on CEPH, the pre- read apparatus of file, computer-readable Storage medium and server, by judging the size of file, the content less than the file of default size is read in caching, under Secondary reading file can directly hit the file in caching, increase cache hit rate simultaneously using the efficient characteristic of caching read-write, add File performance is read in the reading speed of fast small documents, lifting.And the mode of asynchronous reading is employed, does not influence original reading Performance.
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, a kind of flow for pre-reading method of files based on CEPH that Fig. 1 is provided by the embodiment of the present application Figure.
The embodiment of the present application can provide a kind of pre-reading method of files based on CEPH, and this method can include:
S101, the list information of catalogue where reading current file, obtains according to list information and pre-reads file;
This step is intended to, and judges that acquisition pre-reads file according to the list information of catalogue.For read file system, its File can be read when reading file in a certain order, in general system can go to read text according to the storage order of catalogue Part, therefore for the file that system to be pre-read by reading the list information of catalogue it may determine that obtaining.
Wherein, file is pre-read generally in the order of catalogue for next file of the file read.Therefore, From catalogue it may determine that go out system it is current pre-read which file file is specifically.
S102, the attribute information for pre-reading file is read, judge whether the size for pre-reading file is less than according to attribute information In default size;Wherein, it is storage system without the file size that pre-reads to preset size;
On the basis of step S101, this step is intended to read the attribute information for pre-reading file, and is believed by the attribute Breath judges whether the size of file meets the condition pre-read.
Wherein, default size is exactly the size that general storage system is pre-read without file.In general storage system The problem of file is pre-read in function, and necessity due to reading file is time-consuming, 2MB file is less than for file size, without Pre-read, can solve the time-consuming problem that in general reads file, accelerate the reading speed of file.But when within the storage system When being less than 2MB file in the presence of substantial amounts of size, due to pre-reading the mechanism problem of function, to substantial amounts of small documents and without pre- Read, the problem of causing file reading efficiency low, be unfavorable for the reading of file.
Specifically, default size can be set according to the application environment of storage system, according to the difference of storage system And it is different, no longer repeat herein.
Therefore, this step is exactly to judge whether file is pre-read by the attribute information of file, is selected in general The file that storage system is not pre-read.
S103, if the size for pre-reading file is less than or equal to default size, using asynchronous reading interface pre-reading in file Appearance is read in caching;
On the basis of step S102, this step is intended to, and will not pass through asynchronous reading interface by the file that storage system is pre-read Read in caching.
Wherein, read by asynchronous reading interface, can not influence normally to read file operation, asynchronous progress can be significantly The overall reading efficiency of raising system.
This document is read in caching, it is ensured that the fair speed that storage system is read, improve the reading speed of file Degree.Reduce the number interacted with hard disk, add cache hit rate, lift the performance of reading.
S104, read next attribute information for pre-reading file.
On the basis of step S103, because the process that file pre-reads has been completed in S103 operation, this step be intended to after Continuous pre-read next pre-reads file.The operation of reading is set to continue to continue.
To sum up, the present embodiment can be read the content less than the file of default size by judging the size of file In caching, reading next time file can directly hit the file in caching, and increase cache hit rate is simultaneously read and write efficient using caching Characteristic, accelerate the reading speeds of small documents, file performance is read in lifting.And the mode of asynchronous reading is employed, is not influenceed Original reading performance.
With reference to a upper embodiment, the present embodiment does an expansion primarily directed to the method that file is pre-read in a upper embodiment Fill, other parts are substantially the same with a upper embodiment, and same section may be referred to an embodiment, will not be described here.
Based on a upper embodiment, the present embodiment can also include:
When the quantity for pre-reading file read in caching is more than upper limit quantity, stop reading.
The memory space of caching is limited, therefore when the quantity of documents that pre-read receives the limitation of storage size, when to During up to certain higher limit, with regard to stopping being pre-read.
It is emphasized that the quantity for wherein pre-reading file refers to, it is normal read it is that flow is not read also and The pre- quantity for reading the file in caching.After file in the buffer is by normal read, it is treated as making dirty data, now can be with The content of this document normal spatial cache is not being taken into by way of active erasure or passively wiping.
It is envisioned that after stopping is pre-read, when the quantity for pre-reading file in caching is less than upper limit quantity, Ke Yiji It is continuous to pre-read file.
It refer to Fig. 2, a kind of monitoring behaviour for pre-reading method of files based on CEPH that Fig. 2 is provided by the embodiment of the present application The flow chart of work.
With reference to a upper embodiment, the present embodiment is done primarily directed to the policer operation of pre-reading method of files in a upper embodiment One expansion, other parts are substantially the same with a upper embodiment, and same section may be referred to an embodiment, not do herein superfluous State.
The present embodiment can include:
S201, if the size for pre-reading file is more than default size, read next attribute information for pre-reading file;
Based on the judgment step in above-described embodiment, if when situation of the size more than default size for occurring pre-reading file When, directly read next attribute information for pre-reading file.That is, now pre-read file not in the reading of the technical program Scope is taken, just skips processing step.
S202, if the size for pre-reading file is less than or equal to default size, determine whether that other processes are grasped to file Make;
This step is equally based on the judgment step in above-described embodiment, if when the size for occurring pre-reading file is big less than default During small situation, can also there is the fortuitous event of other files, now also need to judge file, choose whether to continue Pre-read.
In this step, it can judge whether this document has other processes to operate this document.Due to being operated File, if be read, can in systems malfunction, cause file to be damaged, it is therefore desirable to the operation process to file Judged.
S203, if so, then reading next attribute information for pre-reading file;
On the basis of step S202, this step is intended to, and is skipped by the file of other process operations, is started new text The operation that part is pre-read.
S204, if it is not, then judging whether the content for pre-reading file has been loaded into caching;
On the basis of step S202, this step is intended to, and whether judgement does not then judge this document by other process operations It has been read into caching.
S205, if so, then reading next attribute information for pre-reading file.
On the basis of step S204, this step is intended to skip the file being read in the buffer.
It should be noted that the estimate of situation not illustrated in above-mentioned steps is all normally to read this document to caching In.
Fig. 3 is refer to, a kind of acquisition for pre-reading method of files based on CEPH that Fig. 3 is provided by the embodiment of the present application is pre- Read the flow chart of file.
With reference to a upper embodiment, the present embodiment pre-reads text primarily directed to the acquisition of pre-reading method of files in a upper embodiment Part does an explanation, and other parts are substantially the same with a upper embodiment, and same section may be referred to an embodiment, not do herein Repeat.
The present embodiment can include:
S301, the father node of present node is obtained, judge whether present node is root node;
This step is intended to, and obtains the father node of present node, and judges whether the node is root node.
S302, if it is not, then judge current file whether be catalogue last file;
On the basis of step S301, this step be intended to judge current file whether be catalogue last file. Do not obtained then if last file and pre-read file, and send feedback information.
S303, if it is not, then using next file as pre-reading file.
On the basis of step S302, this step is intended to if it is determined that not being last file, then by the next of catalogue Individual file is used as and pre-reads file.
The embodiment of the present application provides a kind of pre-reading method of files based on CEPH, will be small by judging the size of file Read in the content of the file of default size in caching, reading next time file can directly hit the file in caching, increase Cache hit rate simultaneously reads and writes efficient characteristic using caching, accelerates the reading speed of small documents, file performance is read in lifting.And The mode of asynchronous reading is employed, does not influence original reading performance.
The pre- read apparatus of a kind of file based on CEPH provided below the embodiment of the present application is introduced, described below A kind of pre- read apparatus of file based on CEPH can mutually corresponding ginseng with a kind of above-described pre-reading method of files based on CEPH According to.
Fig. 4 is refer to, a kind of structure for the pre- read apparatus of file based on CEPH that Fig. 4 is provided by the embodiment of the present application is shown It is intended to.
The present embodiment can include:
File acquisition module 100 is pre-read, for the list information of catalogue where reading current file, is obtained according to list information Take and pre-read file;
File attribute judge module 200, the attribute information of file is pre-read for reading, judged to pre-read text according to attribute information Whether the size of part is less than or equal to default size;Wherein, it is storage system without the file size that pre-reads to preset size;
The pre- read through model 300 of file, if being less than or equal to default size for pre-reading the size of file, utilize asynchronous reading interface The content for pre-reading file is read in caching;
Loop module 400, read next attribute information for pre-reading file.
Based on above-described embodiment, can also include:
Stopping modular is pre-read, for when the quantity for pre-reading file read in caching is more than upper limit quantity, stopping reading.
Based on above-described embodiment, can also also include:
First judge module, for being less than or equal to default size when the size for pre-reading file, determine whether other processes File is operated;
Whether the second judge module, the content for judging to pre-read file have been loaded into caching;
Jump module, for when the size for pre-reading file is more than default size, then reading next category for pre-reading file Property information;When there are other processes to operate file, next attribute information for pre-reading file is read;When pre-reading file Content has been loaded into caching, reads next attribute information for pre-reading file.
File acquisition module 100 is pre-read, can be included:
Root node judging unit, for obtaining the father node of present node, judge whether present node is root node;
End file judging unit, for judge current file whether be catalogue last file;
Processing unit, for using next file as pre-reading file.
The embodiment of the present application also provides a kind of computer-readable recording medium, is stored on the computer-readable recording medium There is computer program, when the computer program is executed by processor, realize the steps:
The list information of catalogue where reading current file, obtains according to the list information and pre-reads file;
The attribute information of file is pre-read described in reading, according to the attribute information judge described in pre-read file size whether Less than or equal to default size;Wherein, the default size is storage system without the file size that pre-reads;
If the size for pre-reading file is less than or equal to the default size, text is pre-read described in using asynchronous reading interface The content of part is read in caching;
Read next attribute information for pre-reading file.
The embodiment of the present application also provides a kind of server, including:
Memory, for storing computer program;
Processor, during for performing the computer program, realize the steps:
The list information of catalogue where reading current file, obtains according to the list information and pre-reads file;
The attribute information of file is pre-read described in reading, according to the attribute information judge described in pre-read file size whether Less than or equal to default size;Wherein, the default size is storage system without the file size that pre-reads;
If the size for pre-reading file is less than or equal to the default size, text is pre-read described in using asynchronous reading interface The content of part is read in caching;
Read next attribute information for pre-reading file.
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 device disclosed in embodiment Speech, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is referring to method part illustration .
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the division of module, Only a kind of division of logic function, can there is an other dividing mode when actually realizing, such as multiple module or components can be with With reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed Mutual coupling or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of device or module or Communication connection, can be electrical, mechanical or other forms.
The module illustrated as separating component can be or may not be physically separate, be shown as module Part can be or may not be physical module, you can with positioned at a place, or can also be distributed to multiple networks In module.Some or all of module therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional module in each embodiment of the application can be integrated in a processing module, can also That modules are individually physically present, can also two or more modules be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of software function module.
If integrated module is realized in the form of software function module 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.
Above can to a kind of pre-reading method of files based on CEPH provided herein, the pre- read apparatus of file, computer Read storage medium and server is described in detail.Used herein principle and embodiment of the specific case to the application It is set forth, the explanation of above example is only intended to help and understands the present processes and its core concept.It should be pointed out that For those skilled in the art, on the premise of the application principle is not departed from, the application can also be entered Some improvement of row and modification, these are improved and modification is also fallen into the application scope of the claims.

Claims (10)

  1. A kind of 1. pre-reading method of files based on CEPH, it is characterised in that including:
    The list information of catalogue where reading current file, obtains according to the list information and pre-reads file;
    The attribute information of file is pre-read described in reading, whether the size that file is pre-read according to judging the attribute information is less than Equal to default size;Wherein, the default size is storage system without the file size that pre-reads;
    If the size for pre-reading file is less than or equal to the default size, using asynchronous reading interface the file that pre-reads Content is read in caching;
    Read next attribute information for pre-reading file.
  2. 2. pre-reading method of files according to claim 1, it is characterised in that also include:
    When pre-reading the quantity of file described in read in the caching and being more than upper limit quantity, stop reading.
  3. 3. pre-reading method of files according to claim 2, it is characterised in that also include:
    If the size for pre-reading file is more than the default size, next attribute letter for pre-reading file is read Breath;
    If the size for pre-reading file is less than or equal to the default size, determine whether that other processes are carried out to the file Operation;
    If so, then read next attribute information for pre-reading file;
    If it is not, whether the content that file is pre-read described in then judging has been loaded into the caching;
    If so, then read next attribute information for pre-reading file.
  4. 4. according to the pre-reading method of files described in any one of claims 1 to 3, it is characterised in that the reading current file institute In the list information of catalogue, obtained according to the list information and pre-read file, including:
    The father node of present node is obtained, judges whether the present node is root node;
    If it is not, then judge the current file whether be catalogue last file;
    If it is not, next file is then pre-read into file as described in.
  5. A kind of 5. pre- read apparatus of file based on CEPH, it is characterised in that including:
    File acquisition module is pre-read, for the list information of catalogue where reading current file, is obtained according to the list information Pre-read file;
    File attribute judge module, for reading the attribute information for pre-reading file, according to judging the attribute information Whether the size for pre-reading file is less than or equal to default size;Wherein, the default size is storage system without the text that pre-reads Part size;
    The pre- read through model of file, if being less than or equal to the default size for the size for pre-reading file, connect using asynchronous reading Mouth reads the content for pre-reading file in caching;
    Loop module, read next attribute information for pre-reading file.
  6. 6. the pre- read apparatus of file according to claim 5, it is characterised in that also include:
    Stopping modular is pre-read, when the quantity for pre-reading file described in read in the caching is more than upper limit quantity, is stopped Read.
  7. 7. the pre- read apparatus of file according to claim 6, it is characterised in that also include:
    First judge module, for being less than or equal to the default size when the size for pre-reading file, determine whether other Process operates to the file;
    Second judge module, for judging whether the content for pre-reading file has been loaded into the caching;
    Jump module, for when the size for pre-reading file is more than the default size, then reading next described pre-read The attribute information of file;When there are other processes to operate the file, read and next described pre-read file The attribute information;When the content for pre-reading file has been loaded into the caching, reads and next described pre-read text The attribute information of part.
  8. 8. the pre- read apparatus of file according to claim 6, it is characterised in that it is described to pre-read file acquisition module, including:
    Root node judging unit, for obtaining the father node of present node, judge whether the present node is root node;
    End file judging unit, for judge the current file whether be catalogue last file;
    Processing unit, for next file to be pre-read into file as described in.
  9. 9. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium Program, the pre-reading method of files as described in any one of Claims 1-4 is realized when the computer program is executed by processor Step.
  10. A kind of 10. server, it is characterised in that including:
    Memory, for storing computer program;
    Processor, the pre-reading method of files as described in any one of Claims 1-4 is realized during for performing the computer program The step of.
CN201710900002.XA 2017-09-28 2017-09-28 A kind of pre-reading method of files and relevant apparatus based on CEPH Pending CN107590278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710900002.XA CN107590278A (en) 2017-09-28 2017-09-28 A kind of pre-reading method of files and relevant apparatus based on CEPH

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710900002.XA CN107590278A (en) 2017-09-28 2017-09-28 A kind of pre-reading method of files and relevant apparatus based on CEPH

Publications (1)

Publication Number Publication Date
CN107590278A true CN107590278A (en) 2018-01-16

Family

ID=61047960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710900002.XA Pending CN107590278A (en) 2017-09-28 2017-09-28 A kind of pre-reading method of files and relevant apparatus based on CEPH

Country Status (1)

Country Link
CN (1) CN107590278A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108628550A (en) * 2018-04-28 2018-10-09 深信服科技股份有限公司 A kind of method, apparatus and system of reading disk mapped file
CN109739570A (en) * 2018-12-24 2019-05-10 新华三技术有限公司 A kind of method for reading data, server control equipment, server and computer readable storage medium
CN109947720A (en) * 2019-04-12 2019-06-28 苏州浪潮智能科技有限公司 A kind of pre-reading method of files, device, equipment and readable storage medium storing program for executing
CN110781159A (en) * 2019-10-28 2020-02-11 柏科数据技术(深圳)股份有限公司 Ceph directory file information reading method and device, server and storage medium
CN111723057A (en) * 2020-05-28 2020-09-29 广东浪潮大数据研究有限公司 File pre-reading method, device, equipment and storage medium
CN111858665A (en) * 2020-06-28 2020-10-30 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for improving soft copy reading performance
CN112445417A (en) * 2019-09-05 2021-03-05 群联电子股份有限公司 Memory control method, memory storage device and memory control circuit unit
CN113760840A (en) * 2020-06-01 2021-12-07 中移(苏州)软件技术有限公司 Data processing method, system, equipment and computer storage medium
CN114168272A (en) * 2022-02-14 2022-03-11 麒麟软件有限公司 Random-reading kernel IO optimization method during file caching and reading
CN114327284A (en) * 2021-12-30 2022-04-12 河北建筑工程学院 Data processing method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521349A (en) * 2011-12-12 2012-06-27 深圳市创新科信息技术有限公司 Pre-reading method of files
CN104794182A (en) * 2015-04-10 2015-07-22 中国科学院计算技术研究所 Small file asynchronous pre-reading device and method for parallel network file system
CN105573667A (en) * 2015-12-10 2016-05-11 华为技术有限公司 Data reading method and storage server
CN106776759A (en) * 2016-11-17 2017-05-31 郑州云海信息技术有限公司 The small documents pre-head method and system of distributed file system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521349A (en) * 2011-12-12 2012-06-27 深圳市创新科信息技术有限公司 Pre-reading method of files
CN104794182A (en) * 2015-04-10 2015-07-22 中国科学院计算技术研究所 Small file asynchronous pre-reading device and method for parallel network file system
CN105573667A (en) * 2015-12-10 2016-05-11 华为技术有限公司 Data reading method and storage server
CN106776759A (en) * 2016-11-17 2017-05-31 郑州云海信息技术有限公司 The small documents pre-head method and system of distributed file system

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108628550B (en) * 2018-04-28 2022-02-22 深信服科技股份有限公司 Method, device and system for reading disk mapping file
CN108628550A (en) * 2018-04-28 2018-10-09 深信服科技股份有限公司 A kind of method, apparatus and system of reading disk mapped file
CN109739570A (en) * 2018-12-24 2019-05-10 新华三技术有限公司 A kind of method for reading data, server control equipment, server and computer readable storage medium
CN109739570B (en) * 2018-12-24 2022-04-08 新华三技术有限公司 Data reading method, server control equipment, server and computer readable storage medium
CN109947720A (en) * 2019-04-12 2019-06-28 苏州浪潮智能科技有限公司 A kind of pre-reading method of files, device, equipment and readable storage medium storing program for executing
CN112445417B (en) * 2019-09-05 2023-02-28 群联电子股份有限公司 Memory control method, memory storage device and memory control circuit unit
CN112445417A (en) * 2019-09-05 2021-03-05 群联电子股份有限公司 Memory control method, memory storage device and memory control circuit unit
CN110781159A (en) * 2019-10-28 2020-02-11 柏科数据技术(深圳)股份有限公司 Ceph directory file information reading method and device, server and storage medium
CN110781159B (en) * 2019-10-28 2021-02-02 柏科数据技术(深圳)股份有限公司 Ceph directory file information reading method and device, server and storage medium
CN111723057A (en) * 2020-05-28 2020-09-29 广东浪潮大数据研究有限公司 File pre-reading method, device, equipment and storage medium
WO2021238265A1 (en) * 2020-05-28 2021-12-02 广东浪潮智慧计算技术有限公司 File pre-reading method, apparatus and device, and storage medium
CN113760840A (en) * 2020-06-01 2021-12-07 中移(苏州)软件技术有限公司 Data processing method, system, equipment and computer storage medium
CN111858665B (en) * 2020-06-28 2022-12-06 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for improving soft copy reading performance
CN111858665A (en) * 2020-06-28 2020-10-30 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for improving soft copy reading performance
CN114327284A (en) * 2021-12-30 2022-04-12 河北建筑工程学院 Data processing method and system
CN114168272A (en) * 2022-02-14 2022-03-11 麒麟软件有限公司 Random-reading kernel IO optimization method during file caching and reading
CN114168272B (en) * 2022-02-14 2022-04-19 麒麟软件有限公司 Random-reading kernel IO optimization method during file caching and reading

Similar Documents

Publication Publication Date Title
CN107590278A (en) A kind of pre-reading method of files and relevant apparatus based on CEPH
CN103810020B (en) Virtual machine elastic telescopic method and device
CN101799744B (en) Solid-state drive command divides into groups
KR100690804B1 (en) Method for executing garbage collection of mobile terminal
CN105487987B (en) A kind of concurrent sequence of processing reads the method and device of IO
CN109144712A (en) Memory pool building, memory allocation method and device
CN105653484B (en) A kind of deblocking compression multi-channel transmission method
CN104798063A (en) Memory device and host device
CN107589916A (en) A kind of entangling based on correcting and eleting codes deletes the creation method and relevant apparatus in pond
CN105824702A (en) Method and terminal for managing program memory footprint
CN106325758B (en) A kind of queue storage space management method and device
CN105282244B (en) a kind of data processing method, device, server and controller
CN103812895A (en) Scheduling method, management nodes and cloud computing cluster
CN105278918B (en) The read method of register and the register using the read method
CN104598409B (en) A kind of method and apparatus for handling input output request
CN103577172A (en) Graphic processing engine system
CN109213745A (en) A kind of distributed document storage method, device, processor and storage medium
CN108052289A (en) Method, set-top box and the storage medium of data processing
CN107506500A (en) The control method and relevant apparatus of a kind of Data Migration
CN107469352A (en) The resource caching method of game front end, storage medium
CN102750185B (en) A kind of data adaptive output method and system
CN106993147A (en) One kind video recording covering method, device and network hard disk video recorder
CN111104152A (en) Method for optimizing Unity AB packaging
CN109491611A (en) A kind of metadata rule method, device and equipment
CN106844605A (en) Batch data logical process 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180116

RJ01 Rejection of invention patent application after publication