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

A memory management method, device, server and storage medium

A memory management and memory technology, applied in the field of memory management, can solve problems such as the memory limitation of a single host, and achieve the effect of reducing the dependence of memory capacity and performance

Active Publication Date: 2022-04-05
RUN TECH CO LTD BEIJING +1
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a memory management method, device, server, and storage medium to solve the memory limitation problem of a single host

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 memory management method, device, server and storage medium
  • A memory management method, device, server and storage medium
  • A memory management method, device, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] figure 1 It is a flow chart of a memory management method provided by Embodiment 1 of the present invention. This embodiment is applicable to the application scenario of a single-host architecture, and the method can be executed by a memory management device integrated in a server. Specifically, The method comprises the steps of:

[0042] S110. Obtain a tuple of the sliding window.

[0043] A tuple is a component of a data stream, and each tuple contains a certain amount of data, for example, each element (d1, d2, ..., dn), is called an n-tuple or simply a tuple. A data stream is a collection of continuous data, which can also be understood as a collection of multiple tuples. The size of a tuple can be set according to actual needs. Sliding window is a flow control technology for frame or byte transmission. In practical applications, the size of sliding window can be created according to the size of tuples to temporarily store tuples.

[0044] S120. Detect the remain...

Embodiment 2

[0053] figure 2 The flow chart of a memory management method provided by Embodiment 2 of the present invention is optimized on the basis of the above embodiments. Specifically, the method includes the following steps:

[0054] S210. Acquire the tuple of the sliding window.

[0055] S220. Detect the remaining space of the buffer pool in the memory.

[0056] S230. If the size of the remaining space is greater than or equal to the size of the tuple, store the tuple in the buffer pool.

[0057] The buffer pool is a part of the memory. In actual storage, in addition to considering the remaining space of the buffer pool, the remaining space of the memory also needs to be considered. For this reason, the embodiment specifically defines S230 as:

[0058] S2301. If the remaining space at the head end of the buffer pool in the memory is greater than or equal to the size of the tuple, store the tuple at the head end of the buffer pool.

[0059] Specifically, refer to image 3 , im...

Embodiment 3

[0074] Figure 4 A structural diagram of a memory management device provided by Embodiment 3 of the present invention, the device can execute the memory management method described in the above embodiment, specifically, the device includes:

[0075] Obtaining module 310, for obtaining the tuple of sliding window;

[0076] The first detection module 320 is used to detect the size of the remaining space of the buffer pool in the memory;

[0077] The first storage module 330 is configured to store the tuple in the buffer pool if the size of the remaining space is greater than or equal to the size of the tuple;

[0078] The second storage module 340 is configured to store the tuple to the disk if the size of the remaining space is smaller than the size of the tuple.

[0079] Embodiment 3 of the present invention provides a memory management device, which detects the size of the remaining space of the buffer pool in the memory by obtaining the tuples of the sliding window, and if...

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 memory management method, device, server and storage medium. The method includes: obtaining the tuple of the sliding window, detecting the size of the remaining space of the buffer pool in the memory, and if the size of the remaining space is greater than or equal to the size of the tuple, storing the tuple in the buffer pool, if The size of the remaining space is smaller than the size of the tuple, and the tuple is stored on the disk. The above technical solution, by migrating some tuples of the sliding window from the memory to the disk, solves the problem of storing a large amount of data in the memory in the prior art, causing insufficient memory and causing the system to crash, and reduces the memory capacity and performance of the host. dependency.

Description

technical field [0001] Embodiments of the present invention relate to the technical field of memory management, and in particular, to a memory management method, device, server, and storage medium. Background technique [0002] An event-based application is a data stream processing system designed to perform statistical analysis on streaming data, so systems typically process hundreds or thousands of data stream tuples per second. In recent decades, with the maturity of related technologies, stream processing engines have been widely used in industrial and commercial fields, for example, monitoring power stations through sensor networks, identifying and predicting trends in financial tickers, and analyzing telecom phone records. [0003] The data of the data flow tuple is continuously generated by some specific network, and then sent to the event processing engine for processing. When it is actually sent, the data flow tuple becomes a single flow or multiple flows, and the s...

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): G06F11/07G06F9/50
CPCG06F9/5016G06F11/073
Inventor 张志远兰杰王生玉
Owner RUN TECH CO LTD BEIJING