Skip to main content

Questions tagged [process]

Questions about identifying processes, about listing them, sending signals, killing them, assigning and using process priorities.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
54 views

How to create child process to init? (process with PPID 1)

I'm currently exploring process management on Linux systems and came across an interesting question: How can one create a child process directly linked to the init process, which typically has a PPID (...
gsagagsa's user avatar
-1 votes
1 answer
171 views

Why does the reported memory usage of a systemd service differ from the sum of memory usage in top?

I am running a systemd service named agent.service on my Linux system, and I've noticed a discrepancy between the reported memory usage of the service and the combined memory usage of its constituent ...
Ackerman Shadow's user avatar
0 votes
0 answers
41 views

Can't refresh chromium from snap

I have a kiosk-like device that uses chromium, and I am configuring it remotely. I need to update chromium from snap. sudo snap refresh --list shows me an available update, but if I try to sudo snap ...
GavinTryz's user avatar
-1 votes
1 answer
249 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 ...
Dharmendra Thapa's user avatar
0 votes
0 answers
87 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 ...
Old Geezer's user avatar
0 votes
0 answers
105 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 ...
AbuMorad's user avatar
0 votes
0 answers
473 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 ...
Daniel Krajnik's user avatar
-1 votes
1 answer
194 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 ...
NOCARRIER's user avatar
  • 103
0 votes
0 answers
25 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/...
Sourav Kannantha B's user avatar
0 votes
0 answers
110 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 ...
james hofer's user avatar
4 votes
2 answers
778 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 -...
new_x's user avatar
  • 43
-1 votes
2 answers
61 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
itil nonok's user avatar
-2 votes
1 answer
902 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 ...
LifeBoy's user avatar
  • 2,283
1 vote
2 answers
951 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 ...
AymericM's user avatar
  • 113
3 votes
1 answer
294 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 ...
cantik memekmu's user avatar
10 votes
2 answers
19k 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 ...
ahermann's user avatar
  • 109
0 votes
1 answer
11k 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 ...
KansaiRobot's user avatar
0 votes
0 answers
130 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 ...
FedKad's user avatar
  • 11.2k
0 votes
0 answers
289 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 ...
Sergio's user avatar
  • 101
-3 votes
1 answer
625 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%. ...
Bharath S's user avatar
0 votes
1 answer
464 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 ...
Daniel's user avatar
  • 387
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 ...
Marc's user avatar
  • 305
17 votes
6 answers
3k 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?
doptimusprime's user avatar
2 votes
1 answer
368 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 ...
Rahat Bin Taleb's user avatar
0 votes
0 answers
79 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 ...
J T Richter 'commander-prompt''s user avatar
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 ...
Artur Meinild's user avatar
2 votes
1 answer
261 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 ...
Tms91's user avatar
  • 425
0 votes
0 answers
75 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 ...
SergiusPro's user avatar
0 votes
1 answer
129 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 ...
Nafiul Alam Fuji's user avatar
1 vote
1 answer
2k 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 ...
Doopz's user avatar
  • 131
1 vote
1 answer
823 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?
sudoer's user avatar
  • 100
0 votes
1 answer
382 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 ...
CSaward's user avatar
0 votes
0 answers
2k 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 ...
Leonardo Ferreira's user avatar
1 vote
1 answer
200 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 ...
Doopz's user avatar
  • 131
0 votes
1 answer
135 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 ...
Ibrahim Abdullahi Aliyu's user avatar
-1 votes
1 answer
649 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/...
Karol's user avatar
  • 1
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 "...
steve's user avatar
  • 121
0 votes
1 answer
595 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 ...
Ali EXE's user avatar
  • 119
0 votes
0 answers
263 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 ...
An old man in the sea.'s user avatar
0 votes
0 answers
202 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 ...
Willow Lu's user avatar
0 votes
1 answer
777 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 ...
Maxwell D. Dorliea's user avatar
1 vote
0 answers
96 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 ...
FeliceM's user avatar
  • 111
1 vote
1 answer
1k 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 ...
Glappa's user avatar
  • 17
0 votes
0 answers
84 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 ...
Shrinivas M's user avatar
0 votes
0 answers
701 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 ...
Paul Schreiber's user avatar
1 vote
0 answers
62 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 & ...
Varox's user avatar
  • 111
0 votes
1 answer
2k 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,...
user32386's user avatar
0 votes
0 answers
228 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 ...
AlexFullinator's user avatar
2 votes
2 answers
3k 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 ...
Ender's user avatar
  • 1,462
1 vote
1 answer
3k 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?
Izzy's user avatar
  • 11

1
2 3 4 5
16