A data caching method and device

A data caching and data technology, applied in the field of data processing, can solve the problem of low data caching efficiency and achieve the effect of improving speed and efficiency

CN110704336BActive Publication Date: 2021-10-15NSFOCUS INFORMATION TECHNOLOGY CO LTD +2
10 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2021-10-15

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention provides a data caching method and device to solve the problem of low data caching efficiency in the prior art. Including: obtaining the first read cost used to indicate the time required to read a piece of data from the disk, and the second read cost used to indicate the time required to read a piece of data from the preset memory; obtain the disk The first space occupancy and the number of accesses of each disk file in the multiple disk files stored on the computer; the first space occupancy is used to characterize the storage space occupied by hot data in the disk file; according to the first read cost, the second 2. Read cost, first space occupation and access times of each disk file, determine the access cost of each disk file; determine among multiple disk files according to the first space occupation and access cost of each disk file Output the disk file to be cached, and cache the hotspot data in the disk file to be cached to the preset memory.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of data processing, in particular to a data caching method and device. Background technique

[0002] A large number of systems or devices generally store data on disks. However, with the development of the Internet era, data is increasing rapidly. The traditional way of accessing disks to obtain data has been difficult to meet the processing speed requirements of users for systems or devices.

[0003] At present, in order to meet the user's demand for processing speed, the developer usually extracts some data from the disk and caches it in the memory manually. However, this method has high requirements for the developer, and requires the developer to analyze the value of the data and understand the space of the memory. The size is more error-prone, which is not conducive to improving the efficiency of data caching. Contents of the invention

[0004] The invention provides a data caching method and device to solve t...

Examples

Embodiment Construction

[0065] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments . Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0066] It should be noted that a plurality referred to in the present invention refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and / or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character " / " generally indicates that the contextual objects are an "or" relationship. In ad...