mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-07 05:51:20 +07:00
chore: prompt for memory at startup
This commit is contained in:
parent
1950d37d14
commit
6736979c57
@ -103,13 +103,13 @@ 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 (docker/lxc). If so, please use higher virtualization (kvm/qemu). Or you could just try to mount /sys and give privilege and try again.")
|
||||
log.Warnln("Perhaps you are in a container environment (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")
|
||||
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.")
|
||||
//var bpf bpfObjects
|
||||
var ProgramOptions = ebpf.ProgramOptions{
|
||||
KernelTypes: nil,
|
||||
|
Loading…
Reference in New Issue
Block a user