CN109407993B - Data access method, device, computer readable storage medium and system - Google Patents

Data access method, device, computer readable storage medium and system Download PDF

Info

Publication number
CN109407993B
CN109407993B CN201811292458.3A CN201811292458A CN109407993B CN 109407993 B CN109407993 B CN 109407993B CN 201811292458 A CN201811292458 A CN 201811292458A CN 109407993 B CN109407993 B CN 109407993B
Authority
CN
China
Prior art keywords
data
cache
target
data storage
target data
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
CN201811292458.3A
Other languages
Chinese (zh)
Other versions
CN109407993A (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.)
SHENZHEN SILICONGO MICROELECTRONICS CO Ltd
Original Assignee
SHENZHEN SILICONGO MICROELECTRONICS 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 SHENZHEN SILICONGO MICROELECTRONICS CO Ltd filed Critical SHENZHEN SILICONGO MICROELECTRONICS CO Ltd
Priority to CN201811292458.3A priority Critical patent/CN109407993B/en
Publication of CN109407993A publication Critical patent/CN109407993A/en
Application granted granted Critical
Publication of CN109407993B publication Critical patent/CN109407993B/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/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/0661Format or protocol conversion 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/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage 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)
  • Memory System Of A Hierarchy Structure (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data access method, which comprises the following steps: when a data access instruction is received, converting the data access instruction into a corresponding physical logic search address; acquiring a target data storage address corresponding to the data access instruction in a preset data cache table according to the physical logic search address; and reading the acquired target data storage address to load corresponding target data, and reading the loaded target data. The invention also discloses a data access device, a computer readable storage medium and a system. When the data is read, the data content of the data access instruction is directly converted into the physical logic search address according to the stored physical logic address, the corresponding target data is directly searched in the data cache table and read, and the data access work can be realized through one-time reading operation, so that the data access efficiency is improved.

Description

Data access method, device, computer readable storage medium and system
Technical Field
The present invention relates to the field of data storage technologies, and in particular, to a data access method, an apparatus, a computer-readable storage medium, and a system.
Background
The current SSD needs to store a large amount of logic-to-physical tables (L2P tables), so that the SSD needs to have large capacity of SRAM or DDR as the SSD master control, which undoubtedly increases the SSD master control cost, but if there is no DDR-Less, the logic-to-physical tables (L2P tables) need to be stored in Nand Flash, when Data is Read, the Nand Flash needs to first Load the L2P table into a specific Buffer, then find the Data in the Buffer corresponding to the physical location of the Nand Flash, and then Read the Data in the Nand Flash.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a data access method, and aims to solve the technical problem that data access efficiency is reduced because data in an SSD needs to be read for multiple times when the data in the SSD is read due to SSD data storage in the prior art.
In order to achieve the above object, the present invention provides a data access method, including the following:
when a data access instruction is received, converting the data access instruction into a corresponding physical logic search address;
acquiring a target data storage address corresponding to the data access instruction in a preset data cache table according to the physical logic search address;
and reading the acquired target data storage address to load corresponding target data, and reading the loaded target data.
Preferably, the step of reading the acquired target data storage address to load corresponding target data, and reading the loaded target data includes:
loading the target data according to the pointing position of the target data storage address;
when the pointing position is confirmed to be a cache data storage area, reading the target data in the cache data storage area;
and when the pointing position is confirmed to be a data memory, loading the target data from the data memory to a cache data storage area, and reading the target data in the cache data storage area.
Preferably, after the step of loading the target data from the data memory to a cache data storage area when the pointing position is confirmed to be the data memory, and reading the target data from the cache data storage area, the method further includes:
generating a target data storage address based on the target data according to the storage address of the target data in the cache data storage area;
and updating the target data storage address of the preset data cache table by using the newly generated target data storage address.
Preferably, the step of loading the target data from the data memory to a cache data storage area and reading the target data from the cache data storage area when the pointing position is confirmed as the data memory further includes:
and adding a data cache position in the cache data storage area, and storing the loaded target data in the newly added data cache position.
Preferably, the step of adding a data cache location in the cache data storage region and storing the loaded target data in the added data cache location includes:
acquiring the registered access frequency based on the target data, and confirming the divided target cache partitions of the cache data storage area according to the access frequency;
and adding a data cache position in the confirmed target cache partition, and storing the loaded target data by the added data cache position.
Preferably, before the step of adding a new data cache location in the confirmed target cache partition and storing the loaded target data with the new data cache location, the method further includes:
acquiring the residual storage capacity of the target cache partition, and determining whether the cache position of the newly added data can be increased or not according to the residual storage capacity;
and when the target cache partition is confirmed to be not added with the data cache position, releasing the target cache position of the target cache partition, and enabling the released target cache position to correspond to the added data cache position.
Preferably, the step of releasing the target cache location of the target cache partition when it is determined that the target cache partition fails to newly add the data cache location, and using the released target cache location to correspond to the newly added data cache location, further includes:
determining whether the target cache partition is a preset partition type;
and when the partition type of the target cache partition is confirmed to be a preset partition type, executing the step of releasing the target cache position of the target cache partition.
In addition, to achieve the above object, the present invention provides a data access apparatus, including: a data memory, a processor and a computer program stored on the data memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the data access method as described above.
The invention also provides a computer readable storage medium having stored thereon a data access application which, when executed by a processor, implements the steps of the data access method as described above.
The invention also provides a data access system which, when executed, implements the steps of the data access method described above.
According to the data access method provided by the embodiment of the invention, when a data access instruction is received, the data access instruction is converted into a corresponding physical logic search address; acquiring a target data storage address corresponding to the data access instruction in a preset data cache table according to the physical logic search address; and reading the acquired target data storage address to load corresponding target data, and reading the loaded target data. When data is read, the data content of the data access instruction is directly converted into a physical logic search address according to the stored physical logic address, the corresponding target data is directly searched in the data cache table and read, and therefore the data access work can be achieved through one-time reading operation, and the data access efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of a terminal \ device structure of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a data access method according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: when a data access instruction is received, converting the data access instruction into a corresponding physical logic search address; acquiring a target data storage address corresponding to the data access instruction in a preset data cache table according to the physical logic search address; and reading the acquired target data storage address to load corresponding target data, and reading the loaded target data.
Due to the SSD data storage in the prior art, when data in the SSD is read, the data can be read out only by reading for many times, so that the technical problem of data access efficiency is reduced.
The invention provides a solution, which directly converts the data content of a data access instruction into a physical logic search address according to a stored physical logic address when reading data, directly searches for corresponding target data in a data cache table and reads the target data, so that the data access work can be realized through one-time reading operation, and the data access efficiency is improved.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal in the embodiment of the invention can be a PC, and can also be a mobile or non-mobile terminal device with data table storage and data operation functions, such as a smart phone, a tablet computer, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a data storage 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The data store 1005 may be a high-speed RAM data store or may be a non-volatile memory, such as a magnetic disk data store. The data storage 1005 may alternatively be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a data storage 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a data access application program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke a data access application stored in the data storage 1005 and perform the following operations:
when a data access instruction is received, converting the data access instruction into a corresponding physical logic search address;
acquiring a target data storage address corresponding to the data access instruction in a preset data cache table according to the physical logic search address;
and reading the acquired target data storage address to load corresponding target data, and reading the loaded target data.
Further, the processor 1001 may invoke a data access application stored in the data storage 1005, and also perform the following operations:
loading the target data according to the pointing position of the target data storage address;
when the pointing position is confirmed to be a cache data storage area, reading the target data in the cache data storage area;
and when the pointing position is confirmed to be a data memory, loading the target data from the data memory to a cache data storage area, and reading the target data in the cache data storage area.
Further, the processor 1001 may invoke a data access application stored in the data storage 1005, and also perform the following operations:
generating a target data storage address based on the target data according to the storage address of the target data in the cache data storage area;
and updating the target data storage address of the preset data cache table by using the newly generated target data storage address.
Further, the processor 1001 may invoke a data access application stored in the data storage 1005, and also perform the following operations:
and adding a data cache position in the cache data storage area, and storing the loaded target data in the newly added data cache position.
Further, the processor 1001 may invoke a data access application stored in the data storage 1005, and also perform the following operations:
acquiring registered access frequency based on the target data, and confirming divided target cache partitions of the cache data storage area according to the access frequency;
and adding a data cache position in the confirmed target cache partition, and storing the loaded target data by the added data cache position.
Further, the processor 1001 may invoke a data access application stored in the data storage 1005, and also perform the following operations:
acquiring the residual storage capacity of the target cache partition, and determining whether the cache position of the newly added data can be increased or not according to the residual storage capacity;
and when the target cache partition is confirmed to be not added with the data cache position, releasing the target cache position of the target cache partition, and enabling the released target cache position to correspond to the added data cache position.
Further, the processor 1001 may invoke a data access application stored in the data storage 1005, and also perform the following operations:
determining whether the target cache partition is of a preset partition type;
and when the partition type of the target cache partition is confirmed to be a preset partition type, executing the step of releasing the target cache position of the target cache partition.
Referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of a data access method of the present invention, where the data access method includes:
step S10, when receiving a data access instruction, converting the data access instruction into a corresponding physical logic search address;
and receiving a related data access instruction based on the current data storage, wherein the received data access instruction is initiated based on the current data storage, so that the data access instruction is initiated relative to the currently stored data, the stored data comprises a cache storage area and data stored and accessible by a corresponding data storage, the data storage comprises but is not limited to a hardware device and a terminal with a data storage function, and the data storage can be in network connection with the terminal which currently initiates the data access instruction. And converting the data access instruction into a corresponding physical logic search address according to the received data access instruction, wherein the physical logic search address is a target data-based cache memory address stored in a preset cache memory area based on current data, so that when the data access instruction is converted into the corresponding physical logic search address, a data storage structure based on the current cache memory area is required, and data information about the corresponding target data to be read in the data access instruction is extracted and correspondingly converted into the physical logic search address.
Step S20, obtaining a target data storage address corresponding to the data access instruction in a preset data cache table according to the physical logic search address;
according to a converted physical logic search address converted based on a received data access instruction, searching a target data storage address corresponding to the data access instruction in a preset data cache table under the condition of the physical logic search address, wherein in the preset data cache table, the stored data content is the data storage address of the target data stored in a current preset cache data storage area and a corresponding data storage, and as the content stored in the preset data cache table is the corresponding storage address of the target data in the preset cache data storage area and the corresponding data storage, the preset data cache table can also be defined as a data storage address information table. In addition, the acquired target data storage addresses include data storage addresses of all currently accessible target data.
Step S30, the obtained target data storage address is read to load the corresponding target data, and the loaded target data is read.
And reading the target data storage address according to the acquired target data storage address to load corresponding target data through the information of the target data storage address so as to successfully execute the data access instruction. As described above, since the storage location of the target data may point to two directions, that is, a preset cache data storage area and a corresponding data memory, and the loading manner of the target data read by the target data storage location is different in different data storage directions, when the corresponding target data is loaded by reading the obtained target data storage address, that is, the obtained target data storage address is read to load the corresponding target data, and the step of reading the loaded target data includes:
loading the target data according to the pointing position of the target data storage address;
when the pointing position is confirmed to be a cache data storage area, reading the target data in the cache data storage area;
and when the pointing position is confirmed to be a data memory, loading the target data from the data memory to a cache data storage area, and reading the target data in the cache data storage area.
And when the acquired target data storage address is read, correspondingly loading the target data according to the pointing position of the target data storage address, wherein the pointing position comprises a preset cache data storage area and a corresponding data memory. When the pointing position of the target data storage address is confirmed to be a cache data storage area, directly reading corresponding target data in the cache data storage area according to the target data storage address; and when the pointing position of the target data storage area is confirmed to be a data memory, loading corresponding target data to a preset cache data storage area according to the target data storage address, and then loading the target data in the preset cache data storage area. In addition, since the target data stored in the cache data storage area needs to register a relevant data storage address in a preset data cache table, after the step of loading the target data from the data memory to the cache data storage area and reading the target data from the cache data storage area when the pointing position is confirmed as the data memory, the method further includes:
generating a target data storage address based on the target data according to the storage address of the target data in the cache data storage area;
and updating the target data storage address of the preset data cache table by using the newly generated target data storage address.
After target data are loaded to the preset cache data storage area from a data memory, according to the storage address of the target data in the cache data storage area, generating a target data storage address of the target data based on the cache data storage area, and updating the target data storage address to a target data line of the preset data cache table, wherein the target data line is based on a data table line in which the storage address of the target data is registered.
As described above, when the target data is loaded from the data storage to the preset cache data storage area, due to the data storage characteristic of the cache data storage area, the corresponding data storage location needs to be opened up to store the loaded target data, that is, when the pointing location is determined as the data storage, the step of loading the target data from the data storage to the cache data storage area and reading the target data from the cache data storage area further includes:
and adding a data cache position in the cache data storage area, and storing the loaded target data in the newly added data cache position.
According to the loading condition of the target data, applying for a data cache position in the preset cache data storage area, namely adding a data cache position in the cache data storage area, wherein the data cache position is opened up based on the target data loaded by storage and is used for storing the content of the related target data, and therefore after the newly added data cache position is confirmed to be successfully added, the target data loaded from a data memory is stored to the data cache position.
In addition, when the loaded target data is stored in a preset cache data storage area, the step of adding a data cache position in the cache data storage area and storing the loaded target data in the newly added data cache position in consideration of the fact that the target data is loaded in the preset cache data storage area includes:
acquiring registered access frequency based on the target data, and confirming divided target cache partitions of the cache data storage area according to the access frequency;
and adding a data cache position in the confirmed target cache partition, and storing the loaded target data by the added data cache position.
When the loaded target data is stored in a preset cache data storage area, considering the data loading efficiency and the access efficiency of the cache data storage area and the residual storage capacity of the cache data storage area, the loaded target data needs to be arranged in a corresponding cache partition of the cache data storage area, and the target cache partition of the target data is judged according to the data access frequency in the cache data storage area. Therefore, acquiring a registered access frequency based on the target data, wherein the access frequency is the access frequency data registered based on the storage position of the target data, the access frequency is defined as the reading times of the target data in a period, and the access frequency of the target data is calculated in a preset format through the reading times; alternatively, the storage area of the target data directly registers the access frequency of the target data. According to the read access frequency of the target data, divided target cache partitions based on the cache data storage area are confirmed, in practical application, when the cache partitions are divided, hot data storage areas and cold data storage areas are correspondingly divided according to the data access frequency, the data stored in the hot data storage areas are data with high access frequency, the data stored in the cold data storage areas are data with low access frequency, and the hot data storage areas and the cold data storage areas are correspondingly distributed based on the data storage area according to the access frequency of the current stored data, so that the data application efficiency of the data storage and data access of the cache data storage area is improved to the maximum extent. Therefore, based on the obtained access frequency of the target data, a target cache partition in the cache data storage area for storing the target data is determined, for example, if the access frequency of the target data is low, the target cache partition is a cold data storage area. And adding a data cache position in the confirmed target cache partition of the cache data storage area, and storing the target data in the newly added data cache position.
Further, before the step of adding a new data cache location in the confirmed target cache partition and storing the loaded target data with the new data cache location, the method further includes:
acquiring the residual storage capacity of the target cache partition, and determining whether the cache position of the newly added data can be increased or not according to the residual storage capacity;
and when the target cache partition is confirmed to be not added with the data cache position, releasing the target cache position of the target cache partition, and enabling the released target cache position to correspond to the added data cache position.
When a target cache partition storing the target data is confirmed, acquiring the residual storage capacity of the target cache partition to confirm whether the target cache partition can store the target position, wherein in the confirmation mode, the obtained residual storage capacity of the target cache partition is compared with the data volume of the target data, and if the data volume of the target data is smaller than the residual storage capacity, the target cache partition is confirmed to be capable of storing the target data; if the data amount of the target data is larger than or equal to the residual memory amount, confirming that the target cache partition can not store the target data, and based on the situation, storing the target data in the target cache position of the target cache partition in the released target cache position, wherein the target cache position can be defined as the data storage position with the longest storage time in the target cache partition, or defined as other conditions, such as the data cache position consistent with the data amount of the target data. In addition, when determining whether the target cache partition can store the target data and releasing the corresponding target cache location to store the target data, the partition type of the target cache partition is determined according to different settings of the data cache partitions, and therefore, when determining that the target cache partition cannot add a new data cache location, the step of releasing the target cache location of the target cache partition and corresponding the released target cache location to the new data cache location further includes:
determining whether the target cache partition is a preset partition type;
and when the partition type of the target cache partition is confirmed to be a preset partition type, executing the step of releasing the target cache position of the target cache partition.
When it is determined that the target data cannot be stored in the current target cache partition, it is determined whether the target cache partition is a preset partition type, so as to release the data storage location of the target cache partition for storing the target data, where the preset partition type is a data cache partition of a defined releasable data cache location, and the data cache partition of the determined releasable data cache location is related to the data storage manner of the data cache partition, for example, data is stored in a manner pointed by a pointer, and data is stored in a manner of storing data content. And when the target cache partition is determined to be of a preset partition type, namely the data storage partition of the data storage position can be released, executing the step of releasing the target cache position of the target cache partition so as to realize the storage operation of the target data.
In the embodiment, when data is read, the data content of the data access instruction is directly converted into the physical logic search address according to the stored physical logic address, and the corresponding target data is directly searched in the data cache table and read, so that the data access work can be realized through one-time reading operation, and the data access efficiency is improved.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a data access application is stored on the computer-readable storage medium, and when executed by a processor, the data access application implements the following operations:
when a data access instruction is received, converting the data access instruction into a corresponding physical logic search address;
acquiring a target data storage address corresponding to the data access instruction in a preset data cache table according to the physical logic search address;
and reading the acquired target data storage address to load corresponding target data, and reading the loaded target data.
Further, the data access application when executed by the processor further performs the following:
loading the target data according to the pointing position of the target data storage address;
when the pointing position is confirmed to be a cache data storage area, reading the target data in the cache data storage area;
and when the pointing position is confirmed to be a data memory, loading the target data from the data memory to a cache data storage area, and reading the target data from the cache data storage area.
Further, the data access application when executed by the processor further performs the following:
generating a target data storage address based on the target data according to the storage address of the target data in the cache data storage area;
and updating the target data storage address of the preset data cache table by using the newly generated target data storage address.
Further, the data access application when executed by the processor further performs the following:
and adding a data cache position in the cache data storage area, and storing the loaded target data in the newly added data cache position.
Further, the data access application when executed by the processor further performs the following:
acquiring registered access frequency based on the target data, and confirming divided target cache partitions of the cache data storage area according to the access frequency;
and adding a data cache position in the confirmed target cache partition, and storing the loaded target data by the added data cache position.
Further, the data access application when executed by the processor further performs the following:
acquiring the residual storage capacity of the target cache partition, and determining whether the cache position of the newly added data can be increased or not according to the residual storage capacity;
and when the target cache partition is confirmed to be not added with the data cache position, releasing the target cache position of the target cache partition, and enabling the released target cache position to correspond to the added data cache position.
Further, the data access application when executed by the processor further performs the following:
determining whether the target cache partition is a preset partition type;
and when the partition type of the target cache partition is confirmed to be a preset partition type, executing the step of releasing the target cache position of the target cache partition.
The invention also provides a data access system which realizes the content of the data access method embodiment when being executed.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A data access method, characterized in that the data access method comprises the steps of:
when a data access instruction is received, converting the data access instruction into a corresponding physical logic search address;
acquiring a target data storage address corresponding to the data access instruction in a preset data cache table according to the physical logic search address, wherein the preset data cache table stores the target data in a preset cache data storage area and the corresponding storage address of a corresponding data storage, and the acquired target data storage address comprises the data storage addresses of all currently accessible target data;
reading the acquired target data storage address to load corresponding target data, and reading the loaded target data;
the step of reading the acquired target data storage address to load corresponding target data and reading the loaded target data includes:
loading the target data according to the pointing position of the target data storage address;
when the pointing position is confirmed to be a cache data storage area, reading the target data in the cache data storage area;
and when the pointing position is confirmed to be a data memory, loading the target data from the data memory to a cache data storage area, and reading the target data in the cache data storage area.
2. The data access method of claim 1, wherein upon confirming that the pointing location is a data store, loading the target data from the data store to a cache data storage area, and after the step of reading the target data from the cache data storage area, further comprising:
generating a target data storage address based on the target data according to the storage address of the target data in the cache data storage area;
and updating the target data storage address of the preset data cache table by using the newly generated target data storage address.
3. The data access method of claim 2, wherein the step of loading the target data from the data memory to a cache data storage area and reading the target data from the cache data storage area when the pointing location is confirmed as the data memory, further comprises:
and adding a data cache position in the cache data storage region, and storing the loaded target data in the newly added data cache position.
4. The data access method according to claim 3, wherein the step of adding a data cache location in the cache data storage region and storing the loaded target data in the added data cache location comprises:
acquiring registered access frequency based on the target data, and confirming divided target cache partitions of the cache data storage area according to the access frequency;
and adding a data cache position in the confirmed target cache partition, and storing the loaded target data by the added data cache position.
5. The data access method of claim 4, wherein prior to the step of adding a new data cache location in the identified target cache partition and storing the target data loaded thereto with the new data cache location, further comprising:
acquiring the residual memory space of the target cache partition, and determining whether the data cache position can be newly increased or not according to the residual memory space;
and when the target cache partition is confirmed to be not added with the data cache position, releasing the target cache position of the target cache partition, and enabling the released target cache position to correspond to the added data cache position.
6. The data access method of claim 5, wherein before the step of releasing the target cache location of the target cache partition and corresponding the released target cache location to the newly added data cache location, further comprising:
determining whether the target cache partition is a preset partition type;
and when the partition type of the target cache partition is confirmed to be a preset partition type, executing the step of releasing the target cache position of the target cache partition.
7. A data access device, characterized in that the data access device comprises: data storage, a processor and a data access application stored on the data storage and executable on the processor, the data access application when executed by the processor implementing the steps of the data access method according to any one of claims 1 to 6.
8. A computer-readable storage medium, having stored thereon a data access application, which when executed by a processor implements the steps of the data access method of any one of claims 1 to 6.
9. A data access system, characterized in that it implements the steps of the data access method according to any one of claims 1 to 6 when executed.
CN201811292458.3A 2018-10-31 2018-10-31 Data access method, device, computer readable storage medium and system Active CN109407993B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811292458.3A CN109407993B (en) 2018-10-31 2018-10-31 Data access method, device, computer readable storage medium and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811292458.3A CN109407993B (en) 2018-10-31 2018-10-31 Data access method, device, computer readable storage medium and system

Publications (2)

Publication Number Publication Date
CN109407993A CN109407993A (en) 2019-03-01
CN109407993B true CN109407993B (en) 2022-05-27

Family

ID=65470732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811292458.3A Active CN109407993B (en) 2018-10-31 2018-10-31 Data access method, device, computer readable storage medium and system

Country Status (1)

Country Link
CN (1) CN109407993B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246452A (en) * 2007-02-12 2008-08-20 国际商业机器公司 Method and apparatus for fast performing MMU analog, and total system simulator
CN101819509A (en) * 2010-04-19 2010-09-01 清华大学深圳研究生院 Solid state disk read-write method
CN102023817A (en) * 2010-12-03 2011-04-20 深圳市江波龙电子有限公司 Read and write control method and system of storage device data
CN105874440A (en) * 2014-01-02 2016-08-17 高通股份有限公司 System and method to defragment a memory
CN106775466A (en) * 2016-12-05 2017-05-31 深圳市金泰克半导体有限公司 A kind of FTL read buffers management method and device without DRAM

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI531963B (en) * 2015-06-04 2016-05-01 Accelstor Inc Data storage systems and their specific instruction enforcement methods
GB2550859B (en) * 2016-05-26 2019-10-16 Advanced Risc Mach Ltd Address translation within a virtualised system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246452A (en) * 2007-02-12 2008-08-20 国际商业机器公司 Method and apparatus for fast performing MMU analog, and total system simulator
CN101819509A (en) * 2010-04-19 2010-09-01 清华大学深圳研究生院 Solid state disk read-write method
CN102023817A (en) * 2010-12-03 2011-04-20 深圳市江波龙电子有限公司 Read and write control method and system of storage device data
CN105874440A (en) * 2014-01-02 2016-08-17 高通股份有限公司 System and method to defragment a memory
CN106775466A (en) * 2016-12-05 2017-05-31 深圳市金泰克半导体有限公司 A kind of FTL read buffers management method and device without DRAM

Also Published As

Publication number Publication date
CN109407993A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN110019081B (en) Data persistence processing method, device and system and readable storage medium
EP2557490B1 (en) Method and apparatus for adding an icon to a home interface of an android operating system
US20190213019A1 (en) Application program page processing method and device
US20160232374A1 (en) Permission control method and apparatus
US9268939B2 (en) Method and apparatus for determining virus-infected files
WO2018040270A1 (en) Method and device for loading linux-system elf file in windows system
CN105144122A (en) Externally programmable memory management unit
CN113010224B (en) Front-end micro-servitization method, front-end micro-servitization device, computer equipment and storage medium
CN110795192A (en) Language switching method and device and terminal equipment
US20170052979A1 (en) Input/Output (IO) Request Processing Method and File Server
CN113111025B (en) PCI equipment mapping method, device, equipment and storage medium
CN112925606B (en) Memory management method, device and equipment
CN111290773A (en) System upgrading method, device and readable storage medium
CN103581878A (en) Method and equipment for acquiring target resources in mobile equipment
CN109407993B (en) Data access method, device, computer readable storage medium and system
CN110647753B (en) Method, device and equipment for acquiring kernel file and storage medium
CN110321321B (en) Snapshot read-write method, device and equipment for network block equipment and storage medium
US20140143518A1 (en) Memory system and method for operating the same
CN108112052B (en) Terminal network sharing method and device, air conditioner and storage medium
JP5014871B2 (en) Program start device, program start method, start processing program, and integrated circuit
CN110955478A (en) Partition dynamic display method, device and equipment of data and readable storage medium
US20060230190A1 (en) Method and apparatus for executing application in system having NAND flash memory
CN108446144A (en) A kind of application program launching method, device, terminal and storage medium
CN111177624B (en) Website front-end and back-end communication method, device, computer equipment and storage medium
US20170155702A1 (en) Client and method for recommending file opening tool

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