11307923

Memory Leak Detection

PublishedApril 19, 2022
Assigneenot available in USPTO data we have
Technical Abstract

Patent Claims
21 claims

Legal claims defining the scope of protection, as filed with the USPTO.

1

1. A method for a network device to perform memory leak detection, wherein the method comprises: identifying a set of memory buffers that are available for storing packet information that requires processing by the network device; identifying, from the set, a first subset that includes one or more first memory buffers that are unallocated, and a second subset that includes one or more second memory buffers that are allocated and storing packet information that is being processed by the network device; performing a comparison between (a) the set of memory buffers and (b) the first subset and the second subset; and based on the comparison, identifying a third subset that includes one or more third memory buffers, being leaked memory buffers, that are storing packet information that is no longer being processed by the network device.

2

2. The method of claim 1 , wherein the method further comprises one or more of the following: performing a first remediation action to deallocate a particular leaked memory buffer from the third subset; and performing a second remediation action to dump content of the particular leaked memory buffer to a file for analysis and debugging, wherein the content includes packet header information or payload information.

3

3. The method of claim 1 , wherein identifying the third subset comprises: determining that a particular leaked memory buffer from the third subset is not a false positive.

4

4. The method of claim 3 , wherein identifying the third subset comprises: monitoring an elapsed time since the particular leaked memory buffer from the third subset is identified; and in response to detecting that the elapsed time has exceeded a predetermined threshold, determining that the particular leaked memory buffer is not a false positive.

5

5. The method of claim 1 , wherein identifying the second subset comprises: identifying a particular second memory buffer storing packet information that is being processed by a packet processing component of the network device, or being queued for processing by the packet processing component.

6

6. The method of claim 5 , wherein identifying the second subset comprises: identifying the particular second memory buffer based on one or more of the following: a network interface controller (NIC) queue, a cryptographic queue, a kernel NIC interface (KNI) queue, an inter-core queue, and a packet reassembly queue.

7

7. The method of claim 1 , wherein the method further comprises: executing, on the network device, a memory leak detection thread to identify the set of memory buffers at initialization of a memory pool, and to identify the first subset, the second subset and the third subset periodically.

8

8. A non-transitory computer-readable storage medium that includes a set of instructions which, in response to execution by a processor of a network device, cause the processor to perform a method of memory leak detection, wherein the method comprises: identifying a set of memory buffers that are available for storing packet information that requires processing by the network device; identifying, from the set, a first subset that includes one or more first memory buffers that are unallocated, and a second subset that includes one or more second memory buffers that are allocated and storing packet information that is being processed by the network device; performing a comparison between (a) the set of memory buffers and (b) the first subset and the second subset; and based on the comparison, identifying a third subset that includes one or more third memory buffers, being leaked memory buffers, that are storing packet information that is no longer being processed by the network device.

9

9. The non-transitory computer-readable storage medium of claim 8 , wherein the method further comprises one or more of the following: performing a first remediation action to deallocate a particular leaked memory buffer from the third subset; and performing a second remediation action to dump content of the particular leaked memory buffer to a file for analysis and debugging, wherein the content includes packet header information or payload information.

10

10. The non-transitory computer-readable storage medium of claim 8 , wherein identifying the third subset comprises: determining that a particular leaked memory buffer from the third subset is not a false positive.

11

11. The non-transitory computer-readable storage medium of claim 10 , wherein identifying the third subset comprises: monitoring an elapsed time since the particular leaked memory buffer from the third subset is identified; and in response to detecting that the elapsed time has exceeded a predetermined threshold, determining that the particular leaked memory buffer is not a false positive.

12

12. The non-transitory computer-readable storage medium of claim 8 , wherein identifying the second subset comprises: identifying a particular second memory buffer storing packet information that is being processed by a packet processing component of the network device, or being queued for processing by the packet processing component.

13

13. The non-transitory computer-readable storage medium of claim 12 , wherein identifying the second subset comprises: identifying the particular second memory buffer based on one or more of the following: a network interface controller (NIC) queue, a cryptographic queue, a kernel NIC interface (KNI) queue, an inter-core queue, and a packet reassembly queue.

14

14. The non-transitory computer-readable storage medium of claim 8 , wherein the method further comprises: executing, on the network device, a memory leak detection thread to identify the set of memory buffers at initialization of a memory pool, and to identify the first subset, the second subset and the third subset periodically.

15

15. A computer system, comprising: a processor; a non-transitory computer-readable medium having stored thereon instructions that, when executed by the processor, cause the processor to: identify a set of memory buffers that are available for storing packet information that requires processing by the computer system; identify, from the set, a first subset that includes one or more first memory buffers that are unallocated, and a second subset that includes one or more second memory buffers that are allocated and storing packet information that is being processed by the computer system; perform a comparison between (a) the set of memory buffers and (b) the first subset and the second subset; and based on the comparison, identify a third subset that includes one or more third memory buffers, being leaked memory buffers, that are storing packet information that is no longer being processed by the computer system.

16

16. The computer system of claim 1 , wherein the instructions further cause the processor to perform one or more of the following: perform a first remediation action to deallocate a particular leaked memory buffer from the third subset; and perform a second remediation action to dump content of the particular leaked memory buffer to a file for analysis and debugging, wherein the content includes packet header information or payload information.

17

17. The computer system of claim 15 , wherein the instructions for identifying the third subset cause the processor to: determine that a particular leaked memory buffer from the third subset is not a false positive.

18

18. The computer system of claim 17 , wherein the instructions for identifying the third subset cause the processor to: monitor an elapsed time since the particular leaked memory buffer from the third subset is identified; and in response to detecting that the elapsed time has exceeded a predetermined threshold, determine that the particular leaked memory buffer is not a false positive.

19

19. The computer system of claim 15 , wherein the instructions for identifying the second subset cause the processor to: identify a particular second memory buffer storing packet information that is being processed by a packet processing component of the computer system, or being queued for processing by the packet processing component.

20

20. The computer system of claim 19 , wherein the instructions for identifying the second subset cause the processor to: identify the particular second memory buffer based on one or more of the following: a network interface controller (NIC) queue, a cryptographic queue, a kernel NIC interface (KNI) queue, an inter-core queue, and a packet reassembly queue.

21

21. The computer system of claim 15 , wherein the instructions further cause the processor to: execute, on the computer system, a memory leak detection thread to identify the set of memory buffers at initialization of a memory pool, and to identify the first subset, the second subset and the third subset periodically.

Patent Metadata

Filing Date

Unknown

Publication Date

April 19, 2022

Inventors

Yong WANG
Xinhua HONG
Jia YU
Eduard SERRA MIRALLES

Want to explore more patents?

Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.

Citation & reuse

Analysis on this page is generated by Patentable — an AI-powered patent intelligence platform. AI-generated summaries, explanations, and analysis may be reused with attribution and a visible link back to the canonical URL below. Patent abstracts and claims are USPTO public domain.

Cite as: Patentable. “MEMORY LEAK DETECTION” (11307923). https://patentable.app/patents/11307923

© 2026 Patentable. All rights reserved.

Patentable is a research and drafting-assistant tool, not a law firm, and does not provide legal advice. Documents we generate are drafts for review by a licensed patent attorney.

MEMORY LEAK DETECTION — Yong WANG | Patentable