CCIE Homelab Suggestions, Methods, & Ideas CSR1000V reminiscence optimization

With the completion of my Grasp’s diploma I now have extra free time to start out making ready for my deep dive into my CCIE research. Lately I’ve been engaged on getting my lab atmosphere collectively. What I’ve determined was to do a combination of each bodily {hardware} and digital cases which features a few “pods” of routers and switches together with a ESXi Server operating each Cisco VIRL and numerous CSR100V cases. There are each execs and cons to utilizing both {hardware} or digital cases, one thing I’ll most likely cowl at a later time, together with a rundown of my lab atmosphere as soon as its accomplished.

At present I wish to go over one thing neat I found when researching easy methods to deploy CSR1000Vs for my lab, disabling giant pages in ESXi. Disabling Giant Pages in ESXi is actually deduplication for reminiscence. This enables for a really giant reminiscence financial savings when operating a number of cases of comparable VMs (comparable to 20 CSR1000V cases!). For me on 10 CSR1000V cases I noticed RAM use go from 33GB all the way down to 12GB, which permits for much more cases to be put in on the identical quantity of {hardware}.

Enabling this characteristic takes a matter of minutes to implement, and provides a fantastic reminiscence use financial savings.

*Please notice*: I’ve not performed in depth analysis on the interworking of what enabling this characteristic does. I’ve not personally run into any efficiency points operating this on my CCIELab ESXi host which runs principally CSR cases with a couple of different VMs. If you’ll deploy this on a number that’s used for different issues please take baselines and use warning when deploying. I’d additionally advocate not deploying this characteristic in manufacturing with out first consulting a VMware professional.

Now to the enjoyable half!

First lets take a notice of what reminiscence utilization is presently at:

To have the change take have an effect on, the VMs must be powered on after the change is made, so subsequent is to energy down your entire VMs.

After the VMs are powered down comply with the next steps:

1. Navigate to Configuration
2. Beneath Software program: Choose Superior Settings

3. Choose “Mem”
4. Find “Mem.AlocGuestLargePage” and set its worth to 0

5. Choose Okay
6. Energy on VMs

It’ll take a couple of minutes (roughly 5 – 10) for the CSRs to totally boot up and for ESXi to deduplicate reminiscence. I like to recommend turning up as many cases you possibly can and coming again in 10 minutes to take pleasure in all the further reminiscence you simply acquired.

And naturally, a screenshot of my 10 CSR100Vs operating with much less reminiscence utilization

Supply