So with that in mind, what is smart? Paging So
smart? Paging allows a virtual machine to temporarily use hard disk space to supplement shortages off memory. What we call non volatile memory,
during VM restarts when there is no available physical memory. Now what do I mean by this? So
let's say you have 30 gigs of memory available on your server
on dhe. 28 gigs is currently being used by all the machines that you're running on that server.
You have to reboot one of your servers, and it's currently using four gig. But when you start the machine, it means eight. Gig of RAM to stop for whatever reason,
it now has to find it will look for two extra two gig, which you can say you've got. So you've got a 30 gig server using 28 gig. If you press restart, it will ask for the extra two gig. Fair enough,
but it now has a surplus. It's asking for more memory than the server physically has available across the whole cluster.
What smart paging does is the remaining amount of RAM that you are requesting that the VM is requesting
it creates a file and says, Right, drop all your extra stuff into this file and switching in and out like a swap file like you would find on any other client machine
and that allows it to load up. What this means is that even when you've got full utilization of your memory, as long as you have space for these swap files and paging files to be made, you can still restart a server, even though you haven't got a Lee available round to do the normal restart
s. So that's that's what this does so yet to use when memories full data can be transferred in and out of memory by swapping it with other data from the paging file works exactly the same way the normal paging file. But it's doing it on a smarter level because it's only doing it for the amount of memory that you require
on. This is like I said, it's used in hyper Vito. Allow the EMS to use disk space to supplement a shortage of memory. So this this allows you to
actually fix the problem of having over utilization of ram.
As I mentioned, it's only used when you reboot. It's the only time it will not use a paging file for general use like you would in a normal machine. Like Like you are, sadly, your machines right now, or I am. It won't do it then.
yes. So it's when there is no available physical memory on your servant needs to be restarted. It's the only reason to use a smart paging fall. If you have enough, RAM bio means turn this off. He don't need it. But that being said, I always recommend to all my clients you should always leave this on. Just in case
on why I tend to do is to give an example of a real world environment.
I tend to have a small partition on the network, which I tell
if you're gonna make a smart Paige drop it in this partition. So that way, that mission that space is allocated, it's not gonna cause a crash. You will literally get in there a message saying server cannot be restarted. Your VM cannot be restarted if you don't have space to make a smart page file and you've run out of room.
So it's quite a critical piece. Small, but critical.
So it's just something to keep in mind. I'm actually going to show you this. The dynamic memory and smart paging itself s o. Let's jump back across the hyper V s a dynamic memory here. So what I'm gonna do is I'm actually going to show you very quickly on here.
Um, we're gonna go over to the memory you can see here. I've set a two gig amount of ram, and I've told it to drop the minimum round 2 512 It's not being used. And the rest is all the same dynamic memories on. So this is what I've set up. What we're gonna do is I'm gonna start the machine, so I'm going to Yeah, fine. Whatever. Revert that machine.
So it's not gonna boot the machine up. Here we go. So you can see here. The state currently on the screen is running on dhe. The assigned memory is 2048 megabytes, so you can see the up time
and we're currently merging the files. So there are because I haven't used this for a while. This is gonna merge the different files together effectively on dhe. It allows it to basically set itself up, and you can see the up time taking a lot
down here. You have your checkpoints. This is I'll just explain this. While we're waiting for the item to occur,
this is where it's taking it from, so it's from this time and date on effectively at the bottom. Here, you can see a summary of the actual thing when it was created, whether it's clustered if you've got a heartbeat, these are more advanced things
importantly, and you mentioned earlier Lance how you would check if it's a general on a Gentoo without going into settings. If you click on the machine and then come down here, it will actually tell you what generation the machine is as well. So if you just want to quickly check without jumping into different settings and things like that, that's when you would come and you can actually set notes on the machines. Well,
over here you can see the startup memory, the minimum memory.
This allows you to see it
as it's currently working itself. Now you can see
in the time that we've been speaking, so this machine is now on and running. Okay,
The startup memory was 2048 Meg. However, now that it's up and running and the machine isn't actually doing much other than sitting on my machine
because the minimum memories 5 12
the current assigned memory is 720 Meg and the machine is using 5 60 approximately is going up and down a little bit.
Why has it got 7 20? Well, that's because that's the memory, but for kicking in. So it's currently using that. You can see it's it's kind of fluctuating a little bit, but it's using 600 Meg, and it goes up and down is different. Updates occur. It's probably going off on checking. It's got the latest Windows updates and service is starting up and all kinds of stuff.
And it will actually say If you can see here, the memory status is just flicked a low. Which means if this keeps loading up, the hyper visor is going to get a request from the SVM to say, Please, can I have a little bit more round
on? The more it ticks up and you can see it's kind of slowly climbing, it's gonna get to a point where the hyperdrive is gonna go. Okay? I can see you need a bit more memory. Let me send some more over and it's gonna buffer it up even more
s so I'm hoping, actually might hit it. It's only like 20 Meg away from hitting the limit on it. It depends because it's waiting for a signal from the V N to say, guys I've run out of Ram. I need some more. Please. Can you give it to me on lo and behold, Bang on time.
There we go. So it's now given it more memory and it's using even more
So this is a perfect example of dynamic memory in action. Now, if I was to restart this server,
let's see if I can do it from here. So I'm not gonna reset because that's literally like pressing the restart button on the machine. What I want to do is shut it down.
Andi, this is how you would do it in a virtual environment. Anyway, you would say please shut down, set yourself up. And then when I now turn it back on, it's gonna go back up to that start up memory level of 2048 megabytes, so you can see here is currently in the process of shutting down.
This is one of those If it was a shielded V M and I don't have the access to do this,
I wouldn't be able to if I wasn't the tenant administrator. Eso this sake is quite nicely into the previous stuff that we've discussed.
You can see there's still shutting down its waiting for. Basically, it's like you would normally with the machine. It just shuts down stuff. You can see here a little progress window of what's going on on the server. So that's just saying shutting down. And then that would basically just disappear. Server flicks off and this will state will be running off just like this one here
on, then that's it. There we go. So back off there. If I now hit start again, it's gonna check to see if it's got the Ram. If there's not enough RAM, it will ask for a paging file. So the second I hit start again. There we go is boot in the server back up, and there's your assigned memory of 2048 again. So that's what dynamic memory does. And then smart paging is like
the support underneath dynamic memory, just in case you run out.
So that's kind of Ah, quick demonstration off dynamic memory in action. It's very quick to respond, but the hyper visor tries to keep control as much as it can throughout the whole fit,
so just something to keep in mind.