diff --git a/cmd/run.go b/cmd/run.go index 5784d45..f6bbb71 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -169,6 +169,7 @@ loop: // Ready to close. oldC.Close() default: + log.Infof("Received signal: %v", sig.String()) break loop } } diff --git a/control/control_plane.go b/control/control_plane.go index c8acaf6..777b094 100644 --- a/control/control_plane.go +++ b/control/control_plane.go @@ -103,13 +103,14 @@ func NewControlPlane( pinPath := filepath.Join(consts.BpfPinRoot, consts.AppName) if err = os.MkdirAll(pinPath, 0755); err != nil && !os.IsExist(err) { if os.IsNotExist(err) { - log.Warnln("Perhaps you are in a container environment (lxc). If so, please use higher virtualization (kvm/qemu).") + log.Warnln("Perhaps you are in a container environment (such as lxc). If so, please use higher virtualization (kvm/qemu).") } return nil, err } /// Load pre-compiled programs and maps into the kernel. - log.Infof("Loading eBPF programs and maps into the kernel. The loading process may take up to 500MB memory, which will be freed after loading. Insufficient memory may cause loading failure.") + log.Infof("Loading eBPF programs and maps into the kernel.") + log.Infof("The loading process takes about 512MB free memory, which will be released after loading. Insufficient memory will cause loading failure.") //var bpf bpfObjects var ProgramOptions = ebpf.ProgramOptions{ KernelTypes: nil,