Method and device for replacing data in caching module

A technology of caching blocks and replacing blocks, which is applied in digital data processing, memory systems, memory architecture access/allocation, etc., can solve problems such as unbalanced cache space, and achieve the effect of solving unbalanced cache space.

Inactive Publication Date: 2013-03-27
HUAWEI TECH CO LTD
View PDF5 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a method and device for replacing data in a cache module, which is used to solve the problem of unbalanced cache space of images or virtual machines with different activity levels

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 replacing data in caching module
  • Method and device for replacing data in caching module
  • Method and device for replacing data in caching module

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] figure 1 It is a flowchart of a method for replacing data in a cache module provided by an embodiment of the present invention. Such as figure 1 As shown, the method includes:

[0022] Step 11. Receive the new data block or write the information of the new data block into the cache module.

[0023] For example, the management module of the cache module receives a new data block of a mirror image or a virtual machine, or receives information about writing a new data block into the cache module, and learns that there is a new data block to be written into the cache module. According to the information of writing the new data block into the cache module, it can also be known which image or virtual machine the new data block to be written into the cache module comes from.

[0024] Step 12. When the space of the cache module is full, select a cache block in the cache module according to the quota as a preparatory replacement block. Wherein, the cache block is a data bloc...

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 provides a method and a device for replacing data in a caching module. The method comprises the following steps: receiving a new data block or writing information of the new data block into the caching module; selecting a caching block as a preparatory replacing block from the caching module according to the quota in the condition that the whole space of the caching module is full, wherein the caching block is the data block stored in the caching module; and replacing the preparatory replacing block by the new data block. According to the method and the device for replacing the data in the caching module, one caching module is selected as the preparatory replacing block from the caching module according to the quota, so that the quantity of the caching blocks (in the caching module) of a mirror image or a virtual machine can be limited, and the space of the caching module is prevented from being greatly occupied by the highly active mirror image or virtual machine, and as a result, the problem that the caching spaces of the mirror images or virtual machines with different active levels are not balanced can be solved.

Description

technical field [0001] The invention relates to cache management technology in cloud computing, in particular to a method and device for replacing data in a cache module. Background technique [0002] Desktop cloud is to separate the personal computer desktop environment from the physical machine through the cloud computing model, and become a service that can provide desktops externally. In a virtualized desktop cloud system using a virtualization architecture (Xen), the privileged domain (Domain 0) in Xen virtualizes CPU, input and output (Input and Output, IO) bus, storage and other resources for use on the server. The virtual machine domain (Domain U) in Xen is used. At present, many optimization software have designed a cache (Cache) module for Domain U in Domain 0. The Cache module is used to cache the hotspot data mirrored by each DomainU, so as to reduce the impact of the IO generated by each Domain U using the mirrored data on the remote storage on the Input and O...

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 Applications(China)
IPC IPC(8): G06F12/12
CPCG06F12/12G06F2212/151
Inventor 李明君
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products