Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Buffer management method and device

A cache management and message cache technology, applied in the Internet field, can solve the problem that the kernel state process and the user state process cannot use the lock mechanism, and achieve the effect of improving the cache communication performance

Active Publication Date: 2014-07-16
HUAWEI TECH CO LTD
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, under the Linux operating system, the message transmission between the kernel mode process and the user mode process needs to use the lock mechanism to solve the shared memory concurrency, such as the problem that two or more processes call the same memory space at the same time , but kernel-mode processes and user-mode processes cannot use a set of lock mechanisms

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
  • Buffer management method and device
  • Buffer management method and device
  • Buffer management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The technical solutions of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.

[0047] The core idea of ​​the embodiments of the present invention is to divide the buffer space of the system into a private space and a shared space, and the private space is a buffer space accessible by a specific user for storing messages to be processed. The shared space is a cache space that all users can access and is used to store packets to be processed. The pointers to the addresses corresponding to each message cache storing messages in the private space and the queue formed by the node value in front of each pointer are called private queues, which point to the corresponding addresses of each message cache storing messages in the shared space. The queue formed by the pointer of the address and the node value before each pointer is called a shared queue, and each node value is stored in a message buffer spac...

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 provides a buffer management method. The buffer management method includes that a second user is informed of the address of a message buffer and access permission of the message buffer is changed into the permission that only the second user can access the message buffer after a first user performs first processing on a message to be processed in the message buffer of a privately owned queue of the first user; the second user accesses the message buffer and performs second processing on the message to be processed. The buffer management method avoids the phenomenon that when sharing is buffered, the sharing needs to be buffered through a memory copying and pasting mode, can obtain different user sharing buffer memory space under a uniform lock management mechanism, and improves buffer communication performance built by each user.

Description

technical field [0001] The invention relates to the field of the Internet, in particular to a buffer management method and a server. Background technique [0002] Access routing (English: access router, abbreviation: AR) requires unified cache (English: buffer) management among the functional modules of the device. For example, the receiving process of the receiving module applies for a section of memory space as the message when receiving the message. Cache (English: packet buffer, abbreviation: PBUF), PBUF is set to store the space of the message waiting to be transmitted received in the network, the forwarding process of the forwarding module applies for another segment of memory space as the forwarding when forwarding the message The message cache of the message, the core mode (English: kernel mode) process of the operating system and the user mode (English: user mode) process for fast communication between message transmission also need to apply for memory space as a me...

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): G06F3/06
Inventor 邓军军徐永新
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products