* IPVS: conn_tab_bits param for ip_vs > 20 leads to default being set
@ 2023-02-06 22:48 Abhijeet Rastogi
2023-02-09 4:19 ` Abhijeet Rastogi
0 siblings, 1 reply; 3+ messages in thread
From: Abhijeet Rastogi @ 2023-02-06 22:48 UTC (permalink / raw)
To: netfilter
Hi IPVS users,
This behavior is on the 5.4 CentOS kernel and should be because of
this check. As per the commit message[1], the problematic value is
when conn_tab_bits>31. With that in mind, why do we limit the size to
7 < conn_tab_bits < 21?
I stumbled upon this problem while upgrading our production hosts from
old RHEL with kernel 3.10 to CentOS with kernel 5.4. On current RHEL
systems, conn_tab_bits=24 works just fine.
# RHEL output:-
$ sudo ipvsadm -Ln|head -n1
IP Virtual Server version 1.2.1 (size=16777216)
Sidenote: lvs-users mailing list is dead since 2020, but it is still
listed on the LVS website.
http://www.linuxvirtualserver.org/mailing.html
[1]: https://github.com/torvalds/linux/commit/69e73dbfda14fbfe748d3812da1244cce2928dcb
Cheers,
Abhijeet (https://abhi.host)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: IPVS: conn_tab_bits param for ip_vs > 20 leads to default being set
2023-02-06 22:48 IPVS: conn_tab_bits param for ip_vs > 20 leads to default being set Abhijeet Rastogi
@ 2023-02-09 4:19 ` Abhijeet Rastogi
2023-02-09 9:53 ` Florian Westphal
0 siblings, 1 reply; 3+ messages in thread
From: Abhijeet Rastogi @ 2023-02-09 4:19 UTC (permalink / raw)
To: netfilter
Hi everyone,
I'll really appreciate some help, I felt this is the best forum to
discuss this topic. If not, please suggest.
I understand that the Kconfig file also has 8-20 range, but why isn't
that range set higher, let's say 31?
Thank you,
Abhijeet
On Mon, Feb 6, 2023 at 2:48 PM Abhijeet Rastogi <abhijeet.1989@gmail.com> wrote:
>
> Hi IPVS users,
>
> This behavior is on the 5.4 CentOS kernel and should be because of
> this check. As per the commit message[1], the problematic value is
> when conn_tab_bits>31. With that in mind, why do we limit the size to
> 7 < conn_tab_bits < 21?
>
> I stumbled upon this problem while upgrading our production hosts from
> old RHEL with kernel 3.10 to CentOS with kernel 5.4. On current RHEL
> systems, conn_tab_bits=24 works just fine.
>
> # RHEL output:-
> $ sudo ipvsadm -Ln|head -n1
> IP Virtual Server version 1.2.1 (size=16777216)
>
> Sidenote: lvs-users mailing list is dead since 2020, but it is still
> listed on the LVS website.
> http://www.linuxvirtualserver.org/mailing.html
>
> [1]: https://github.com/torvalds/linux/commit/69e73dbfda14fbfe748d3812da1244cce2928dcb
>
> Cheers,
> Abhijeet (https://abhi.host)
--
Cheers,
Abhijeet (https://abhi.host)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: IPVS: conn_tab_bits param for ip_vs > 20 leads to default being set
2023-02-09 4:19 ` Abhijeet Rastogi
@ 2023-02-09 9:53 ` Florian Westphal
0 siblings, 0 replies; 3+ messages in thread
From: Florian Westphal @ 2023-02-09 9:53 UTC (permalink / raw)
To: Abhijeet Rastogi; +Cc: netfilter
Abhijeet Rastogi <abhijeet.1989@gmail.com> wrote:
> Hi everyone,
>
> I'll really appreciate some help, I felt this is the best forum to
> discuss this topic. If not, please suggest.
>
> I understand that the Kconfig file also has 8-20 range, but why isn't
> that range set higher, let's say 31?
You could send a patch to increase the limit in both kconfig and the
check.
The 20 bit (1m entries) ceiling exists since the original merge of ipvs
in 2003, so likely this was just considered "big enough" back then.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-02-09 9:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-06 22:48 IPVS: conn_tab_bits param for ip_vs > 20 leads to default being set Abhijeet Rastogi
2023-02-09 4:19 ` Abhijeet Rastogi
2023-02-09 9:53 ` Florian Westphal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox