I am using ebpf+XDP to make some demo.
when I use a large memory MAP, for example:
BPF_HASH(cache, u64, u64, 10240000);
BPF_HASH(filter1, u32, u64, 10240000);
BPF_HASH(filter2, struct XXX, u16, 10240000);
when I run this demo, After running for a while, the program is automatically killed.
here is the error said:
Out of memory: KIll process 1618 (sshd) score 0 or sacrifice child
Killed process 1618 (sshd) total-vm:625792kB, anon-rss:0kB, file-rss:4kB, shmem-rss:0kB
I do not understand what dose this error mean.
Is this the system limit or bpf vm limit or map limit ?
Here is the result when I run "free -g".
total used free shared buff/cache available
Mem: 3 0 3 0 0 3
Swap: 3 0 3