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

A processing method and device for a memory in a device based on a SW architecture

A processing method and memory technology, applied in electrical digital data processing, memory systems, instruments, etc., can solve the problems of not providing memory address restrictions related interfaces, network cards unable to send and receive messages normally, etc., to avoid failure to send and receive messages, avoid Effects of abnormal conditions

Active Publication Date: 2018-12-11
北京中科网威信息技术有限公司
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the prior art, when the above-mentioned large page memory is initialized, as long as the large page memory pages with continuous physical addresses are connected and integrated into a large large page memory block, no interface related to memory address limitation is provided. Similarly, the packet buffer (hereinafter referred to as "packetbuffer" PKB") and memory allocation for sending and receiving messages by DMA do not provide memory address limit related interfaces, so the memory allocated for PKB and DMA sending and receiving messages cannot be guaranteed to be within the preset memory limit address, if it is not in the preset memory Within the restricted address, it will cause the device to have an abnormal situation of sending and receiving messages. For example, when the input / output memory management unit (input / output memory management unit hereinafter referred to as "IOMMU") mode of the device is turned on, the network card will not be able to send and receive messages normally. Wen's situation appears

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 processing method and device for a memory in a device based on a SW architecture
  • A processing method and device for a memory in a device based on a SW architecture
  • A processing method and device for a memory in a device based on a SW architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0035] figure 1 It is a schematic flowchart of a processing method for memory in a device based on the Shenwei architecture in an embodiment of the present invention, as shown in figure 1 As shown, a method for processing memory in a device based on the Shenwei architecture provided by an embodiment of the present invention includes the following...

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 embodiment of the invention provides a processing method and device for a memory in a device based on a SW architecture. The method comprises the following steps: in the process of initializing alarge-page memory, obtaining the memory usage amount required by the device for receiving and sending messages, wherein the memory usage amount is the sum of a packet cache PKB memory usage amount anda direct memory access DMA memory usage amount; at each time aft that large page memory chunk is merged, cutting the large page memory chunk according to the memory usage amount and the preset memorylimit address to obtain the target memory chunk; filtering in a memory to be allocated of the device according to a PKB identifier or a DMA identifier to obtain a target memory block; allocating thetarget memory block to the PKB memory and the DMA memory for use by the PKB memory and the DMA memory. The device performs the method described above. The method and the device provided by the embodiment of the invention can avoid the abnormal condition that the message cannot be received and transmitted by the equipment based on the SW architecture.

Description

technical field [0001] The embodiment of the present invention relates to the technical field of hardware device failure processing, and in particular to a method and device for processing memory in a device based on the Shenwei architecture. Background technique [0002] During the initialization process of Shenwei architecture-based devices (including hardware devices such as firewalls), the huge page memory pages will be sorted according to the physical address from small to large, and the large page memory pages with continuous physical addresses belonging to the same physical node will be merged. Thereby merging into a large memory block of large pages, which is managed by a memory descriptor table (rte_memseg), the physical addresses of different large memory blocks of large pages may be separated and discontinuous. [0003] In the prior art, when the above-mentioned large page memory is initialized, as long as the large page memory pages with continuous physical addre...

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): G06F12/0831G06F12/1081
CPCG06F12/0835G06F12/1081
Inventor 高福亮
Owner 北京中科网威信息技术有限公司
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