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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


