On 12/16/2023 10:30 AM, Yonghong Song wrote: > For percpu data structure allocation with bpf_global_percpu_ma, > the maximum data size is 4K. But for a system with large > number of cpus, bigger data size (e.g., 2K, 4K) might consume > a lot of memory. For example, the percpu memory consumption > with unit size 2K and 1024 cpus will be 2K * 1K * 1k = 2GB > memory. > > We should discourage such usage. Let us limit the maximum data > size to be 512 for bpf_global_percpu_ma allocation. > > Signed-off-by: Yonghong Song <yonghong.song@xxxxxxxxx> Make sense to me, so Acked-by: Hou Tao <houtao1@xxxxxxxxxx>