Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] linux: tcp congestion and optimizations
@ 2022-10-14 12:45 tetsumaki
  2022-10-14 15:39 ` sgn
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: tetsumaki @ 2022-10-14 12:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1499 bytes --]

New issue by tetsumaki on void-packages repository

https://github.com/void-linux/void-packages/issues/39951

Description:
Hello everyone,

I've been using Void Linux for a long time now, and I found that the kernel was not optimized in an optimal way.

Void Linux uses the following settings:

```ini
net.ipv4.tcp_available_congestion_control = reno
net.core.default_qdisc = pfifo_fast
net.ipv4.tcp_congestion_control = reno
```

Most distributions (Rocky/Arch/Alpine) use the following settings:

```ini
net.ipv4.tcp_available_congestion_control = cubic bbr
net.core.default_qdisc = fq_codel
net.ipv4.tcp_congestion_control = cubic
```

I think the best setting though is this (same as above):

```ini
net.ipv4.tcp_available_congestion_control = cubic bbr
net.core.default_qdisc = fq_codel
net.ipv4.tcp_congestion_control = cubic
```

BBR is very good, but still in alpha, you have to give the user the choice to apply it.

Whatever happens, the kernel should be optimized, and the user should be allowed to change via sysctl, which is not the case now.

The discussion is open (fq/fq_codel/sch_fq/cak, reno/bbr and others optimizations).

My english is not perfect ;)

Some links :
- https://github.com/google/bbr/blob/master/README
- https://wiki.archlinux.org/title/sysctl#Enable_BBR
- https://www.cyberciti.biz/cloud-computing/increase-your-linux-server-internet-speed-with-tcp-bbr-congestion-control/
- https://github.com/systemd/systemd/issues/9725


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: linux: tcp congestion and optimizations
  2022-10-14 12:45 [ISSUE] linux: tcp congestion and optimizations tetsumaki
@ 2022-10-14 15:39 ` sgn
  2022-10-14 16:05 ` tetsumaki
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: sgn @ 2022-10-14 15:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 513 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/39951#issuecomment-1279167266

Comment:
> BBR is very good, but still in alpha, you have to give the user the choice to apply it.
> 
> Whatever happens, the kernel should be optimized,
> and the user should be allowed to change via sysctl,
> which is not the case now.

What is your problem when you're changing?
```
# modprobe tcp_bbr
# sysctl -w net.ipv4.tcp_congestion_control=bbr
```

works for me

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: linux: tcp congestion and optimizations
  2022-10-14 12:45 [ISSUE] linux: tcp congestion and optimizations tetsumaki
  2022-10-14 15:39 ` sgn
@ 2022-10-14 16:05 ` tetsumaki
  2022-10-14 16:06 ` sgn
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tetsumaki @ 2022-10-14 16:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 228 bytes --]

New comment by tetsumaki on void-packages repository

https://github.com/void-linux/void-packages/issues/39951#issuecomment-1279193185

Comment:
Hi, I think the default configuration should be changed to use cubic and not reno.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: linux: tcp congestion and optimizations
  2022-10-14 12:45 [ISSUE] linux: tcp congestion and optimizations tetsumaki
  2022-10-14 15:39 ` sgn
  2022-10-14 16:05 ` tetsumaki
@ 2022-10-14 16:06 ` sgn
  2022-10-14 16:25 ` tetsumaki
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: sgn @ 2022-10-14 16:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/39951#issuecomment-1279195012

Comment:
If you want to do it automatically at boot:

```sh
# cat /etc/modules-load.d/tcp-congestion.conf
tcp_bbr
# cat /etc/sysctl.d/tcp-congestion.conf
net.ipv4.tcp_available_congestion_control=bbr
```



> Hi, I think the default configuration should be changed to use cubic and not reno.

That's subjective. You have the option to change to anything you want.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: linux: tcp congestion and optimizations
  2022-10-14 12:45 [ISSUE] linux: tcp congestion and optimizations tetsumaki
                   ` (2 preceding siblings ...)
  2022-10-14 16:06 ` sgn
@ 2022-10-14 16:25 ` tetsumaki
  2022-10-14 16:31 ` sgn
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tetsumaki @ 2022-10-14 16:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 226 bytes --]

New comment by tetsumaki on void-packages repository

https://github.com/void-linux/void-packages/issues/39951#issuecomment-1279216352

Comment:
Yes, i already use fq_codel / bbr.
I'm talking about the default configuration.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: linux: tcp congestion and optimizations
  2022-10-14 12:45 [ISSUE] linux: tcp congestion and optimizations tetsumaki
                   ` (3 preceding siblings ...)
  2022-10-14 16:25 ` tetsumaki
@ 2022-10-14 16:31 ` sgn
  2022-10-14 17:24 ` tetsumaki
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: sgn @ 2022-10-14 16:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 372 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/39951#issuecomment-1279221730

Comment:
> Yes, i already use fq_codel / bbr. I'm talking about the default configuration.

I don't understand, your first message is "Whatever happens, the kernel should be optimized, and the user should be allowed to change via sysctl."?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: linux: tcp congestion and optimizations
  2022-10-14 12:45 [ISSUE] linux: tcp congestion and optimizations tetsumaki
                   ` (4 preceding siblings ...)
  2022-10-14 16:31 ` sgn
@ 2022-10-14 17:24 ` tetsumaki
  2022-10-17  0:52 ` [ISSUE] [CLOSED] " sgn
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tetsumaki @ 2022-10-14 17:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 490 bytes --]

New comment by tetsumaki on void-packages repository

https://github.com/void-linux/void-packages/issues/39951#issuecomment-1279275066

Comment:
> > Yes, i already use fq_codel / bbr. I'm talking about the default configuration.
> 
> I don't understand, your first message is "Whatever happens, the kernel should be optimized, and the user should be allowed to change via sysctl."?

This is a bad translation, my bad.
And the module was not loaded, so it was not visible. on my paste.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: linux: tcp congestion and optimizations
  2022-10-14 12:45 [ISSUE] linux: tcp congestion and optimizations tetsumaki
                   ` (6 preceding siblings ...)
  2022-10-17  0:52 ` [ISSUE] [CLOSED] " sgn
@ 2022-10-17  0:52 ` sgn
  2022-11-30 17:06 ` dtaht
  8 siblings, 0 replies; 10+ messages in thread
From: sgn @ 2022-10-17  0:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 266 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/39951#issuecomment-1280119053

Comment:
I changed congestion control to cubic, it will available through new linux5.19 and linux6.0
Other kernels will follow suites.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ISSUE] [CLOSED] linux: tcp congestion and optimizations
  2022-10-14 12:45 [ISSUE] linux: tcp congestion and optimizations tetsumaki
                   ` (5 preceding siblings ...)
  2022-10-14 17:24 ` tetsumaki
@ 2022-10-17  0:52 ` sgn
  2022-10-17  0:52 ` sgn
  2022-11-30 17:06 ` dtaht
  8 siblings, 0 replies; 10+ messages in thread
From: sgn @ 2022-10-17  0:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1853 bytes --]

Closed issue by tetsumaki on void-packages repository

https://github.com/void-linux/void-packages/issues/39951

Description:
Hello everyone,

I've been using Void Linux for a long time now, and I found that the kernel was not optimized in an optimal way.

Void Linux uses the following settings:

```ini
net.ipv4.tcp_available_congestion_control = reno
net.core.default_qdisc = pfifo_fast
net.ipv4.tcp_congestion_control = reno
```

Most distributions (Rocky/Arch) use the following settings:

```ini
net.ipv4.tcp_available_congestion_control = cubic bbr
net.core.default_qdisc = fq_codel
net.ipv4.tcp_congestion_control = cubic
```

Alpine use the following settings:

```ini
net.ipv4.tcp_available_congestion_control = reno cubic
net.core.default_qdisc = pfifo_fast
net.ipv4.tcp_congestion_control = cubic
```

I think the best setting though is this (Rocky/Arch):

```ini
net.ipv4.tcp_available_congestion_control = cubic bbr
net.core.default_qdisc = fq_codel
net.ipv4.tcp_congestion_control = cubic
```

BBR is very good, but still in alpha, you have to give the user the choice to apply it.

Whatever happens, the kernel should be optimized, and the user should be allowed to change via sysctl.

The discussion is open (fq/fq_codel/sch_fq/cak, reno/bbr and others optimizations).

My english is not perfect ;)

Some links :
- https://github.com/google/bbr/blob/master/README
- https://wiki.archlinux.org/title/sysctl#Enable_BBR
- https://www.cyberciti.biz/cloud-computing/increase-your-linux-server-internet-speed-with-tcp-bbr-congestion-control/
- https://github.com/systemd/systemd/issues/9725
- https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/linux/trunk/config
- https://raw.githubusercontent.com/void-linux/void-packages/master/srcpkgs/linux5.19/files/x86_64-dotconfig

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: linux: tcp congestion and optimizations
  2022-10-14 12:45 [ISSUE] linux: tcp congestion and optimizations tetsumaki
                   ` (7 preceding siblings ...)
  2022-10-17  0:52 ` sgn
@ 2022-11-30 17:06 ` dtaht
  8 siblings, 0 replies; 10+ messages in thread
From: dtaht @ 2022-11-30 17:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 308 bytes --]

New comment by dtaht on void-packages repository

https://github.com/void-linux/void-packages/issues/39951#issuecomment-1332477148

Comment:
did you change the qdisc to fq_codel?

If boxes like this have sufficient horsepower, cake is actually the best thing going (IMHO, being one of the authors of both)

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-11-30 17:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-14 12:45 [ISSUE] linux: tcp congestion and optimizations tetsumaki
2022-10-14 15:39 ` sgn
2022-10-14 16:05 ` tetsumaki
2022-10-14 16:06 ` sgn
2022-10-14 16:25 ` tetsumaki
2022-10-14 16:31 ` sgn
2022-10-14 17:24 ` tetsumaki
2022-10-17  0:52 ` [ISSUE] [CLOSED] " sgn
2022-10-17  0:52 ` sgn
2022-11-30 17:06 ` dtaht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).