Lesson 2 - Resource Controls
Video Activity
Resource Controls This lesson examines resource controls and covers the following: Describes resources which can be optimized on virtual machines (VMs) Assigns share values for CPU, RAM and disk Establishing CPU, RAM and Disk reservations and limits Describes how VMs compete for resources
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or
Already have an account? Sign In »

Video Description
Resource Controls This lesson examines resource controls and covers the following:
-
Describes resources which can be optimized on virtual machines (VMs)
-
Assigns share values for CPU, RAM and disk
-
Establishing CPU, RAM and Disk reservations and limits
-
Describes how VMs compete for resources
Video Transcription
00:04
Hello, I'm Gene Campiglio. Welcome to the virtual ization class. Were now in module 10. Lesson to this lesson will be talking about resource controls for our virtual machines. So first of all, we'll talk about what kinds of resource is could be optimized for the virtual machines, depending on what you're using it for
00:22
and what kind of other PM's air on that host.
00:25
You can adjust certain values of certain resources to you, provide for better operation of all of your VMS and on that same environment.
00:34
Also look at what share values mean as it relates to seep. You ran and disc
00:40
and then we'll look at what reservations and limits mean
00:44
and a little bit of the discussion about how the EMS compete for resource is
00:50
so. First of all, we have the idea of resource contention,
00:54
and this is because the virtual machines are sharing the physical ram on the host of sharing the physical cp Resource is
01:00
and sharing the network resources and disc.
01:04
So, in order to provide for various bm stall operate simultaneously,
01:11
we need to be able to tailor the amount of resource is that each PM can get
01:15
if we don't do any tailoring or any optimizing that each virtual machine will get roughly the same amount of resource is in a balanced fashion.
01:25
Obviously, you can allocate more memory to one V M versus another, but the resource is air more or less evenly split as faras. The PM's access to them,
01:34
so we can do is enable more or less or even an equal amount of resource is for one V M versus another.
01:44
The main reason we can we can do this. Or maybe that we would want to do this. If we want to make sure that we don't have any one of'em
01:52
get into a situation where it's using more resource is than any other VM and those other V EMS are now suffering as a result. For instance, if you had a database server or our Web server and all of a sudden you have, ah, large amount of
02:08
demand for the resource is that those servers provide
02:13
the memory usage. For that, VM might go up considerably. The network usage might go up considerably, so we want to be able to specify a range where we can allow the VM two to get the resources it needs without exceeding what we've defined for a two to utilize.
02:29
We also need to be able to create a guarantee for a virtual machine so that it has a minimum amount of resource is to be able to start up
02:38
so shares limits of reservations.
02:40
What we could do with a limit is provide a upper bound on the amount of memory or CPU utilization that we'd like for the viento half.
02:53
For instance,
02:54
you could say that for a window. Seven v. M.
03:00
We need 500 megahertz of processor power 500 megahertz of CP Resource is,
03:07
and we could also say that we need one megabyte of not one, not two, but one gigabyte of ram.
03:13
That would be, um,
03:15
more in line with a reservation, right?
03:19
If I define the reservation here, I can say that I need
03:24
500 megahertz
03:28
off CPU and one gigabyte of ramp.
03:34
If I can't get 500 megahertz of CP. What if I can't get a gigabyte of ram than the V? M won't be able to start?
03:40
That's the That's the minimum reservation that I need in order to be able to load the operating system and started my applications.
03:49
I can also set a limit.
03:52
So that same V m. I could say I'll set a limit off 1000 megahertz of CPU
03:59
and two gigabytes of RAM. That gives a nice range of resource availability for what that VM might typically need. When the VM gets busier, it needs more memory and processor. It stands to reason that that's the way that would work.
04:14
I also have another option to assign shares. Shares is a relative waiting of resource utilization among different viens on the host.
04:24
So between the limit and the reservation is where the shares would operate.
04:29
If I have multiple V EMS and I give Ah hi medium or low shares values
04:35
to the VM than that, the amount of memory and processor would would move between this upper bound and lower bound.
04:44
That's a great way to
04:46
control what Of'em does without having to give it a hard number to say. I know I'm never gonna need more than 1000 megahertz. Aiken set a limit of that and then signed some shares that let it move around and as V EMS become busier or less busy than those share values will adjust themselves in real time.
05:03
So if you look at an example of shares,
05:06
I've got to be EMS here. One has 1000 shares of resource is
05:13
assigned. The other one needs 3000.
05:15
So this is a way of saying that the overall resource utilization for those to be EMS is set at those values. This gives me a total of 4000 shares.
05:26
Now, if I power on 1/3 bm I still have 1000 shares here. Still have 3000 here this one I designated needing 2000 shares. So now my total number of shares a 6000.
05:36
So this gets sub divided between the V EMS that are using the shares.
05:43
Then if I power that GM off, I still have my original designations of 1000 shares for VM one and 3000 of'em too.
05:51
And my total number of shares that are available goes back to 4000. So this number grows and shrinks depending on what you allocate and how many of'em zehr running at any given moment. So lastly we can think about how we optimize the resource is that are available to us as an administrator.
06:09
If we're thinking about processor between the VM colonel, the configuration of the V M, or parameters that are adjustable by the administrator
06:18
within the VM Colonel contacts, I can use hyper threading and load balancing. We talked about that in the previous last thing, where we showed how processor cores and number of sockets
06:30
per for the host are utilized to even out the load. Among the different Vienna's that require resource is
06:38
for the configuration of the VM itself. I have virtual symmetric multi processing, so I can assign multiple virtual CP use and those will be load bounds within that V M. The same way they would be in a physical host
06:51
and then, lastly with the administrator can adjust the limits, reservations and shares that we talked about over here
06:59
for for the CPU
07:00
as it relates to memory. I have transparent paid sharing. If you recall that that allows the EMS to share pages which are identical within the hosts memory,
07:12
and that gives you a big boost and the efficiency of using that memory.
07:16
I also have the VM meme control, which is the balloon driver,
07:21
and as a reminder there
07:24
the balloon driver will borrow memory from other V EMS when one other viene needs it.
07:29
So if I have
07:30
this V M that powered up and it required 2000 shares, maybe I need a little bit more memory to meet this minimum so I could have borrowed it. Or these fair would borrow it from the other two v EMs that are running.
07:44
And then as the memory need goes away, then the balloon driver deflates and the memory gets redistributed the way itwas
07:51
so from the virtual machine configuration,
07:55
I can adjust the available memory that that machine gets when it boots.
08:00
That, of course, comes out of the physical memory that the host provides for all the PM's to share.
08:03
And then for the administrator, I can still use limits, reservations and shares as it relates to memory.
08:11
Regarding my disk resource is
08:13
mostly I'm concerned with where the files are located
08:16
in on a data stores and Annie. And if estate A store isn't a nice cosy isn't an SSD,
08:22
he's different. Data store
08:24
technologies provide different levels of performance, so you would have to pick the one that best suits your needs at the time
08:31
as far as the things that are adjustable by the administrator, I can set up multi path thing
08:37
so I can have multiple physical paths to get to my data files.
08:41
And you can also use storage io control,
08:45
which lets you set of different ranges of resource utilization related to your storage. You can even do storage clusters if you wish, so you can cluster data stores together and make one big aggregate storage.
08:58
There's lots of options for how you deal with a disc resource allocation,
09:01
and then, lastly, we have our network. Resource is
09:05
so one of the things you could d'oh! When you're configuring, the virtual machine is used, Nick teeming.
09:11
So this means that I'm teaming the physical nix on the host, not the virtual necks. I can use more than one virtual nick for of'em, but teaming the virtual next doesn't provide any benefit.
09:22
Only when I'm teaming the physical nix on the host, I get benefit.
09:26
We also have the ability to do traffic shaping
09:30
within the network utilization, and this lets you prioritize certain aspects of how the network bandwidth is used by that virtual machine and much like storage io control I have never Chiyo control.
09:43
This allows the administrator to adjust the relative resource utilization of the network hearts.
09:48
So as a review,
09:50
we describe what kind of contention off resource is might be experienced by your typical B M.
09:56
We also looked at what limits reservations and shares mean and how those are defined between memory and CPU cycles.
10:07
And then we saw an example of how the shares air subdivided and how the total changes as new V EMS are powered on or powered off,
10:15
that concludes lesson to thank you.
Up Next
Similar Content