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

Method and device for memory allocation

A technology of memory allocation and memory, which is applied in the directions of memory address/allocation/relocation, memory system, transmission system, etc., and can solve problems such as insufficient fixed memory and packet loss

Active Publication Date: 2016-08-17
XFUSION DIGITAL TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a method and device for memory allocation, which are used to solve the problem of the allocation of fixed memory due to the allocation of fixed memory when the number of packets of the TCP connection suddenly increases after the fixed memory is allocated for each TCP connection in the NIC. The problem of packet loss caused by insufficient

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
  • Method and device for memory allocation
  • Method and device for memory allocation
  • Method and device for memory allocation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. 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.

[0041] The embodiment of the present invention provides a method for memory allocation, the method flow is as follows figure 1 shown, including:

[0042] 101. Obtain the current remaining amount of memory of a single TCP connection.

[0043] Wherein, the remaining amount of memory refers to an unused amount of memory in the total amount of memory reserved for the TCP. The total amount of memory is all the memory resources that the TCP can use, and can be reserved...

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 invention discloses a method and device for memory allocation, which relate to the field of data control and are used to solve the problem of problems due to the allocation of fixed memory for each TCP connection when the number of packets of the TCP connection increases suddenly The problem of packet loss caused by insufficient fixed memory. The method provided by the present invention specifically includes: when the current remaining memory amount of a single TCP connection is less than the lower limit of the current memory remaining amount of the TCP connection, acquiring memory resources having a memory amount corresponding to the lower limit of the current memory remaining amount from public memory resources, Allocate to the TCP connection, and increase the total amount of memory corresponding to the TCP connection, thereby causing an increase in the lower limit of the remaining amount of memory related to the total amount of memory, and finally repeatedly allocate memory with the current remaining amount of memory for the TCP until the set value is met conditions of. The embodiment of the present invention is mainly used in the process of the NIC receiving the message through the TCP connection.

Description

technical field [0001] The invention relates to the field of data control, in particular to a memory allocation method and device. Background technique [0002] As the amount of computer communication data continues to increase, in order to reduce the computational burden of the CPU in the computer, when two computers establish a connection through TCP (Transmission Control Protocol), the TCP connection is usually offloaded to the NIC (Network Interface Card, network adapter ) in the corresponding chip, and then report to the CPU after certain processing. [0003] The processing flow of this unloading process is: when the NIC receives a TCP message sent from another computer, it will first load the message into a memory Block (Block is the smallest storage and processing unit in the database), and then Then send the message to the Driver (driver) layer for processing, and after certain processing, report the message and release the occupied memory Block. However, the proce...

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): G06F12/02H04L12/879G06F12/0868H04L49/901
Inventor 邹勇林忠能曲会春
Owner XFUSION DIGITAL 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