答复: [PATCH][v2] netfilter: use kvzalloc to allocate memory for hashtable

2018-07-24 Thread Li,Rongqing
oogle.com > 主题: Re: [PATCH][v2] netfilter: use kvzalloc to allocate memory for > hashtable > > > > On 07/24/2018 10:34 PM, Li RongQing wrote: > > nf_ct_alloc_hashtable is used to allocate memory for conntrack, NAT > > bysrc and expectation hashtable. Assuming 64k bucket

Re: [PATCH][v2] netfilter: use kvzalloc to allocate memory for hashtable

2018-07-24 Thread Eric Dumazet
On 07/24/2018 10:34 PM, Li RongQing wrote: > nf_ct_alloc_hashtable is used to allocate memory for conntrack, > NAT bysrc and expectation hashtable. Assuming 64k bucket size, > which means 7th order page allocation, __get_free_pages, called > by nf_ct_alloc_hashtable, will trigger the direct memo

[PATCH][v2] netfilter: use kvzalloc to allocate memory for hashtable

2018-07-24 Thread Li RongQing
nf_ct_alloc_hashtable is used to allocate memory for conntrack, NAT bysrc and expectation hashtable. Assuming 64k bucket size, which means 7th order page allocation, __get_free_pages, called by nf_ct_alloc_hashtable, will trigger the direct memory reclaim and stall for a long time, when system has