Skip to content
Luca Dell'Oca Principal Cloud Architect @Veeam
Virtual To The Core Virtual To The Core

Virtualization blog, the italian way.

  • Media
  • About me
Virtual To The Core
Virtual To The Core

Virtualization blog, the italian way.

HotAdd di RAM a una macchina linux 64 bit, il “gradino” dei 3Gb

Luca Dell'Oca, May 5, 2010December 4, 2016

Una delle funzioni più “cool” di vsphere, anche se meno note, è la possibilità di aggiungere a caldo ram a quei sistemi operativi che supportano questa funzione. In questo modo si può togliere d’impaccio un server sovraccarico azzerando completamente il downtime necessario al reboot.

Tra i sistemi che supportano questa funzione c’è ovviamente linux. Potrebbe però capitarvi di incontrare dei problemi se doveste aggiungere ram a un sistema linux 64 bit che prima aveva meno di 3072 Mb (la stessa cosa non succede coi sistemi linux a 32 bit). Ciò è dovuto al fatto che sotto i 3 Gb il kernel di linux parte senza abilitare swiotlb, che è il modulo per gestire la ram oltre i 3 Gb. Quindi, quando andiamo ad aggiungere la ram, siccome swiotlb rimane disabilitato, abbiamo degli erroracci in console.

L’unico modo per evitare questo problema è forzare l’uso di swiotlb fin dall’inizio, passando al kernel il parametro di boot:

swiotlb=force

Col sistema avviato, potremo inoltre verificare che sia effettivamente in funzione col comando:

dmesg | grep SWIOTLB

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
Tecnologia 64 bithotaddlinuxswiotlb

Post navigation

Previous post
Next post

Search

Sponsors

Latest Posts

  • Migrate WSL (Windows Subsystem for Linux) to a new computer
  • Pass keystrokes to a pfSense virtual machine to install it automatically
  • Automatically deploy pfSense with Terraform and Ansible
  • My Automated Lab project: #6 Create a S3 Bucket with Terraform
  • My Automated Lab project: #5 Deploy a Linux vSphere VM with Terraform and custom disks
©2025 Virtual To The Core | WordPress Theme by SuperbThemes
We use cookies to ensure that we give you the best experience on our website, and to collect anonymous data regarding navigations stats using 3rd party plugins; they all adhere to the EU Privacy Laws. If you continue to use this site we will assume that you are ok with it.OkNoPrivacy Policy