Questions tagged [proc]

/proc filesystem related questions

Filter by
Sorted by
Tagged with
1 vote
0 answers
74 views

Saving contents of /proc/net

I'm trying to archive files from /proc/net when a process crashes. This is to aid in debugging, to get understanding about the machine status when crash happened. The contents are not regular files, ...
m.divya.mohan's user avatar
0 votes
0 answers
27 views

Is a value of 18446744073692774399 normal for kernel.shmmax? [duplicate]

Context: web server hosted on DigitalOcean with a PostgreSQL database. We were experiencing recurring database crashes for unknown reasons. Eventually I nailed down a faulty query that was overloading ...
dabadaba's user avatar
  • 101
0 votes
0 answers
179 views

In linux, is it possible to check stdin to see the line that bash is running?

When I want to know that process has been spawned by bash, I just check ps. But I was wondering, sometimes I launch things as for x in $(somecomplextask.sh); do foo $x; done I wonder, is it possible ...
arivero's user avatar
  • 200
0 votes
1 answer
94 views

Do I need to reinstall the OS after a mass chown command if only these two folders were 'affected'?

I am using Ubuntu. I ran the following command. But I stopped it after a while because I felt it was taking too long. sudo chown -R $USER:$USER / This made the sudo command to stop working. So I ...
d786b09987n's user avatar
0 votes
1 answer
1k views

/proc/meminfo shows MemFree greater than MemAvailable - Does it make sense?

From what I could understand from this change in Linux reported memory usage, /proc/meminfo reports MemFree as currently unused RAM, and MemAvailable as RAM currently available to new processes ...
Emerson Prado's user avatar
1 vote
1 answer
1k views

Confusion with cpu states in /proc/stat

I wrote a program (monitoring plugin) that reads the cpu usage numbers from /proc/stat. Unfortunately it seems the numbers do not match the manual page proc(5), especially I get different proportions ...
U. Windl's user avatar
  • 383
2 votes
1 answer
3k views

how to count the open files without lsof [closed]

we have in our cluster more then 800 rhel machines - version 7.2 since lsof | wc -l take too much time ( sometimes 3-4 min ) , in order to get the current open files we want to know if there are ...
King David's user avatar
0 votes
1 answer
60 views

Structure to track running/completed scripts in proc/

I have a script that runs every hour, and without using a database, I would like to check if that file is either: (1) currently running; (2) already completed; or (3) not yet run. If it's #3, then I ...
samuelbrody1249's user avatar
0 votes
1 answer
375 views

How to configure auditd to collect logs from /proc kernel file directory

I've been looking for this for about 3 days now and have come up empty-handed. I am looking for a way to build a threat alert for Linux-based credential dumping in Splunk. To do this I need to be ...
Geordeaux's user avatar
2 votes
2 answers
130 views

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 ...
James Bowery's user avatar
0 votes
1 answer
59 views

capture process that keeps changing PID

i have the following: netstat -anp | grep ':36084 ' | grep CLOSE_WAIT | awk '{print $7}' | cut -d \/ -f1 | grep -oE "[[:digit:]]{1,}" this returns a process PID i want to inspect and find out more ...
khinester's user avatar
  • 203
11 votes
1 answer
1k views

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 ...
lesovsky's user avatar
  • 243
0 votes
1 answer
1k views

how are all/default/interface configuration influencing each other?

On the following kernel configuration path: /proc/sys/net/ipv6/conf/ we can configure each network interface in the following way: we can specify what configuration to follow for all interfaces we ...
Adelin's user avatar
  • 129
8 votes
2 answers
2k views

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), ...
Adelin's user avatar
  • 129
4 votes
2 answers
4k views

/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 ...
Victoria Javi's user avatar
0 votes
0 answers
281 views

Getting GPU statistics from /proc (ubuntu)

I am trying to get load statistics from my GPUs (NVIDIA). Is there a place in the /proc file system where I could find something useful, akin to /proc/stat to get CPU info? I know there are command ...
Hannu's user avatar
  • 113
1 vote
1 answer
387 views

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) ...
Alex's user avatar
  • 11
3 votes
0 answers
3k views

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 ...
THX's user avatar
  • 263
1 vote
0 answers
1k views

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 -...
jaygooby's user avatar
  • 324
9 votes
1 answer
8k views

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, ...
jeromefroe's user avatar
8 votes
2 answers
14k views

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. ...
Asa Carter's user avatar
5 votes
3 answers
7k views

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 ...
Parth Pathak's user avatar
-1 votes
1 answer
61 views

monitor another users current working directory

I would like to monitor a users current working directory. This is a learning app and I would like to know when the user was able to cd into a directory. Also this is in docker. I am root, but when ...
randy's user avatar
  • 9
2 votes
1 answer
532 views

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 ...
user5626466's user avatar
0 votes
0 answers
57 views

is it possible to run process that use only 2 CPU from 16 CPU in my linux machine

is it possible to run process that use only 2 CPU from 16 CPU in my linux machine we have red-hat machine version 6 and we have 16 CPU but because license cost money and if we limit the script that ...
yael's user avatar
  • 11
1 vote
1 answer
199 views

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/...
user3148164's user avatar
3 votes
0 answers
729 views

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 ...
GP92's user avatar
  • 741
1 vote
2 answers
2k views

Owner can't read /proc/$pid/io

On CentOS 7, I am trying to debug an issue where the nginx amplify agent cannot read /proc/$pid/io even though it is owned by the proper user. One of the nginx worker processes right now is pid 5693: ...
Jay Paroline's user avatar
9 votes
3 answers
7k views

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 ...
Dakota Brown's user avatar
3 votes
1 answer
2k views

/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 ...
Putnik's user avatar
  • 2,317