1
00:00:06,540 --> 00:00:08,280
- [Dave] Hey, Dave here
with another video.

2
00:00:08,280 --> 00:00:12,210
We're gonna talk about
CPU and RAM analysis

3
00:00:12,210 --> 00:00:15,330
on my virtualization host here.

4
00:00:15,330 --> 00:00:19,960
So I'm running VMware Workstation
on my AV editor computer

5
00:00:21,510 --> 00:00:23,010
I have a lot of virtual machines here;

6
00:00:23,010 --> 00:00:24,303
we've shown these before.

7
00:00:25,890 --> 00:00:28,260
The most monstrous of these

8
00:00:28,260 --> 00:00:31,560
is this Windows 10 virtual machine.

9
00:00:31,560 --> 00:00:32,393
So it's kind of funny.

10
00:00:32,393 --> 00:00:34,890
I'm running Windows 10 Pro on this system,

11
00:00:34,890 --> 00:00:38,760
but this virtual machine
is also a Windows 10 Pro.

12
00:00:38,760 --> 00:00:40,710
Now, if you look, you can see

13
00:00:40,710 --> 00:00:44,310
that I set it up as 8 gigabytes of memory

14
00:00:44,310 --> 00:00:45,870
and six processors.

15
00:00:45,870 --> 00:00:48,960
Really, it's one processor with six cores.

16
00:00:48,960 --> 00:00:52,890
So I wanted to see how
massive a virtual machine

17
00:00:52,890 --> 00:00:53,823
I could make.

18
00:00:54,660 --> 00:00:56,523
And these aren't the defaults.

19
00:00:57,510 --> 00:01:02,400
You can go less than this,
and normally you would,

20
00:01:02,400 --> 00:01:04,200
but I wanted to see how powerful this is.

21
00:01:04,200 --> 00:01:06,390
This is a pretty powerful guy.

22
00:01:06,390 --> 00:01:09,150
Now, if we go to the Virtual
Machine Settings here,

23
00:01:09,150 --> 00:01:11,010
you'll see processors, six.

24
00:01:11,010 --> 00:01:15,840
Really, it's one processor,
number of core is six,

25
00:01:15,840 --> 00:01:17,550
so total processor core is six.

26
00:01:17,550 --> 00:01:19,470
But when you're dealing
with virtualization,

27
00:01:19,470 --> 00:01:22,500
they just look at that as x amount of CPUs

28
00:01:22,500 --> 00:01:25,560
or x amount of processors,
in this case, six.

29
00:01:25,560 --> 00:01:28,593
8 gigs of memory, 60
gigs for the hard drive.

30
00:01:29,670 --> 00:01:34,670
Current size is 14 gig that I
can use out of that 60 gigs.

31
00:01:34,950 --> 00:01:36,090
So, really, I could have gotten away

32
00:01:36,090 --> 00:01:38,223
with 20 or maybe 30 gig,

33
00:01:39,300 --> 00:01:41,940
not really necessary to have it 60 gig.

34
00:01:41,940 --> 00:01:46,200
But not all that space is
used on the local system,

35
00:01:46,200 --> 00:01:48,540
so you gotta keep that in mind.

36
00:01:48,540 --> 00:01:51,270
Anyways, I wanna boot
this up to take a look

37
00:01:51,270 --> 00:01:56,270
at the resources that are
being used on this computer.

38
00:01:56,760 --> 00:02:01,200
So right now, if we look, I
have a lot of apps running,

39
00:02:01,200 --> 00:02:04,620
but if we look here, we see
the CPU's at about 4% usage.

40
00:02:04,620 --> 00:02:08,343
This is my actual system,
the AV editor computer.

41
00:02:09,240 --> 00:02:11,880
So we're at CPU 4% usage,

42
00:02:11,880 --> 00:02:16,880
and we're using 4.6
gigabytes of the memory.

43
00:02:18,030 --> 00:02:20,400
If we boot up the virtual machine, though,

44
00:02:20,400 --> 00:02:22,020
this is gonna skyrocket.

45
00:02:22,020 --> 00:02:26,910
So let's leave this open
here, put this in the corner,

46
00:02:26,910 --> 00:02:30,483
and we'll power on this
Windows 10 virtual machine.

47
00:02:31,590 --> 00:02:36,183
And when we do that, you'll
see these resources go up.

48
00:02:38,220 --> 00:02:41,430
Okay, you can see it was
booting in the background.

49
00:02:41,430 --> 00:02:45,330
Yeah, CPU 42%.

50
00:02:45,330 --> 00:02:47,610
Memory's going up, up, up, up, up.

51
00:02:47,610 --> 00:02:51,930
Well, it's gotta use that
8 gigs of RAM, right?

52
00:02:51,930 --> 00:02:54,840
So that's gonna go higher and
higher as this gets booted up.

53
00:02:54,840 --> 00:02:57,210
And it's a little bit slow, by the way,

54
00:02:57,210 --> 00:02:59,673
'cause it's such a
monstrous virtual machine.

55
00:03:00,750 --> 00:03:04,050
All right, still at 43%, 9.2 gig.

56
00:03:04,050 --> 00:03:05,853
Here we go. We're in.

57
00:03:07,230 --> 00:03:08,970
All right, that number's just gonna go up

58
00:03:08,970 --> 00:03:10,680
farther and farther.

59
00:03:10,680 --> 00:03:12,970
So I'm gonna actually log in

60
00:03:14,370 --> 00:03:17,223
to that Windows 10 virtual machine.

61
00:03:19,200 --> 00:03:22,020
And you use more memory
when you're logged in

62
00:03:22,020 --> 00:03:25,740
and you have an actual user
profile loaded up, okay?

63
00:03:25,740 --> 00:03:29,370
So that is the virtual machine.

64
00:03:29,370 --> 00:03:30,597
Just can't see it all.

65
00:03:30,597 --> 00:03:33,870
All right, now let's look at the...

66
00:03:33,870 --> 00:03:36,630
Here we go. CPU is still at 30%.

67
00:03:36,630 --> 00:03:38,100
It's gonna hover pretty high

68
00:03:38,100 --> 00:03:39,930
as this virtual machine is running.

69
00:03:39,930 --> 00:03:43,230
And the memory is now at 12.9 gig.

70
00:03:43,230 --> 00:03:44,220
What was it before?

71
00:03:44,220 --> 00:03:46,680
It was at the 4 or 5 gig

72
00:03:46,680 --> 00:03:50,250
and we have to use that 8 gigs of memory

73
00:03:50,250 --> 00:03:53,850
'cause I assigned that
to this virtual machine.

74
00:03:53,850 --> 00:03:58,833
So you could see the resources
that are used are massive,

75
00:03:59,790 --> 00:04:02,130
massive amount of resources,

76
00:04:02,130 --> 00:04:04,260
and that can really bog down a system.

77
00:04:04,260 --> 00:04:06,690
So in some cases you may need

78
00:04:06,690 --> 00:04:08,850
to kind of tone it down a little bit

79
00:04:08,850 --> 00:04:12,510
and you might not need that much.

80
00:04:12,510 --> 00:04:14,463
So I'm gonna shut down.

81
00:04:16,050 --> 00:04:17,940
I'm gonna shut down that guest.

82
00:04:17,940 --> 00:04:21,630
And when we do so, immediately,
the CPU goes down to 4%,

83
00:04:21,630 --> 00:04:25,110
the memory goes down to 4.6
where we were at before.

84
00:04:25,110 --> 00:04:28,170
So we can edit these
virtual machine settings,

85
00:04:28,170 --> 00:04:29,070
and we'll change it.

86
00:04:29,070 --> 00:04:32,400
We'll change the memory down to say 2 gig,

87
00:04:32,400 --> 00:04:36,573
and the processors, we'll
just set that to one core.

88
00:04:38,730 --> 00:04:40,050
Click OK.

89
00:04:40,050 --> 00:04:43,203
That changes that guy,
and I'll power it back on.

90
00:04:44,130 --> 00:04:47,403
Let that boot, and we'll
check the difference here.

91
00:04:49,410 --> 00:04:54,150
Now my system's at about 15% CPU usage,

92
00:04:54,150 --> 00:04:55,900
and the memory only went up to 6.4.

93
00:04:57,120 --> 00:05:00,600
So the throttling of
resources is important.

94
00:05:00,600 --> 00:05:04,200
And, really, it logged in
at about the same speed.

95
00:05:04,200 --> 00:05:05,550
It's a little slow.

96
00:05:05,550 --> 00:05:07,110
Bringing up the apps is a little slow

97
00:05:07,110 --> 00:05:09,120
'cause Windows 10 is a monster by itself,

98
00:05:09,120 --> 00:05:11,160
but this is a big virtual machine

99
00:05:11,160 --> 00:05:13,500
to be running Windows
10 inside a Windows 10,

100
00:05:13,500 --> 00:05:15,750
even with a powerful CPU

101
00:05:15,750 --> 00:05:18,180
like the one I have on this computer.

102
00:05:18,180 --> 00:05:19,890
But it runs. It's going.

103
00:05:19,890 --> 00:05:24,540
And it's really not going
much slower than it was before

104
00:05:24,540 --> 00:05:27,150
with the higher amount of resources.

105
00:05:27,150 --> 00:05:29,970
And this frees up a
lot for my main system.

106
00:05:29,970 --> 00:05:33,960
So you have to be ready
to turn down the resources

107
00:05:33,960 --> 00:05:35,820
or bring them up if necessary,

108
00:05:35,820 --> 00:05:38,400
let's say if you're running a server.

109
00:05:38,400 --> 00:05:40,743
So you have to be ready to modify those.

110
00:05:41,640 --> 00:05:43,593
But it still uses a lot of power,

111
00:05:44,880 --> 00:05:48,390
13, 14, 15% CPU power,

112
00:05:48,390 --> 00:05:49,980
another couple gigs of memory,

113
00:05:49,980 --> 00:05:51,180
and it adds up over time.

114
00:05:51,180 --> 00:05:52,080
And that's one of the reasons

115
00:05:52,080 --> 00:05:55,170
I increase the memory on my system.

116
00:05:55,170 --> 00:05:56,340
But the better way to do this

117
00:05:56,340 --> 00:05:59,193
is to run these virtual
machines off of a server.

118
00:06:00,360 --> 00:06:05,100
So if we look here, we have
the ESXi server that I built.

119
00:06:05,100 --> 00:06:06,720
And if we look in Virtual Machines,

120
00:06:06,720 --> 00:06:11,720
what I did was I uploaded
that same Windows 10 OS,

121
00:06:13,380 --> 00:06:15,600
that same virtual machine.

122
00:06:15,600 --> 00:06:17,733
Okay, and this is currently running,

123
00:06:18,720 --> 00:06:22,320
and it's currently using
4 gigahertz of our CPU

124
00:06:22,320 --> 00:06:24,990
and 8 gigabytes of memory.

125
00:06:24,990 --> 00:06:27,240
But this will throttle up and down.

126
00:06:27,240 --> 00:06:28,893
It'll go down quite often.

127
00:06:31,620 --> 00:06:36,093
So if we look here, we see
currently used, 4 gigahertz,

128
00:06:37,350 --> 00:06:40,740
free, 10.8 gigahertz on the server.

129
00:06:40,740 --> 00:06:45,740
So this looks at the CPU
that we have as four cores,

130
00:06:45,840 --> 00:06:49,740
so it multiplies the maximum
frequency, which is 3.7,

131
00:06:49,740 --> 00:06:53,313
it multiplies that by
four to get the total.

132
00:06:54,570 --> 00:06:57,480
And that capacity is 14.8,

133
00:06:57,480 --> 00:07:00,300
we're using 4 gigahertz of that right now.

134
00:07:00,300 --> 00:07:02,550
But actually this number
throttles down a lot,

135
00:07:02,550 --> 00:07:05,043
depending on what the
virtual machine is doing.

136
00:07:06,570 --> 00:07:08,910
And so the beauty of
doing it from the server

137
00:07:08,910 --> 00:07:10,380
and having the virtual machines

138
00:07:10,380 --> 00:07:12,690
on an actual type 1 hypervisor

139
00:07:12,690 --> 00:07:15,540
is that we can connect
to them from anywhere,

140
00:07:15,540 --> 00:07:18,930
and it's the server's CPU
and memory that's used,

141
00:07:18,930 --> 00:07:20,463
especially the memory.

142
00:07:21,810 --> 00:07:23,250
And then we can access them

143
00:07:23,250 --> 00:07:27,180
from something like a
VMware Workstation client.

144
00:07:27,180 --> 00:07:29,403
And, in fact, I have it running here.

145
00:07:30,667 --> 00:07:34,290
Here's the server, 10.252.0.108,

146
00:07:34,290 --> 00:07:36,120
and here's that client inside there

147
00:07:36,120 --> 00:07:37,230
that we were just looking at,

148
00:07:37,230 --> 00:07:38,830
I'm just looking at it remotely.

149
00:07:40,350 --> 00:07:42,840
And so we can log in here.

150
00:07:42,840 --> 00:07:45,060
There we go. We're in.

151
00:07:45,060 --> 00:07:47,433
I'm actually gonna shut
down the local one.

152
00:07:48,270 --> 00:07:50,070
But this one is actually running,

153
00:07:50,070 --> 00:07:52,440
and this is running off of the server,

154
00:07:52,440 --> 00:07:54,663
and it's running fairly well.

155
00:07:55,980 --> 00:07:56,813
Looks good.

156
00:07:59,070 --> 00:08:01,650
You might have saw that I
need to install VMware Tools.

157
00:08:01,650 --> 00:08:03,780
That's important to install as well.

158
00:08:03,780 --> 00:08:04,680
But it runs well,

159
00:08:04,680 --> 00:08:06,750
and this is actually all
coming over the network

160
00:08:06,750 --> 00:08:07,953
from the server.

161
00:08:09,570 --> 00:08:10,920
That is this guy right here.

162
00:08:10,920 --> 00:08:13,770
And you can see where I'm at,
right here in this snapshot.

163
00:08:13,770 --> 00:08:16,113
You can run this from here as well,

164
00:08:17,310 --> 00:08:20,130
but that uses a lot of
power on the server,

165
00:08:20,130 --> 00:08:23,160
so you really wanna do that from a client.

166
00:08:23,160 --> 00:08:23,993
There we have it.

167
00:08:23,993 --> 00:08:25,860
And like I say, this will
throttle up and down,

168
00:08:25,860 --> 00:08:28,620
depending on what the
virtual machine is doing

169
00:08:28,620 --> 00:08:29,853
and what it's using.

170
00:08:31,170 --> 00:08:33,030
It could be doing things
behind the scenes,

171
00:08:33,030 --> 00:08:36,120
and that's gonna use more
processing power on the server.

172
00:08:36,120 --> 00:08:39,240
But if we go back to our
Task Manager on the client,

173
00:08:39,240 --> 00:08:41,280
there's virtually nothing being used.

174
00:08:41,280 --> 00:08:43,860
We're back down to that
4.7 gigabyte memory,

175
00:08:43,860 --> 00:08:45,870
which all the other apps I'm running,

176
00:08:45,870 --> 00:08:47,670
that's what's making up that usage,

177
00:08:47,670 --> 00:08:49,860
and the CPU's at 4%.

178
00:08:49,860 --> 00:08:53,250
So we're really not taxing our
local CPU at our workstation

179
00:08:53,250 --> 00:08:57,453
because we're running
these VMs off the server.

180
00:08:58,410 --> 00:09:00,600
That's the efficient way to do it.

181
00:09:00,600 --> 00:09:02,820
The server will handle these much better

182
00:09:02,820 --> 00:09:07,350
and make much more efficient
usage of the CPU and RAM.

183
00:09:07,350 --> 00:09:10,830
In fact, in some cases,

184
00:09:10,830 --> 00:09:13,440
this CPU throttles all the
way down to 1 gigahertz

185
00:09:13,440 --> 00:09:16,380
with this virtual machine running.

186
00:09:16,380 --> 00:09:18,060
So that's the way to do it.

187
00:09:18,060 --> 00:09:21,360
And this actually is the higher level.

188
00:09:21,360 --> 00:09:23,970
This one has the 8 gigabytes of RAM

189
00:09:23,970 --> 00:09:26,100
and the six CPU cores.

190
00:09:26,100 --> 00:09:26,933
We don't need that.

191
00:09:26,933 --> 00:09:30,720
We can completely reduce that
for this virtual machine,

192
00:09:30,720 --> 00:09:32,520
and I probably will.

193
00:09:32,520 --> 00:09:34,830
So that's what you have to know though,

194
00:09:34,830 --> 00:09:35,760
you really have to know

195
00:09:35,760 --> 00:09:39,600
how to modify these virtual machines.

196
00:09:39,600 --> 00:09:41,010
If you're gonna run them locally,

197
00:09:41,010 --> 00:09:45,800
especially in VMware Workstation,
Hyper-V, and VirtualBox,

198
00:09:47,760 --> 00:09:50,730
you have to be able to edit
those virtual machine settings.

199
00:09:50,730 --> 00:09:53,730
And by the way, it has to be shut down.

200
00:09:53,730 --> 00:09:54,870
The guest has to be shut down

201
00:09:54,870 --> 00:09:57,690
before you can modify those settings

202
00:09:57,690 --> 00:10:00,720
and throttle those as
necessary for the memory

203
00:10:00,720 --> 00:10:02,460
and for the CPU.

204
00:10:02,460 --> 00:10:04,053
So that's about it.

205
00:10:05,730 --> 00:10:07,740
Got lots of virtual machines here.

206
00:10:07,740 --> 00:10:09,990
We've got VMware Workstation running,

207
00:10:09,990 --> 00:10:12,510
and we've got our ESXi server running

208
00:10:12,510 --> 00:10:14,460
where I'm gonna be moving all these.

209
00:10:14,460 --> 00:10:16,980
And, in fact, this one came from here.

210
00:10:16,980 --> 00:10:21,360
I just uploaded it by
going to Manage and Upload.

211
00:10:21,360 --> 00:10:23,640
You can also do an export,

212
00:10:23,640 --> 00:10:26,100
but you can upload directly to the server,

213
00:10:26,100 --> 00:10:27,270
and it didn't take long.

214
00:10:27,270 --> 00:10:28,920
It's pretty good stuff.

215
00:10:28,920 --> 00:10:31,410
Okay, so definitely check
out some of these tools,

216
00:10:31,410 --> 00:10:36,410
VMware Workstation, Hyper-V
for the client, and VirtualBox.

217
00:10:37,080 --> 00:10:39,540
And learn how they work a little bit

218
00:10:39,540 --> 00:10:41,730
and learn how to create virtual machines

219
00:10:41,730 --> 00:10:44,310
and edit those virtual machine settings,

220
00:10:44,310 --> 00:10:48,270
especially the memory,
processors, and hard drive.

221
00:10:48,270 --> 00:10:50,760
And remember for the exams

222
00:10:50,760 --> 00:10:55,270
that the virtualization computer

223
00:10:56,310 --> 00:10:58,440
or virtualization server

224
00:10:58,440 --> 00:11:00,270
needs to have a pretty powerful processor

225
00:11:00,270 --> 00:11:03,510
but especially needs lots of memory

226
00:11:03,510 --> 00:11:08,040
'cause every VM that's
running will use that amount

227
00:11:08,040 --> 00:11:12,360
that you've assigned from the
physical RAM on that computer.

228
00:11:12,360 --> 00:11:15,630
All right, so that's
about it for this video.

229
00:11:15,630 --> 00:11:17,043
I'm Dave, signing off.
