/proc filesystem related questions
Questions tagged [proc]
30 questions
1
vote
2 answers
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:
# ps aux | grep 5693
nginx 5693 0.5 0.0…

Jay Paroline
- 159
- 1
- 9
1
vote
1 answer
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 for real machines and Xen paravirtualized…

U. Windl
- 366
- 3
- 17
1
vote
1 answer
how to count the open files without lsof
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 other approach that can give the total current open…

King David
- 549
- 6
- 20
0
votes
1 answer
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 able to monitor the /proc directory. I found audit…
0
votes
1 answer
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 about the actual process, where it is being…

khinester
- 203
- 1
- 9
0
votes
1 answer
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 can provide a default configuration for any new…

Adelin
- 109
- 10
0
votes
0 answers
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 line tools to do this, but in my particular case…

Hannu
- 113
- 5
0
votes
0 answers
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 will run only on 2 CPU then we can save the money

yael
- 11
- 2
0
votes
0 answers
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, but interface to internal data structures in the…

m.divya.mohan
- 333
- 1
- 6
0
votes
0 answers
Is a value of 18446744073692774399 normal for kernel.shmmax?
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 the system and am almost sure that's the…

dabadaba
- 101
- 1
- 3
0
votes
0 answers
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 to check somewhere for the complete line with the…

arivero
- 200
- 1
- 1
- 6
0
votes
1 answer
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 found a solution to bring back sudo to root by using…

d786b09987n
- 15
- 4
0
votes
1 answer
/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 without swapping.
From this, shouldn't MemFree be…

Emerson Prado
- 25
- 5
0
votes
1 answer
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 run it, otherwise I skip it. What would be a good…

samuelbrody1249
- 101
- 1
-1
votes
1 answer
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 I try to view other users cwd I get a permission…

randy
- 9
- 3