00:04
Hello. I'm Dean Campiglio
00:05
and welcome to Module 10. Lesson for and this lesson will be discussing how to monitor the resource usage of R V m.
00:13
So the last last time we talked about how we could allocate the resource is using resource pools and sub pools. Now we have to think about how we measure the performance of the V EMS after we've made those kinds of adjustments. And we have to also think about how we would make adjustments again in the future. Once once you've done some testing,
00:32
so we'll see what's involved with monitoring CPU, RAM disk and network.
00:37
This lesson will be in two parts of the second. Part of the lesson will go into a little bit more detail about the performance charts,
00:45
and then we'll wrap up our doing lab 17.
00:50
Okay, so when you're thinking about performance tuning,
00:53
you have to have, ah, reasonable methodology to follow.
00:58
We can't just start adjusting this in that and hope for the best
01:03
we need to do is pick appropriate tools to monitor the performance. You've got a lot of choices available depending on where you're doing the monitoring, whether it's on the host or the guest operating system or the VM itself.
01:18
These are different areas that give you
01:19
different perspectives on your resource usage and relative performance.
01:26
So once you can do some monitor and then you need to create a benchmark,
01:30
the reason we want to create a benchmark is so that you have
01:34
some baseline performance that you can refer back to. For instance,
01:38
on a particular day, you might look at your email server or your Web server, database server and charters performance throughout the day and get a rough idea
01:48
of how well it's doing. Is it is it staying in a reasonable range for resource utilization, or are you getting close to maxing out?
01:56
These are things you'd want to look at
01:57
once you've got an idea that this is a typical day, then that becomes a benchmark. You can save those charts,
02:04
print them out, or do other actions that you have something to refer back to.
02:09
Now we have to think about finding those areas where re sources are constrained or limited. In some way,
02:15
you could be limited with CPU. He could be a limited with memory, could be that your network connection is the problem or your storage
02:23
or a combination of those things. Once you've identified a resource that is experiencing limitations or its constrained in some way,
02:31
then we have to make some adjustments.
02:35
So in a general sense, you're trying to re balance
02:38
the allocation of resources.
02:39
If you remember from the last lesson, we were looking at reservations for for booting up machines, virtual machines. Maybe those reservations that you've chosen are not correct, that they're actually higher than they need to be.
02:53
So when you're when you're doing your measuring, you could determine that you had a reservation of 500 megahertz
03:00
and 5 12 megs of RAM, which are only using half that much so you can actually lower the reservation safely. Knowing that the VM should still be operational.
03:10
But you'll be using less resource is overall, thereby preserving some resource is for other V ems that are running on that host
03:19
reducing competition. What do we mean by this? What that means is that you're trying to
03:23
either movie EMS around to different hosts or a CZ part of a different type of load balancing,
03:30
or you're just adjusting the resource allocation.
03:34
So maybe you've got too many. Of'em is with high high requirements on the same host. It might make more sense
03:39
to move some of those vm somewhere else so that the ones that are on this host now
03:44
can operate with a little bit more breathing room and can use the resource is more effectively.
03:50
The last thing you need to think about here is documenting your changes.
03:53
If I'm if I create a benchmark and I've found resource is that need adjustment, I make the adjustments. I need to document what I did.
04:01
If you don't do this and you rely on your memory, you might have a problem down the line where now you've got another resource contention problem, and you don't remember what you change. Last time you don't recall
04:13
what was adjusted in order to improve the performance.
04:15
It's also a good idea to document the changes in case you need to reverse them.
04:20
You might have to go back in time to say, Well, way moved the memory down and we adjusted the processor down, but I don't remember how much. If you documented carefully, then you'll know
04:32
once you've created ah document showing the changes, then you have to update your benchmarks.
04:38
Because if I adjust my memory in just my processor of my network settings
04:42
now, I need to create a new benchmark to say that based on these new settings, this is the performance I'm expecting to get my CPU, my memory, our remaining in a range that's acceptable. I'm not getting too close to maxing out.
04:55
This is the kind of things you want to be able to
04:57
to document. And if you do this correctly, you should be able to produce a running tally of changes that you've made to your systems over time.
05:05
And this is really important so you can notice trends.
05:10
And if you need thio, provide justification to your management to say, Hey, we need to buy more memory for this host
05:16
or we really should buy a couple extra network cars for this host.
05:19
Or maybe we need faster storage.
05:23
Your manager right sable of How do I know that what you're telling me is true? You could say, Well, here is the proof. I've documented all the changes I've made. I'm doing the best with what I've got available, but it's still not enough. So that documentation will really help you.
05:38
All right. So what kind of monitoring tools should you be considering
05:42
If you're looking at your from the guest or west perspective, you have things that are built into every guest operating system, whether it's units or Lennox or windows.
05:50
We have the personal performance monitor perf mon the end, where tools has a perf mon dll that allows the virtual machine to access the host
06:02
CPU and RAM usage characteristics.
06:05
This is in addition to being able to look at the the performance characteristics of the guest OS as if it was running on physical hardware. So you could you could see that from a couple different scenarios there.
06:19
We also have something like i O meter, which will use when we do the lab. This congenital rate artificial io activity, or or another tool that will use generates artificial CPU activity.
06:34
I think that what we use is called CPU busier,
06:36
so this lets you simulate a heavy load on your system so you can see how your settings are working, and then you can apply that to the real world and make your adjustments as well
06:50
gaster west We also have the task manager.
06:54
This lets you look at memory network and CPU, and you can look at that over a relatively short period of time.
07:01
You can also go into the advanced mode of task manager if you have a more modern version of Windows
07:06
Window seven or Windows eight or Server 2012.
07:11
And the advanced version of Task Manager looks a lot more like Performance Monitor that you would normally be used to from earlier versions of windows like Vista or X P.
07:23
Thean were tools also provide some facilities for doing performance monitoring.
07:28
So we have our V Center performance charts.
07:30
These are really useful.
07:31
There's two different modes. You have the overview, which shows you of sort of a dashboard view of your processor memory disk network as some other things that are related to that. It's a pretty defined dashboard that you can
07:46
used to see at a glance how your virtual machine is performing or your host is performing,
07:51
and then the advanced view lets you drill down into more detail. Or I can look at CPU, for instance and see it all on Lee CPU related items. But then you can adjust the chart
08:01
options in order. Thio display just those statistics that you're interested in, and we'll talk about some of the statistics that you might want to look at a little bit later, in this lesson
08:13
of the center has the operations manager also lets you do some performance measurements.
08:20
We can look at the system logs for the SX I, the host itself
08:24
and within if you have a standalone host or if you wantto
08:30
connect to the host with with SS H, you can run the rez, ex top or yes, ex top.
08:37
And these are basically duplicates of the top command that you might find in a typical UNIX system. This is all text based, and it gives you a running tally of processes running on your system, how much processor they're using, how much memory they're using. And it updates itself every couple of seconds, depending on how you've gotta configured
08:56
fires. Other tools. I Perik is 1/3 party tool. You can use performance bond performance monitoring. There's dozens of Maur performance monitoring tools that are available. That's just one that you might want to investigate.
09:13
what do we do? What kind of questions. Do we have to ask when we're thinking about whether or not our resource is are constrained?
09:20
If you're looking at your seat for you
09:22
and it's continuously operating in a very high range, it's, you know, between 90 and 100% and it's always sort of staying at at that high level. You want to look at that from the guest, unless you wanna look at it from the VM point of view and also from the host point of view,
09:39
there's different perspectives for each of those, obviously the guest O s and the B M or more tightly linked.
09:46
But the host CPU needs to be monitored as well as you add more V EMS. You need to keep an eye on the host CPU performance to see if you've got enough capacity to be able to power on more of'em.
10:00
If your host CPU usage gets too high because you have too many of'em is running that you may be limited as to what you're able to expand on. You might have to
10:07
move some V EMS to another host in order to balance things out properly.
10:13
The virtual machine memory,
10:16
some of the things you want to think about here is whether or not you have a lot of balloon activity.
10:20
And when you look at the advanced,
10:22
uh, the advanced charts for memory, you can see that there's options to displayed
10:30
the, uh, the by default. It will display the balloon activity.
10:33
So if you see that you're ballooning,
10:35
meaning you're bothering memory from a lot of other V EMS. If that's has an upward trend and it's staying at a relatively high level,
10:43
then you probably have,
10:45
uh, not allocated enough memory for that V M.
10:48
We also have to think about whether or not the guest operating system is swapping.
10:52
If that's happening, that that means that this V M most likely is memory constrained
10:58
and your performance will really suffer under those circumstances.
11:03
And we have to look at the memory of the host itself, just like we have Ah,
11:07
CPU. We have to think about the host Ram
11:11
if their host begins swapping. That means that that you've overcommitted your memory
11:16
so I might have 10 v EMS
11:18
on. I want to use one gigabyte of ram each, but my host only has eight gigabytes of RAM.
11:24
Normally, that's okay,
11:26
because we expect that each of those 10 PM's will not use its full one gigabyte at any one time, so eight gigabytes might be enough to run. Under those circumstances,
11:37
however, there might be a case where all 10 G M's do need a gigabyte of RAM, and the host has no option at that point but to start swapping. So it's
11:46
changing memory pages and writing those two disc. And then when those need to be changing, retrieve them from disk and put some back into memory.
11:54
This allows the host to continue operating, but performance will definitely suffer.
11:58
Then we have to think about the active ram for virtual machine.
12:03
If the uh, the host Active Ram is increasing,
12:07
this is another consideration to think about. That means that the virtual machine memory is constrained. It's another indication of this,
12:16
but the active Ram is one of the parameters that you can display when you go into the advanced view and you look at your chart options. We'll explore some of that when we do the lab.
12:26
A virtual machine disc also might be constrained,
12:30
so one of the things we look at is whether or not to storage path has latent. See
12:35
the reading right rate could be examined. The reading right laden C could be examined.
12:39
These would indicate whether or not the virtual storage adapter is getting reasonable performance with the physical storage.
12:48
Two of the things you want to look at here would be the colonel Command late and see again, available under the Advanced Charts, Options and the Physical Device Command Leighton seat.
12:58
These are two parameters that you confined
13:01
to display and that will give you, ah, really good indication of whether or not the device is performing relatively well.
13:09
And lastly, we have to consider the Virtual Machine network performance.
13:13
Uh, one thing you want to make sure is that Veum, where tools installed that does give you access to the more advanced virtual network. Our drivers, if he and were tools, is not installed or it's not running
13:26
or it's out of date and corrupted somehow, then your virtual machine networking performance may suffer. So that's one thing you definitely want to check.
13:35
You also want to try to find a way to measure being with
13:39
between viens that are doing well on the one that the ones they're not doing well compare them a little bit. Measure the network band with
13:48
off for the physical adapters as well. It could be that your your physical network is suffering from congestion, and that's
13:56
showing itself by the PM's having troubles as well.
14:00
You also want to think about whether or not you're seeing a lot of retransmitted packets. Or if you have a lot of packets that are getting dropped,
14:07
these would be indications that your network is congested,
14:11
and the both ends of that communication are struggling to keep the information flow moving smoothly and steadily.
14:22
the methodology for performance turning, making sure that you can
14:28
pick the appropriate tools, create a baseline, make some adjustments, document those changes and then create another baseline update the baseline.
14:35
Then we know we've got various tools, whether it's the guest OS, the end where tools and related or something that's related directly to the host.
14:43
So learn the tools well practiced with them, and you should be able to drill down and find your performance problems more quickly.
14:50
And then if if you're looking for the resource Is that air constrained?
14:54
We've got some considerations for CPU and RAM on the host. See if you and RAM on the virtual machine and the network on the host and the networking on the virtual machine.
15:05
Okay, so stay tuned for part two. We'll talk a little bit more about performance charts.