Linux Now Set to Always Reserve the First 1MB of RAM

By

To avoid issues that have plagued some systems, the Linux kernel will now unconditionally reserve the first 1MB of RAM.

Linux developers have always known the first 64K of system memory can be easily corrupted by certain BIOSes. Another issue they've had to deal with was Intel Sandy Bridge graphics chips accessing memory below the 1MB mark. Both of these situations can lead to serious problems with system performance or even booting.

Recently, however, a bug report was filed dealing with unbootable AMD Ryzen systems when the Linux kernel version 5.13 was in use. This happened after developer Linux_Chemist discovered a system with an AMD Ryzen 7 3700x was unable to boot kernel 5.13 and discovered booting worked fine with CONFIG_X86_RESERVE_LOW=640 set.

That bug was set to urgent and had an interesting (and telling) response attached to this GIT PULL:

"- Do away with all the wankery of reserving X amount of memory in the first megabyte to prevent BIOS corrupting it and simply and unconditionally reserve the whole first megabyte."

However, Linus Torvalds (the creator of Linux) had this to say about the comment:

"This seems a bit draconic. How does this work at all under Windows? There must be some windows knowledge about what the BIOS updates that we're not aware of."

In the end, the patch was merged and the Linux kernel will now reserve the first 1MB of RAM to avoid problems in the future.

06/10/2021

Related content

  • News for Admins
  • Analyzing Kernel Crash Dumps

    If the Linux server crashes, not only do you need to restore operations, you also need to analyze the problem. A kernel crash dump at the time of the crash can be a big help.

  • NVDIMM Persistent Memory

    Non-volatile dual in-line memory modules will provide storage as fast as RAM and keep its content through a reboot. The Linux kernel is already geared to handle the new technology and can even serve the modules up as block devices.

  • NVDIMM and the Linux kernel
    Non-volatile dual in-line memory modules will provide storage as fast as RAM and keep its content through a reboot. The Linux kernel is already geared to handle the new technology and can even serve the modules up as block devices.
  • Managing Linux Filesystems
    Linux filesystems range from block-based network filesystems, to temporary filesystems in RAM, to pseudo filesystems. We explain how filesystems are set up and how to manage them.
comments powered by Disqus
Subscribe to our ADMIN Newsletters
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs



Support Our Work

ADMIN content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.

Learn More”>
	</a>

<hr>		    
			</div>
		    		</div>

		<div class=