Re: [PATCH] bpf: Try harder when allocating memory for large maps

2019-03-11 Thread Y Song
On Mon, Mar 11, 2019 at 12:32 PM Martynas Pumputis wrote: > > It has been observed that sometimes a higher order memory allocation > for BPF maps fails when there is no obvious memory pressure in a system. > > E.g. the map (BPF_MAP_TYPE_LRU_HASH, key=38, value=56, max_elems=524288) > could not be

Re: [PATCH] bpf: Try harder when allocating memory for large maps

2019-03-11 Thread Michal Hocko
On Mon 11-03-19 20:31:12, Martynas Pumputis wrote: > It has been observed that sometimes a higher order memory allocation > for BPF maps fails when there is no obvious memory pressure in a system. > > E.g. the map (BPF_MAP_TYPE_LRU_HASH, key=38, value=56, max_elems=524288) > could not be created d

[PATCH] bpf: Try harder when allocating memory for large maps

2019-03-11 Thread Martynas Pumputis
It has been observed that sometimes a higher order memory allocation for BPF maps fails when there is no obvious memory pressure in a system. E.g. the map (BPF_MAP_TYPE_LRU_HASH, key=38, value=56, max_elems=524288) could not be created due to vmalloc unable to allocate 75497472B, when the system's