Questions tagged [proc]

Proc refers to Procfs filesystem in *nix based operating system.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Inconsistent def for proc_create()

After upgrade to '5.13.0-44-generic', I did a git pull on 'focal' code source. In 'focal' kernel source: (include/linux/proc_fs.h) struct proc_dir_entry *proc_create(const char *name, umode_t mode, ...
user avatar
  • 1
0 votes
1 answer
89 views

kcore file on /proc/ 128tb

my vm with windows with shared folders and my ubuntu showing the file on KDE Dolphin /proc/kcore - 128TB a link to the file ok, i creating a project in a Windows VM, the Linux+Windows, copying my host ...
user avatar
1 vote
0 answers
81 views

could not open file /proc/asound/card0/pcm0p/info

if I start sonic-pi on my ubuntu system, I get the following error: [GUI] - could not open file /proc/asound/card0/pcm0p/info In fact the whole directory pcm0p doesn't exist. This is as deep as I can ...
user avatar
  • 151
1 vote
1 answer
775 views

Permanently setting intel pstate driver to "passive"

My i5-11600K CPU is using the intel_pstate frequency scaling. By default, the driver is in "active" mode and will throttle up ALL 6 physical cores, even if there is only work for one core. ...
user avatar
  • 1,053
1 vote
0 answers
65 views

Why is update-notifier.desktop scanning /proc/3782/fd without permission?

Why is that, occasionally, update-notifier spits out a large number of "Permission denied" lines in journalctl? Dec 04 08:55:32 ML systemd[1]: NetworkManager-dispatcher.service: Succeeded. ...
user avatar
2 votes
0 answers
196 views

Running cat /proc/iomem shows “Killed” message

I'm trying to see the content of the /proc/iomem. Upon running both $ cat /proc/iomem $ cat sudo /proc/iomem I'm getting the same message killed in the terminal. And the dmesg shows the following, [ ...
user avatar
0 votes
1 answer
78 views

Are /proc/sys/net/ipv4/icmp_echo_ignore_all and net.ipv4.icmp_echo_ignore_all equivalent?

According to the following test, it seems that net.ipv4.icmp_echo_ignore_all and /proc/sys/net/ipv4/icmp_echo_ignore_all are exactly the same. Are they exactly the same? If so, which way is the best ...
user avatar
0 votes
0 answers
39 views

What is the correct way to see what signals a process handles?

EDIT: Since my question was not clear let me reformulate: how can one find what signals a process handles? From this answer: https://unix.stackexchange.com/questions/85364/how-can-i-check-what-signals-...
user avatar
0 votes
1 answer
431 views

How to get (from terminal) total number of threads per core?

I want to know how can I get the total number of running threads per core (in the runqueue) in the terminal (to be used in a bash script)?
user avatar
0 votes
1 answer
178 views

How do I locate a file returned by lsof?

I'm using Ubuntu Linux 16. I recently noticed a substantial discrepancy between what "df" reports and what "du" reports for the total size of my "/" directory. So following this link -- https://...
user avatar
  • 1,704
2 votes
2 answers
12k views

Unknown symbol in module but what symbol?

I compile a driver following the documentations. But when I try loading them via insmod onebox_wlan_nongpl.ko , I receive an error message: insmod: Error: could not insert module ...
user avatar
  • 51
1 vote
0 answers
230 views

/proc directory structure shows only processes but also contains directories for threads

I was studying about the internals of Linux where I came to know about how the file descriptors of processes are kept under /proc/PID/fd. I tried to poke around an Ubuntu 18.04 installation and came ...
user avatar
3 votes
0 answers
111 views

File descriptor 255 for terminal? [duplicate]

I was learning about the proc filesystem mechanism and I randomly tried to check the file descriptors of bash itself. Can someone explain what the file descriptor number 255 doing here (like I ...
user avatar
2 votes
2 answers
1k views

/proc directory stored in a RAM or Hard drive?

I want to know what is the /proc and what kind of stuffs included in that? And if the /proc store in RAM or Hard drive? Thanks
user avatar
  • 57
0 votes
0 answers
195 views

/proc/ioports is empty in beagleboard

I am trying to find the port addresses in Ubuntu in beaglebone black. When I try to open /proc/ioports file, it shows the file is empty. Can someone help me with this?
user avatar
  • 33
0 votes
0 answers
4k views

"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message

I was trying to install Ubuntu 18.04 here: the 'grub-efi-amd64-signed' package failed to install into /target/ Finaly I created a new partition sdb8 efi and then Installed Linux successfully. ...
user avatar
  • 241
4 votes
0 answers
916 views

Ubuntu Bionic and i7-8550U

I've installed Ubuntu Bionic on an HP Probook 470 G5 with an i7-8550U CPU. But in /proc/cpuinfo I see: siblings: 1 cpu cores: 1 I believe I should see: siblings: 8 cpu cores: 4 If I'm right, what ...
user avatar
33 votes
6 answers
17k views

How do I split a "/proc/*/environ" file in separate lines?

I'm trying to get the content of any /proc/*PID*/environ file in more readable format. I'm able to do that in the way shown below, but I'm sure this isn't the proper way. $ cat "/proc/$(pgrep gnome-...
user avatar
  • 27.8k
4 votes
1 answer
2k views

What is /proc/sys/vm/pagecache in Ubuntu?

Redhat says in some of their docs Page cache is a disk cache which holds data of files and executable programs, for example pages with actual contents of files or block devices. Page cache (disk ...
user avatar
  • 7,439
1 vote
0 answers
21 views

Proper location for proc edits

My hardware/kernel combination expose a particular bug(ish) that means my laptop doesn't sleep when the lid is closed. The fix is easy - it's simply: root# echo XHC1 >/proc/acpi/wakeup My ...
user avatar
3 votes
1 answer
2k views

How is "sendmail: MTA: accepting connections" a correct commandline?

cat /proc/21637/cmdline says sendmail: MTA: accepting connections which I cannot imagine to be a correct command line. Since I don't have sendmail installed nor do I find it in PATH and not even ...
user avatar
1 vote
0 answers
202 views

Directory "/proc/sys/net/" missing in Ubuntu 14.04.4 on Windows

I have been trying to trouble-shoot connectivity issues with Bash on Ubuntu on Windows (Ubuntu 14.04.4 LTS), and I discovered I don't have a /proc/sys/net directory. me@mycomp:~$ ll -a /proc/sys/ ...
user avatar
3 votes
2 answers
3k views

Finding my swap partition

It looks like I have 40 GB of swap: wuser@wavesftwDell:~$ cat /proc/swaps Filename Type Size Used Priority /dev/dm-1 ...
user avatar
  • 31
6 votes
2 answers
3k views

Why there are 2 directories having same content?

cd /proc/$$/root/bin cd /bin After running ls command on both the directory, I found that content of both directories are same (which is nothing but list of commands). Is there any specific reason ...
user avatar
  • 3,960
0 votes
2 answers
2k views

Cannot read the changes in net.ipv4.ip_local_reserved_ports

I'm new to Ubuntu and I tried to edit this file net.ipv4.ip_local_reserved_ports but cannot read changes. I got empty after I checked the file again.
user avatar
3 votes
1 answer
299 views

What controls the device name in /proc/mounts?

In /proc/mounts, my system used to show /dev/mapper/sda2_crypt as /. After used for some days, including kernel and software upgrading, the line changed to /dev/dm-0 as /. What happened? I booted into ...
user avatar
  • 438
1 vote
1 answer
963 views

How to get CPU Utilization for a certain process

I am running Ubuntu 14.04 on my machine. I need to get the CPU utilization for a process running at a required monitoring interval. I have tried the following have a few questions about them. I ...
user avatar
  • 11
5 votes
1 answer
6k views

Directory "/proc/sys/net/bridge" missing

I upgraded my Trusty to Linux 3.19 and the directory /proc/sys/net/bridge disappeared. What's going on? My bridge exist, I can see it through brctl show, but where is the directory under /proc? If I ...
user avatar
  • 789
3 votes
1 answer
2k views

How do I edit a file in /proc that can be viewed with cat, but is not editable by mousepad and abiword?

As the question says, I need to edit my /proc/acpi/wakeup file, but when I open it with any text editor, it shows blank file. cat command, on the other hand, displays correct file contents in terminal....
user avatar
  • 213
7 votes
1 answer
31k views

How to check if ICMP blocking is enabled in a system..?

A VLAN pool enabled newly is not pinging the device. Connectivity issues are not there. Can this be because if ICMP Blocking is enabled? How to check the status of the same?
user avatar
3 votes
1 answer
2k views

Recursive directory listing of /proc

I'm trying to obtain a recursive directory listing of my filesystem using the command $ ls -alRc from root directory. Everything is running fine except the /proc directory listing, which results ...
user avatar
  • 45
1 vote
1 answer
668 views

/proc/net/dev on ubuntu 12.04 x86

How can i prevent reset byte count in /proc/net/dev when there is higher than 4gb of transfert? The 'bytes' counter in /proc/net/dev wraps after bytes > 2^32. I understand that there are other ...
user avatar
  • 15
9 votes
1 answer
5k views

Absurdly large /proc/kcore file -- what does it mean?

I had to abort a backup of my system because it stalled on the file /proc/kcore. I check its size and, well, the file is enormous. Checking Google, it seems that many other people have absurdly large ...
user avatar
5 votes
0 answers
1k views

What controls apport's behavior for saving core dumps?

apport is configured (default) to handle my system's core dumps (in /proc/sys/kernel/core_pattern: |/usr/share/apport/apport %p %s %c %P). It's behavior is mysterious to me: Sometimes it saves core ...
user avatar
1 vote
1 answer
1k views

What is the format of /proc/[pid]/sched file? What is option avg_per_cpu in it?

I'm wondering if there is some documentation for /proc/[pid]/sched file in linux? this is not present in man proc. I need to understand what are the different field in there and what is avg_per_cpu ...
user avatar
2 votes
1 answer
424 views

What does it mean for /proc/kpagecount to be zero

for some entries in /proc/kpagecount, all the 64 bit entry is zeros and yet the page is allocated (confirmed from /proc/kpageflags). What does it mean for kpagecount to be zero for certain physical ...
user avatar
  • 123
2 votes
1 answer
493 views

Modules in /proc/modules address issue

If I cat of the /proc/modules the RAM address location of modules is always 0x0000000000000000. Any ideas? vmnet 51316 13 - Live 0x0000000000000000 (OX) parport_pc 32701 0 - Live 0x0000000000000000 ...
user avatar
  • 21
1 vote
1 answer
97 views

Stat a PID for claim time?

Is it possible to stat a process ID to get the time it was claimed?
user avatar
  • 407
0 votes
1 answer
988 views

directories under /proc directory

when I tried $ ls /proc ,I found a lot of directories(numbered - for PID and other subdirectories...) as follows : I am describing only some of the numbered subdirectories,and other subdirectories $...
user avatar
  • 1,473
0 votes
1 answer
4k views

Restrict user access to /proc and /sys

I have one big problem: setfacl does not seem to work for /proc and /sys, but I would like to restrict one specific users rights and I do not find it acceptable for that user to read stuff like /proc/...
user avatar
  • 902
0 votes
1 answer
458 views

Screen freezes after screen saver when watching fullscreen videos. Disable screensaver when using flash

Update: libflashplayer is installed on my system, firefox just isnt using it.... I discovered this hack-sawing through my root directory with ls -R / | grep libflashplayer I want to disable the ...
user avatar
  • 143
2 votes
3 answers
5k views

Lot of "file not found" when using sudo find / -type s

In the attempt to understand why I keep getting the following error error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' while using the command sudo find /...
user avatar
1 vote
2 answers
2k views

writing to /proc/irq/*/smp_affinity as root

Here is the command I issued: root@vishal-Think:~# echo "0" > /proc/irq/0/smp_affinity And here is the error: -bash: echo: write error: Input/output error The ls command shows that root has ...
user avatar
3 votes
1 answer
13k views

/proc/kcore too big

After experiencing a DDoS attack, somehow /proc/kcore is very huge, I use a small PHP class to check the current disk space, and how many has been used. It shows the following: Total Disk Space: 39....
user avatar
  • 133
4 votes
1 answer
2k views

Why does "echo EHC1 > /proc/acpi/wakeup" change Enabled to Disabled

I have a very basic question. I understand what echo does, and how it directs a string to the file /proc/acpi/wakeup. My question is what is actually happening when I direct the word EHC1 to /proc/...
user avatar
  • 357
0 votes
1 answer
443 views

Reading device info from inside proc module

I want to read graphic card info in proc module.I created a proc module and loaded it to kernel.What I want is to show graphic card info when I call the proc from terminal. Such as " cat /proc/...
user avatar
  • 11
2 votes
1 answer
4k views

Can't change brcm_monitor0 in /proc

I am trying to change the value in the file /proc/brcm_monitor0 from 0 to 1. This file is used to set Broadcom wifi modules into monitor mode. The default method to do this is: sudo -s echo 1 > /...
user avatar
  • 23
3 votes
1 answer
5k views

Can't upgrade procps on 12.04

If I'm performing apt-get upgrade I get the following error: Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: ...
user avatar
  • 358
2 votes
1 answer
1k views

How to backup /proc folder with >2000 subfolders and 140TB kcore file?

I found the /proc folder with >2000 subfolders and a kcore data with 140TB. All created at the same time. What is this? All the folders are named from 1 to 2634 and have all 44 subentries... Using ...
user avatar
1 vote
1 answer
188 views

mouse stopped working, checked htop, and HOLY WOW my kcore file is 140 petabytes!! (see screen shot)

My mouse suddenly stopped working on my Ubuntu plex server v12.04 LTS. It still works as a remote plex server so I'm not too concerned. But I did try to login locally with it and ran htop to see if I ...
user avatar
  • 2,049