DATA STORAGE METHOD, APPARATUS AND device

A data storage and data volume technology, applied in the computer field, can solve problems such as memory waste, unavailable memory, and multiple memory fragments

Active Publication Date: 2019-01-01
TENCENT TECH (SHENZHEN) CO LTD
View PDF8 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, after the data is stored in the memory block, other data other than the data will not be stored in the memory block. In this way, when the memory size of the memory block is larger than the size of the data stored in the memory block, the memory block will There will be some remaining unusable memory, which is commonly known as memory fragmentation, resulting in memory waste
For example, if 80B of data is stored in a 128B memory block, there...

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
  • DATA STORAGE METHOD, APPARATUS AND device
  • DATA STORAGE METHOD, APPARATUS AND device
  • DATA STORAGE METHOD, APPARATUS AND device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The solution of the present application is applicable to the scenario of storing data in memory, so as to reduce memory fragmentation and improve memory utilization. For example, the operating system in the computer device responds to the memory request initiated by the application program or process in the computer device, and stores the data stored in the memory requested by the memory request into the memory.

[0040] For ease of understanding, see figure 1 , which shows a schematic diagram of an application scenario to which the data storage method of the present application is applicable.

[0041] Depend on figure 1 It can be seen that there is an operating system running in the computer device, and at the same time, programs and processes are running in the computer device. The operating system can be used to manage the memory space in the computer device, and send the Memory request, allocate memory space for programs, processes, etc., to store data generated d...

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 for data storage, an apparatus and a device. The method comprises: after obtaining the target data to be stored in the memory and the data amount of the target data, according to the data amount, the target capacity specification of the memory block which can contain the target data and has the smallest remaining space is determined from a plurality of capacity specifications of the set memory block. At least one memory block combination with a total capacity not less than a data amount is constructed according to the plurality of capacity specification, the memory block combination comprises at least one memory block with a capacity specification and a number of memory blocks with each capacity specification, and the total numb of memory blocks in the memory block combination is a plurality of; determining a combination of target memory blocks with the smallest total capacity; when the total capacity of the target memory block combination is less than the capacity characterized by the target capacity specification, the target data is stored in a plurality of target memory blocks corresponding to the target memory block combination. The scheme of theinvention can reduce the memory fragmentation in the memory and improve the memory utilization rate.

Description

technical field [0001] The present application relates to the field of computer technology, and more specifically, to a data storage method, device and equipment. Background technique [0002] Programs, processes, applications, codes, functions, etc. need to use memory to store data in memory when running. In order to use memory reasonably, memory management is required. [0003] The current memory management mechanism is to divide the memory into several memory pages, and the capacity of each memory page is the same, for example, the size of each memory page is 1MB, and the memory page is further divided into several equal-sized memory blocks ( Also known as a memory slice), a memory block is the smallest unit of memory management, and the size specifications of memory blocks in different memory pages may be different. For example, the memory block can be divided into various specifications such as 32B (B means byte), 64B, 128B, 512B, 1KB, etc. according to the data size ...

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): G06F9/50G06F12/02
CPCG06F9/5016G06F12/023
Inventor 赵森曹宝山
Owner TENCENT TECH (SHENZHEN) 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