iovisor / iovisor/bcc

memory leak on schedule run on gobpf

Open
#3,942 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
10d 4h
Merged PRs (30d)
3

Description

sorry for create an issue in bcc,because gobpf's issue hasn't got any discussion for month.
I got a daemon agent memory leak issue, I rewrite bcc runqlat using gobpf, and runs it for 100ms for every 15 secs.
I dit it in this way: bcc.NewModule() -> load -> attach -> module.Close()
When I test my daemon, found there is a rapid memory leak, using memleak tool, I got a result like this
![wecom-temp-f5e7eb7e017e0b90fd0957631a0ac1e6](https://user-images.githubusercontent.com/5386619/163086171-8baadfd9-e581-4b80-95cf-fa062b421bd9.png)
Is there is a way to manually free these memory or I'm not using gobpf the right way?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.