To check VM stats, use the following commands.

To see used and unused memory, swap space.

free

To see RAM details.

sudo dmidecode -t 17

To see number of processors.

nproc

To see CPU details.

lscpu