Inter-multi-core buffer dynamic migration method and device based on DPDK
A dynamic migration, multi-core technology, applied in the field of data communication, can solve the problems of business interruption, uneven distribution of buffer resources, insufficient effective utilization of buffer resources, etc., to increase stability and reliability, improve buffer resource utilization, reduce The effect of packet loss
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] In order to solve the technical problem of insufficient effective utilization of buffer resources caused by buffer allocation management defects in the traditional technology, the present invention provides a DPDK-based multi-core buffer dynamic migration method. Among them, in order to realize the buffer dynamic migration when the CPU core applies for a buffer, it is first necessary to optimize and improve the buffer management framework structure based on DPDK; The optimization process is introduced.
[0042] combine figure 1 It can be seen that in the traditional DPDK-based buffer management framework, each CPU core (hereinafter also referred to as core) corresponds to a buffer cache pool (hereinafter also referred to as buffer_cache), and multiple buffer cache pools share a buffer shared pool (hereinafter also referred to as mempool). The embodiment of the present invention is exactly in figure 1 On the basis of the shown buffer management framework, further opti...
Embodiment 2
[0081]Based on the buffer management framework provided in Embodiment 1 above, the embodiment of the present invention provides a DPDK-based method for dynamically migrating buffers between multi-cores. As can be seen from Example 1, in the optimized and improved buffer management framework, each core still has a corresponding buffer_cache, and multiple buffer_caches share a mempool; wherein, each buffer_cache is set with a shared waterline red_level, and buffers below red_level As a shareable buffer, and set a buffer lock for the shareable buffer in each buffer_cache, thus building a parallel intercommunication channel between the buffer_cache of each core, such as Figure 6 shown.
[0082] In the embodiment of the present invention, when any CPU core applies for a buffer, it will still preferentially search for buffer resources from the buffer cache pool of the core for allocation; only when the buffer cache pool of the core and the buffer shared pool cannot satisfy, Only t...
Embodiment 3
[0105] On the basis of the DPDK-based multi-core buffer dynamic migration method provided in the above-mentioned embodiment 2, the present invention also provides a DPDK-based multi-core buffer dynamic migration device that can be used to implement the above method, such as Figure 8 Shown is a schematic diagram of the device architecture of the embodiment of the present invention. The device for dynamically migrating buffers between multiple cores based on DPDK in this embodiment includes one or more processors 21 and a memory 22 . in, Figure 8 A processor 21 is taken as an example.
[0106] The processor 21 and the memory 22 may be connected via a bus or in other ways, Figure 8 Take connection via bus as an example.
[0107] The memory 22 is a non-volatile computer-readable storage medium based on a DPDK-based multi-core buffer dynamic migration method, and can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, as in ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com