LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

Re: [PATCH net-next] ipvs: dynamically limit the connection hash table

To: Julian Anastasov <ja@xxxxxx>
Subject: Re: [PATCH net-next] ipvs: dynamically limit the connection hash table
Cc: Simon Horman <horms@xxxxxxxxxxxx>, lvs-devel@xxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx, Abhijeet Rastogi <abhijeet.1989@xxxxxxxxx>
From: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
Date: Thu, 1 Jun 2023 21:18:05 +0200
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 <ja@xxxxxx>
> ---
>  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.

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [PATCH net-next] ipvs: dynamically limit the connection hash table, Pablo Neira Ayuso <=