From where does memtest run when all the RAM is bad?

I recently had my first foray into dealing with bad RAM modules and struggled to get the system to boot far enough to allow me to run memtest. Two of the three RAM modules had severe damage and it brought to light a question that I couldn't seem to think of answer for: where does memtest run from that it can access 100% of the RAM?

Is it small enough to fit entirely in the processor cache? Does it block off a pretested good section? What happens when all of the RAM modules are bad, can it still run?


Solution 1:

If litterally ALL the RAM is bad you will get a BIOS level memory error, and nothing can be loaded not even MEMTEST. MEMTEST and it's totally stripped down OS, needs a little bit of RAM to load into, if it loads it will start testing RAM and moveing were is it loaded to test other blocks.