"Maximum memory" in a system's boot options (often labelled Maximum memory or Maximum memory limit) is a crude but useful test setting: it tells the operating system to ignore part of the installed RAM when it starts, so you can see whether a memory fault, bad stick or an unstable overclock is behind crashes and boot failures. The sequence is short. Open your machine's boot or firmware utility (Windows' msconfig dialog or the UEFI/BIOS setup on a PC, or the boot-args setting on a Mac), enter a memory cap that excludes the questionable RAM, reboot, and compare stability. When you finish testing, switch the limit off again, because leaving it on permanently hides RAM from every program.

Menu labels vary slightly by firmware version, motherboard brand and operating system version, so treat every path below as a close guide rather than a verbatim map.

What You'll Need

  • A PC or Mac that at least reaches the firmware or an operating system login screen, plus an account with administrator rights.
  • The total installed RAM and, ideally, the size of each module, from the maker's spec sheet or the firmware's memory screen.
  • Windows: the built-in System Configuration utility (no download needed). macOS: the Terminal app. Linux: a bootloader editor such as GRUB.
  • About 30 to 60 minutes for testing, and a plan to restore full memory afterwards.
  • Optional but recommended: a hardware memory test tool, which does the diagnosis more reliably than a boot-time cap.

Step-by-Step

  1. Write down the memory layout first. Note the total RAM and how it is split across slots or soldered memory, for example 16 GB as two 8 GB modules. You cannot choose a useful cap without knowing what you are excluding. On Windows, Task Manager's Performance tab shows the installed amount; on a Mac, the Apple menu's About This Mac window does the same.
  2. Decide what the test should prove. If you suspect one module is faulty, cap the memory below the total so the suspect module is not used. If you suspect an unstable overclock or a firmware setting, a cap is only a holding step until you fix the setting itself.
  3. On Windows, open System Configuration. Press Windows+R, type msconfig and press Enter, then open the Boot tab. This is a per-boot-entry setting, so if the dialog shows more than one operating system entry, select the one you actually boot.
  4. Enable the limit and choose a value. Click Advanced options, tick Maximum memory, and enter the cap in megabytes. Leave the field blank or unticked to disable the limit. Click OK, then OK again.
  5. Reboot and confirm the cap took effect. After the restart, open Task Manager's Performance tab or Settings' About page. The usable memory figure should now be lower than the installed figure, which proves the setting applied.
  6. Run the machine under load. Use your normal work plus something demanding, such as a long video export, a large spreadsheet recalculation or several browser tabs streaming video. If the previous crashes, freezes or blue screens stop, the excluded memory is strongly implicated.
  7. On a Mac, adjust the boot argument instead. In Terminal, the sudo nvram boot-args="..." command can pass a memory limit to the kernel, and sudo nvram -d boot-args clears boot arguments entirely. Get the exact argument string from Apple's developer documentation or your Mac model's guidance; guessing the syntax can prevent the Mac from starting normally. Keep a note of the original value, because clearing boot-args removes any other arguments too.
  8. On Linux, edit the bootloader entry rather than the kernel itself. In GRUB, press e at the boot menu, add mem=4G (or your chosen size) to the line that begins with linux, and boot with Ctrl+X. That change lasts for one boot only. To make it permanent, edit /etc/default/grub and regenerate the configuration, which is the safer habit for testing.
  9. Reverse the change once the test is over. On Windows, untick Maximum memory in System Configuration and reboot. On a Mac, delete the boot argument. Check again that the full installed figure is back.
  10. Fix the actual cause. If excluding memory solved the problem, resit or replace the suspect module, run a hardware memory test, and reset the firmware to safe defaults before re-enabling any overclock. A boot cap hides a fault; it does not repair it.

Common Mistakes

The most frequent error is leaving the limit switched on after testing. The machine then boots with less RAM than it has, every application sees a smaller budget, and symptoms such as heavy swapping and slow start-up appear for no obvious reason. Anyone troubleshooting later will probably not think to check this setting.

A second mistake is entering gigabytes where megabytes are expected. A value of 16 in a megabyte field caps the system at 16 MB, which is far below anything usable and can stop the machine from starting at all. Read the unit label next to the box.

Third, some people set a cap and then judge the hardware innocent when the machine still misbehaves. A boot-time limit cannot exclude a specific slot or module, so it may leave the faulty stick partly in use. Fourth, on Macs, editing boot-args without recording the previous value wipes unrelated settings. Finally, changing a one-boot Linux entry and assuming it is permanent leads to confusion at the next restart, and the reverse is also common: editing the permanent file for a five-minute test.

Tips

Change one thing at a time. If you alter the memory cap and a firmware setting together, you will not know which one mattered. Record the date, the cap value and the result somewhere you will find again.

Prefer hardware diagnosis over a boot cap when you can. Many PC firmware menus include a built-in memory test, and standalone memory testing tools boot from removable media and exercise every module directly. Those tools can tell you which module is failing, which a boot limit never can.

If the machine will not boot after a change, plan an escape route before you start: know how to reach Safe Mode on Windows, the firmware setup key combination for your model, or the recovery options on your platform. On Windows, System Configuration's Boot tab also has a Safe boot option you can clear later; do not mix it with a memory limit.

Use a clean shutdown before rebooting, especially on laptops with encryption or fast start-up features enabled, so firmware changes are written reliably.

Troubleshooting

The memory figure looks unchanged after rebooting. Confirm you edited the operating system entry you actually boot and that you clicked OK on both dialogs. On dual-boot machines, an edit applied to the other entry has no effect.

The computer will not start at all. Boot into Safe Mode or the firmware setup. On Windows, you can normally reach the advanced start-up options by interrupting start-up repeatedly; there, a command prompt lets you undo setting changes, and a System Restore point is another route. If settings were written to firmware and the screen stays blank after a firmware change, the manufacturer's documented clear-CMOS procedure for a desktop, or the vendor's recovery instructions for a laptop, restores defaults. Do not open a power supply or touch mains wiring; that work belongs to a qualified technician.

The crashes continue. Remove the cap and test the modules individually, or run a memory test for several hours. Also check temperatures, storage health and driver updates, since memory is only one possible cause.

Performance is worse after a fix. Recheck that the full memory total has returned, that the firmware reports all modules, and that no other boot argument or limit is still active.

Changing firmware settings is risky. If you are unsure, use the operating system's own test setting first. It is easy to reverse and never touches the hardware configuration.

Frequently Asked Questions

Does a maximum memory setting add RAM or free it up?

Neither. It only hides part of the installed memory from the operating system. Removing the limit restores normal use.

Will setting a memory limit speed up my computer?

No. Fewer usable gigabytes normally means more swapping and slower performance. Use it for testing, not for tuning.

Can I select which memory module to exclude?

No. Windows' boot option and the equivalents elsewhere apply a total ceiling, not a per-slot choice. To test individual modules, remove them or run a hardware memory tester.

Is the setting permanent?

On Windows it stays until you clear it. A one-boot bootloader edit on Linux lasts one start-up only. Mac boot arguments persist until removed.

What happens if I set the limit too low?

The system may fail to start or run unusably slowly. Raise the value or disable the limit, using Safe Mode or firmware setup if needed.

Should I keep the limit on to leave memory for a virtual machine or integrated graphics?

No. Those features manage their own allocations. A hard cap just deprives the whole system.

Used as a short diagnostic step and switched off afterwards, the boot maximum memory option answers one clear question: does the machine behave better without part of its RAM? Answer it, then repair the hardware or firmware cause properly.