The sysctl is a Unix interface used to modify variables that the kernel uses to determine behavior. There are two ways to work with sysctl: by directly reading and modifying files in /proc/sys and by using the sysctl program supplied with most distributions. The regedit interface is the closest parallel for Windows.
Questions tagged [sysctl]
174 questions
3
votes
1 answer
get the bundle identifier of an application running from another user
The scenario is like this: "I run an app (say myproc) from one user and then fast user switch to second user"
Now, when I try to determine all processes running with a particular bundle Identifier (say com.ak.myproc); I am not able to determine this…

dDarkLORD
- 624
- 7
- 25
2
votes
1 answer
sysctl() on dev.cpu.0.freq_levels
On a FreeBSD v13 box, I call sysctl() to obtain dev.cpu.0.freq_levels which then returns:
dev.cpu.0.freq_levels: 3201/84000 3200/84000 3000/76349 2900/73036 2700/66595
2500/60408 2300/53689 2200/50804 2000/45218 1800/39849 1700/37248…

Bram
- 7,440
- 3
- 52
- 94
2
votes
1 answer
O_TRUNC ignored when writing to the /proc filesystem
Trying to get rid of Ubuntu's apport by clearing /proc/sys/kernel/core_pattern using
sh -c ': > /proc/sys/kernel/core_pattern' does not work.
It looks like the O_TRUNC flag is ignored when writing to the /proc filesystem:
echo nonsense >|…

Juergen
- 272
- 1
- 11
2
votes
0 answers
Enable unsafe sysctls on a cluster managed by Amazon EKS
I'm attempting to follow instructions for resolving a data congestion issue by enabling 2 unsafe sysctls for certain pods running in a Kubernetes cluster where the Pods are deployed by EKS. To do this, I must enable those parameters in the nodes…

ALostBegginer
- 41
- 4
2
votes
1 answer
Increase shared memory size on catalina
I want to increase shared memory size. It seems to be too complicated as shown below.
https://developer.apple.com/forums/thread/669625
I just run the following command. Is it sufficient to increase the shared memory size? Why the option is not…
user15502206
2
votes
1 answer
init container "sysctl: error setting key 'net.ipv4.ip_local_port_range': Read-only file system"
I am trying to remove privileged mode from init container, when i set to priviliged: false. I am getting above error. I had set readOnlyRootFilesystem: false and lines below at the pod securityContext level
securityContext:
sysctls:
-…

sacboy
- 51
- 3
- 4
2
votes
1 answer
lsyncd - OVERFLOW in event queue - Solution is to tune fs.inotify.max_queued_events
lsyncd is a fantastic alternative to NFS or NAS for replicating files among your Linux hosts. I have found the daemon works well with large Linux filesystems (many files, small to large sizes, xfs, ext4, luks) but requires some sysctl tuning as…

Taylor Brockman
- 179
- 1
- 10
2
votes
1 answer
How can ip_nonlocal_bind=1 break applications?
I have two Linux VMs. They all start the sshd service on the same IP. When one machine is down, you can login on another VM with the same IP. However, the other VM will not be listening to that IP because it does not already exist.
I must restart…

ShengWang
- 41
- 5
2
votes
1 answer
How to modify the behaviour of filesystem cache in Mac OS
I'm wondering if in MacOS there are parameters equivalent to the Linux ones:
vm.dirty_background_bytes
vm.dirty_background_ratio
vm.dirty_bytes
vm.dirty_ratio
vm.dirty_expire_centisecs
vm.dirty_writeback_centisecs
By mean of them one can change the…

user1131951
- 141
- 7
2
votes
0 answers
TCP/IP in Linux kernel -- control socket closing timeout
Which sysctl or procfs kludges allow to control the socket closing timeouts in tcp/ip session?

Mark
- 6,052
- 8
- 61
- 129
2
votes
1 answer
Error while running command consist of multiple parameters using apache commons exec
I am having trouble while running following command using apache commons exec: sysctl -n net.ipv4.neigh.default.gc_thresh3
The problem is it is giving the following error:
Exception in thread "main" java.lang.RuntimeException: Could not run command…

ojas
- 2,150
- 5
- 22
- 37
2
votes
1 answer
Running a privileged docker container in Openshift
I am currently trying to modify some kernel parameters inside my docker image with sysctl -p and the file /etc/sysctl.conf.
Before trying to do it inside Openshift, i just executed docker run --privileged ... and it worked, but now i need to deploy…

Adrian Pertejo
- 21
- 2
2
votes
1 answer
Get /proc//map info with sysctl call under mac os
I wanted to use /proc//map directory in order to get info about virtual memory of a process (especially about its shared libraries). Since mac os doesn't have one I'm trying to find other ways. One of them seems to be sysctl call but I don't…

Artyom
- 284
- 2
- 14
2
votes
1 answer
Set sysctl key in Kubernetes pod using Kops + Docker 1.11
I'm using Kops 1.4.4 to launch my Kubernetes cluster on AWS. My Elasticsearch pods require me to set the kernel parameter vm.max_map_count to at least 262144. Kubernetes 1.5.1 has systctl feature, but it requires Docker >= 1.12. Kops currently…

kellanburket
- 12,250
- 3
- 46
- 73
2
votes
0 answers
postgresql ram setting for 16gb macbook
I'm in the development stage of an application and happened that I have to use Postgresql. In the README file are the following instructions...
On a MacBook Pro with 2GB of RAM, the author's sysctl.conf contains:
kern.sysv.shmmax=1610612736
…

redeemefy
- 4,521
- 6
- 36
- 51