optimize: reduce loading time and memory requirement by shrinking process name searching length

This commit is contained in:
mzz2017
2023-04-05 00:42:56 +08:00
parent 099c51a95e
commit ecadddaeca
3 changed files with 13 additions and 15 deletions

View File

@ -123,8 +123,8 @@ func NewControlPlane(
/// Load pre-compiled programs and maps into the kernel.
if _bpf == nil {
log.Infof("Loading eBPF programs and maps into the kernel.")
log.Infof("The loading process takes about 150MB free memory, which will be released after loading. Insufficient memory will cause loading failure.")
log.Infof("Loading eBPF programs and maps into the kernel...")
log.Infof("The loading process takes about 120MB free memory, which will be released after loading. Insufficient memory will cause loading failure.")
}
//var bpf bpfObjects
var ProgramOptions = ebpf.ProgramOptions{