Skip to main content

Questions tagged [proc]

procfs (or the proc filesystem) is a special filesystem in UNIX-like operating systems that presents information about processes and other system information in a hierarchical file-like structure

5 votes
1 answer
321 views

How to interpret the refcnt field in /proc/crypto?

Here's an example /proc/crypto entry: name : md5 driver : md5-generic module : kernel priority : 0 refcnt : 1 selftest : passed internal : no type : shash ...
asizo's user avatar
  • 61
2 votes
1 answer
72 views

OpenBSD process maps

I am using OpenBSD 7.7. So I know that procfs is not mounted on /proc, and I need to use sysctl to fetch process maps. But this fails as I am not running as a root user. The secure level is set to 1 ...
well-mannered-goat's user avatar
4 votes
0 answers
99 views

Recovering text of Unsaved document from process memory? (frozen Xed window - process still "running" but in Sleeping status)

The window of my text editor Xed froze with Unsaved documents just as I was doing 'File'->'Save as...' to save them... [How ironic.] Since the process still exists, I am trying to recover the text ...
The Quark's user avatar
  • 454
7 votes
2 answers
407 views

How can I find location of PRI in /proc

I have sshd with PID of 1957: mohsen@debian:~$ ps ax -o pid,nice,pri,cmd |grep 1957 1957 -2 21 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups According to above, my nice number is -2 ...
PersianGulf's user avatar
  • 11.3k
1 vote
0 answers
31 views

reading stdout from /proc [duplicate]

I'm running the following C program // hello.c #include <stdio.h> #include <unistd.h> int main() { while (1) { printf("Hello\n"); fflush(stdout); sleep(1); } ...
MaPo's user avatar
  • 319
0 votes
0 answers
45 views

Finding actual memory usage of process

I have seen similar questions 1, 2, and understand the difference between RSS/VSZ. I've some uses of mmap'ing distinct virtual memory regions to the same underlying physical memory. In this case, /...
muser's user avatar
  • 101
0 votes
2 answers
120 views

Why are some symlinks unreadable when their target is readable?

On Linux, I'm looking at /proc/1/cwd. This symlink is not readable as a normal user: $ ls /proc/1/cwd ls: cannot access '/proc/1/cwd': Permission denied But /proc/1 is accessible: $ ls /proc/1 <...
codeandfire's user avatar
1 vote
1 answer
129 views

In /proc/$PID/smaps in the VmFlags what is the difference between "readable" and "may read"?

The man page describes the meaning of the VmFlags: The "VmFlags" line (available since Linux 3.8) represents the kernel flags associated with the virtual memory ...
Joseph Garvin's user avatar
0 votes
1 answer
150 views

Why is dd unable to read /proc/pid/mem?

Why is GNU Coreutil's dd unable to read /proc/pid/mem? PHP is able to read it, check this: $ dd if=/proc/357668/mem bs=100 skip=93824992231424 count=1 iflag=fullblock dd: /proc/357668/mem: cannot skip ...
hanshenrik's user avatar
0 votes
1 answer
94 views

Is there a linux kernel interface (/proc) that counts kernel error log messages?

The comand dmesg --level=emerg,alert,crit,err lists all error messages with a high severity. I wondered for monitoring purposes whether the count of messages is somehow exposed in the /proc filesystem....
maxammann's user avatar
  • 103
0 votes
0 answers
91 views

Enabling video display without a `/proc/fb` device

Under Linux/Ubuntu: I had an impression that to have video output (either in console mode or GUI mode), there must be a fbdev listed in /proc/fb. But today on my system, I installed a NVIDIA GTX1650 ...
bruin's user avatar
  • 101
0 votes
1 answer
58 views

Are reads of /proc/pid/environ atomic in Linux 6.x (e.g: 6.1.99)?

When a process execs, looking at kernel code for environ_read(), it seems that if the mm_struct doesn't yet exist / is null or the env_end member of that mm_struct is null, environ_read() will return ...
Gregg Leventhal's user avatar
1 vote
1 answer
126 views

Unexpected behavior of 'some' PSI CPU metric

I am trying to understand the meaning of the "some" row of the Linux PSI metric for CPU. The Linux documentation (https://github.com/torvalds/linux/blob/master/Documentation/accounting/psi....
aaw's user avatar
  • 21
1 vote
1 answer
126 views

/proc/pid exists but does pid not found in ps

I am seeing a very odd behavior. /proc/1154/cmdline exists, and kill -0 1154 succeeds, but ps -ef | grep 1154 and ls /proc | grep 1154 do not show anything. 1154 was a postgres process in the middle ...
Hari Krishna S's user avatar
0 votes
1 answer
135 views

Examine procfs for scratch-based container

I'm developing an application that I'm shipping as a Docker image. My application consists of a single executable file that links just against libc and libcrypto. I'm thinking about making my image ...
Daniel Walker's user avatar

15 30 50 per page
1
2 3 4 5
39