Re: [PATCH net-next] ipvs: dynamically limit the connection hash table
Pablo Neira Ayuso <[email protected]>
| Newsgroups | org.kernel.vger.lvs-devel,org.kernel.vger.netfilter-devel |
|---|---|
| Message-ID | <ZHju7cARozHokVFU@calendula> |
On Wed, May 17, 2023 at 03:37:31PM +0300, Julian Anastasov wrote: > As we allow the hash table to be configured to rows above 2^20, > we should limit it depending on the available memory to some > sane values. Switch to kvmalloc allocation to better select > the needed allocation type. > > Signed-off-by: Julian Anastasov <[email protected]> > --- > net/netfilter/ipvs/ip_vs_conn.c | 26 +++++++++++++++++--------- > 1 file changed, 17 insertions(+), 9 deletions(-) > > NOTE: This patch needs to be applied on top of V3 (or above) of patch > "ipvs: increase ip_vs_conn_tab_bits range for 64BIT" from Abhijeet Done, thanks for this note. Applied to nf-next, thanks.