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

Socket cache resource management method and apparatus

A resource management and socket technology, applied in the field of communication, can solve problems such as network service bottlenecks in distribution rate, extended user waiting time, and reduced user experience, so as to avoid long waiting time, improve user experience, and avoid consuming system performance. Effect

Pending Publication Date: 2018-06-05
ZTE CORP
View PDF6 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The socket cache resource management method and device provided by the embodiments of the present invention mainly solve the technical problem that the skb (socket cache resource) used in the prior art can only come from the skb slab cache, and after release You can only return to the management mechanism of skb slab cache, which will cause a large amount of system performance to be consumed in the process of skb allocation and release. In addition, due to the high demand for skb in network services, the allocation rate of skb will cause network service bottlenecks , which prolongs the user's waiting time and reduces the user experience

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
  • Socket cache resource management method and apparatus
  • Socket cache resource management method and apparatus
  • Socket cache resource management method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] In order to solve the problem that the management of skb in the prior art must rely on the allocation of the kernel skb slab cache to consume system performance, resulting in large consumption of system performance, and because the network service has a relatively large demand for the use of skb, but to the kernel skb slab cache The rate of applying for skb will not increase as the user's demand for skb increases, so the network service encounters a bottleneck, and the data transmission rate is limited, which makes the user's waiting time longer and the user experience declines. This embodiment A socket cache resource management method will be proposed, which can be implemented by a socket cache resource management device, see below figure 1 :

[0028] S102. After receiving the skb allocation application, the socket cache resource management device extracts the recyclable skb from the buffer pool.

[0029] When skb needs to be used, the socket cache resource management...

Embodiment 2

[0059] Corresponding to the socket cache resource management method provided in Embodiment 1, this embodiment introduces the socket cache resource management device implementing the method, which will be described below in conjunction with the accompanying drawings, so that those skilled in the art can manage The strengths and details of the method are clearer, see Figure 4 :

[0060] The socket cache resource management device 40 provided in this embodiment includes an extracting module 402 , a modifying module 404 and an allocating module 406 . The extracting module 402 is used to extract reclaimable skb after receiving the skb allocation application; the modification module 404 increases and modifies the reference count value of the extracted reclaimable skb; the allocation module 406 is used to allocate reclaimable skb to respond to skb distribution Application.

[0061] When the skb needs to be used, the extraction module 402 receives the skb allocation application. Ac...

Embodiment 3

[0094] The following is a step-by-step introduction to the socket cache resource management method and device provided in Embodiment 1 and Embodiment 2 with a specific example. Please combine Figure 7 :

[0095] S701. Create a buffer pool and apply to the system kernel for storing the skb in the buffer pool.

[0096] In this embodiment, the buffer pool is managed in the form of a lock-free queue, which facilitates direct extraction after receiving an skb allocation application, thereby improving allocation efficiency.

[0097] The reference count value of the skb pre-allocated by the system kernel is equal to 1. Therefore, although the skb stored in the buffer pool has not yet participated in the data transmission work, that is, when it has not been referenced, its reference count value is no longer 0. These skb is a recyclable skb.

[0098] S702. When the skb allocation application is received, the recyclable skb is extracted from the buffer pool for allocation.

[0099] ...

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

Embodiments of the invention provide a socket cache resource management method and apparatus. The socket cache resource management apparatus pre-establishes a buffer pool, and the buffer pool stores recoverable skb. After receiving an skb allocation application, the socket cache resource management apparatus can obtain the recoverable skb directly from the buffer pool, and perform allocation afteraddition and modification of a reference count value of the skb. According to the scheme, when needing to be allocated, the skb does not need to be applied for to a skb slab cache of a kernel, so that the problems of long waiting time and system performance consumption caused by applying for the skb to the skb slab cache of the kernel are avoided, the system performance is maintained, the response time of the skb allocation application is shortened, and the user experience is improved.

Description

technical field [0001] The invention relates to the communication field, in particular to a socket buffer resource management method and device. Background technique [0002] As a network operating system, Linux is widely used in servers, PC workstations and various terminal devices. When Linux is applied to server equipment, it mainly undertakes the network service function, especially in e-commerce and video websites, which puts forward higher requirements on the network service performance of the server. [0003] In traditional Linux network services, when a data message needs to be sent, a skb (socket buffer, socket cache resource) data structure needs to be applied for from the skb slabcache of the kernel. skb is an important data structure in Linux. It represents the header information of received or sent data packets. When managing the applied skb, the concept of "reference counting" is often used. In the management mechanism of reference counting, when a new refere...

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): G06F9/50
CPCG06F9/5016
Inventor 梁建适刘玉雪
Owner ZTE CORP