How much RAM does a server need?

Size memory from the workload, then round it to a configuration the processors can run at full speed.

Module
1 of 4
Level
Foundation
Time
About 12 minutes

Before you start

None

You will be able to

  • Calculate the memory a host needs from its virtual machines, with growth.
  • Choose a memory total that fills every memory channel evenly.
  • Explain why servers use ECC registered memory and why DIMMs should not be mixed.
  • Recognise the signs that a server needs more memory, and the signs it does not.

How much memory does your workload need?

The short answer

Add up what the workload needs: every virtual machine, the database's working set or the application, plus the operating system or hypervisor. Add 20 to 30 percent for growth, then round up to a size that fills every memory channel evenly. File and small application servers often need 32 to 128 GB; virtualization and database hosts commonly need 256 GB to 1 TB or more. What changes the answer: the vendor's own sizing guide.

In plain words

What this is
Working out how much memory (RAM) a server should have so its programs keep their working data close to the processor.
Who needs it
Anyone writing a server requirement or reviewing a quotation's memory line.
If you get it wrong
Too little memory makes the server slow down and use its drives as overflow; too much, or in the wrong layout, wastes budget or lowers memory speed.

Starting points by workload.

Use these to sanity-check a requirement, not as limits. Your own workload's numbers always win.

Server memory starting points by workload
Size it byTypical starting point
File, print and directory servicesUsers and file cache32 to 64 GB
Accounting, ERP and business applicationsThe vendor's sizing guide and the number of users64 to 256 GB
Virtualization hostsTotal memory of the virtual machines, plus overhead256 GB to 1 TB
Database serversThe active data the database should hold in memory128 GB to 1 TB
In-memory platforms such as SAP HANAThe vendor's sizing toolSet by that sizing
AI and GPU serversThe combined memory of the GPUsAt least the GPU memory, often twice it
Virtual desktops (VDI)Desktops times memory per desktop, plus overhead4 to 8 GB per desktop
CCTV and video recordingCamera count and the recording software32 to 64 GB; storage matters more

These are common rules of thumb, not vendor figures. The vendor's sizing guide for your software overrides every row.

Step 1: add up what the workload needs.

Virtualization. Add the memory of every virtual machine the host will run at its busiest. A host for 40 virtual machines averaging 8 GB needs 320 GB for the guests. Add the hypervisor's own needs and 25 percent for growth and you are near 420 GB, so 512 GB is the sensible size. Do not plan production on memory overcommitment: it works until every guest gets busy at once. In a cluster, leave enough free memory on each host to take over the virtual machines of a host that fails.

Databases. Give the database enough memory to keep its working set, the data it reads most often, in its cache. Reads served from memory never wait on the drives. The database's own statistics show how much memory it uses today and how often reads miss the cache.

AI and GPU servers. Data loading, preprocessing and checkpoints all pass through system memory. A common rule is at least as much system memory as the combined memory of the GPUs, and many builds use twice that. Four GPUs with 48 GB each, 192 GB in total, point to 256 to 512 GB of system memory.

Illustration: memory modules in a server. Total memory is the sum of every module, and the layout decides how fast it runs.Illustrative drawing.

Step 2: round to a size the processors run at full speed.

Server processors read memory through several memory channels at once. Fill every channel with identical DIMMs and you get the full bandwidth; leave channels empty or mix sizes and some of it is lost.

Memory channels per processor
Memory channels per processor
AMD EPYC 9004 and 900512
Intel Xeon 6, 6900 series12
Intel Xeon 6, 6700 seriesup to 8
4th and 5th Gen Intel Xeon Scalable8

That is why server memory comes in sizes that look odd on a laptop. Two 12-channel processors with one 32 GB DIMM per channel give 768 GB; with 64 GB DIMMs, 1.5 TB. Two 8-channel processors with 32 GB DIMMs give 512 GB.

One DIMM per channel usually runs at the highest supported memory speed. Two per channel doubles the capacity but often lowers the speed, so weigh the trade-off for the model you choose. And with one processor fitted in a two-socket server, only that processor's memory slots work.

ECC, registered DIMMs and what not to mix.

Servers use ECC memory, which corrects the most common memory errors and detects more serious ones before they corrupt data or stop the server. Current servers use DDR5 registered DIMMs (RDIMMs). DDR5's on-die ECC protects data inside each memory chip; it is not a substitute for the ECC on a server DIMM.

  • One part number throughout. Mixed sizes, ranks or speeds can unbalance the channels or pull every DIMM down to the slowest speed.
  • One module type. Do not mix types such as RDIMMs with LRDIMMs; the model's QuickSpecs lists which it takes.
  • One generation. DDR4 and DDR5 are not interchangeable: a server takes one or the other.

Planning an upgrade later? Fill every channel now with a DIMM size that leaves a path: a second DIMM per channel, at a possible speed cost, or a later move to larger DIMMs.

When more RAM stops helping.

Memory that sits unused is budget that could have bought faster drives or more cores, and an oversized configuration that forces two DIMMs per channel can even slow the server down.

Signs a server needs more memory: the operating system paging to disk, a database's cache hit rate falling, or the hypervisor ballooning or swapping guest memory. Signs it does not: plenty of free memory at the busiest hour of the busiest day.

In the configurator you can choose from 64 GB to 2 TB, or leave memory on Recommend. Our engineers then confirm what the model takes and fit the memory evenly across the channels of the processors you choose.

Worked example: a virtualization host.

An example with assumed inputs, not a quotation or a customer case. Round numbers show the method; your own virtual machine list gives your figures.

  1. Add up the guests

    40 virtual machines averaging 8 GB: 40 × 8 = 320 GB.

  2. Add growth and the hypervisor

    25 percent: 320 × 1.25 = 400 GB. Allow the hypervisor's own memory and the total is about 420 GB.

  3. Round to the channels

    Two 8-channel processors hold 16 DIMMs at one per channel. 16 × 32 GB = 512 GB, the next balanced size above 420 GB.

  4. Check the cluster

    If this host must take over a failed neighbour's machines, size the spare memory for them too, or the numbers above are only enough while nothing fails.

Engineer's notes.

Before you order: check, and avoid these mistakes.

Decision checklist

Common mistakes

  1. Buying the biggest module to leave room.

    Why it hurts
    Empty channels cut bandwidth, and the money is spent before it is needed.
    Do this instead
    Fill every channel with a mid-size DIMM that leaves a path to larger ones.
  2. Mixing DIMM sizes to hit a total.

    Why it hurts
    Unbalanced channels lose bandwidth and can pull every DIMM down to the slowest speed.
    Do this instead
    Use one part number throughout and choose the total from the channel count.
  3. Planning production on memory overcommitment.

    Why it hurts
    It works until every guest is busy together, then the host slows down.
    Do this instead
    Size for the real total, plus growth.

Check what you learned.

Check your understanding

  1. A host runs 24 virtual machines averaging 16 GB and has two 12-channel processors. What memory fills the channels evenly near the need?

    Show the answer to question 1

    24 × 16 = 384 GB; × 1.25 = 480 GB. Two 12-channel processors have 24 channels: 24 × 32 GB = 768 GB fills them at one DIMM per channel, and is the nearest balanced size above 480 GB.

  2. Why does an oversized configuration sometimes run slower?

    Show the answer to question 2

    To reach a very large total a server may need two DIMMs per channel, which often lowers the memory speed.

  3. What is the difference between DDR5 on-die ECC and server ECC?

    Show the answer to question 3

    On-die ECC protects data inside each chip and does not report corrections; the ECC on a server DIMM corrects and reports errors across the module, which a server depends on.

Key takeaways

  1. Add up the workload, add 20 to 30 percent, then round to a size that fills every memory channel.
  2. Fill every channel with identical ECC registered DIMMs before adding a second DIMM to any channel.
  3. The vendor's sizing guide beats any rule of thumb.
  4. More memory helps only while the workload is short of it.

Sources and standards

  1. Wikipedia (readable summary), Granite Rapids, read . The performance-core Xeon 6: the 6900P series with 12 memory channels, the 6700P series with a maximum of eight.
  2. Wikipedia (readable summary), Sierra Forest, read . The efficient-core Xeon 6: eight memory channels, or 12 on the Sierra Forest-AP models.
  3. Wikipedia (readable summary), Epyc, read . The 9005 series (Turin) uses the SP5 socket of the 9004 series, which has 12 DDR5 channels.
  4. Wikipedia (readable summary), Sapphire Rapids, read . 4th Gen Xeon Scalable: eight DDR5 ECC channels, up to two DIMMs per channel.
  5. Wikipedia (readable summary), Emerald Rapids, read . 5th Gen Xeon Scalable: eight-channel DDR5.
  6. Wikipedia (readable summary), DDR5 SDRAM, read . All DDR5 chips have on-die ECC, which does not report corrections to the processor; server modules add ECC on the module.
  7. Schroeder, Pinheiro and Weber (Google), SIGMETRICS 2009, DRAM Errors in the Wild: A Large-Scale Field Study, read . A field study of memory errors across a large server fleet: errors are common.

Questions buyers ask.

Is 64 GB of RAM enough for a server?

For file, print, directory or small application servers, often yes. For a virtualization host or a database server it is usually too little: size those from the virtual machines or from the data the database should keep in memory.

How much RAM should each virtual machine get?

What its operating system and application need at their busiest, commonly 4 to 16 GB for Windows or Linux servers. Then add the host's own overhead and 20 to 30 percent for growth.

Does a server need ECC memory?

Yes. ECC memory corrects the most common memory errors and detects more serious ones, which protects data and uptime. Servers are designed for it, and current models use DDR5 ECC registered DIMMs.

Can I mix different DIMM sizes in one server?

Avoid it. Mixed sizes or ranks can unbalance the memory channels and cost bandwidth. One part number throughout is the safe choice.

Should every memory slot be filled?

Every memory channel, not necessarily every slot. One DIMM per channel usually gives the best speed; a second DIMM per channel adds capacity at a possible speed cost.

How do I check what memory my server has?

HPE iLO lists the installed memory, and each DIMM's label shows its part number. Send us the server model and those part numbers, and we confirm the compatible upgrades.

What to tell us

  • The workload, or the virtual machines and their memory
  • The database size and how much of it is read often
  • The server model and generation
  • Memory already fitted, with part numbers

Not sure how much memory you need?

Tell us the workload, the virtual machines or the database size; we size the memory and the rest of the server.