Introduction
In
real-time systems some processes can cause huge problems, or slowing
down the system performance. In such situations we need to tune the
running processes. With tuning I mean stopping or killing the
process. To be able to do this and to know when we need to know what
processes currently runnig and when process start up? Especially,
administrators need this. Because unexpected processes needs to be
down or stop in systems such as servers, gaming boxes or other
real-time systems. By saying processes I mean all applications and
services in the system. So after that we need to view the running
processes, let's look at that.
Viewing Running Processes
The
only thing that consume your system resources are running processes.
If your computer seems to be running slower than normal, then it is
probably because of some misbehaving running processes or some
running processes that use more than resources our system have.
There a
couple of ways to view running processes, these are:
1. top command: this command lists all running processes by ordering them cpu usage and memory usages.
2. ps -ef command: this command lists every running processes in full detail.
3. The Graphical System Monitor(System►Administration►System Monitor): also enables you to list all the running processes.
2. ps -ef command: this command lists every running processes in full detail.
3. The Graphical System Monitor(System►Administration►System Monitor): also enables you to list all the running processes.
Sample listing of running
processes from ps-ef command:
Sample listing of running processes
from top command:
Killing
Processes
To kill a process,
we can use PID(process id). As you can see from outputs of two
commands above we have process ids for each running process. For
example, to kill PID 217 we type kill 217. This command will kill the
process have PID of 217. To suspend (stop) a running process use kill
-STOP PID, to continue to a suspended process use kill -CONT PID.
Example: As an
example run an application, find its PID using above commands, and
first kill, then suspend and later allow to continue the process.
Finally, we
finished the tuning process techniques in linux. I hope it will help
you..
If you have
any question or need some help about tuning process , leave a comment
below.
No comments:
Post a Comment