Questions tagged [proc]

/proc filesystem related questions

30 questions
11
votes
1 answer

A quick way to check the type of the drive

Is there a quick way to understand a type of the "storage" on Linux? Is it a HDD or SSD (or NVMe)? It's already known that the host is a physical machine and not a VM. The first thing I though about was rotational flag under…
lesovsky
  • 143
  • 7
9
votes
1 answer

Interpreting read, write and total IO time in /proc/diskstats

I've noticed that when I look at the output of /proc/diskstats there is a discrepancy between the total time spent reading, the total time spent writing, and the total time performing IO. For example, I saw an entry in /proc/diskstats that was: $…
jeromefroe
  • 193
  • 1
  • 4
7
votes
3 answers

proc's limit and ulimit -f don't match

I have an issue where a process has a different max file size than the ulimit for a user. The log file for this process is basically not growing past 524288 proc: less /proc/20238/limits Limit Soft Limit Hard Limit …
Dakota Brown
  • 171
  • 1
  • 3
6
votes
3 answers

Restart docker container in privileged mode

I have a docker container that is not coping with the load. I need increase the value in /proc/sys/net/core/somaxconn but I'm unable to do so because the container is not running in privileged mode. Since creating the docker file, there have been…
Asa Carter
  • 239
  • 1
  • 3
  • 14
4
votes
2 answers

sysctl vs writing directly to /proc/*

On a typical linux machine you can change kernel configuration by modifying the files located at /proc/*. For example, for the IPv6 accept_dad parameter of a specific network interface (say, eth0), you'd modify the following…
Adelin
  • 89
  • 7
4
votes
2 answers

/proc/sys/net/netfilter/nf_conntrack_count extreme drop when reading /proc/net/nf_conntrack

I have very busy Web servers, and wanted to introduce some analysis to see what kind of traffic present. Namely, total number of all connections, number of time waits, established connections, udp and tcp connections. First, I made a graph simple -…
Victoria Javi
  • 41
  • 1
  • 3
4
votes
3 answers

What is the default maximum value for /proc/sys/kernel/shmmax

I am having an amiguity as to what the maximum value in shmmax should be set. After having a look at my system's statistics, it shows the following: #cat /proc/sys/kernel/shmmax 18446744073692774399 #ipcs -l ------ Messages Limits -------- max…
Parth Pathak
  • 41
  • 1
  • 2
3
votes
0 answers

bind mount /proc in Docker container with user namespaces enabled

My dockerd (CentOS7: 17.12.0-ce, build c97c6d6) is running with user namespaces enabled for better isolation. Now I build a image which is supposed to read for monitoring purposes also from /proc of the kernel. Thus I tried to mount /proc onto…
THX
  • 213
  • 1
  • 9
3
votes
0 answers

what is snmp mib for getting NFS IO counters?

I can get local disk I/O requests and read/write bytes using the following snmp MIB: SNMP table: UCD-DISKIO-MIB::diskIOTable diskIOIndex diskIODevice diskIONRead diskIONWritten diskIOReads diskIOWrites diskIOLA1 diskIOLA5 diskIOLA15 diskIONReadX…
GP92
  • 599
  • 2
  • 6
  • 25
3
votes
1 answer

/proc/diskstats: No such file or directory

Trying to get some disk performance metrics (in particular, using munin), found that /proc/diskstats does not exist. Tried yum provides '*/diskstats' but nothing except munin was found. CentOS release 6.7 (Final) uname -a Linux domain.com…
Putnik
  • 2,095
  • 3
  • 23
  • 40
2
votes
2 answers

What do the modified times under Debian's /sys directory mean?

Earlier today I did a full system image restore from backup. Shortly thereafter when I ran: # find / -type f -printf "%TY-%Tm-%Td %TT %p\n" | sort -r I noticed the files under /sys directory had just modified. Moreover, they were almost within the…
James Bowery
  • 158
  • 6
2
votes
1 answer

Default values on missing procfs and sysctl settings

I have several questions regarding the handling of procfs or sysctl values. Can a feature be enabled with a missing /proc file? Does a missing /proc or sysctl entry always mean that the option is not enabled on that particular kernel? In other…
user5626466
  • 123
  • 6
1
vote
1 answer

Why /proc has nosuid on Ubuntu

I notice /proc and /dev is mounted differently on ubuntu than other linux distribution as follows: Ubuntu: udev on /dev type devtmpfs (rw,nosuid,relatime,size=4079136k,nr_inodes=1019784,mode=755) proc on /proc type proc…
Alex
  • 11
  • 2
1
vote
0 answers

Mounted device showing in df and /etc/mtab but missing from /proc/mounts and /proc/self/mounts. Why?

I have an ec2 instance that is booted from an ebs snapshot. The boot device is /dev/sda1. When I call mount, df -h or cat /etc/fstab I can see the device: $ mount /dev/sda1 on / type ext3 (rw) $ df -h Filesystem Size Used Avail Use%…
jaygooby
  • 295
  • 1
  • 2
  • 12
1
vote
1 answer

Extracting Source => Destination rx / tx from procfs (/proc)

I know I can get rx and tx bytes for each NIC from /proc/..., but I'm looking to get rx and tx info for each source => destination pair -- basically traffic info for each network connection. In /proc/net/tcp and /proc/net/tcp6 I see local_address…
1
2