Tagged Questions
1
vote
1answer
58 views
Do kernel counters for jiffies in state exist in Linux?
I am looking to get time/jiffie stats on the state of a daemon process. The states I'm referring to are mentioned in the Linux Kernel Proc Filesystem document. Running, Sleeping, uninterruptible ...
1
vote
1answer
32 views
Looking for /procfs documentation, describing values and units of measurement
Surprisingly, comprehensive documentation for /procfs is hard to find.
For my specific question, I am looking at: cat /proc/1/statm (let's use pid=1 because it seems to be always there). I just ran ...
12
votes
2answers
266 views
When was a process started
To know when was a process started, my first guess was to check the time when /proc/<pid>/cmdline was written/modified the last time.
ps also shows a START field. I thought both of these ...
0
votes
0answers
97 views
Very large values for utime and stime for foo. Is foo still running?
I am running a program foo
It has been running for close to 30 days now (even more)
Until around 10 days ago (I cannot be very exact) it used 100% of one cpu on my dual core laptop (it was at the ...
6
votes
1answer
231 views
Files bigger than max(off64_t) on Solaris, eg “/proc/../as”
How do I read or seek from a file that's bigger than the maximum off64_t? The problem arises because the address space of a process is represented in the /proc/.../as file, which is a huge sparse file ...
3
votes
1answer
360 views
When do jiffies increment? How a process runs in a jiffy?
I know that jiffies length is selected at kernel compile time and it is defaulted to 250 (4ms). Source: man 7 time - The Software Clock, HZ, and Jiffies
I wonder what happens inside a jiffy. What are ...
3
votes
2answers
836 views
How is /proc/self implemented in Linux?
I was tinkering around with the /proc filesystem in Linux, and I came across /proc/self, which is a symbolic link to the process directory of the current process. I would like to know how it is ...
2
votes
3answers
290 views
Is there a way to identify which process turns into Zombie process
One of the ubuntu server has 82 zombie processes. All processes shows '[sh] defunct' as process command. Is there a way to find out which process is becoming a zombie process?
I tried checking the ...
6
votes
1answer
851 views
Is the sum of all PIDs “utime” the total system utime?
In order to measure a user's total CPU time, I'm using the "utime" field out of /proc/[pid]/stat:
utime %lu Amount of time that this process has been scheduled in user
mode, measured in ...
1
vote
0answers
140 views
Rogue Java process brings my computer to a halt
In reference to my earlier post: Is there a log of past threads that are now closed?
I gave the process a kill -STOP signal and started examining the details. I can't seem to figure out why it is ...
2
votes
1answer
1k views
parsing process ID/names from /proc, thread IDs
When I'm parsing process IDs from /proc, obviously each thread of a process gets its own ID. And I realize that all the threads in that same process can be gathered from /proc/${pid}/task/.
But my ...
1
vote
2answers
350 views
How can I disable /proc pseudo-filesystem on a shared Linux environment?
Is it possible to disable the /proc pseudo-filesystem to prevent w, ps, top, etc, from showing what other users are doing? Of course, I still want "everything else" to work correctly. Is there a ...
38
votes
3answers
16k views
How do I read from /proc/$pid/mem under Linux?
The Linux proc(5) man page tells me that /proc/$pid/mem “can be used to access the pages of a process's memory”. But a straightforward attempt to use it only gives me
$ cat /proc/$$/mem ...