- [Dave] Hey, Dave here with another video.
We're gonna talk about CPU and RAM analysis
on my virtualization host here.
So I'm running VMware Workstation on my AV editor computer
I have a lot of virtual machines here;
we've shown these before.
The most monstrous of these
is this Windows 10 virtual machine.
So it's kind of funny.
I'm running Windows 10 Pro on this system,
but this virtual machine is also a Windows 10 Pro.
Now, if you look, you can see
that I set it up as 8 gigabytes of memory
and six processors.
Really, it's one processor with six cores.
So I wanted to see how massive a virtual machine
I could make.
And these aren't the defaults.
You can go less than this, and normally you would,
but I wanted to see how powerful this is.
This is a pretty powerful guy.
Now, if we go to the Virtual Machine Settings here,
you'll see processors, six.
Really, it's one processor, number of core is six,
so total processor core is six.
But when you're dealing with virtualization,
they just look at that as x amount of CPUs
or x amount of processors, in this case, six.
8 gigs of memory, 60 gigs for the hard drive.
Current size is 14 gig that I can use out of that 60 gigs.
So, really, I could have gotten away
with 20 or maybe 30 gig,
not really necessary to have it 60 gig.
But not all that space is used on the local system,
so you gotta keep that in mind.
Anyways, I wanna boot this up to take a look
at the resources that are being used on this computer.
So right now, if we look, I have a lot of apps running,
but if we look here, we see the CPU's at about 4% usage.
This is my actual system, the AV editor computer.
So we're at CPU 4% usage,
and we're using 4.6 gigabytes of the memory.
If we boot up the virtual machine, though,
this is gonna skyrocket.
So let's leave this open here, put this in the corner,
and we'll power on this Windows 10 virtual machine.
And when we do that, you'll see these resources go up.
Okay, you can see it was booting in the background.
Yeah, CPU 42%.
Memory's going up, up, up, up, up.
Well, it's gotta use that 8 gigs of RAM, right?
So that's gonna go higher and higher as this gets booted up.
And it's a little bit slow, by the way,
'cause it's such a monstrous virtual machine.
All right, still at 43%, 9.2 gig.
Here we go. We're in.
All right, that number's just gonna go up
farther and farther.
So I'm gonna actually log in
to that Windows 10 virtual machine.
And you use more memory when you're logged in
and you have an actual user profile loaded up, okay?
So that is the virtual machine.
Just can't see it all.
All right, now let's look at the...
Here we go. CPU is still at 30%.
It's gonna hover pretty high
as this virtual machine is running.
And the memory is now at 12.9 gig.
What was it before?
It was at the 4 or 5 gig
and we have to use that 8 gigs of memory
'cause I assigned that to this virtual machine.
So you could see the resources that are used are massive,
massive amount of resources,
and that can really bog down a system.
So in some cases you may need
to kind of tone it down a little bit
and you might not need that much.
So I'm gonna shut down.
I'm gonna shut down that guest.
And when we do so, immediately, the CPU goes down to 4%,
the memory goes down to 4.6 where we were at before.
So we can edit these virtual machine settings,
and we'll change it.
We'll change the memory down to say 2 gig,
and the processors, we'll just set that to one core.
Click OK.
That changes that guy, and I'll power it back on.
Let that boot, and we'll check the difference here.
Now my system's at about 15% CPU usage,
and the memory only went up to 6.4.
So the throttling of resources is important.
And, really, it logged in at about the same speed.
It's a little slow.
Bringing up the apps is a little slow
'cause Windows 10 is a monster by itself,
but this is a big virtual machine
to be running Windows 10 inside a Windows 10,
even with a powerful CPU
like the one I have on this computer.
But it runs. It's going.
And it's really not going much slower than it was before
with the higher amount of resources.
And this frees up a lot for my main system.
So you have to be ready to turn down the resources
or bring them up if necessary,
let's say if you're running a server.
So you have to be ready to modify those.
But it still uses a lot of power,
13, 14, 15% CPU power,
another couple gigs of memory,
and it adds up over time.
And that's one of the reasons
I increase the memory on my system.
But the better way to do this
is to run these virtual machines off of a server.
So if we look here, we have the ESXi server that I built.
And if we look in Virtual Machines,
what I did was I uploaded that same Windows 10 OS,
that same virtual machine.
Okay, and this is currently running,
and it's currently using 4 gigahertz of our CPU
and 8 gigabytes of memory.
But this will throttle up and down.
It'll go down quite often.
So if we look here, we see currently used, 4 gigahertz,
free, 10.8 gigahertz on the server.
So this looks at the CPU that we have as four cores,
so it multiplies the maximum frequency, which is 3.7,
it multiplies that by four to get the total.
And that capacity is 14.8,
we're using 4 gigahertz of that right now.
But actually this number throttles down a lot,
depending on what the virtual machine is doing.
And so the beauty of doing it from the server
and having the virtual machines
on an actual type 1 hypervisor
is that we can connect to them from anywhere,
and it's the server's CPU and memory that's used,
especially the memory.
And then we can access them
from something like a VMware Workstation client.
And, in fact, I have it running here.
Here's the server, 10.252.0.108,
and here's that client inside there
that we were just looking at,
I'm just looking at it remotely.
And so we can log in here.
There we go. We're in.
I'm actually gonna shut down the local one.
But this one is actually running,
and this is running off of the server,
and it's running fairly well.
Looks good.
You might have saw that I need to install VMware Tools.
That's important to install as well.
But it runs well,
and this is actually all coming over the network
from the server.
That is this guy right here.
And you can see where I'm at, right here in this snapshot.
You can run this from here as well,
but that uses a lot of power on the server,
so you really wanna do that from a client.
There we have it.
And like I say, this will throttle up and down,
depending on what the virtual machine is doing
and what it's using.
It could be doing things behind the scenes,
and that's gonna use more processing power on the server.
But if we go back to our Task Manager on the client,
there's virtually nothing being used.
We're back down to that 4.7 gigabyte memory,
which all the other apps I'm running,
that's what's making up that usage,
and the CPU's at 4%.
So we're really not taxing our local CPU at our workstation
because we're running these VMs off the server.
That's the efficient way to do it.
The server will handle these much better
and make much more efficient usage of the CPU and RAM.
In fact, in some cases,
this CPU throttles all the way down to 1 gigahertz
with this virtual machine running.
So that's the way to do it.
And this actually is the higher level.
This one has the 8 gigabytes of RAM
and the six CPU cores.
We don't need that.
We can completely reduce that for this virtual machine,
and I probably will.
So that's what you have to know though,
you really have to know
how to modify these virtual machines.
If you're gonna run them locally,
especially in VMware Workstation, Hyper-V, and VirtualBox,
you have to be able to edit those virtual machine settings.
And by the way, it has to be shut down.
The guest has to be shut down
before you can modify those settings
and throttle those as necessary for the memory
and for the CPU.
So that's about it.
Got lots of virtual machines here.
We've got VMware Workstation running,
and we've got our ESXi server running
where I'm gonna be moving all these.
And, in fact, this one came from here.
I just uploaded it by going to Manage and Upload.
You can also do an export,
but you can upload directly to the server,
and it didn't take long.
It's pretty good stuff.
Okay, so definitely check out some of these tools,
VMware Workstation, Hyper-V for the client, and VirtualBox.
And learn how they work a little bit
and learn how to create virtual machines
and edit those virtual machine settings,
especially the memory, processors, and hard drive.
And remember for the exams
that the virtualization computer
or virtualization server
needs to have a pretty powerful processor
but especially needs lots of memory
'cause every VM that's running will use that amount
that you've assigned from the physical RAM on that computer.
All right, so that's about it for this video.
I'm Dave, signing off.