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

A memory detection method and device

A detection method and memory technology, which is applied in the field of communication, can solve problems such as failure to detect short-term exhaustion of memory, long CPU processing time for X business, and packet loss during device switching.

Active Publication Date: 2021-03-05
RUIJIE NETWORKS CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] If the CPU takes a long time to process X service and the memory is full of cached messages of A service and B service, the heartbeat message between devices will not be sent normally because there is no free memory. After a period of time, the second device (or It is called the peer device) to confirm that the first device is abnormal, which causes the device to switch
[0005] However, the time period during which the CPU processes the X service is a situation in which the memory is briefly exhausted. After the CPU finishes processing the X service, this short-term exhaustion will disappear, and the memory of the first device can return to normal, but the prior art It cannot detect the short-term exhaustion of memory, and the above-mentioned device switching will cause packet loss, which will affect business operation

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 detection method and device
  • A memory detection method and device
  • A memory detection method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all of them. Based on the embodiments of the present application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present application.

[0058] The memory detection method provided by the embodiment of the present invention is applied in figure 1 In the shown distributed system, the distributed system includes multiple first devices and a second device (or "standby device") corresponding to each first device. The first device and the second device can be servers or terminals. In order to ensure the accuracy of detection, the server can be an application server or cloud server with stron...

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 application discloses a memory detection method and device. The method executes step A: if it is determined that there is no free resource in the second memory area, then send a heartbeat message to the second device through the memory space of the first memory area; Step B: compare the current memory space of the second memory area with the preset Set the replenishment threshold for comparison; when the current memory space of the second memory area is not less than the preset replenishment threshold, it is determined that the second memory area is temporarily abnormal before the current moment; when the current memory space of the second memory area is less than the preset When the threshold is refilled, return to step A. This method reduces the device switching frequency caused by the inability to send heartbeat messages after the overall memory is occupied by pending services in the prior art, that is, reduces the number of switching between devices, reduces the packet loss rate, and improves the accuracy of heartbeat detection. sex.

Description

technical field [0001] The present application relates to the technical field of communications, and in particular to a memory detection method and device. Background technique [0002] A distributed system is a multi-device architecture interconnected by a communication network, and each device performs tasks through coordination and interaction. In a distributed communication system, the heartbeat mechanism can be used to check the reliability of devices. The heartbeat mechanism refers to the mechanism that devices regularly send a custom structure, such as a heartbeat message, to notify the other party of their current working status to ensure an effective connection between devices. After detecting the abnormality of the other party's equipment, perform repair operations on the abnormal equipment, such as equipment switching operations. [0003] The sending and receiving of the heartbeat message by the device depends on the operation of the operating system in the devi...

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): H04L12/26H04L12/24H04L29/08
CPCH04L41/0631H04L41/0668H04L43/10H04L43/16H04L67/5682
Inventor 王鹏
Owner RUIJIE NETWORKS CO LTD