Questions tagged [process]
Questions about identifying processes, about listing them, sending signals, killing them, assigning and using process priorities.
785
questions
-1
votes
1
answer
100
views
How to isolate cpu and ram for specific task. I already use "isolcpus" in the Grub setting to limit my CPU, but it does not get desired result
The main issue is to calculate the execution time of my algorithm, which is run in Python, and get a fixed execution time for each execution of the algorithm on the same data. I use the same data on ...
0
votes
0
answers
54
views
Do multiple running instances of the same executable binary share the same RAM image?
If I have, say, two long-running Node applications (think Express), do the two instances of Node code share the same physical memory?
Data segments certainly will be separate, but do all code segments ...
0
votes
0
answers
76
views
taskset dose not change CPU allocated to process
I changed CPU affinity of a process with taskset
sudo taskset -cp 0-10 2275
pid 2275's current affinity list: 0-10
but PSR of this process dosn't changed
ps -o psr -p 2275
PSR
51
as I know after ...
0
votes
0
answers
192
views
Thread names truncated - show full?
Seems like thread names get truncated everywhere (for example "IpcPipeBroadcas" instead of "IpcPipeBroadcast". I've checked both htop and the below ps command. Is this hardcoded or ...
-1
votes
1
answer
135
views
Manage the dotnet process; detach, reattach and view output
On my Ubuntu Server I run the command dotnet myapplication.dll to start an application. It subsequently displays a steady stream of output logging to the screen.
I would like to be able to perform ...
0
votes
0
answers
24
views
How to create a ptracable process in Ubuntu
After Ubuntu Maverik, restrictions were placed on ptrace syscall. Now a only the parent process or the sudo user can ptrace a process. We can change this behavior by editing /proc/sys/kernel/yama/...
0
votes
0
answers
91
views
Two processes have different behavior while running with the same command and same binary file
There's an app in Ubuntu server, which runs a FFMPEG instance. That instance keeps working fine.
But when I run the same command with the same binary executable in terminal, it exits after 3 or 4 ...
4
votes
2
answers
626
views
pstree does not show every process
I opened a terminal made sudo su run the nano editor in the background by running it as nano&.
I tried to find the newly started nano process in the process list.
To do that, I typed
ps aux|grep -...
-1
votes
2
answers
57
views
Get the command line in full, of a GUI program
How to know the complete command line used to invoke a GUI program currently running ?
tried ps -e, only put its filename
-2
votes
1
answer
689
views
How to check if pkill was successful - better than my script?
Note: This question applies in general to Linux and also to the current version of Ubuntu (not just old unsupported versions as some have commented)
We use pkill to check if a program is running to ...
1
vote
2
answers
814
views
a process started with sudo and put in background still exist after ssh disconnect
Here is the procedure I use:
I'm connecting to Ubuntu 22.04 using ssh.
I'm editing a file with vim (or emacs) using sudo
I'm leaving the editor with Ctrl-Z
Then, I close the ssh connection. Either I ...
3
votes
1
answer
265
views
alias must be in the Bash sub process
How alias in Bash can be in the forked sub process Bash as get failed on:
alias al='echo hello '
$ al foobar
hello foobar
$ alias al='echo hello ' ; bash
$ al
bash: al: command not found
How to have ...
10
votes
1
answer
14k
views
Firefox: "isolate+" process CPU usage 100%
I have a completely new Ubuntu install with Firefox. When browsing on my usual sites, I get over 100% CPU usage due to the process "isolate+". Google has been completely useless. I have ...
0
votes
1
answer
7k
views
Killing multiple processes by name [duplicate]
I have a question regarding killing processes that are running (and that I have started)
I have started many procesess and now I want to terminate them
doing
ps aux | grep aword
gives me the ...
0
votes
0
answers
109
views
`ps` reports itself as using 99% CPU
After update to Ubuntu 23.04, I noticed that the ps command sometimes reports itself as using 99% CPU.
If you try several times, you will see something like:
$ ps -ef | grep \ p[s]
my_user 48167 ...
0
votes
0
answers
224
views
Memory intensive process getting killed before swap memory is full
I have a very memory intensive Java program to run, at first it was giving heap out of memory error so I kept in increasing the heap size along with the swap partition (I only have 32 GBs of RAM and I ...
-3
votes
1
answer
410
views
Why sum of all process CPU(%) is greater than total cpu(%) utilisation in top command [duplicate]
In a top command instance, the CPU utilisation (100-idle) was 14% but the top most process "Chrome" alone consumes 253%. I am unsure of how the chrome process consumes CPU more than 100%.
...
0
votes
1
answer
368
views
is possible to execute commands on host from snap package?
I am building snap from command line program to guess linux commands from natural language. For example cal for show calendar. When command is proposed I need to confirm them by Enter. So after Enter ...
9
votes
4
answers
5k
views
Check if PID still running
How can i check in a script if a certain process (PID) is still running?
e.g.
check if PID still running
if yes then keep checking
if not then echo PID has finished and send simple email
or
Check if ...
16
votes
6
answers
2k
views
Check memory usage of process which exits immediately
I have built an application which takes less than 1 sec to execute. I want to check the memory usage of this application. What are the tools which can be used in this scenario?
2
votes
1
answer
283
views
Two startup daemon processes working together in wsl2?
We normally know that WSL2 normally do not have systemd it generally starts on init daemon! But recently from year 2022 we can also use systemd by enabling the sysboot to systemd in wsl.config.
So I ...
0
votes
0
answers
68
views
Should systemd be running as a sub-process of itself?
I just noticed in System Monitor that systemd is running as pid 1 AND that within that process it is listed as a dependent process of itself, running again under process 1 as pid 933 and with another ...
4
votes
1
answer
1k
views
How can I correctly calculate the sum of memory used by all processes?
There recently was a couple of questions asking why Ubuntu is seemingly using more memory than accounted for by processes/services - here and here.
However, I have the exact opposite situation. On my ...
2
votes
1
answer
250
views
Oneliner to get the command which started a process on a certain port
I would need a one-line command which, given a port number, returns information on the command which started the process running on that port.
Usually, I get this information by running a sudo netstat
...
0
votes
0
answers
56
views
Close only one window of a hanging program
I've had two separate windows of gedit. In one of them I've tried to open some file and this has made gedit hang giving me the typical choice of "Force quit" or "Wait". Continuous ...
0
votes
1
answer
116
views
Efficiently get PID's in certain ports from java
I know sudo lsof -t -i:{port} will give the list of PID's involved in that port and I can run this command via java by Runtime.getRuntime.exec() command. But the thing is I have thousands of thread ...
1
vote
1
answer
1k
views
Finding out specific processes that are running php commands shown in 'top -i'
I have been scouring the forums to find the next step in analysing what process specifically is requesting the usage of a php command shown when running the top -i in an Ubuntu 20.04 server cli.
After ...
1
vote
1
answer
676
views
Wait for process with name to spawn in Bash
I want to write a Bash script that runs in a background, waiting for a command to spawn.
Suppose I ran script.sh which waits for ls. After I run ls, it should trigger actions?
0
votes
1
answer
334
views
Multiple Un-killable Looping Processes Spawning
I'm desperately trying to work this one out, so thanks for taking a look.
Context:
Whilst trying to make a large file transfer from my Ubuntu PC to an external hard-drive, using rsync I believe, I ...
0
votes
0
answers
1k
views
How to config gnome-shell to run on GPU instead CPU?
This week I formatted my laptop and installed the new Ubuntu 22.04 (I was using 20.04), and after switching the OS, I found it slower than it was in 20.04 and I also, I found a lot of problems in this ...
1
vote
1
answer
174
views
Allowing {USER} to run a command against a process owned by another user
I have been scouring the forums to find out how you can allow a command / process to be ran by a user that is normally only permitted by root or itself.
There are some good resources out there but ...
0
votes
1
answer
120
views
Execute a command before hibernation ubuntu on lid close
I am wondering if there is a way to execute a script (for example I want the script to close all brave and node process), but I have already configured Ubuntu to hibernate on lid close, is there a way ...
-1
votes
1
answer
579
views
Can't run mysqld in Ubuntu
I try to run mysqld but i get following error in Ubuntu terminal.
2022-08-30T18:48:34.596763Z 0 [Warning] [MY-010091] [Server] Can't create test file /var/lib/mysql/...
1
vote
1
answer
1k
views
process stops, see "killed" in temrinal window
I have 20.04 LTS and was running yolov5 model as root ( to rule out permissins issues ) and the model starts fine, then the first epoch of training starts, nothing happens, then I see the word "...
0
votes
1
answer
438
views
Process exits on terminal session end, even though it's a background process
I connect to my VPS using ssh. I run npm run start & to start my next.js site in the background. And everything works.
As soon as I disconnect my SSH session, my site stops.
How can I force that ...
0
votes
0
answers
213
views
How to check reason for a process getting killed in Ubuntu 22.04?
I have a process that gets killed, but no error message is shown in the terminal, while I run it. Is there a way to see some message, or get that information?
I've tried running syslog like it said in ...
0
votes
0
answers
192
views
Ubuntu is very slow, due to these processes or other issues?
TIME+ COMMAND
------------------
73:39.09 gnome-shell
6:39.58 kswapd0
7:20.54 kcompactd0
46:26.92 Xorg ...
0
votes
1
answer
664
views
Why this orphaned process is called by a child process of init instead of init?
I know that all orphaned process are taken over by the init process(mother process) but I wrote a c program to understand how processes really work and I notice that a orphaned process is taken over ...
1
vote
0
answers
85
views
Unknown process overloading cpu - kperl
I am not a Linux expert.
I noted a process running on my Ubuntu that is taking 200% of the cpu resources.
It is belong to root, its name is kperl and is located in /temp
I have not been able to ...
1
vote
1
answer
932
views
Forground a running process that was started with a script (MineCraft Server)
I have a MineCraft server starting with a script in chrontab. When I start my Ubuntu 20.04 LTS Computer, and I SSH to the server, I want, for example, to add someone in the whitelist, but I need to ...
0
votes
0
answers
79
views
How local socket is differentiated?
In case of multiprocessor environment where IPC is implemented using a sockets How can we make sure each socket is identified.
For example In our environment we have around 14 process and each of them ...
0
votes
0
answers
621
views
spamassassin "spamd child" process using 90% or more CPU
On my Ubuntu box, one of spamd child processes often takes 90%+ CPU.
This started a few months ago. The box had worked for many years without this problem.
I thought installing 21.10 caused it and ...
1
vote
0
answers
56
views
How to reserve an autogroup percentage to one process in a script?
So I have this code:
AUTO=$(cat /proc/sys/kernel/sched_autogroup_enabled)
echo 0 > /proc/sys/kernel/sched_autogroup_enabled
setsid -w taskset 1 ../esx 100000000 8 3 0 0 0 0 2>/dev/null &
...
0
votes
1
answer
1k
views
simple-scan Ubuntu 22.04 : error message while saving file - ghost process
since I am using Ubuntu 22.04, simple-scan shows this error message when saving the scanned page :
Failed to execute child process " " (No such file or directory).
It really saves the file,...
0
votes
0
answers
174
views
How to Tell Activity Monitor to Measure in GB instead of GiB?
I use the Activity Monitor application a lot, and I frequently need to know how much memory an application is using. Is there a way to tell the activity monitor to measure in GB instead of GiB?
Here's ...
2
votes
2
answers
2k
views
Check if process does or does not exist
I want to write script that accepts process name (I ask the user for process name each time followed by a prompt on the same line) if process exists it will print "EXISTS" or if it doesn't ...
0
votes
1
answer
2k
views
How do I determine if a .NET Core application is currently running on linux
How do I determine if a specific .NET Core application is currently running on Linux and isn't failing, if it's application log shows no data?
1
vote
4
answers
2k
views
How to stop a process named "Code" that has high CPU usage?
I have one process named "Code" that has high CPU usage. I don't know what this process is and how I can stop it.
Can you help me fix this?
3
votes
1
answer
2k
views
Can we get process list using sar in Ubuntu?
Is able to get a processes list that runs on April 11 in the Ubuntu Server using sar or other tools.
0
votes
1
answer
273
views
sudo command make child process to zombies
I'm trying to make a program that divides into child and parent processes with fork(). Child executes arguments with execv() and parent traces him with ptrace(). I made almost all parts of the program,...