Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for reading and writing memory data

A memory data and data technology, applied in other database retrieval, other database index, electronic digital data processing, etc., can solve the problem of low memory access efficiency

Active Publication Date: 2022-01-25
TENCENT CLOUD COMPUTING BEIJING CO LTD
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, memory access is less efficient

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for reading and writing memory data
  • Method and device for reading and writing memory data
  • Method and device for reading and writing memory data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.

[0050] The data storage method of the memory in the related technology mainly adopts two methods. Method 1: only adopts the sequential storage method. When there is data that needs to be additionally written, it is stored sequentially in the memory according to a specific order, so that the access frequency is higher. The data cannot be accessed in priority, resulting in the problem of low hit rate of data with high access frequency; Method 2: Set up LRU cache storage in the memory. When the storage space in the cache is insufficien...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention proposes a method and device for reading and writing memory data, wherein the memory data writing method includes: acquiring the first data to be written in the memory, storing the first data as the last accessed data in a hash table, If the storage space of the hash table is insufficient, the first accessed second data is deleted from the hash table, and the second data is stored in the ordered list. By establishing two storage methods of hash table and ordered table, different storage methods are adopted for different data, which improves the efficiency of data access and solves the problem that in related technologies, the storage of data in memory only supports the establishment of the least recently used cache (LRU) cache) to store data with high access frequency, or use an ordered table based on the index order to store, but the LRU cache method has a slower access speed for data with a lower access frequency, while the ordered table method has a slower access speed Data with a higher frequency has a poor hit rate, resulting in a problem of low data access efficiency in memory.

Description

technical field [0001] The invention relates to the technical field of computer data storage, in particular to a method and device for reading and writing memory data. Background technique [0002] The memory set in the computer equipment is used to store data, and it has high-speed data read and write capabilities compared with disks. In order to meet the needs of the processor for high-speed data access and processing, some data needs to be stored in the memory of the computer device. [0003] In the related technology, the data storage in the memory adopts the least recently used cache (Last Recently Used cache, LRU cache) storage method to store the data with high access frequency, or stores the data in an ordered list according to the index order. LRU cache has a higher hit rate for frequently accessed hotspot data, but the access speed of non-hotspot data is slower; compared with LRU cache, the way of ordered table storage improves the access speed of non-hotspot data...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/903G06F16/901G06F12/123
CPCG06F12/123G06F16/2255
Inventor 山宝银刘豪余豪阳刘昕钟科赵政
Owner TENCENT CLOUD COMPUTING BEIJING CO LTD