Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for managing memory space

A technology of memory space and management method, applied in the direction of memory address/allocation/relocation, memory system, electrical digital data processing, etc. Improved stability and reliability, improved average speed of response, reduced peak load effects

Active Publication Date: 2013-04-17
BEIJING QIHOO TECH CO LTD
View PDF3 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this approach can easily bring certain "bumps" to the upper-layer application, that is, at the time of memory expansion, all cached data will be invalidated. At this time, all user access must go to the database or disk to find data, which increases the response time of user access, and at the same time makes the disk access pressure instantly too high

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 managing memory space
  • Method and device for managing memory space
  • Method and device for managing memory space

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0035] According to one aspect of the present invention, a method for operating cached data is proposed, such as figure 1 As shown, the method includes the following steps:

[0036] Step S1, if the data in the first memory space is full, then judge whether the first memory space is empty, if not, take out the data at the starting position from the first memory space until all the all data in the first memory space; if so, release ...

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 method and device for managing a memory space. The method includes that if stale data in a first memory space reaches a certain threshold, whether valid data exists in the first memory space is judged, and on yes judgment, the valid data arranged at an initial position is taken out from the first memory space until all valid data in the first memory space is taken out; on no judgment, the first memory space is released; Hash operation is conducted on data taken out from the first memory space, a memory address of the data in a second memory space is obtained, and the data is written on the memory address of the second memory space. The method and device can meet a requirement for expanding / reducing caching capacity and can also guarantee that users can access caching data normally during a data migration period. Simultaneously, pressure of a data base or a disc is reduced during a data traffic peak period, and the stability of overall service is improved.

Description

technical field [0001] The invention relates to the technical field of data communication, in particular to a memory space management method and device. Background technique [0002] At present, many large-scale Internet products and services have increasingly used caching technology. Website technicians usually cache hotspot data accessed by users in memory. When other users access the same data, they can directly read from the memory and return the read data to the user to avoid searching from slow devices such as databases or disks. [0003] Although many cache devices have been widely used, most cache devices need to reapply to the operating system for a larger space of memory when the storage space is insufficient, and at the same time release the old memory area to accommodate the new memory. Migrate or populate data in the space. However, this approach can easily bring certain "bumps" to the upper-layer application, that is, at the time of memory expansion, all cac...

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
IPC IPC(8): G06F12/08G06F3/06G06F12/0871
Inventor 杨帆
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products