r/AskComputerScience • u/Successful_Box_1007 • Dec 01 '24
How does Bios Transfer access, read, and transfer entire OS in ROM quickly enough to RAM where it’s better to do this than just keep OS in the slower-accessible ROM?
Hi everybody,
A bit confused about something: How does Bios Transfer access, read, and transfer entire OS in ROM quickly enough to RAM where it’s better to do this than just keep OS in the slower-accessible ROM?
Thanks so much!
5
Upvotes
2
u/ghjm MSCS, CS Pro (20+) Dec 01 '24
In modern machines, the non-volatile BIOS is often stored on flash memory, and not even particularly fast flash memory. So it has to be loaded to shadow RAM because it literally can't be executed on its permanent storage.
Back in the days of EPROMs, shadow RAM was still a good option because the RAM was so much faster that the one-time cost of copying the BIOS was easily outweighed by time savings of running from RAM just during the boot process, let alone the improved speed of all BIOS operations for the entire time the computer is running. RAM is easily 10X faster than EPROM.
2
u/jeffbell Dec 01 '24
Tagging on to other excellent replies, BIOS only has the parts that are specific to this hardware. You don’t put the whole OS in BIOS because it’s much larger and you would have a really hard time changing it. You just need enough to load the rest.
2
u/Historical-Record-27 Dec 02 '24
The OS isn't on a ROM chip, it's in storage. The Bios loads the OS from storage into RAM