Large-page memory dynamic migration method and device 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, flexible use, and constant characteristics
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
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