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

Method and device for data storage

A data storage and data request technology, applied in the field of memory management, can solve the problem of low memory utilization

Inactive Publication Date: 2012-05-09
BEIJING QIHOO TECH CO LTD +1
View PDF4 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of this application is to provide a data storage method and device to solve the problem of low memory utilization

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 data storage
  • Method and device for data storage
  • Method and device for data storage

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] In order to make the above objects, features and advantages of the present application more obvious and comprehensible, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0041] The present application provides a data storage method and device, which can improve memory utilization. The implementation process of the method described in the present application will be described in detail below through an embodiment.

[0042] refer to figure 1 , is a flow chart of a data storage method described in the embodiment of the present application.

[0043] Step 101, receiving a data storage request and obtaining the requested data size M;

[0044] Step 102, comparing the requested data size M with the size N of the free memory block pointed to by the current pointer in the memory, if M is less than or equal to N, then assigning the free memory block to the request data;

[0045]...

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 data storage so as to solve the problem of low memory utilization rate. The method includes that if requested data can be stored in a paging allocation memory block, an idle memory block is selected to store the requested data; and if data size is larger than the paging allocation memory block, a part of data of the requested data is stored in the idle memory block, the other part of surplus data is stored in one or a plurality of available memory blocks, and all the memory blocks storing the requested data are connected through indicating needles. The available memory blocks are scattered memory blocks, the size of the scattered memory blocks is not necessarily to be the same as that of the paging allocation memory block, and accordingly memory waste can be avoided to the greatest extent, and memory utilization rate can be improved to the maximum limit.

Description

technical field [0001] The present application relates to memory management technology, in particular to a data storage method and device. Background technique [0002] Data storage can be divided into memory storage and file storage. For memory storage, the paging storage management mechanism is generally adopted. Paging storage management is to divide the logical space of a process into several slices of equal size, called pages or pages, and number each page, starting from 0, such as page 0, page 1, etc. Correspondingly, the memory space is also divided into several storage blocks of the same size as the page, which are called (physical) blocks or page frames (frame), and they are also numbered, such as 0# block, 1# block, and so on. [0003] When allocating memory for a process, several pages in the process are loaded into multiple physical blocks that may not be contiguous in units of blocks. Because the last page of the process is often not full enough to form an un...

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/06
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