Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apparently wrong sysctl.d optimization settings #8020

Closed
lunzima opened this issue Sep 17, 2024 · 0 comments · Fixed by #8043
Closed

Apparently wrong sysctl.d optimization settings #8020

lunzima opened this issue Sep 17, 2024 · 0 comments · Fixed by #8043

Comments

@lunzima
Copy link
Contributor

lunzima commented Sep 17, 2024

Bug description

kernel.pid_max cannot be set to a value greater than PAGE_SIZE * 8 (usually 32768) in a Linux kernel with CONFIG_BASE_SMALL=1 enabled. So systemd will complain about invalid argument with larger values.
On 64-bit architectures, the default value of kernel.pid_max is 4194304, which is quite large and definitely enough. Limiting the value doesn't help either.
In other cases, the default value of kernel.pid_max is 32768, so there may be some room for optimization on 32-bit architectures.

Enabling net.ipv4.tcp_tw_recycle is harmful and the option is removed from Linux 4.12.

net.ipv6.conf.xxx.rp_filter has never appeared in the Linux kernel. It was never implemented. However there are replacements in ip6tables/nft.

Steps to reproduce

Not relevant

Update channel(s)

stable

Package and version

aosc-aaa 11.5.2
should affect Retro/Afterglow too.
lunzima added a commit to lunzima/aosc-os-abbs that referenced this issue Sep 19, 2024
    - Remove inappropriate kernel.pid_max, net.ipv4.tcp_tw_recycle parameters
    - Remove nonexistent net.ipv6.conf.all.rp_filter parameter

    Ref: AOSC-Dev#8020
MingcongBai pushed a commit that referenced this issue Sep 19, 2024
- Remove inappropriate kernel.pid_max, net.ipv4.tcp_tw_recycle parameters.
- Remove nonexistent net.ipv6.conf.all.rp_filter parameter.

Ref: #8020
@MingcongBai MingcongBai mentioned this issue Sep 19, 2024
6 tasks
@MingcongBai MingcongBai linked a pull request Sep 20, 2024 that will close this issue
6 tasks
MingcongBai pushed a commit that referenced this issue Sep 20, 2024
- Remove inappropriate kernel.pid_max, net.ipv4.tcp_tw_recycle parameters.
- Remove nonexistent net.ipv6.conf.all.rp_filter parameter.

Ref: #8020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant