Message buff management method and apparatus

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: 2018-12-21
BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
View PDF5 Cites 2 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
  • Message buff management method and apparatus
  • Message buff management method and apparatus
  • Message buff management method and apparatus

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

A message buff management method is provided. The method comprises: when a service process applies for a message buffer, allocating an idle message buffer in a total message buffer for the service process, updating the holder information of the idle message buffer to an identification ID of the service process, and updating a timestamp of the idle message buffer to a current latest time; when theservice process applies for a message buffer, allocating an idle message buffer to the service process; detecting the total message buffer according to a preset period; when the holder information ofthe first message buffer in the total message buffer is not the preset holder information and the timestamp of the first message buffer exceeds the first preset time length and is not updated, the first message buffer being recovered. The invention can solve the problem that the message buffer in the prior art can not be efficiently recovered and the system is abnormal.

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 Applications(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