CN106990917B - File reading and writing method and system - Google Patents

File reading and writing method and system Download PDF

Info

Publication number
CN106990917B
CN106990917B CN201710121517.XA CN201710121517A CN106990917B CN 106990917 B CN106990917 B CN 106990917B CN 201710121517 A CN201710121517 A CN 201710121517A CN 106990917 B CN106990917 B CN 106990917B
Authority
CN
China
Prior art keywords
buffer window
file
reading
writing
length
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.)
Active
Application number
CN201710121517.XA
Other languages
Chinese (zh)
Other versions
CN106990917A (en
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.)
Sinyada Technology Co.,Ltd.
Original Assignee
SUNYARD SYSTEM ENGINEERING 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 SUNYARD SYSTEM ENGINEERING Co Ltd filed Critical SUNYARD SYSTEM ENGINEERING Co Ltd
Priority to CN201710121517.XA priority Critical patent/CN106990917B/en
Publication of CN106990917A publication Critical patent/CN106990917A/en
Application granted granted Critical
Publication of CN106990917B publication Critical patent/CN106990917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • G06F3/0613Improving I/O performance in relation to throughput
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic 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 file reading and writing method and a system, wherein the method comprises the following steps: responding to a file read-write access request of an external application, and opening up a buffer window in the memory according to an access position; judging whether the length of the content of the file to be read and written is larger than the length of the buffer window; when the length of the file content is larger than that of the buffer window, writing the data in the buffer window into a disk, directly reading and writing the file from the disk, and opening up a new buffer window at the reading and writing end position; and when the length of the file content is less than or equal to the length of the buffer window, dynamically adjusting the position of the buffer window according to the starting position of the file, and reading and writing the file from the buffer window. The file reading and writing method and the file reading and writing system provided by the invention utilize the buffer window, so that the file reading and writing efficiency is greatly improved, and particularly the access efficiency of large files during frequent random reading and writing is greatly improved.

Description

File reading and writing method and system
Technical Field
The invention relates to the technical field of computers, in particular to a file reading and writing method and a file reading and writing system.
Background
At present, when a file random access file provided by Java accesses a file, a disk is directly read and written, the high-frequency small-range random reading and writing is limited by the IO bottleneck of the disk, the overall performance is low, and the buffer reading and writing class of the Java can only access the file sequentially.
In the existing off-line system, a large number of random read-write operations for a single file generally exist. Due to the low efficiency of the random access file class, the file operation efficiency of the off-line system is seriously influenced, so that the throughput of the whole off-line system is reduced, and the use requirement of a client cannot be met.
Disclosure of Invention
The invention provides a file reading and writing method capable of randomly accessing files with high efficiency in a Java environment, wherein when the files are read and written, a buffer window is opened up in a memory according to the access position, the content covered by the buffer window is read in advance, and the subsequent reading and writing accesses have high probability of falling into the buffer window, so that multiple disk IO (input/output) is converted into one disk IO (input/output) and multiple memory accesses, and the access efficiency is greatly improved.
The file reading and writing method provided by the invention comprises the following steps:
responding to a file read-write access request of an external application, and opening up a buffer window in the memory according to an access position;
judging whether the length of the content of the file to be read and written is larger than the length of the buffer window;
when the length of the file content is larger than that of the buffer window, writing the data in the buffer window into a disk, directly reading and writing the file from the disk, and opening up a new buffer window at the reading and writing end position;
and when the length of the file content is less than or equal to the length of the buffer window, dynamically adjusting the position of the buffer window according to the starting position of the file, and reading and writing the file from the buffer window.
As an implementation manner, when the length of the content of the file is less than or equal to the length of the buffer window, dynamically adjusting the position of the buffer window according to the start position of the file, and reading and writing the file from the buffer window, includes the following steps:
when the content of the file to be read is smaller than or equal to the length of the buffer window, judging the reading starting position;
when the reading starting position is positioned in the buffer window, directly reading a file from a position mapped by the buffer window;
and when the reading starting position is positioned outside the buffer window, opening a new buffer window at the reading starting position, reading in the content of the file, and then reading the file from the new buffer window.
As an implementation manner, when the length of the content of the file is less than or equal to the length of the buffer window, dynamically adjusting the position of the buffer window according to the start position of the file, and reading and writing the file from the buffer window, includes the following steps:
when the content of the file to be written is less than or equal to the length of the buffer window, judging the writing starting position;
when the writing starting position is positioned in the buffer window, directly writing a file from a position mapped by the buffer window;
and when the writing starting position is positioned outside the buffer window, opening a new buffer window from the writing starting position, reading the content of the file, and writing the file into the new buffer window.
As an implementation manner, when the read start position is located in the buffer window, after directly reading a file from a position mapped by the buffer window, the method further includes the following steps:
and when the data in the buffer window is insufficient, synchronously writing the data in the buffer window into a disk, opening up a new buffer window, and reading the residual files from the new buffer window.
As an implementation manner, when the writing start position is located in the buffer window, after directly writing a file from a position mapped by the buffer window, the method further includes the following steps:
and when the data to be written exceeds the range of the buffer window, synchronously writing the data in the buffer window into a disk, opening up a new buffer window, and writing the data to be written into the new buffer window.
Correspondingly, the invention also provides a file reading and writing system, which comprises an access response module, a length judgment module, a first reading and writing module and a second reading and writing module;
the access response module is used for responding to a file read-write access request of an external application and opening up a buffer window in the memory according to the access position;
the length judging module is used for judging whether the length of the content of the file to be read and written is greater than the length of the buffer window;
the first read-write module is used for writing the data in the buffer window into a disk when the content length of the file is greater than the length of the buffer window, directly reading and writing the file from the disk, and opening up a new buffer window at the read-write end position;
and the second read-write module is used for dynamically adjusting the position of the buffer window according to the starting position of the file when the length of the content of the file is less than or equal to the length of the buffer window, and reading and writing the file from the buffer window.
As an implementation manner, the second read/write module includes a read start position determination unit, a first read unit, and a second read unit;
the reading starting position judging unit is used for judging the reading starting position when the content of the file to be read is less than or equal to the length of the buffer window;
the first reading unit is used for directly reading a file from a position mapped by the buffer window when the reading starting position is positioned in the buffer window;
and the second reading unit is used for opening a new buffer window at the reading starting position when the reading starting position is positioned outside the buffer window, reading in the content of the file, and then reading the file from the new buffer window.
As an implementation manner, the second read/write module includes a write start position determination unit, a first write unit, and a second write unit;
the writing starting position judging unit is used for judging the writing starting position when the content of the file to be written is less than or equal to the length of the buffer window;
the first writing unit is used for directly writing a file from a position mapped by the buffer window when the writing starting position is positioned in the buffer window;
and the second writing unit is used for opening a new buffer window from the writing starting position when the writing starting position is positioned outside the buffer window, reading the content of the file, and then writing the file into the new buffer window.
As an implementation manner, the first reading unit is further configured to, when the read start position is located in the buffer window, directly read a file from a position mapped by the buffer window, and when there is insufficient data in the buffer window, synchronously write data in the buffer window to a disk, open a new buffer window, and read the remaining files from the new buffer window.
As an implementation manner, the first writing unit is further configured to, when the write start position is located in the buffer window, directly write a file from a position mapped by the buffer window, and when data to be written exceeds a range of the buffer window, write data in the buffer window to a disk synchronously, then open a new buffer window, and write the data to be written into the new buffer window.
Compared with the prior art, the invention has the beneficial effects that:
the file reading and writing method and the system thereof provided by the invention have the advantages that the buffer window is opened up in the memory, when the content of the accessed file exceeds the range of the buffer window, the content of the original buffer window is synchronized with the disk file, and the buffer window is opened up again at a new position; and when the accessed file content does not exceed the range of the buffer window, dynamically adjusting the position of the buffer window according to the starting position of the file, and reading and writing the file from the buffer window. The file reading and writing method and the file reading and writing system provided by the invention utilize the buffer window, so that the file reading and writing efficiency is greatly improved, and particularly the access efficiency of large files during frequent random reading and writing is greatly improved.
Drawings
Fig. 1 is a schematic flow chart of a file reading and writing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a file opening process according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of reading a file according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a process of writing a file according to a third embodiment of the present invention;
FIG. 5 is a schematic diagram of a file closing process according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a file reading and writing system according to a fourth embodiment of the present invention.
Detailed Description
The above and further features and advantages of the present invention will be apparent from the following, complete description of the invention, taken in conjunction with the accompanying drawings, wherein the described embodiments are merely some, but not all embodiments of the invention.
Referring to fig. 1, an embodiment of the present invention provides a file reading and writing method, including the following steps:
s100, responding to a file read-write access request of an external application, and opening up a buffer window in a memory according to an access position;
s200, judging whether the length of the content of the file to be read and written is larger than the length of a buffer window;
s300, when the length of the content of the file is larger than that of the buffer window, writing the data in the buffer window into a disk, directly reading and writing the file from the disk, and opening up a new buffer window at the reading and writing end position;
s400, when the length of the file content is smaller than or equal to the length of the buffer window, the position of the buffer window is dynamically adjusted according to the starting position of the file, and the file is read and written from the buffer window.
In the embodiment, when a file is read and written, a buffer window is opened up in the memory according to the access position, the content covered by the window is read in advance, and subsequent read-write access has a high probability of falling into the buffer window, so that multiple disk IO (input/output) is converted into one disk IO and multiple memory accesses, and the access efficiency is improved.
When the accessed file content exceeds the range of the buffer window, synchronizing the original buffer window content with the disk file, and re-opening the buffer window at a new position; and when the accessed file content does not exceed the range of the buffer window, dynamically adjusting the position of the buffer window according to the starting position of the file, and reading and writing the file from the buffer window. By using the buffer window, the efficiency of reading and writing the file is greatly improved, and particularly the access efficiency of the large file when the large file is read and written frequently at random is improved.
Before reading and writing a file, the file is first opened or created.
Further, referring to fig. 2, before step S100, the flow when the file is opened or created is:
s110, opening an original file to obtain a file handle;
s120, reading the front 8192 bytes of data of the file head into a memory (if a new file is created, only the memory is opened up), and recording the position of a file pointer;
s130, returning the file handle.
File access typically includes both read and write mechanisms, and the implementation of the present invention is described below with respect to each mechanism.
Referring to fig. 3, a second embodiment of the present invention provides a method for reading a file, which includes the following steps:
s20, initiating a reading request by an external application;
s21, if the length of the file content to be read is larger than the length of the buffer window, firstly writing the content (namely data) in the buffer window into the disk, then directly reading the file from the disk, and opening up a new buffer window at the reading ending position;
because the buffer window is opened up in advance for reading or writing files, when the length of the file content to be read is larger than that of the buffer window, the content in the buffer window (the data written before) is written into the disk for storage, then the file is directly read from the disk, and a new buffer window is opened up at the reading ending position for the subsequent file reading and writing.
S22, when the file content to be read is less than or equal to the length of the buffer window, judging the reading start position;
s23, when the reading start position is located in the buffer window, directly reading the file from the position mapped by the buffer window; when the data in the buffer window is insufficient, the data in the buffer window is synchronously written into a disk, then a new buffer window is opened up, and the residual files are read from the new buffer window.
And S24, when the reading start position is not in the window, namely the reading start position is outside the buffer window, opening a new buffer window at the reading start position, reading the file content, and reading the file from the new buffer window.
Referring to fig. 4, a third embodiment of the present invention provides a method for writing a file, which includes the following steps:
s30, the external application initiates a write request;
s31, if the length of the file content to be written is larger than the length of the buffer window, firstly writing the content (namely data) in the buffer window into the disk, then directly writing the file into the disk, and opening up a new buffer window at the write end position;
because the buffer window is opened up in advance for reading or writing in files, when the length of the content of the file to be written is greater than that of the buffer window, the content in the buffer window (the data written before) is synchronized to the disk for storage, then the file is directly written into the disk, and a new buffer window is opened up at the end position of writing for the reading and writing of the subsequent file.
S32, when the content of the file to be written is less than or equal to the length of the buffer window, judging the writing starting position;
s33, when the writing start position is located in the buffer window, directly writing the file from the position mapped by the buffer window; when the data to be written exceeds the range of the buffer window, the data in the buffer window is synchronously written into a magnetic disk, then a new buffer window is opened up, and the data to be written is written into the new buffer window;
s24, when the read start position is not in the buffer window, i.e. the write start position is outside the buffer window, opening a new buffer window from the write start position, reading the file content, and writing the file into the new buffer window.
Further, referring to fig. 5, after steps S300 and S400, the flow when closing the file is:
s510, writing the content of the buffer window into a disk;
s520, closing the file handle.
Based on the unified invention concept, the invention also provides a file reading and writing system, the principle of the system is the same as that of the file reading and writing method, so the implementation of the system can be realized by referring to the method.
Referring to fig. 6, the file reading and writing system according to the fourth embodiment of the present invention includes an access response module 100, a length determination module 200, a first reading and writing module 300, and a second reading and writing module 400;
the access response module 100 is configured to respond to a file read-write access request of an external application, and open a buffer window in the memory according to an access position;
the length judgment module 200 is configured to judge whether the length of the content of the file to be read and written is greater than the length of the buffer window;
the first read-write module 300 is configured to, when the length of the content of the file is greater than the length of the buffer window, write data in the buffer window into the disk, directly read and write the file from the disk, and open up a new buffer window at a read-write end position;
the second read/write module 400 is configured to, when the length of the content of the file is less than or equal to the length of the buffer window, dynamically adjust the position of the buffer window according to the start position of the file, and read and write the file from the buffer window.
As an implementation manner, the second read/write module includes a read start position determination unit, a first read unit, and a second read unit;
a reading start position judgment unit for judging a reading start position when the content of the file to be read is less than or equal to the length of the buffer window;
the first reading unit is used for directly reading the file from the position mapped by the buffer window when the reading starting position is positioned in the buffer window;
and the second reading unit is used for opening a new buffer window at the reading starting position when the reading starting position is positioned outside the buffer window, reading the content of the file, and then reading the file from the new buffer window.
As an implementation manner, the second read/write module includes a write start position determination unit, a first write unit, and a second write unit;
a writing start position judgment unit for judging a writing start position when the content of the file to be written is less than or equal to the length of the buffer window;
the first writing unit is used for directly writing the file at the position mapped by the buffer window when the writing starting position is positioned in the buffer window;
and the second writing unit is used for opening a new buffer window from the writing starting position, reading the content of the file and then writing the file into the new buffer window when the writing starting position is positioned outside the buffer window.
As an implementation manner, the first reading unit is further configured to, when the read start position is located in the buffer window, directly read the file from the position mapped by the buffer window, and when the data in the buffer window is insufficient, write the data in the buffer window to the disk synchronously, open a new buffer window, and read the remaining file from the new buffer window.
As an implementation manner, the first writing unit is further configured to, when the writing start position is located in the buffer window, directly write the file from the position mapped by the buffer window, and when the data to be written exceeds the range of the buffer window, synchronously write the data in the buffer window to the disk, open a new buffer window, and write the data to be written into the new buffer window.
The invention opens up the buffer window in the memory, dynamically adjusts the position of the buffer window along with the using process of the file, and reads and writes the file from the buffer window. By using the buffer window, the efficiency of reading and writing the file is greatly improved, and particularly the access efficiency of the large file when the large file is read and written frequently at random is improved.
The above-described system embodiments are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
The above-mentioned embodiments are provided to further explain the objects, technical solutions and advantages of the present invention in detail, and it should be understood that the above-mentioned embodiments are only examples of the present invention and are not intended to limit the scope of the present invention. It should be understood that any modifications, equivalents, improvements and the like, which come within the spirit and principle of the invention, may occur to those skilled in the art and are intended to be included within the scope of the invention.

Claims (10)

1. A file reading and writing method is characterized by comprising the following steps:
responding to a file read-write access request of an external application, and opening up a buffer window in the memory according to an access position;
judging whether the length of the content of the file to be read and written is larger than the length of the buffer window;
when the length of the file content is larger than that of the buffer window, writing the data in the buffer window into a disk, directly reading and writing the file from the disk, and opening up a new buffer window at the reading and writing end position;
and when the length of the file content is less than or equal to the length of the buffer window, dynamically adjusting the position of the buffer window according to the starting position of the file, and reading and writing the file from the buffer window.
2. The method for reading and writing the file according to claim 1, wherein when the length of the content of the file is less than or equal to the length of the buffer window, the position of the buffer window is dynamically adjusted according to the starting position of the file, and the file is read and written from the buffer window, comprising the following steps:
when the content of the file to be read is smaller than or equal to the length of the buffer window, judging the reading starting position;
when the reading starting position is positioned in the buffer window, directly reading a file from a position mapped by the buffer window;
and when the reading starting position is positioned outside the buffer window, opening a new buffer window at the reading starting position, reading in the content of the file, and then reading the file from the new buffer window.
3. The method for reading and writing the file according to claim 1, wherein when the length of the content of the file is less than or equal to the length of the buffer window, the position of the buffer window is dynamically adjusted according to the starting position of the file, and the file is read and written from the buffer window, comprising the following steps:
when the content of the file to be written is less than or equal to the length of the buffer window, judging the writing starting position;
when the writing starting position is positioned in the buffer window, directly writing a file from a position mapped by the buffer window;
and when the writing starting position is positioned outside the buffer window, opening a new buffer window from the writing starting position, reading the content of the file, and writing the file into the new buffer window.
4. The method for reading and writing the file according to claim 2, wherein when the reading start position is located in the buffer window, after the file is directly read from the position mapped by the buffer window, the method further comprises the following steps:
and when the data in the buffer window is insufficient, synchronously writing the data in the buffer window into a disk, opening up a new buffer window, and reading the residual files from the new buffer window.
5. A method for reading and writing files according to claim 3, wherein when the writing start position is located in the buffer window, after the file is written directly from the position mapped by the buffer window, the method further comprises the following steps:
and when the data to be written exceeds the range of the buffer window, synchronously writing the data in the buffer window into a disk, opening up a new buffer window, and writing the data to be written into the new buffer window.
6. A file read-write system is characterized by comprising an access response module, a length judgment module, a first read-write module and a second read-write module;
the access response module is used for responding to a file read-write access request of an external application and opening up a buffer window in the memory according to the access position;
the length judging module is used for judging whether the length of the content of the file to be read and written is greater than the length of the buffer window;
the first read-write module is used for writing the data in the buffer window into a disk when the content length of the file is greater than the length of the buffer window, directly reading and writing the file from the disk, and opening up a new buffer window at the read-write end position;
and the second read-write module is used for dynamically adjusting the position of the buffer window according to the starting position of the file when the length of the content of the file is less than or equal to the length of the buffer window, and reading and writing the file from the buffer window.
7. The system according to claim 6, wherein the second read/write module includes a read start position determination unit, a first reading unit, and a second reading unit;
the reading starting position judging unit is used for judging the reading starting position when the content of the file to be read is less than or equal to the length of the buffer window;
the first reading unit is used for directly reading a file from a position mapped by the buffer window when the reading starting position is positioned in the buffer window;
and the second reading unit is used for opening a new buffer window at the reading starting position when the reading starting position is positioned outside the buffer window, reading in the content of the file, and then reading the file from the new buffer window.
8. The system according to claim 6, wherein the second read/write module includes a write start position determination unit, a first write unit, and a second write unit;
the writing starting position judging unit is used for judging the writing starting position when the content of the file to be written is less than or equal to the length of the buffer window;
the first writing unit is used for directly writing a file from a position mapped by the buffer window when the writing starting position is positioned in the buffer window;
and the second writing unit is used for opening a new buffer window from the writing starting position when the writing starting position is positioned outside the buffer window, reading the content of the file, and then writing the file into the new buffer window.
9. The system according to claim 7, wherein the first reading unit is further configured to, when the read start position is located in the buffer window, directly read a file from a position mapped by the buffer window, and when there is insufficient data in the buffer window, synchronously write data in the buffer window to a disk, open a new buffer window, and read the remaining files from the new buffer window.
10. The system according to claim 8, wherein the first writing unit is further configured to write a file directly from a location mapped by the buffer window when the write start location is located in the buffer window, and when the data to be written exceeds the range of the buffer window, write the data in the buffer window to the disk synchronously, open a new buffer window, and write the data to be written into the new buffer window.
CN201710121517.XA 2017-03-02 2017-03-02 File reading and writing method and system Active CN106990917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710121517.XA CN106990917B (en) 2017-03-02 2017-03-02 File reading and writing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710121517.XA CN106990917B (en) 2017-03-02 2017-03-02 File reading and writing method and system

Publications (2)

Publication Number Publication Date
CN106990917A CN106990917A (en) 2017-07-28
CN106990917B true CN106990917B (en) 2020-03-24

Family

ID=59412590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710121517.XA Active CN106990917B (en) 2017-03-02 2017-03-02 File reading and writing method and system

Country Status (1)

Country Link
CN (1) CN106990917B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062513B (en) * 2018-08-06 2021-10-15 郑州云海信息技术有限公司 Method and device for controlling and processing write operation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030218A (en) * 2007-03-23 2007-09-05 北京中星微电子有限公司 Virtual file management unit, system and method
CN102682012A (en) * 2011-03-14 2012-09-19 成都市华为赛门铁克科技有限公司 Method and device for reading and writing data in file system
CN103377142A (en) * 2012-04-17 2013-10-30 安凯(广州)微电子技术有限公司 Storage method and image pickup system
CN103605485A (en) * 2013-11-29 2014-02-26 深圳市道通科技有限公司 Variable-length data storing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030218A (en) * 2007-03-23 2007-09-05 北京中星微电子有限公司 Virtual file management unit, system and method
CN102682012A (en) * 2011-03-14 2012-09-19 成都市华为赛门铁克科技有限公司 Method and device for reading and writing data in file system
CN103377142A (en) * 2012-04-17 2013-10-30 安凯(广州)微电子技术有限公司 Storage method and image pickup system
CN103605485A (en) * 2013-11-29 2014-02-26 深圳市道通科技有限公司 Variable-length data storing method and device

Also Published As

Publication number Publication date
CN106990917A (en) 2017-07-28

Similar Documents

Publication Publication Date Title
US8607005B2 (en) Monitoring program execution to learn data blocks accessed by software process for facilitating efficient prefetching
CN110059020B (en) Access method, equipment and system for extended memory
CN109814811B (en) Method for reducing influence of NVMe SSD response delay on write speed of high-speed data storage equipment
CN102521349A (en) Pre-reading method of files
US9684461B1 (en) Dynamically adjusting read data return sizes based on memory interface bus utilization
US8547760B2 (en) Memory access alignment in a double data rate (‘DDR’) system
JP2006309757A (en) Selection method for command sent to memory, memory controller, and computer system
EP3005126B1 (en) Storage systems and aliased memory
WO2021238252A1 (en) Method and device for local random pre-reading of file in distributed file system
CN112948293A (en) DDR arbiter and DDR controller chip of multi-user interface
CN104391653A (en) Data block-based cache design method
GB2500082A (en) Delaying the transmission of data from a memory device until the output buffer of the memory device contains the data for the transfer
US10089041B2 (en) Efficient connection management in a SAS target
CN110442321A (en) One kind prefetching fifo circuit and method
CN106681659A (en) Data compression method and device
CN106990917B (en) File reading and writing method and system
US20160070648A1 (en) Data storage system and operation method thereof
KR102454695B1 (en) Caching device, cache, system, method and apparatus for processing data, and medium
US10055000B2 (en) Method and apparatus for controlling hard drive power consumption and controlling a management service of hard drive power consumption
CN113835614A (en) SSD intelligent caching method and system based on distributed file storage client
US8140804B1 (en) Systems and methods for determining whether to perform a computing operation that is optimized for a specific storage-device-technology type
US8484411B1 (en) System and method for improving access efficiency to a dynamic random access memory
CN106484564B (en) Collected data storage method
JP2011509443A5 (en)
US7831741B2 (en) Indexing device and method for data storage system

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Xinyada technology building, 3888 Jiangnan Avenue, Binjiang District, Hangzhou City, Zhejiang Province 310000

Patentee after: Sinyada Technology Co.,Ltd.

Address before: Xinyada technology building, 3888 Jiangnan Avenue, Binjiang District, Hangzhou City, Zhejiang Province 310000

Patentee before: SUNYARD SYSTEM ENGINEERING Co.,Ltd.