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

A cache data access method and data cache system

An access method and a technology for caching data, applied in memory systems, electrical digital data processing, instruments, etc., can solve the problems of low memory usage, high management difficulty, low memory utilization, etc., and achieve the effect of improving utilization

Active Publication Date: 2016-01-27
BEIJING SOHU NEW MEDIA INFORMATION TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Through the research of the inventor, it is found that in the existing Memcached application, users generally do not use up the Memcached quota allocated to them. After multiple data addition, deletion and modification requests, the memory pool will receive multiple requests to allocate or release memory blocks, so that the memory usage of Memcached in the operating system will still reach the upper limit allocated at startup, so the memory utilization rate is not high
Especially in the cloud computing environment, there are a lot of users. If you still set up a separate set of Memcached for each user, there will be problems of high management difficulty and low memory usage

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
  • A cache data access method and data cache system
  • A cache data access method and data cache system
  • A cache data access method and data cache system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. 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.

[0045] A kind of cache data access method provided by the present invention is described at first below, with reference to figure 1 As shown, the method includes:

[0046] Step 101, receiving an access request from a user, the access request carrying key information;

[0047] Memcached receives a user's access request. In the embodiment of the present invention, the access request carries key information, and the user information can be used to match the memo...

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 invention discloses a cache data access method and a data cache system. The method comprises the following steps of receiving an access request of a user, wherein the access request carries key information; searching a hash table to obtain a corresponding first internal memory block according to the key information; transferring the first internal memory block to a global line replaceable unit (LRU) and a first linked list head part with the grade being identical to that of the written data in the user LRU of the corresponding user if the access request is the request for writing data, wherein an internal memory block linked list affiliated by all users is preset in the user LRU; taking the internal memory block staying at the tail part of the first linked list to be used for storing the written data if the occupation of the internal memory reaches the internal memory limit and the first linked list is not empty; otherwise, acquiring a second linked list with the grade being identical to that of the written data in the global LRU, and taking the internal memory block on the tail part of the second linked list to be used for storing the written data; and transferring the internal memory block with the written data to the head part of the first linked list and the second linked list.

Description

technical field [0001] The present invention relates to the technical field of data storage, and more specifically, to a cache data access method and a data cache system. Background technique [0002] Memcached is a distributed memory key / value cache system. "Distributed" means that the cache can be distributed to multiple machines, "memory" means that all cached content is stored in memory, and "key / value" means that the cached content is the key (key) and the corresponding value (value). [0003] In a single-user environment, the common caching method is to set up Memcached by the user himself, specify the available memory size and monitoring address of Memcached with command line parameters, and then use the program to access the cached content through the corresponding address through the Memcached client library. If the size of a single Memcached is not enough, set up multiple Memcached, and then use the built-in distributed algorithm of the Memcached client library to...

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): G06F12/0802G06F12/0877
Inventor 窦元
Owner BEIJING SOHU NEW MEDIA INFORMATION TECH