Illia Khomenko
Writing

Optimize CPU on RDS for SQL Server: licence fewer vCPUs, keep the memory

On RDS, SQL Server and Windows are licensed per active vCPU. Optimize CPU lets you turn vCPUs off and keep the instance's memory. Halving a 16-vCPU Enterprise database saves $29,504 a year.

SQL Server databases are usually sized for memory. The CPUs come with the memory whether the workload needs them or not, and on RDS every one of them is licensed.

Optimize CPU separates the two. You keep the instance class and reduce the number of active vCPUs. The instance rate stays the same and the licence lines shrink.

What it saves

Take a db.r7i.8xlarge: 256 GiB of memory and 16 vCPUs by default. The licences on a single node in us-east-1 are:

16 vCPUs8 vCPUsSaved per year
Enterprise and Windows$4,917.28$2,458.64$29,504
Standard and Windows$1,938.88$969.44$11,633

That's per month for the first two columns. Each vCPU you turn off is worth $307 a month on Enterprise and $121 on Standard. On Multi-AZ the SQL Server licence is billed once and Windows on both nodes, so add $33.58 a month per vCPU for the second node.

RDS has already done half of it

Look at the default vCPU counts before planning anything. On the classes that support Optimize CPU, RDS runs SQL Server with hyperthreading off from 2xlarge up.

ClassMemoryDefault vCPUsValid core counts
db.r7i.xlarge32 GiB41, 2 (two threads each)
db.r7i.2xlarge64 GiB41 to 4
db.r7i.4xlarge128 GiB81 to 8
db.r7i.8xlarge256 GiB161 to 16
db.r7i.16xlarge512 GiB321 to 32

A db.r7i.8xlarge runs SQL Server on 16 vCPUs, where the EC2 instance of the same name has 32. If you moved from r5 or r6i to r7i at 2xlarge or above and kept the size, your licensed vCPU count already halved. If you're still on a sixth-generation class, the licence is bundled into the hourly rate and none of this is available to you.

RDS won't accept a configuration below 4 vCPUs.

How to choose the number

Pull CPUUtilization from CloudWatch for the last two weeks at one-minute resolution, and the five-minute data further back so that month-end and batch windows are covered. Look at the peaks. If 16 vCPUs peak at 35%, the same work on 8 peaks around 70%, which is workable. If they peak at 60%, it isn't.

Check two things in SQL Server as well. Queries that run in parallel will have fewer cores to spread across, so review max degree of parallelism. And look at wait statistics after the change: a rise in SOS_SCHEDULER_YIELD means queries are queuing for CPU.

Making the change

In the console it's under Modify, in the Optimize CPU section. From the CLI:

aws rds modify-db-instance \
  --db-instance-identifier my-database \
  --processor-features "Name=coreCount,Value=8" "Name=threadsPerCore,Value=1" \
  --apply-immediately

There's a brief outage, like a class change, so do it in a maintenance window. Going back is the same command with the old values or --use-default-processor-features.

Snapshots remember the setting. Restoring to the same class keeps it. Restoring to a different class makes you specify it again.

When a smaller class is better

If the database isn't using the memory either, drop a size. That reduces the instance rate as well as the licences. Optimize CPU is for the case where memory is the constraint and CPU is spare, which describes a lot of SQL Server workloads.

Do this before reserving anything, and after settling the edition. The vCPU count multiplies whatever rate the edition sets.

Prices above are AWS list prices for us-east-1, on demand, November 2026.

If your SQL Server instances were sized for memory and nobody has looked at their CPU graphs since, that's where an audit starts.

Short answers

What does Optimize CPU do on RDS for SQL Server?

It sets the number of CPU cores and threads per core on a DB instance. Memory, network and storage performance stay the same. SQL Server and Windows licences are billed per active vCPU, so fewer vCPUs means a smaller licence charge.

Which instance classes support it?

Seventh-generation classes and newer: m7i, r7i, m8i, r8i, m8a, r8a and x2m. It works with licence-included Enterprise, Standard and Web, and with Bring Your Own Media. The smallest configuration RDS accepts is 4 vCPUs.

Does changing the vCPU count cause downtime?

Yes. AWS describes it as a brief outage, similar to changing the instance class. You can apply it immediately or in the next maintenance window.