Difference between revisions of "Performance Optimization"

From Looking Glass
Jump to navigation Jump to search
Line 8: Line 8:
 
=== Debain (Ubuntu/Mint/Lubuntu/PopOS/etc) ===
 
=== Debain (Ubuntu/Mint/Lubuntu/PopOS/etc) ===
 
First check if Linux isn't already using Hugepages with: <code>cat /proc/meminfo | grep Huge</code>
 
First check if Linux isn't already using Hugepages with: <code>cat /proc/meminfo | grep Huge</code>
 +
If the output resembles the following:
 +
<syntaxhighlight lang=text>
 +
AnonHugePages:      2048 kB
 +
ShmemHugePages:        0 kB
 +
HugePages_Total:        0
 +
HugePages_Free:        0
 +
HugePages_Rsvd:        0
 +
HugePages_Surp:        0
 +
Hugepagesize:        2048 kB
 +
Hugetlb:                0 kB
 +
</syntaxhighlight>
 +
then Hugepages aren't enabled.
  
 
== hyperv ==
 
== hyperv ==
  
 
== vcpupin ==
 
== vcpupin ==

Revision as of 06:00, 28 February 2020

After the initial creation of your Virtual Machine there are a number of performance tweaks you can make to your Guest's .XML file and/or the Host system to greatly increase the Guest's performance.

hugepages

Hugepages are a function that lets the system kernel use larger pages when reading or writing information to memory (RAM). When this is enabled and the Guest is configured to use them the performance can be greatly increased. How to enable Hugepages depends on your GNU/Linux distribution.

Note: When hugepages are configured this portion of memory is taken away from the Host. This means the Host will no longer be able to use it. Keep this in mind.

Debain (Ubuntu/Mint/Lubuntu/PopOS/etc)

First check if Linux isn't already using Hugepages with: cat /proc/meminfo | grep Huge If the output resembles the following:

AnonHugePages:       2048 kB
ShmemHugePages:         0 kB
HugePages_Total:        0
HugePages_Free:         0
HugePages_Rsvd:         0
HugePages_Surp:         0
Hugepagesize:        2048 kB
Hugetlb:                0 kB

then Hugepages aren't enabled.

hyperv

vcpupin