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

Memory fragment treatment method, device and system

A technology of memory fragmentation and distributed systems, applied in the field of memory fragmentation management methods, devices and systems, can solve problems such as business jitter, business unavailability, and inability to use actual production systems

Pending Publication Date: 2021-12-03
BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the process of realizing the present invention, the inventor finds that the prior art has at least the following problems: the first method can indeed solve the problem of memory fragmentation, but if there is a leader replica (leader) stored in the restarted node, it will lead to including the The entire consistency group including the leader copy and the corresponding follower copy (follower) is unavailable, and re-electing the leader requires at least three special election cycles (special election cycles refer to the election cycles applied in fault repair scenarios), if Each special election period is 500 milliseconds, which will cause the relevant services for more than 1.5 seconds to be unavailable, which will bring great jitter to the business
The second method requires a large number of locking operations, which will have a more serious impact on the business and cannot be used in actual production systems

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
  • Memory fragment treatment method, device and system
  • Memory fragment treatment method, device and system
  • Memory fragment treatment method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0033] It should be noted that, in the case of no conflict, the embodiments of the present invention and the technical features in the embodiments can be combined with each other.

[0034] figure 1 It is a schematic diagram of the main steps of the memory fragmentation management method according to the embodiment of the present invention.

[0035] Such as figure 1 As s...

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 fragment treatment method, device and system, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: after receiving a governance request sent by any node in the distributed system when the node meets a memory fragment governance condition, judging whether a leader copy exists in the node or not; when the leader copy exists in the node, determining that each leader copy in the node corresponds to a follower copy of other nodes, and sending an election instruction to the follower copy; enabling the election instruction to instruct the follower copy and the leader copy to execute leader election, and restrict candidates of the leader election in the follower copy; and after the election result of the leader election is obtained, restarting the node. According to the embodiment, the memory fragments in the distributed system nodes can be effectively treated under the condition of not influencing services.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a memory fragment management method, device and system. Background technique [0002] In a distributed system, each node may form memory fragments due to differences in the length of stored data and frequent data updates. Memory fragmentation refers to the waste of memory space caused by the memory allocated to the process by the operating system, but the process cannot be used due to reasons such as small continuous storage space. Excessive memory fragmentation will occupy memory space, reduce process execution efficiency, and affect the performance of corresponding applications. In the prior art, two methods are mainly used to solve the problem of memory fragmentation: first, when a node is found to have excessive memory fragmentation, the node is directly restarted. Second, when the memory fragmentation of a certain node is excessive, a thread is started in the bac...

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/02G06F9/50G06F3/06G06F9/48
CPCG06F12/0269G06F9/5016G06F3/067G06F9/4881
Inventor 廖再学
Owner BEIJING WODONG TIANJUN INFORMATION TECH CO LTD