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

A method and device for dynamic migration of large page memory based on dpdk

A technology of dynamic migration and memory, which is applied in the field of data communication, can solve the problems of poor system stability and low effective utilization of large page memory, and achieve the effect of ensuring normal operation, realizing flexible use, and avoiding business interruption

Active Publication Date: 2022-05-17
FENGHUO COMM SCI & TECH CO LTD +1
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Aiming at the above defects or improvement needs of the prior art, the present invention provides a method and device for dynamically migrating large page memory based on DPDK. Seconded to realize the successful application of large page memory, thereby solving the technical problems of low effective utilization of large page memory and poor system stability in traditional solutions

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 method and device for dynamic migration of large page memory based on dpdk
  • A method and device for dynamic migration of large page memory based on dpdk
  • A method and device for dynamic migration of large page memory based on dpdk

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0053] In order to solve the technical problems of low effective utilization of large page memory and poor system stability in the traditional solution, the embodiment of the present invention provides a method for dynamic migration of large page memory based on DPDK. The large page memory migration framework can refer to figure 2 .

[0054] combine figure 2 It can be seen that there are often multiple types of buffer pools in the system. For example, the Jumbo buffer pool is a large message buffer pool used to send and receive large messages, and the software buffer pool is a software buffer pool used when the device actively sends messages. The protocol buffer pool is a protocol buffer pool for sending and receiving protocol messages, and the pktbuffer pool is a message buffer pool for sending and receiving ordinary messages. user means huge page memory users other than the buffer pool. User and buffer pool are in equal status and can apply for huge page memory usage from...

Embodiment 2

[0066] On the basis of the above-mentioned embodiment 1, the embodiment of the present invention further provides a specific implementation manner of large page memory dynamic migration based on DPDK by taking the buffer pool as an example for management by dividing it into buffers. In this embodiment, the preparation steps before memory migration are as follows:

[0067] 1) Reversely define the secondment priority of each buffer pool according to the usage scenarios and importance of the buffer pool, and set the secondment weight of each buffer pool according to the corresponding secondment priority.

[0068] The definition principle of secondment priority is to try not to affect the memory usage requirements of the seconded buffer pool itself, which can be reversely defined according to the usage scenarios and importance of the buffer pool: the wider the usage scenarios and the higher the importance of the buffer pool, the more important it is Prioritize the memory usage req...

Embodiment 3

[0107] On the basis of the above-mentioned embodiments 1 and 2, the embodiment of the present invention further provides a specific implementation manner of large page memory dynamic migration based on DPDK by taking the memory part of the buffer pool divided into buffers for management as an example. In this embodiment, the preparation steps before memory migration are as follows:

[0108] 1) Reversely define the secondment priority of each buffer pool according to the usage scenarios and importance of the buffer pool, and set the secondment weight of each buffer pool according to the corresponding secondment priority. Wherein, the specific setting principles of secondment priority and secondment weight can refer to Embodiment 2, which will not be repeated here.

[0109] 2) Calculate the pre-allocated memory space of each buffer pool according to the corresponding secondment weight, divide this part of memory space into multiple buffers, and use the remaining continuous large...

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 present invention discloses a method and device for dynamic migration of large page memory based on DPDK. When applying for large page memory from the large page memory pool fails, the required large page is seconded from the buffer pool with enough free large page memory memory space; register the attribution information of the seconded large page memory space to the recovery thread, and synchronize the attribution information to the corresponding control information; dynamically monitor the memory changes in the large page memory pool, and when there is a surplus of large page memory, Apply for a new huge page memory space according to the attribution information registered in the recovery thread and fill it into the corresponding buffer pool; when the huge page memory user actively releases the huge page memory space that has been applied for, the seconded huge page memory space will be released back to the corresponding buffer pool buffer pool. This application can realize the secondary flexible use of large page memory, avoid problems such as business interruption and equipment abnormality caused by memory application failure, and improve the utilization rate of large page memory.

Description

technical field [0001] The invention belongs to the technical field of data communication, and more specifically relates to a method and a device for dynamic migration of large page memory based on DPDK. Background technique [0002] The forwarding platform of traditional network equipment is based on a dedicated network chip, such as cavium's cn78xx network processor. The technical solution based on a dedicated network chip leads to a high degree of hardware dependence, and the flexibility of business development is limited by the hardware, which further causes the business development cycle to become longer, the market delivery cycle to be delayed, and the product development cost to be further increased. DPDK (Intel Data Plane Development Kit, Intel Data Plane Development Kit) technology is based on a general-purpose processor (such as x86 and arm) for the construction of a multi-core soft forwarding platform. This technical solution not only guarantees data processing p...

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): G06F9/50
CPCG06F9/5016G06F9/5022
Inventor 孙琳洋王小营
Owner FENGHUO COMM SCI & 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