Questions tagged [procfs]

14 questions
20
votes
1 answer

ps only prints up to 4096 characters of any process's command line

When I grep for a java process I get below output but it's limited to 4096 characters which results to actual process name(which is kafka.Kafka) not shown in grep output. Is this a limitation of grep? Is there any way to print characters beyond…
zer0Id0l
  • 311
  • 2
  • 6
19
votes
3 answers

Current umask of a process with

Is it possible to get current umask of a process? From /proc//... for example?
basin
  • 1,931
  • 4
  • 20
  • 36
11
votes
1 answer

What is securityfs?

While I am studying, I saw security file system which is mounted on /sys/kernel/security . It seems like to operate similar to sysfs or proc file system. Security file system keeps data on memory not in disk, so when write something into the file in…
JuHyung Son
  • 197
  • 3
  • 10
10
votes
1 answer

Why would ps *very* occasionally fail to find a valid process?

I've run into an odd issue in which a ps -o args -p command very occasionally fails to find the process in question, even though it is definitely running on the server in question. The processes in question are long-running wrapper scripts…
James
  • 101
  • 6
7
votes
2 answers

Strange mount entries, procfs on net:

On a device I get among others the following strange entries for mount: none on net:[4026532603] type proc (rw,relatime) none on net:[4026532424] type proc (rw,relatime) Any idea what or for what this could be? It is the first time I see procfs…
phk
  • 5,893
  • 7
  • 41
  • 70
4
votes
2 answers

Can user space programs provide/implement sysfs or procfs files to pass data to and from a program?

Kernel space device drivers usually implement directories and file that show through /sys or /proc. Can the long running user space programs do this as well? I have a daemon or long running program that needs to be able to be queried for some data…
Ribo
  • 167
  • 1
  • 10
3
votes
1 answer

Process Priority value is different in procfs

For example, let's examine the value of PRI of firefox with ps, and then see what is the value stored in procfs. $ ps -o pid,comm,pri,ni 7000 PID COMMAND PRI NI 7000 firefox 19 0 $ cat /proc/7000/stat 7000 (firefox) S 1 6447…
3
votes
1 answer

What is the relationship (similarity and differences) between /proc/devices and /dev entries in Linux?

When we register a driver, the "name" parameter shows up in /proc/devices, yet we can write to the devices using the entry in /dev corresponding to the device. What are the core ideas behind /proc and /dev entries? Moving further, is sysfs supposed…
Lavya
  • 1,545
  • 5
  • 18
  • 26
2
votes
1 answer

What is proc in Grub?

I was playing with Grub from its command line, I noticed something that grabbed my intention, I listed the devices through Grub's ls command and I noticed there's a virtual device named (proc): grub> ls (proc) (hd0) (hd0, msdos1) The interesting…
direprobs
  • 944
  • 14
  • 29
2
votes
1 answer

Is systemd's logind or Gnome-wayland-session incompatible with hidepid=2?

Is there any documentation regarding systemd which would suggest that setting the hidepid=2 mount option to the /proc procfs will cause problems? the error message part before the failure to start a Gnome wayland session is: systemd[330]: Started…
humanityANDpeace
  • 13,722
  • 13
  • 61
  • 107
2
votes
2 answers

How to determine the options Linux kernel was build with?

Say, I have custom kernel from my distribution, how could I get list of all options the kernel was build with? It's possible to get them by reading config file from kernel package from vendor's repo, but is there any other way? I mean ways to get…
Bulat M.
  • 397
  • 2
  • 5
  • 14
2
votes
1 answer

What is /proc/filesystems supposed to be and why is it different from /lib/modules/linux_ver/kernel/fs?

The very little documentation about /proc/filesystems says it is a "list of supported file systems". I see a lot of file system modules in /lib/modules/linux_ver/kernel/fs, most of which do not appear in /proc/filesystems, nevertheless mount appears…
Howard
  • 5,149
  • 5
  • 30
  • 34
1
vote
1 answer

Qemu-user : get memory maps while debugging remotely

I am trying to get the memory map of a process I am debugging remotely (peda pull request link), the process is ran with qemu-user, for example: qemu-arm -L /usr/arm-linux-gnueabihf/ -g 1234 ./ch47 the debugging is done with gdb, commands: $…
Redouane Red
  • 111
  • 5
0
votes
2 answers

Does procs_running include the process which issues requests?

There is a procs_running value in /proc/stat on Linux which shows the number of processes (threads) running. The question is: does this value include the current process which is querying procfs or does not? On an absolutely idle system, should we…