Ubuntu – Is it possible to use ubuntu without ram at all

ramswap

If I set the value of swappiness to 100 and try to boot ubuntu installed harddrive in my friend's computer that does not have RAM, can I boot the computer without Ram at all?

Best Answer

No. The CPU can't execute code from the swap. Swapping works by moving RAM contents to the disk and other disk contents to RAM, but execution is always from RAM.

And no, there is no way to transfer code or data from the disk directly to the CPU caches. You can't bypass the RAM.

Even microcontroller architectures that can execute code directly from NOR flash need RAM for the stack, at least some built-in SRAM as some controllers have.

Related Question