On my desktop
$ sudo lshw -short -C memory
H/W path Device Class Description
========================================================
/0/0 memory 64KiB BIOS
/0/27 memory 16GiB System Memory
/0/27/0 memory [empty]
/0/27/1 memory 8GiB DIMM DDR4 Synchronous Unbuffered (Unregistered) 2133 MHz (0.5 ns)
/0/27/2 memory [empty]
/0/27/3 memory 8GiB DIMM DDR4 Synchronous Unbuffered (Unregistered) 2133 MHz (0.5 ns)
/0/29 memory 768KiB L1 cache
/0/2a memory 4MiB L2 cache
/0/2b memory 16MiB L3 cache
shows RAM speed( 2133 MHz ), L2 cache size(4MiB) & L3 cache size(16MiB)
But the same command on AWS EC2 instance
$ sudo lshw -short -C memory
H/W path Device Class Description
==========================================
/0/0 memory 96KiB BIOS
/0/1000 memory 4GiB System Memory
/0/1000/0 memory 4GiB DIMM RAM
and AWS lightsail instance
H/W path Device Class Description
==========================================
/0/0 memory 96KiB BIOS
/0/1000 memory 8GiB System Memory
/0/1000/0 memory 8GiB DIMM RAM
do not show these values.
How is it possible to know these values on AWS EC2 and Lightsail instances?