vmware / photon

Minimal Linux container host
https://vmware.github.io/photon
Other
3.06k stars 697 forks source link

Enabling TCP BBR congestion control in Photon OS 5.0 GA #1566

Closed Tw-C closed 2 months ago

Tw-C commented 2 months ago

Is your feature request related to a problem? Please describe.

It appears TCP BBR congestion control algorithm isn't enabled in latest Photon OS 5.0 GA despite https://github.com/vmware/photon/issues/801.

Also can't seem to find any official documentation about enabling it. Any pointer would be helpful & appreciated.

Describe the solution you'd like

An easy option to enable TCP BBR congestion control algorithm or even have it enabled as default in newer Photon OS releases.

YustasSwamp commented 2 months ago

I assume you are using -esx flavor of the kernel (-esx suffix in uname -r). Please use generic kerel. tdnf install linux -y && reboot

Tw-C commented 2 months ago

I assume you are using -esx flavor of the kernel (-esx suffix in uname -r). Please use generic kerel. tdnf install linux -y && reboot

You are correct, BBR is available in generic kernel but not -esx flavour, well-kept secret 😁 Thanks for the prompt reply!

On a different note, /etc/sysctl.conf doesn't appear to auto run on startup but moving to /etc/sysctl.d/ works.

YustasSwamp commented 1 month ago

Only /etc/sysctl.d/ is handled by systemd! For legacy compatibility /etc/sysctl.conf is a symlink to some file inside /etc/sysctl.d/... If /etc/sysctl.conf just a regular file - it will be ignored.

Tw-C commented 1 month ago

Cheers for the tips, very useful indeed. Is there a knowledgebase somewhere listing out all these tips, as I've thoroughly dug through documentation at https://vmware.github.io/photon/docs-v5/ & almost gave up before asking here as a last resort 🤷