Linux - System performance
Nov 28, 2024
Linux - System performance
View Video Transcript
0:00
so into our previous video we have
0:02
checked for the resource which can we
0:03
can see 40 what the performance they
0:06
have and also we can use a different
0:07
diagnostic tools as well as command to
0:09
use it so here in this video I'm going
0:12
to show how to use the stools and how we
0:13
can modify the processes entries and the
0:16
priorities into this particular video so
0:19
let us start with the terminal here so
0:22
we can check the processes of the system
0:24
by using the PS based - II and we can
0:28
check the number of processes that will
0:30
contain your process IDs in which
0:32
terminal you generally have logged in
0:34
from when you heart you know start you
0:36
have started with that particular
0:38
process and which process you are subtle
0:40
so for example I'm using Firefox I have
0:45
started
0:51
so if I've started the Firefox from root
0:55
log
1:00
so basically this is a foreground
1:02
process so until I'm you know closing my
1:05
firefox I wouldn't be able to get D
1:07
prompter so that's the reason I'm coming
1:09
into the other terminal and
1:11
I'm going to
1:14
come on
1:18
so
1:23
I have to find the password and let us
1:26
check the process right so you're just
1:32
showing you
1:34
that the Firefox process is start just
1:38
for second cycle right
1:42
so this is the PID automatically gets in
1:45
rigid and then leave process it will
1:49
give the detail of the process now once
1:51
I end the process by pressing the ctrl C
1:55
the Firefox is gone from here and you
1:59
can find again into processbook - II
2:03
there will be no white foxtrots this
2:06
year means it will create your process
2:09
and it will also manage your process
2:11
will check for what particular processes
2:13
generally you have same way this is like
2:17
you know if I'm starting a process I
2:19
need to move into this particular
2:22
command and I need to check it what the
2:24
status is
2:25
but what if I want to check the stages
2:27
continuously I can give top come on just
2:30
give top and hit enter so it will show
2:32
you the complete you know information
2:35
about your different that's particular
2:38
your processes and also it will add you
2:40
what is the resources it relies so you
2:42
can see it is showing you the percentage
2:44
of utilize resources let is your CPU the
2:47
memory what is the virtual memory we
2:51
have used what is the nice value and
2:53
what is the priority so let us check
2:55
what the nice values and priorities are
2:57
like whenever we have certain tasks or
3:01
you know certain
3:03
processes all these processes are having
3:06
some priority it's like based on the
3:07
highest priority or you know not which
3:11
is having the high priority will have
3:13
the first preference by the resources to
3:17
perform the same way here if you have
3:19
the lowest one you cannot but how you
3:21
are going to set this priority but if
3:24
you I'm talking about setting the
3:25
priority then superiority switch we can
3:27
set that is from minus 20 to plus 20
3:34
now when I'm going to set the process
3:36
this number is the highest number but it
3:39
will have the lowest reality the highest
3:42
priority will be given to this
3:43
particular number this is minus 20 so
3:47
how will check here you can see the
3:49
priority numbers we have 20 some have 9
3:51
some have 0 so these are the priorities
3:55
generally we have by defining the top
3:58
commands right so if I want to know
4:01
create a particular process and I want
4:03
to change the priority of it I can also
4:05
do it by using very nice value so if I
4:07
want to check for a nice value for a
4:09
particular process how we generally do
4:11
it
4:13
so generally I can give nice command so
4:16
there is no process as I've now started
4:17
so I'm just going to start my Firefox
4:20
process and took back in so if I want to
4:22
make it as a playground process I can
4:23
give no ampersand signed along with the
4:27
process so it will be started in the
4:30
bracket and I'll be getting the prompt
4:35
here right
4:36
in spite my Firefox it's on I'm getting
4:38
the product that is the background
4:39
process generally we can put it out now
4:43
if I'm going to check for the jobs so it
4:45
is showing me this is a job which is
4:47
running as of now
4:49
correct so now we can check for the job
4:54
which we have started that is this is a
4:56
job and it has the priority
5:05
you
5:11
and check for firefox like rectifier
5:14
foxes
5:21
you
5:27
we need to find that for the Firefox is
5:31
located true this
5:39
you
5:42
the different processes are continuously
5:44
they cannot they are changing their
5:45
priority that the reason it is
5:47
completely wiring
5:49
I'm showing you the status of all the
5:52
running processes sleeping processes
5:53
stopped processes and zombie processes
6:00
and I want to check what's in ounce
6:02
value I have for my process so we can
6:05
also check into
6:10
yes - II
6:17
you
6:20
or we can also move here into the
6:22
utility
6:25
and we can check sorry into the system
6:28
tools and we can check for the system
6:32
monitors so I can it will check show me
6:35
into the process window the process
6:38
which are going on but they know
6:41
priorities which we have set to it right
6:43
until it is a normal priority you can
6:46
check for the priority which we have set
6:48
so I just showing you the CPU and this
6:51
is a second generally we have just
6:54
started the priorities again normal
6:56
right so this is how generally we can
6:59
change the priority of a particular
7:01
devices now we also have the you know
7:04
process called as Firefox which is in
7:06
the world
7:10
actually showing you the processes
7:12
started by the trainer so we are we have
7:17
started the process and uh the fire for
7:19
this's root so it's not able to show us
7:21
the process here
7:26
or we can also use the Spears command by
7:29
adding some parameters into it like if I
7:32
want to add oh and ER so please show me
7:36
the Priya IDs and I can also check for
7:40
all the priorities ideas along with the
7:42
process IDs and a person's name I can
7:45
give at PS base - II - oh I want to
7:49
check for UID
7:52
I want to check for a PID that is a
7:55
process ID I want to check for ppit and
8:00
PRI there's my priorities IDs nice value
8:06
and your command
8:10
so I want to check everything so here
8:12
just showing me the command but I will
8:16
be using into thee
8:19
it has more you can see this is the pids
8:22
and Zardi processes generally you have
8:26
so I'm going to check for the process
8:28
which I have a nibble so I have enabled
8:30
the process called as the Firefox we can
8:32
also check for a particular process over
8:35
here
8:41
more we can also use grips and more
8:44
actually we have use thicker up yet but
8:47
I'm going to use it now grip fire force
8:53
so you can check this is the command I
8:55
have used completely
9:01
so these are having a multiple
9:02
parameters I have told my process to
9:05
check and this particular and headings I
9:08
require into it and I just want to check
9:10
the fire first because it gives me a lot
9:13
of lists so I do not want to check for
9:15
all the lists just I want to search for
9:17
Firefox into it and I want paint choice
9:19
so now if like you know if you filter so
9:22
you don't if you do not point to define
9:23
more also you can because there is only
9:26
two processes which is you know running
9:28
into this system so this is the Firefox
9:32
process which is having a process ID and
9:35
they you know your nice value which we
9:39
are going to see over here so very first
9:41
column is for UID and GID we don't
9:45
really have and this is PID and this is
9:48
a process ID so now it is cutting a
9:49
process ID 19 minutes it is not on the
9:52
priority now if I want to change the
9:54
priority of this particular process will
9:55
give the green eyes value and we can
9:57
define the value here like if I want to
10:00
make it as priority so I'll give - so
10:05
I'll define theta into the negative
10:07
values I'll define the magnin
10:09
-12 - the same for society we can define
10:12
as a process name we can define so I'm
10:14
just going to define the for society so
10:17
I'm going to define personality as
10:20
five six zero each sorry
10:27
five six zero eight
10:35
so what is the for society we need to
10:38
check for this Firefox
10:42
this three h40
10:47
okay so this is three eight four zero
10:50
this is your for society okay this is
10:52
the UID okay so really nice - none -
10:55
twelve two three eight four zero let us
10:58
check the process ID of this value again
11:01
by giving me same command we can check
11:05
the first Society is changed to minus
11:07
twelve means this is at higher priority
11:10
so let us check generally if I am
11:13
logging through the particular user now
11:15
for example if I get log in with the
11:17
user and you can see this top command
11:19
has taken this Firefox on the top
11:21
because it has thee
11:26
high-priority right so this is all
11:31
exactly the priority they like how we
11:33
can change the priority like nice and to
11:35
nice values as well like if suppose I
11:37
want to directly get access to the my
11:41
trainer itself because as I feel got
11:43
locked in through my the user that is my
11:47
super user route you are not able to get
11:49
the process which I'm going to start
11:51
into the graphical terminal as well so
11:56
if I want to use the graphical terminal
11:58
in spite of using the pick command which
12:00
we have used over there
12:01
I'll be using just the application
12:06
system tools are your custom monitor and
12:12
I'm going to start a task here I'm going
12:15
to start a task called as
12:18
Firefox and percent and I'm going to
12:21
gain start the G edit and ampersand
12:24
means I'm starting a background task I'm
12:27
going to minimize both the task here and
12:30
we can find this particular task into
12:32
this so just I'm going to refresh the
12:34
same so we can check here it was just
12:39
showing you the active process so our
12:42
Firefox was Firefox is over here so it
12:45
is getting you know the ECP utilization
12:48
this is this is the priority which is
12:50
normal as of now so I just want to raise
12:52
their priorities of both of this
12:54
particular processes so for that I know
12:57
the process for even the process you can
12:58
check by using the jobs as well as you
13:00
can use by using the - Chi and find out
13:03
what the process you want that is
13:04
Firefox I want so I can check for
13:07
Firefox process this is the process ID
13:09
and I want to realize the value I want
13:12
to change the priority so I can give
13:13
very nice - n
13:17
to for example I want to make it a
13:20
highest priority that is -18 I'll define
13:23
and then I'll define five three six four
13:28
hit enter
13:31
okay so it's showing you minus 18 is not
13:33
for many types of numbers it's okay you
13:36
still
13:38
- 14
13:44
okay so operation is not permitted
13:47
because we are not a root or user and
13:49
limit of radios I cannot do it
13:55
so I'll use this very nice
14:00
- n - 18 or - 14 we can use it and 5 3 6
14:09
4 hit enter so you can see it has been
14:12
changed and net let's see over here the
14:15
Firefox is has changed the clarity -
14:17
very high
14:18
same way we can also change it for thee
14:20
get it at well it is again normal I'm
14:23
just going to keep it around you know -
14:27
for itself you can see here the priority
14:32
of your g8 it is again normal if I keep
14:35
it
14:39
- ten and I'll change the process I am
14:44
so sorry I have not changed the process
14:45
idea of the machine I made it for your
14:48
Firefox so Firefox has gone for high so
14:52
if I want to change the process idea of
14:53
my Gaea that again I need to check for
14:57
the jobs and for that again I want to
14:59
get login through thee trainer profile
15:03
so trainer is having G added and this is
15:05
a job which we are running so again we
15:08
will be giving the command PS pays - e
15:11
and crap and then the kernel G edit the
15:16
process which we are running but showing
15:18
you G added notices a process ID again
15:21
if I want to change it again I have to
15:23
get log in through the loot as we do not
15:25
have rights for it I'm going to change
15:28
it by giving the command again green
15:31
eyes - n - 11 for the G ended process
15:38
that is five seven five five we can set
15:43
here the G edit s became very high
15:47
priority right so this is how we can
15:49
change the priority by using the nice
15:52
come on so we have seen rise of the Mons
15:54
we have seen three nice come on and also
15:57
we have seen like how we can change the
15:59
priorities and too high very high and
16:01
the others with same way we can also use
16:04
the net set command to check the net
16:05
status that will show you which are the
16:08
network ports are enabled which are
16:10
running so all this particular of course
16:13
I can check into this terminal so next
16:16
it I sign more you can check for all the
16:19
network status what is the you know the
16:21
status of the network is correct so what
16:23
are the processes which are running into
16:25
back-end and also we have the command so
16:30
G this particular all the commands we
16:32
generally use for the you know
16:33
monitoring process and also we can check
16:36
the uptime of the system you can check
16:39
this is the uptime and what is the load
16:41
average generating system has and also
16:44
we have seen the using the PS command
16:46
we can use the profiling so we can use
16:49
the profile command forgetting the
16:51
now profile okay so this command is
16:56
brought
17:02
okay so user profiling is my supporter
17:05
actually be I do not have packages for
17:07
it so I won't be able to use it into the
17:10
Red Hat so you can also check what the
17:12
profiles for thee you know what are the
17:14
company process which region really have
17:17
so generally we are using PS it is the
17:18
same thing which generally we get over
17:20
here so the same we have used multiple
17:23
utilities to check for the performance
17:25
to manage the processes generally we
17:27
have even we have seen how we can manage
17:29
the process and we can start the process
17:31
into the backend we have seen we have
17:33
the jobs which are running into the
17:35
backend into the trainer terminal so we
17:40
can check for the chops which are
17:41
running into the backend now if I want
17:43
to take it into the foreground process
17:45
that I can work it on that so I can use
17:48
FG and the process ID I can define or
17:51
the job number we can define so right
17:53
now we are doing to define F G G edit so
17:57
I can see now it has on this particular
17:59
process now until I'm closing this
18:02
particular process or you know I'm
18:03
terminating this particular G edit I
18:06
won't be able to get the console that
18:07
means it is a foreground process same
18:10
way if I want to send anybody care
18:11
process with a background again I will
18:13
be able to use PG
18:14
right so this is the process management
18:19
tools and really we have by default into
18:20
the Linux operating system and we have
18:22
seen how to use those particular tools
18:24
so there are a lot of commands there are
18:25
a lot of parameters of this commands
18:27
which we have just seen into the Linux
18:29
operating systems and you can check with
18:32
all the particular commands and there
18:34
you know the complete parameters we have
18:37
so the next we are going to check for
18:39
the locks of this particular internal
18:41
operating systems so let us see how we
18:43
can check it into the next video
#Operating Systems
#Programming
#Software Utilities