Questions tagged [sysctl]
For questions pertaining to sysctl, a utility used to read and modify, at runtime, the attributes of the system kernel such as its version number, maximum limits, and security settings. Use this tag for questions about sysctl itself or questions about issues arising from using the sysctl command-line utility.
160 questions
2
votes
1
answer
81
views
OpenBSD process maps
I am using OpenBSD 7.7.
So I know that procfs is not mounted on /proc, and I need to use sysctl to fetch process maps. But this fails as I am not running as a root user. The secure level is set to 1 ...
0
votes
1
answer
94
views
Is there a way to change the metric of non-default IPv6 routes learned via RA (proto ra)?
My setup involves receiving IPv6 routes via Router Advertisements (RA).
A global on-link prefix route (e.g. 2405:200:185:2666::/64 dev eth0 proto ra metric 110)
I know you can use net.ipv6.conf.eth0....
0
votes
0
answers
152
views
In my Linux yocto-base distribution is not istalled the file sysctl.conf by the procps recipe
On my Linux Yocto-base distribution I don't find any sysctl.conf file. The proof of this is the execution of the command:
> find / -name "sysctl.conf"
which has an output empty.
On my ...
0
votes
0
answers
85
views
Why does setting sysctl -w get overwritten back shortly?
Ubuntu 22.04
I'm new to Linux and try to configure IPv6 network. So I set
sudo sysctl net.ipv6.conf.eth0.accept_ra=2
The problem is it gets immediately overwritten back to the value 0. Why is that ...
1
vote
0
answers
120
views
Using overcommit_memory = 2 crashes a Postgres container
I have a device that has Debian 11 installed, on which Docker is running.
On boot, it starts the Docker Daemon and the nine containers.
Eight of them are executing a C# program and the last one is a ...
0
votes
0
answers
444
views
Why can't root edit /var/spool/cron/crontabs?
[Please, I don't want to know why I shouldn't edit it; I want to know why I can't edit it]
# pwd
/var/spool/cron/crontabs
# ll sysadmin
-rw------- 1 sysadmin crontab 210 Jun 17 16:05 sysadmin
# getcap ...
0
votes
1
answer
446
views
What other subsystems are responsible for enabling IPv6 in when it has been disabled in sysctl.conf, and how can I track which one is enabling it?
Although I have disabled IPv6 in sysctl.conf (Debian 11), connecting my main switch to an IPv6 enabled router results in IPv6 addresses being allocated on Debian interfaces and I can ping and SSH to ...
2
votes
1
answer
219
views
How to disable logical processors in OpenBSD?
It is well known that OpenBSD disables hyper-threading by default. However, htop shows 16 CPUs: 8 online and 8 offline, which takes extra space on the screen and is not very informative.
Moreover, ...
0
votes
0
answers
850
views
OOM invoked regularly by PHP-FPM
I'm using EC2 instance t4g.micro which is arm64, with 1gb ram of the latest ubuntu.
I'm using nginx with PHP-FPM for upload and convert pictures using latest image.intervention with GD.
My PHP_FPM ...
0
votes
0
answers
544
views
docker doesn't use sysctl values from host
I run a linux container on oraclelinux 9 linux host (the host itself runs in a VM).
From where does docker read the sysctl params?
I try change the default value of a sysctl value which docker uses.
...
0
votes
1
answer
230
views
systemctl --type=service and systemctl list-unit-files do not show all services
I have wireguard installed on a Manjaro host, and Debian Server host
The following commands show wireguard in the results on Manjaro, but nothing on the Debian server, yet the wireguard is definitely ...
1
vote
1
answer
699
views
How to enable IPv6 on subinterface in Linux using sysctl?
I tried the following:
sysctl -w net.ipv6.conf.Ethernet1.200.disable_ipv6=0,
but it gave following error:
sysctl: cannot stat /proc/sys/net/ipv6/conf/Ethernet1/200/disable_ipv6: No such file or ...
0
votes
1
answer
164
views
Difference between sysctl options to set system parameters
I see on the web two different commands to load sysctl custom parameters:
sysctl --system
sysctl -p
Is there any difference between the two commands? I know the second one I posted can take the path ...
1
vote
2
answers
267
views
Edit configuration files idempotently
When editing configuration files, such as /etc/sysctl.conf for example, it is often useful to do the update in an idempotent way, meaning that if the script is executed multiple times, you don't end ...
0
votes
1
answer
249
views
What if kernel parameter conflicted in grub and sysctl?
For example, if I set oops=panic in grub command and I also set kernel.panic_on_oops=0 in sysctl config? ex: in /etc/sysctl.d/
What would happen?
Are these two parameters mapping to the same function/...