Message ID | 20230305124615.12358-1-laoar.shao@gmail.com (mailing list archive) |
---|---|
Headers | show |
Series | bpf: bpf memory usage | expand |
Hello: This series was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <ast@kernel.org>: On Sun, 5 Mar 2023 12:45:57 +0000 you wrote: > Currently we can't get bpf memory usage reliably either from memcg or > from bpftool. > > In memcg, there's not a 'bpf' item in memory.stat, but only 'kernel', > 'sock', 'vmalloc' and 'percpu' which may related to bpf memory. With > these items we still can't get the bpf memory usage, because bpf memory > usage may far less than the kmem in a memcg, for example, the dentry may > consume lots of kmem. > > [...] Here is the summary with links: - [bpf-next,v4,01/18] bpf: add new map ops ->map_mem_usage https://git.kernel.org/bpf/bpf-next/c/90a5527d7686 - [bpf-next,v4,02/18] bpf: lpm_trie memory usage https://git.kernel.org/bpf/bpf-next/c/41d5941e7f9a - [bpf-next,v4,03/18] bpf: hashtab memory usage https://git.kernel.org/bpf/bpf-next/c/304849a27b34 - [bpf-next,v4,04/18] bpf: arraymap memory usage https://git.kernel.org/bpf/bpf-next/c/1746d0555a87 - [bpf-next,v4,05/18] bpf: stackmap memory usage https://git.kernel.org/bpf/bpf-next/c/cbb9b6068c68 - [bpf-next,v4,06/18] bpf: reuseport_array memory usage https://git.kernel.org/bpf/bpf-next/c/2e89caf055a6 - [bpf-next,v4,07/18] bpf: ringbuf memory usage https://git.kernel.org/bpf/bpf-next/c/2f7e4ab2caa9 - [bpf-next,v4,08/18] bpf: bloom_filter memory usage https://git.kernel.org/bpf/bpf-next/c/71a49abe73cb - [bpf-next,v4,09/18] bpf: cpumap memory usage https://git.kernel.org/bpf/bpf-next/c/835f1fca9513 - [bpf-next,v4,10/18] bpf: devmap memory usage https://git.kernel.org/bpf/bpf-next/c/fa5e83df173b - [bpf-next,v4,11/18] bpf: queue_stack_maps memory usage https://git.kernel.org/bpf/bpf-next/c/c6e66b42a348 - [bpf-next,v4,12/18] bpf: bpf_struct_ops memory usage https://git.kernel.org/bpf/bpf-next/c/f062226d8d59 - [bpf-next,v4,13/18] bpf: local_storage memory usage https://git.kernel.org/bpf/bpf-next/c/2f536977d6f1 - [bpf-next,v4,14/18] bpf, net: bpf_local_storage memory usage https://git.kernel.org/bpf/bpf-next/c/7490b7f1c02e - [bpf-next,v4,15/18] bpf, net: sock_map memory usage https://git.kernel.org/bpf/bpf-next/c/73d2c61919e9 - [bpf-next,v4,16/18] bpf, net: xskmap memory usage https://git.kernel.org/bpf/bpf-next/c/b4fd0d672bca - [bpf-next,v4,17/18] bpf: offload map memory usage https://git.kernel.org/bpf/bpf-next/c/9629363cd056 - [bpf-next,v4,18/18] bpf: enforce all maps having memory usage callback https://git.kernel.org/bpf/bpf-next/c/6b4a6ea2c62d You are awesome, thank you!