As said in the title, what data in RAM is lost and what isn't when powering down?
I am just curious. I know RAM stands for Random Access Memory, is volatile (needs power to store data), and has higher read/write speeds than non-volatile memory (i.e. HDD, SSD).
I know if there is not much available RAM that can be written, I can empty RAM space by restarting, after restarting everything in RAM seems to be lost, the space they occupy is freed up, so the space becomes usable again.
However it is definitely not true that all data is lost; As far as I know, the computer's clock won't be reset by rebooting, it would still display the correct time, even after I shutdown completely and remove the power cable.
And the fact it is still bootable after shutting down, means the boot code used to boot the operating system is still in the RAM, otherwise it simply won't boot.
So what data is lost and what data remains in primary memory when you shut down the computer?