Questions tagged [process-management]

Use this tag when the topic is about system process management. Commands used for this are like ps and kill -9 xxxx and service xyz start|stop|restart and htop, for example. Often used in conjunction with memory management.

Use this tag when the topic is about system process management. Commands used for this are like ps and kill -9 xxxx and service xyz start|stop|restart and htop, for example. Often used in conjunction with memory management.

355 questions
434
votes
9 answers

When should I not kill -9 a process?

I am always very hesitant to run kill -9, but I see other admins do it almost routinely. I figure there is probably a sensible middle ground, so: When and why should kill -9 be used? When and why not? What should be tried before doing it? What kind…
Mikel
  • 56,387
  • 13
  • 130
  • 149
94
votes
3 answers

How does Linux "kill" a process?

It often baffles me that, although I have been working professionally with computers for several decades and Linux for a decade, I actually treat most of the OS' functionality as a black box, not unlike magic. Today I thought about the kill command,…
seratoninant
  • 813
  • 1
  • 7
  • 6
88
votes
5 answers

What's the difference between pkill and killall?

I know that pkill has more filtering rules than killall. My question is, what is the difference between: pkill [signal] name and killall [signal] name I've read that killall is more effective and kill all processes and subprocesses (and…
mavillan
  • 3,067
  • 4
  • 22
  • 27
66
votes
3 answers

Getting a window's PID by clicking on it

Is there any package which shows PID of a window by clicking on it?
Nick.h
  • 6,193
  • 4
  • 20
  • 16
66
votes
1 answer

What does this process STAT indicates?

If you check the STAT column in above image you will see Ss S S< SN and R+ What does this indicates ? Process states. If yes,Then what is the significance of 'Ss S< SN and R+'?
Vishwanath Dalvi
  • 4,346
  • 5
  • 20
  • 17
54
votes
2 answers

Why is the default process creation mechanism fork?

The UNIX system call for process creation, fork(), creates a child process by copying the parent process. My understanding is that this is almost always followed by a call to exec() to replace the child process' memory space (including text…
Ellen Spertus
  • 1,193
  • 1
  • 12
  • 16
51
votes
5 answers

Is there a top-like command that shows the network bandwidths and file accesses of running processes

For example, we'd like to see: PROCESS IF TX RX FILE(regular) R/W prog1 eth0 200kB/s 12kB/s -- -- wlan0 12kB/s 100kB/s -- -- -- -- -- …
48
votes
1 answer

What does a program do when it's sent SIGKILL signal?

When I used killall -9 name to kill a program, the state become zombie. Some minutes later, it stopped really. So, what's happening during those minutes?
haikun he
  • 583
  • 1
  • 4
  • 4
48
votes
2 answers

How to ensure exclusive CPU availability for a running process?

At first, the question seems to be a little bit silly/confusing as the OS does the job of managing process execution. However, I want to measure how much some processes are CPU/IO-bound and I feel like my OS is interfering on my experiments with,…
Jeanderson Candido
  • 583
  • 1
  • 5
  • 8
45
votes
6 answers

Is there a way to pause a running process on Linux systems and resume later?

I have to copy files on a machine. And the data is immensely large. Now servers need to serve normally, and there are usually a particular range of busy hours on those. So is there a way to run such commands in a way that if server hits busy hours,…
Sollosa
  • 1,887
  • 4
  • 19
  • 32
45
votes
1 answer

What is a "subreaper" process?

The word "subreaper" is used in some answers. Searching Google also turn up entries where the word is "just used". How can I understand what a "subreaper" is?
kenchew
  • 523
  • 1
  • 6
  • 9
44
votes
8 answers

Get chrome's total memory usage

Since google chrome/chromium spawn multiple processes it's harder to see how much total memory these processes use in total. Is there an easy way to see how much total memory a series of connected processes is using?
Ryan1729
  • 591
  • 1
  • 4
  • 7
43
votes
4 answers

What happens if you edit a script during execution?

I have a general question, which might be a result of misunderstanding of how processes are handled in Linux. For my purposes I am going to define a 'script' as a snippet of bash code saved to a text file with execute permissions enabled for the…
40
votes
4 answers

How to Throttle per process I/O to a max limit?

I'm looking for a way to limit a processes disk io to a set speed limit. Ideally the program would work similar to this: $ limitio --pid 32423 --write-limit 1M Limiting process 32423 to 1 megabyte per second hard drive writing speed.
Sepero
  • 1,569
  • 3
  • 20
  • 29
36
votes
2 answers

Run commands in parallel and wait for one group of commands to finish before starting the next

I have script including multiple commands. How can I group commands to run together ( I want to make several groups of commands. Within each group, the commands should run in parallel (at the same time). The groups should run sequentially, waiting…
user88036
1
2 3
23 24