GNU/Linux >> Linux Esercitazione >  >> Cent OS

Come aggiungere e rimuovere a caldo la memoria logica in CentOS/RHEL 7

Questo post spiega come utilizzare memory hotplug per aumentare/diminuire la quantità di memoria.

Per vedere (online/offline) la sezione dello stato della memoria, leggere il file "stato".

# grep line /sys/devices/system/memory/*/state
/sys/devices/system/memory/memory0/state:online
/sys/devices/system/memory/memory1/state:online
/sys/devices/system/memory/memory2/state:online
/sys/devices/system/memory/memory3/state:online
/sys/devices/system/memory/memory4/state:online

Per impostare una memoria[x] a online/offline:

# echo online > /sys/devices/system/memory/memory[number]/state
# echo offline > /sys/devices/system/memory/memory[number]/state

Per verificare lo stato attuale:

# free -m

Maggiori dettagli sono disponibili su:/usr/share/doc/kernel-doc-*/Documentation/memory-hotplug.txt


Cent OS
  1. Come installare Python 3.5 su CentOS/RHEL e Fedora

  2. CentOS / RHEL 7 :Come installare e configurare telnet

  3. Come rimuovere le interfacce virbr0 e lxcbr0 su CentOS/RHEL 6,7

  4. Come disabilitare NUMA in CentOS / RHEL 6,7

  5. Come rimuovere la stampante di rete in CentOS/RHEL

Come installare e configurare Checkmk su CentOS 8 / RHEL 8

Come installare e utilizzare Firewalld in CentOS/RHEL

Come aggiungere e rimuovere utenti in CentOS 8

Come installare Samba su RHEL e CentOS Stream

Come installare e configurare Jenkins su CentOS 8 / RHEL 8

Come installare Wine 5.0 su CentOS, RHEL e Fedora