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
0
votes
0 answers
get all tcp/udp connections using sysctl in Objective C
As we know to get all tcp connections we can use sysctl with "net.inet.tcp.pcblist" as MIB variable .But its output is binary data and must be convert to human readable context which describes IP addresses and active ports and conection states.…

James C
- 41
- 6
0
votes
1 answer
BSD/Darwin cpu stats
Do all of the BSDs have a common way to get CPU stats (time spend in kernel, idle, user, etc) like Linux has in the first line of /proc/stats?
I'm trying to detect a system under load and not perform computations when it is active (above a certain…

beatgammit
- 19,817
- 19
- 86
- 129
0
votes
1 answer
How to calculate TaskCPUUsage and TaskThreadCount for each process running iPhone or iPad
How to calculate TaskCPUUsage and TaskThreadCount for each running process in iPhone or iPad..I want to give the process id and calculate the % cpu for that process.Is it possible? if possible how to do it?
how to get the ProcessID, ProcessName,…

user1400169
- 17
- 5
-1
votes
1 answer
How to set Kernel parameters using sysctl for a Hashicorp Nomad job
The docs says I can set the kernel parameters using sysctl for a docker task like so:
config {
sysctl = {
"net.core.somaxconn" = "16384"
}
}
This indeed works. But when I tried,
sysctl = {
"net.core.somaxconn" = "16384"
…

Shinto C V
- 714
- 1
- 9
- 16
-1
votes
1 answer
Setting TCP keepalive on a CONTAINER
I am using Azure Kubernetes, and trying to set TCP_Keepalive on a container basis.
Is there away of achieving that?

Conundrum
- 43
- 1
- 6
-1
votes
1 answer
Ansible Fails to reload sysctl
I am trying to add the following via ansible
---
- name: Set sysctl for all.accept_ra=0
sysctl:
name: net.ipv6.conf.all.accept_ra
value: 0
state: present
and it keeps on giving me error:
TASK [ami : Set sysctl for…

DeathADDER
- 83
- 2
- 11
-1
votes
1 answer
What is the most correct way to set limits of number of files on Linux?
There are 3 ways to set limits of number of files and sockets on Linux:
echo "100000" > /proc/sys/fs/file-max
ulimit -n 100000
sysctl -w fs.file-max=100000
What is the difference?
What is the most correct way to set limits of number of files on…

Alex
- 12,578
- 15
- 99
- 195
-1
votes
2 answers
Unable to create socket so as to call to my asterisk server?
When i call to asterisk , asterisk give me a CONGESTION status. When I check my log , it was given following warning :
[Mar 17 13:33:03] WARNING[657] acl.c: Cannot create socket
[Mar 17 13:33:03] ERROR[657] rtp.c: Unable to allocate socket: Too…

Ijas Ahamed N
- 5,632
- 5
- 31
- 53
-1
votes
1 answer
multicast packages are there but can not be accessed
my box runs ubuntu 14.04. it is an old 32bit box with 4 ether nics.
what i want to achieve is multicast routing from an upstream interface (eth2.8 - dynamic ip) to a downstream interfcae (eth0.13 - 192.168.40.1).
my laptop attached to above box via…

markus
- 11
- 2