Questo contenuto non è disponibile nella lingua selezionata.

8.2. Memory Tuning Tips


To optimize memory performance in a virtualized environment, consider the following:
  • Do not allocate more resources to guest than it will use.
  • If possible, assign a guest to a single NUMA node, providing that resources are sufficient on that NUMA node. For more information on using NUMA, see Chapter 9, NUMA.
  • When increasing the amount of memory a guest virtual machine can use while the guest is running, also referred to as hot plugging, the memory needs to be manually brought online on the guest by one of the following methods:
    • Create a custom udev rule
      1. Create a file with a name that ends in the .rulessuffix in the /etc/udev/rules.d/ directory:
        # touch /etc/udev/rules.d/rulename.rules
        Copy to Clipboard Toggle word wrap
      2. Add the memory onlining to the created file:
        # echo 'SUBSYSTEM=="memory", ACTION=="add", ATTR{state}=="offline", ATTR{state}="online"' > /etc/udev/rules.d/rulename.rules
        Copy to Clipboard Toggle word wrap
      3. Reload udev rules:
        # udevadm control --reload
        Copy to Clipboard Toggle word wrap
    • Bring inactive memory online manually after each hot plug
      # for mblock in /sys/devices/system/memory/memory*; do echo online > $mblock/state; done
      Copy to Clipboard Toggle word wrap
Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat