A message buffer management method and device

A management method and buffer technology, which are applied in the field of message buffer management methods and devices, can solve problems such as system exceptions and message buffers cannot be efficiently recovered, and achieve the effect of improving reliability and fault tolerance.

Active Publication Date: 2022-04-26
BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The embodiment of the present invention provides a message buffer management method and device to solve the problem in the prior art that the message buffer cannot be efficiently recovered and cause system abnormalities

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 message buffer management method and device
  • A message buffer management method and device
  • A message buffer management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046]Aiming at the problem in the prior art that the message buffer cannot be efficiently recovered and causes system abnormality, the basic principle of the message buffer management method provided by the embodiment of the present invention is to expand the control information of the message buffer to increase the Indicates the holder information and timestamp of the currently held message buffer. When a business process applies for a message buffer, when the business process is allocated a message buffer, the holder of the allocated message buffer will be assigned The information is updated to the identification ID of the business process, and the timestamp is updated to the latest current time. The distribution of message buffer resources in the current system can be presented by querying the holder information; the timestamp can be used to quickly and accurately judge Check whether there is a packet buffer resource leak in the current system.

[0047] The flow of the mes...

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 message buffer management method. The method includes: when a service process applies for a message buffer, allocating an idle message buffer in the total message buffer for the service process, and assigning the message buffer to the service process. The holder information of the idle message buffer is updated to the identification ID of the business process, and the timestamp of the idle message buffer is updated to the current latest time; Detection; when the holder information of the first message buffer in the total message buffer is not the preset holder information and the time stamp of the first message buffer exceeds the first preset duration without When updated, the first message buffer is reclaimed. The invention can solve the problem of system abnormality caused by the inability to efficiently recycle the message buffer in the prior art.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a message buffer management method and device. Background technique [0002] The message buffer refers to the carrier of the message, which is a section of memory used to cache the message frames received by the network card. Message buffer allocation methods are classified according to the timing of allocation, and can be divided into dynamic allocation and pre-allocation. Among them, the dynamic allocation method refers to allocating buffers for receiving descriptors through the message buffer application interface provided by the operating system when preparing to receive the next new frame; it only allocates when buffers are needed, which has the advantage of small memory overhead. But it needs to dynamically allocate memory, so the CPU overhead is relatively large. The pre-allocation method refers to the pre-allocation of a certain number of message buffers into the buff...

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/36G06F11/07G06F9/50
CPCG06F9/5016G06F9/5022G06F11/073G06F11/366
Inventor 林振彬
Owner BEIJING XINWANG RUIJIE NETWORK TECH 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