Headroom Creates Speed: Choosing Servers for the Best Performance

Headroom Creates Speed: Choosing Servers for the Best Performance

Headroom Creates Speed: Choosing Servers for the Best Performance
Receive data, process it, and return a result. The goal of server selection is to complete this sequence quickly, even during busy periods. The CPU performs calculations, memory holds data that needs to be used immediately, and the SSD stores data. Keeping each resource ready to accept the next task helps the application spend less time waiting and complete its work sooner.
A server designed for low latency does not aim to use its CPU, memory, and SSD all the way to 100%. The CPU needs room to start work immediately. Memory needs space for reclamation, copying, and caching as well as for holding data. The SSD needs room for the next write and for temporary operations. Headroom serves a purpose: completing the actual work faster.
Does that mean you should run the CPU at around 30%? How much memory does an app that uses 4GB need? How much SSD space should you leave free? This article covers the target operating state, capacity calculations, the supporting research, and checks you can perform yourself, in that order. It also includes adjustments that help you get more performance from your current configuration, so you can find a suitable setup for your app.

First, Define the Operating State You Want

The initial goal is a server with headroom during normal operation that can still meet its required response time during busy periods. For workloads that prioritize low latency, this article starts comparisons from the following conditions.
The p95 and p99 values in the figure are the times within which 95% and 99% of measured operations finish. They help reveal slower responses that an average can obscure. I/O means reading and writing data, while GC means reclaiming memory that an application no longer needs. Swap temporarily moves some of the contents of RAM to another area. On Linux, available estimates how much additional memory can be used without swapping.111629

Three kinds of headroom for sustained performance.

Target CPU load, memory retention, and free SSD capacity for a low-latency server, together with the outcomes that improvements should deliver
CPU at 20–30% is a starting point for low-latency comparisons; keeping 20–30% of SSD capacity free is a planning starting point. Neither is a universal optimum. Add room for bursts and reclamation to normal RAM needs. The RAM boxes do not prescribe a percentage, and SSD free space is not User OP. Adjust through load tests and product or database requirements.
ResourceStarting Point for ComparisonWhat to Check During Busy PeriodsWhat the Headroom Should Enable
CPUUse roughly 20–30% utilization during normal operation as a starting point for testing when low latency is the priorityNo individual core stays saturated, and increases in incoming data keep processing queues and response-time degradation within acceptable limitsStart incoming work immediately and finish it quickly
MemoryAdd room for GC and reclamation, the OS, useful caches, and sudden growth to the app's normal usage. For an app that normally uses 4GB, start by considering the 8GB allocation example belowCheck available and swap, as well as whether GC time, reclamation waits, or read I/O are holding up responsesAvoid delaying the next allocation and retrieve frequently used data from RAM
SSDAllow for data growth and temporary operations, and start by considering a plan that leaves 20–30% freeFree capacity does not run out, and read/write latency and queues do not keep growingContinue storing and reorganizing data without holding up the app's reads and writes
The CPU figure of 20–30% and the SSD free-space figure of 20–30% are starting points for testing and capacity planning in this article. They are not research findings that establish a common optimum for every device. They also measure different things: CPU usage time and unused SSD capacity. AWS, for example, gives a CPU utilization target of 50–70% for scaling, so the choice depends on the response time you want to achieve.7
For free SSD capacity, AWS recommends at least 20% free space when sizing RDS storage, along with enough working space for operations such as rebuilding large tables.26 This is operational guidance for RDS, not research identifying the percentage that maximizes speed on every SSD. Give priority to the requirements specified by your SSD and database, and reserve more space if temporary operations need a large working area.
For memory, distinguish the app's actual usage, its configured limit, and total host usage including the OS cache. As free space inside an app shrinks, GC and copying can increase. Giving too much memory to the app can also reduce the useful OS cache. Research from 2025 and 2026 shows that these allocation decisions affect performance.2930 Measure the app's GC and read I/O alongside Linux available and wait times to decide where headroom is most useful.

Translate Those Targets into the Capacity Your App Needs

The next step is to turn observations into candidate configurations. The examples below illustrate how to plan capacity. The CPU, RAM, and SSD figures are separate assumptions used to explain the selection process, not measurements from the same server.
If you do not yet have measurements, begin in a trial environment that meets the app's operating requirements, and feed it the amount of data and incoming traffic you expect. Record load on each core, RAM usage during normal and busy periods, growth in storage usage, and application response times. Substitute those observations into the examples below to narrow down the candidates. This article focuses on execution environments for applications that prioritize low latency. Check any hardware requirements specific to your workload and software separately.
For CPU sizing, you can use current usage to identify candidates if per-core performance is comparable and the work can be distributed across multiple cores. For example, 60% utilization on 4 vCPUs during normal operation means an average of 2.4 vCPUs is being used. With a 30% target, 4 × 0.60 ÷ 0.30 = 8, making 8 vCPUs a candidate for comparison. This calculation narrows the candidates; verify actual utilization and speed on the new configuration. If an app is saturating just one core, adding cores alone is not enough. You also need to improve how the work is distributed or improve per-core performance.
Make this comparison when you want to improve current response times. If the existing configuration meets your response-time and throughput targets even during busy periods, keeping it is a valid choice.

Translate your app's needs into a capacity plan.

Capacity-planning examples: add the OS, cache, and room for variation to a 4GB app for a total of 8GB RAM; keep a 400GB SSD requirement within 80% of 500GB of usable storage
An illustrative allocation: 4 GB for the normal app, 1 GB for the OS and related work, 1 GB for useful cache, and 2 GB for bursts and reclamation total 8 GB without double counting. For SSD, 200 GB of data, 20 GB of logs, 80 GB of temporary work and 100 GB of growth total 400 GB. To keep that within 80%, 400 GB ÷ 0.8 requires at least 500 GB of usable capacity. Size the real system using peaks and load tests.
For memory, add the OS and monitoring, necessary caches, and growth during busy periods to the amount the app uses continuously. An app that normally uses 4GB, plus 1GB for the OS and monitoring, 1GB for necessary caches, and 2GB of room for variation, totals 8GB. In this example, the 4GB, 1GB, and 1GB allocations do not overlap. Do not add caches or shared pages again in a separate allocation if the app's measurement already includes them.
Here, 4GB means the app's observed resident memory. Distinguish it from 4GB of live data alone or 4GB of virtually reserved address space. For an app that uses GC, include space for reclamation and copying in the increase above normal usage, and check whether that increase fits within the 2GB allowance for variation. If it does not, revise the allocation and capacity. The 8GB figure is a candidate used to explain the calculation, not a capacity that guarantees the fastest performance.
First, record normal and busy periods using the same measurement method, and put the increase into the allowance for variation. Do not add peaks or caches a second time if they are already included in the measurement. To determine a useful cache allocation, do not treat the entire displayed cache as a fixed requirement. Check read I/O and response times as you change the allocation. If you cannot yet separate the components, avoid adding unverified amounts together. Instead, record host-wide available, the app's resident memory, and changes in GC and I/O together.
The decision requires two checks. First, can the required data and peaks fit? Second, can you reduce the costs of GC, reclamation, and insufficient caching that grow before capacity is completely exhausted? If the current configuration meets the response target with those costs included, you can keep it. If you want to improve performance, change the heap limit and cache allocation one at a time, and compare configurations with more installed RAM if necessary.
For SSD sizing, include not only current data but also logs retained over the retention period, temporary work such as updates and compression, and data growth before the next review. If you have 200GB of data, 20GB of logs, 80GB of temporary work, and 100GB of future growth, the total requirement is 400GB. To leave 20% free even when that total is in use, calculate 400GB ÷ 0.80 = 500GB. This makes storage with at least 500GB of usable capacity a candidate. Check the contracted capacity, the units displayed by the OS, and usable capacity after formatting, and choose the next larger size if necessary.
Capacity increases are not the only adjustments available in this plan. Moving nonurgent calculations to another time can reduce concentrated CPU demand. The Linux PSI documentation also describes responses to observed resource shortages, such as pausing low-priority batch jobs or moving work to another system.17 Shortening retention for unnecessary data can reduce RAM and SSD requirements. Moving long-term logs off the production server can free its working space. After checking the processing and retention requirements the app must meet, organize the work and data it needs to hold at the same time.

Check the Measured Evidence That Headroom Affects Performance

We will now examine the evidence behind this design. Experiments have varied CPU load, available memory, and SSD capacity allocations. Public sources report the following measured results.

Compare measured effects of resource headroom.

Comparison of research results showing the relationship between CPU, memory, and SSD headroom and performance
CPU: GitHub (2024), Intel with Hyper-Threading, fixed request volume plus added CPU load; bars show the increase in p50 CPU time, with utilization read from the source chart. RAM: Infiniswap (NSDI 2017), Fig. 1(a), median of five VoltDB / TPC-C runs. TPS measures database transactions; 100% means all required data fits in RAM. SSD: Samsung (2019), 983 DCT at QD32, comparing added User OP. OP is not filesystem free space. These measurements describe their test conditions and do not guarantee the same gain in another app.
Resource and SourceConditions ComparedObserved Result
CPU: GitHub, 2024Keep the application's request rate constant while adding a separate computational loadIn one test series, median CPU processing time per request increased by 45.9% from the low-load baseline at approximately 78% CPU utilization 1
Memory: Infiniswap, NSDI 2017Compare enough RAM to hold all the data VoltDB needs with enough to hold only 75%Throughput fell by approximately 81.7%, from 36.18 thousand TPS to 6.619 thousand TPS 2
SSD: Samsung, 2019Change additional reserve capacity, User OP, on the 983 DCT from 0% to 20%Random-write performance increased by approximately 2.53×, from 47 KIOPS to 119 KIOPS 3
TPS in the memory row is the number of transactions per second processed by the database in this test.
The CPU utilization of approximately 78% is read approximately from the original chart's horizontal axis; 45.9% is a value printed in the figure. The RAM performance drop and SSD multiplier are calculated from explicit values in the sources. Each result was obtained with particular hardware, software, and workload conditions. Your server may not see the same improvement, but the results show useful directions for improving performance: reduce CPU load, keep the required data in RAM, and reserve room for SSD writes.

CPU Processing Can Slow Down Before Utilization Reaches 100%

In GitHub's experiment, the request rate sent to an application resembling production was held constant while a separate program increased CPU load. As utilization rose, the CPU time spent on each request increased. The example showing a 45.9% increase at approximately 78% utilization is a performance decline as headroom shrinks, before the CPU becomes completely saturated.1
One cause is operating frequency. On the Intel CPU tested, frequency was observed to fall as load increased. The article attributes this to changes in Turbo Boost under power and thermal constraints. Resource sharing within a physical core through Hyper-Threading also has an effect. For one particular test, the article also shows a decision to use 61% utilization as a guideline when the acceptable increase in CPU time is less than 40%.1
Another cause is queueing. If there is no capacity to process new work as soon as it arrives, it must wait for earlier work to finish. Bursts of arrivals and variation in processing times mean that waiting occurs even when average utilization is below 100%. Amazon Builders' Library likewise explains that high load increases contention and context switching, and that there is a point at which response times deteriorate sharply.4
Each calculation can take longer, and the wait before it starts can also grow. For an app affected by both, a configuration that pushes the CPU to its limit is not necessarily the fastest configuration.

What Does an 80% CPU Threshold Actually Mean?

A Google and Stanford paper from ISCA 2014 examines the relationship between load and response time in services such as search. Figure 8 shows conditions within a CPU utilization range of 65–85% where p0, the highest performance state, is needed to meet the response-time target, while the next state down, p1, exceeds that target. It is a practical example of losing the room to reduce performance even before utilization reaches 100%.5
The same paper's figures of “approximately 80% for search” and “approximately 60% for memkeyval” refer to request load as a percentage of peak load. That is a different axis from CPU utilization. They do not mean that every CPU loses capability once utilization exceeds 80%.5
In contrast, Jeff Poole's operational guidance at SREcon24 Americas is to keep utilization below 80% and consider below 50% for particularly latency-sensitive workloads. These are operational guidelines based on queueing theory, not physical limits specified by a CPU manufacturer.6

What does the CPU “80%” threshold measure?

GitHub CPU-time measurements and Google / Stanford results that distinguish CPU utilization from request load
The three bars show GitHub's (2024) increase in p50 CPU time versus the same low-load baseline. In the Google / Stanford ISCA 2014 paper, search at about 80% and KVS at about 60% in Fig. 6 refer to shares of peak request load. In Fig. 8, the search test at 65–85% CPU utilization required the highest p-state, p0; one step lower, p1, exceeded the latency target. SREcon24 guidance to stay generally below 80%, or below 50% for very latency-sensitive work, is queueing-based operational guidance, not a measured cliff shared by all CPUs.
For example, in an M/M/1 model with one service station and specific probabilistic assumptions about arrivals and service times, mean response time including waiting is R / S = 1 / (1 − ρ). Here, S is the mean service time per request and ρ is the utilization of that service station. At 50% utilization, mean response time is twice the mean service time; at 80%, it is five times; and at 90%, ten times. These are calculations from a theoretical model, not CPU measurements, but they explain why waiting grows rapidly as headroom shrinks.6
Set the actual target according to the response time you need. AWS gives target utilization of 50–70% as an example of leaving enough room for scaling to catch up.7 For workloads that prioritize the shortest response time, one approach is to begin comparing configurations at roughly 20–30% utilization during normal operation. This is the starting point for evaluation in this article, not an optimum shared by all CPUs. Measure uneven load across cores, peak response times, and the time required to add capacity to find the boundary for your own app.

RAM Headroom Also Reduces the Work of Creating Free Space

Even when data fits in RAM, the system still has to make room for the next write. In designs that move valid data out of older regions so those regions can be reused, less free space means more work spent copying. Performance depends not only on the speed of RAM itself but also on the CPU time and bandwidth available for the application's actual work.
In the RAMCloud example below, the “log region” is an area that holds application data by appending it in RAM. This is not a proposal to move monitoring log files into RAM. “Live data” means valid data that is still needed.28

RAM headroom also reduces reclamation work.

RAMCloud measurements: increasing log-region occupancy from 30% to 90% reduces write throughput from approximately 530MB/s to approximately 310MB/s, even when reclamation takes place only in DRAM
RAMCloud / FAST 2014, Fig. 11. The test varies live-data occupancy in a fixed 16 GB RAM log on a 24 GB host. No replicas (R=0), 1,000-byte objects, uniform random writes. Values are read from the source chart; the capacity blocks illustrate reclamation. The denominator is the 16 GB application region, not whole-host RAM utilization. This does not establish 30% as a universal optimum.
The RAMCloud paper from FAST 2014 includes an experiment directly comparing 30% and 90%. It allocates a 16GB in-memory log region on a server with 24GB of RAM and varies the proportion occupied by valid data. Even with replication disabled and only in-memory reclamation taking place, uniform random-write throughput fell from approximately 530MB/s at 30% to approximately 310MB/s at 90%. The values are approximate readings from the left axis of Figure 11.28
The denominator for 30% and 90% here is the application's 16GB region. The experiment holds log capacity constant and changes the amount of valid data. It does not measure total host memory utilization or the effect of adding RAM to the same app. The paper also reports smaller losses at lower workload intensity, so the amount of headroom needed depends on how demanding the workload is. The result shows that, before capacity is fully exhausted, the work of creating free space can interfere with the application's actual work.28

Constraining an App's Working Space Increases GC Costs

The heap used in Java and similar environments is the working space where an app places objects. GC reclaims objects that are no longer needed. When heap headroom is small, collection can happen more frequently or require more work, extending the execution time of the same app.

Heap headroom changes the time for the same work.

A curve comparing heap headroom and execution time across 22 workloads using the same G1 GC in a 2025 study
Blackburn et al., ASPLOS 2025, Fig. 1(a): 64 GB RAM, OpenJDK 21 G1, geometric mean of 22 DaCapo workloads. Eight points were read from the source chart and normalized to execution time at a 6× heap. The approximately 31% reduction compares 1.42× with 6×. Minimum heap is the smallest setting that completes five iterations with the reference GC; it is not physical RAM utilization.
An ASPLOS 2025 paper measures 22 DaCapo workloads using collectors including G1 in OpenJDK 21. Reading the G1 curve approximately and normalizing execution time at a heap size of six times the minimum to 1 gives about 1.45 at a small heap of approximately 1.42 times the minimum, about 1.22 at approximately 1.89 times, and about 1.07 at approximately 3.02 times. This is an example of the difference between the minimum space needed to run an app and the headroom needed to run it quickly.29
The experiment varies the heap limit on hardware with 64GB of RAM. The denominator on the horizontal axis is the minimum heap that can run each workload with the reference collector, not physical RAM utilization. Do not apply the same multipliers to apps without GC. Measure how GC time and response time change in your own runtime.

With the Same RAM, Heap and Cache Allocation Can Change Performance

Giving more memory to an app leaves less RAM for other work. A search engine also needs room for the OS to cache data stored on the SSD. Serving repeated reads from RAM can reduce the time spent waiting for SSD reads.

With the same RAM, allocation can make search faster.

A comparison of G1 heap limits of 90% and 50% in the 2026 FlexHeap paper: at 50%, search throughput doubles and p99 response time falls by 62%, while document-ingestion throughput falls by 8%
Kolokasis et al., FlexHeap, PLDI 2026, §3.1 / Fig. 2. Concurrent Wikipedia search and ingestion use the same DRAM budget, with swap disabled. The 90% and 50% values are the maximum JVM heap setting divided by available DRAM, not actual heap or cache usage or whole-server RAM utilization. Outcomes are the paper's ratios relative to the 90% setting. Weigh improved search against lower ingestion throughput and more full GCs.
The FlexHeap paper from PLDI 2026 runs Elasticsearch Wikipedia search and document ingestion concurrently under the same RAM budget. Changing G1's heap limit from 90% to 50% of available RAM preserves a larger OS cache, doubling search throughput and reducing p99 response time by 62%. Meanwhile, document-ingestion throughput falls by 8%, and full GC events increase from 1 to 54. Swap is disabled in the experiment.30
Here, full GC means collection and compaction across the entire heap. In G1, it is performed while the application is stopped.32 Do not judge the allocation solely by event counts. Consider pause times together with the measured results for both search and document ingestion.
The 50% figure is a configured heap limit. It does not mean half of the server's RAM is left unused. The OS cache and other uses can take advantage of the rest. Room to speed up search and room to ingest documents compete within the same capacity. Choosing priorities and measuring the allocation leads to a configuration suited to the workload.
For that reason, holding total host RAM utilization at a uniform 30% cannot be treated as the optimum. The required state is one in which normal data stays in memory, reclamation and GC have room to operate, and useful caches and the next increase in demand are also accommodated. Check whether reducing headroom is causing the system to spend more time reclaiming, copying, or rereading data.

Performance Falls Further When Required Data No Longer Fits in RAM

What matters for memory is whether the data needed for processing can remain in RAM. The collection of frequently used data is called the working set. When it no longer fits, the system must also reclaim pages, move them elsewhere, and read them back whenever they are needed.
The Infiniswap paper from NSDI 2017 runs TPC-C on VoltDB and varies the memory available to the container. It compares enough memory to retain the entire working set with conditions that retain only 75% or 50% and page to disk. Figure 1(a) reports the following values.2
Share of the Working Set That Can Be Held in RAMThroughputPerformance Relative to Holding the Entire Working Set
100%36.18 thousand TPS100%
75%6.619 thousand TPSApproximately 18.3%
50%1.542 thousand TPSApproximately 4.3%
Each value is the median of five runs on a single server. The final column is calculated from the source values. A 25% reduction in memory capacity led to an approximately 81.7% drop in performance. The 100% in this table means that all required data can be held in RAM, not the RAM utilization displayed by the OS.2
More recent research also addresses the processing burden caused by memory shortages. ScaleSwap, presented at FAST 2026, evaluates swap under heavy memory pressure, reading and writing 288GB using 128 cores, 96GB of RAM, and up to eight NVMe SSDs. In the Linux swap test with eight SSDs, the CPU utilization breakdown was 92.41% system and 0.29% user. This experiment compares swap designs rather than identifying an optimal RAM utilization level. It nevertheless shows that a CPU can look busy without spending much time on the application's actual work.8

SSD Reserve Capacity Also Translates into Write Performance

An SSD's NAND flash cannot simply overwrite an area that has already been written. It must move valid data and erase blocks containing data that is no longer needed to create space for subsequent writes. This cleanup is garbage collection, or GC. With less reserve capacity, application writes and cleanup work are more likely to compete.3
Samsung's 2019 white paper reports random-write performance on the 983 DCT NVMe SSD as additional reserve capacity, User OP, is varied. The queue depth is 32, meaning that up to 32 I/O requests are made available for concurrent processing.3
Additional User OPRandom-Write Performance
0%47 KIOPS
10%89 KIOPS
20%119 KIOPS
Increasing additional User OP from 0% to 20% raised sustained random-write performance by approximately 2.53×. KIOPS expresses the number of I/O operations per second in thousands. This is an example of why maximizing usable capacity and maximizing write performance do not necessarily lead to the same choice.3
User OP is additional reserve capacity used by the SSD controller, and it differs from the free space shown by df. The additional 0% configuration still has factory-provisioned reserve capacity. Nor can the 20% figure simply be reinterpreted as “leave 20% of the filesystem free.” The storage capacity visible from a VPS does not reveal the physical SSD's reserve capacity.
The D2FS paper from FAST 2025 isolates GC effects on a Samsung 970 Pro. In a test that fills 70% of a 256GB partition with files and then continues random writes, throughput on F2FS falls to one-fifth when its free sections run out and GC begins. SSD-internal GC, measured under separate conditions, causes a decline of up to 20%. This does not establish 70% storage occupancy as a limit shared by all SSDs. It measures how cleanup interferes with processing after free space for writes is exhausted.9

Use htop, free, and df to Check Your Server's Headroom

To connect the research to your own configuration, observe resource usage and application delays together. For CPU, check each core and process. For memory, check how much additional capacity can be used. For SSD, check both storage capacity and I/O waits.
bash
htop
free -h
df -h
Press q to exit htop after checking it. Use the table below as a guide, and observe not only normal operation but also periods when incoming data increases.101112
Display to CheckWhat the Number MeansWhat to Look for First
Each CPU at the top of htopUsage of each logical CPUWhether only some CPUs remain close to 100%
A process's CPU%The proportion of CPU time used by that processWhich processes consume the most CPU
RESThe amount of a process's data actually resident in RAMNormal usage and growth during busy periods
VIRTThe size of a process's virtual address spaceDo not treat the entire amount as physical RAM consumption
available in freeEstimated memory that can be used additionally without swappingWhether headroom remains during busy periods
Avail and Use% in dfFree filesystem capacity and the proportion usedWhether the destinations for data and logs are approaching full capacity
For example, if just one of eight logical CPUs is at 100% and the others are close to 0%, the overall average is approximately 12.5%. But if the process that handles incoming data or decisions is concentrated on that one CPU, there is no headroom for the critical work. You need to reconsider work distribution or per-core performance as well as the number of cores. This is a calculation example illustrating what an average can hide.
When using containers, processing can be delayed by a configured CPU limit even when the host has spare capacity. Check the limit and throttling records to distinguish insufficient hardware from a limit assigned to the app.27
The CPU% displayed by htop may use one logical CPU as 100%. Be aware of the difference from displays that treat the entire server as 100%. RES also includes shared pages, so adding up all the rows does not directly give total physical memory consumption.10 Linux load average includes not only tasks waiting to run on a CPU but also tasks in uninterruptible waits, such as I/O waits.13

For Memory, Check Allocation, Reclamation, and Read Times Too

Verify the earlier 8GB capacity plan against actual operation. Even if an app normally uses 4GB, its requirements may change after a long run or when incoming traffic increases. It must fit with that increase included. If a container has a memory limit, the app can only use up to that limit even when the host has additional headroom.
Distinguish Linux making use of memory for caches from the app lacking the memory it needs. A low free value does not immediately indicate a shortage if reusable cache remains. Start with available. It estimates how much additional memory can be used without swapping, taking into account the cache needed for the OS to operate properly.1115
bash
free -h
vmstat 1 10
cat /proc/pressure/memory
The si and so fields in vmstat show data read back from swap and written out to swap. The first row includes averages since boot, so use the second and subsequent rows to observe current activity. Check whether reads and writes are continuing, rather than merely whether data remains in swap.16
PSI measures time during which processing stalls because of resource shortages. In /proc/pressure/memory, some avg10 is the proportion of time over the last 10 seconds during which at least some tasks were stalled by memory pressure. It is a different figure from memory utilization. Looking at it alongside application latency helps determine whether insufficient capacity is interfering with actual work.17
The checks continue even when there is no swap activity. First, identify the app's implementation language, runtime, and startup configuration to determine whether GC and heap-limit tuning apply. For an app with GC, use existing GC logs or monitoring to inspect CPU time spent on collection, pause durations, collection counts, and the amount of data remaining after collection. For search engines and databases, also compare whether enlarging the heap increases read I/O or cache misses. OS-level PSI alone cannot measure all the GC activity inside an app.2930
Being able to reclaim cache does not mean that reclamation is free. In the Hermes paper from Middleware 2021, average memory-allocation latency increased by 10.8% under conditions with little free memory that required file-cache reclamation. This measures allocation operations, not the application's overall response time. The paper explains that this reclamation path does not necessarily involve swap.31

For Disks, Separate Free Capacity from I/O Congestion

The Use% field in df -h shows the proportion of storage capacity occupied. Concentrated I/O can cause waits even when free capacity remains, while a full destination cannot accept new data even if I/O activity is low. Check the mount points actually used by the app, database, and logs. For workloads that create large numbers of small files, also check the remaining inodes used for file management.12
bash
df -h
df -i
iostat -xz -y 1 10
cat /proc/pressure/io
In iostat, look at r_await and w_await, the average times for reads and writes to complete, and aqu-sz, the average queue length. If these increase above normal and application response times worsen during the same period, that is a clue that I/O congestion may be involved.18
Modern SSDs process I/O in parallel, so a %util reading of 100% alone does not establish that the device has reached its performance limit.18 Combine storage capacity, wait times, queue length, and application delays. When sizing storage, allow for future growth, logs, updates, and temporary work as well as existing data.

A VPS Specification Sheet Does Not Show Every Performance Condition

Even with the same 4 vCPUs and 16GB of RAM, application behavior varies with CPU generation, per-core performance, memory bandwidth, storage, and how the physical server is shared. Some general-purpose VPS configurations prioritize price, hosting density, ease of management, or the durability of stored data. Check whether that design fits the performance characteristics you care about.1419
A cloud infrastructure study presented at OSDI 2026 reports a problem in environments that assign more virtual CPUs than physical CPUs: the handling of idle virtual CPUs can make other work on the same physical server wait. Low utilization visible inside your VPS alone does not tell you how much headroom exists on the physical host.20
The st field in vmstat is the percentage of time when a virtual machine wanted to run but the host did not allocate a physical CPU to it. However, a value of 0 does not prove that all shared resources are free of contention.16
Bare metal is a strong option if you want to reduce contention within the physical server and pursue performance through both hardware and configuration. Exclusive use of the physical machine avoids competition with other users on the same host for CPU, memory, and local disk resources.
Reducing contention through exclusive use is a substantial benefit, but bare metal is not always the fastest simply because it is bare metal. Consider CPU generation, storage, and the route to the destination together. A newer, high-performance VPS may be faster than an older bare-metal server for particular tasks. The criterion is whether exclusive use translates into better response times and stability for the actual app.1921

Separate Data You Need Immediately from Data You Keep Long Term

An app receives data, makes a decision, and sends a request. If it saves every log entry to remote storage and waits for completion just before sending, that communication and storage delay also becomes part of its response time.
You can choose data locations according to how the data is used. The following is one example for application design.

Separate fast processing from lasting storage.

Example architecture: process data in the production server's RAM and local NVMe, store logs and backups in R2 or similar storage, and restore them to another server
An example for data that may be saved asynchronously. Transactions, orders and other records that require durability must wait for writes according to those requirements. Backups in R2 or another store do not provide automatic failover by themselves. After restoration, reconcile and resynchronize the state the app needs, such as orders, balances, and network state, and prevent duplicate submissions before resuming. Choose backup frequency, acceptable data loss, recovery time and failover design separately.
Role of the DataCandidate LocationReason for the Choice
State repeatedly used for immediate decisionsMemoryHold the data needed for immediate reference
Working data requiring fast reads and writesLocal NVMeHandle it without communication with a remote storage destination
Logs and history for later analysisObject storage such as R2Retain it long term outside the production server
Backups used to restore the environmentA destination separate from the production serverKeep the data retrievable even if the original server becomes unavailable
Committed records that cannot be lostA persistence and replication mechanism that meets the requirementsCommit processing only after confirming the required storage completion
Cloudflare R2 is object storage accessible from locations around the world. It stores received data across multiple data centers within a geographic region to provide durability. A successful write response is returned after the data has been persisted.2223
For data whose storage can be handed to a separate process, transferring it in batches can avoid making each decision wait for remote storage to finish. Whether it is acceptable to lose data before a transfer completes depends on the use case. Storage still requires CPU, memory, I/O, and network capacity, so leave room for that work as well.

Choose Redundancy Based on How Much You Can Lose and How Quickly You Need to Recover

You do not have to build a large distributed system from the outset. You can begin by storing backups outside the production server and making sure they can be restored to a different server.
Decide how much data loss is acceptable and how many minutes or hours you can wait for recovery. The former is the recovery point objective, RPO, and the latter is the recovery time objective, RTO. AWS similarly uses these objectives to distinguish among restoring from backups, switching to standby servers, and operating across multiple sites.24
For example, even if backups are scheduled every 5 minutes, you can restore only to the point in time represented by the last successful backup. Delays or failures in capture or transfer can extend the period of potential data loss. Check not only the backup frequency but also the point in time to which the backup can restore the system. For databases, use supported backup facilities to preserve consistency, and verify restoration in a separate environment.
If you also need shorter downtime, prepare a standby server on a different physical host and add a mechanism to transfer state and switch over. An app that sends orders also needs controls to prevent the same order from being sent twice during switchover. Merely placing data in R2 does not switch the application over.
After restoration, reconcile the saved state with the current state in the destination system, and catch up on the required updates before resuming. Measure recovery time through completion of the necessary state synchronization and the point at which decisions and sending can resume, not just until the process starts.
Automate backup creation and restoration checks. Then add a standby system according to the downtime you need to achieve. This sequence lets you expand preparedness while keeping operational complexity under control.

Why ERPC's High-Performance VPS Focuses on Performance

ERPC's high-performance VPS focuses on running applications quickly. It brings together CPU, memory, and storage configurations with operational settings. For apps that use Solana data, supported locations also offer the option of placing the app close to the data delivery infrastructure.1419
In storage, replication consumes CPU and I/O, and waiting for synchronization can also affect response times. ERPC has published a design approach that prioritizes execution-environment performance, including the overhead of redundancy, and combines it with off-server backups for data protection. Storage and restoration through SLV Backup and ERPC Global Storage are mechanisms that support this approach.25
Similarly, you can combine the environment with storage destinations such as R2 according to the app's requirements. Design the production server for fast execution and the mechanisms for retaining and restoring data according to their respective roles.
When comparing plans, check configurations in the ERPC VPS overview, along with the scope of standard data protection, the backup settings users must provide, and the costs of storage and restoration. Evaluate both the server price and the operating costs of the protection you need.
For professionals to whom a moment's difference matters, access to CPU when needed, freedom from waits caused by memory shortages, and storage operations that do not interrupt decisions are important server-selection criteria. ERPC pursues the configurations and operations that support those requirements.

Make One Adjustment Based on Observations, Then Verify the Result

Once you have chosen an initial configuration, look at what happens when the app slows down. Match uneven load across CPU cores, memory available, GC, reclamation and cache behavior, and SSD free capacity and I/O waits against application latency at the same time. The following table provides a path from observations to candidate improvements.

Observe, adjust one thing, and verify the result.

A process for choosing an adjustment from CPU, memory, and SSD observations, then verifying response time and throughput under the same conditions
Compare the same inputs and arrival bursts, request count, test duration and measurement start and end points. Lower utilization alone is not success. Check for shorter p95 / p99, maintained or increased on-time successes, and no regression in errors or waits. Distinguish a successful send-API response from the final processing outcome at the destination, and measure the effect at consistent boundaries.
Observed ConditionFirst Adjustment to CompareMetrics for Verifying Improvement
Processing queues and response times increase during periods of high overall CPU loadReschedule nonurgent batch jobs. If the work can run in parallel, also compare a configuration with more CPU headroomLoad on each core, processing queues, and application p95 and p99
Overall CPU utilization is low, but one core reaches its limitReview where work can be distributed. If it cannot be distributed, compare per-core performanceLoad on the previously saturated core and completion time for that work
Declining available, swap reads and writes, or rising memory PSI coincide with latencyReduce unnecessary retention. Provide enough RAM and a sufficient container limit to hold the required dataSwap reads and writes (si and so), memory PSI, and application p95 and p99
There is no swap, but GC time or pauses increase as the app approaches the heap limitReduce retained data or enlarge the heap while leaving room for the OS and caches. If that is insufficient, compare RAM capacities tooGC CPU time, pause durations, and counts, together with application p95 and p99
Enlarging the heap increases search read I/O and response timeSlightly lower the heap limit and compare the room available to the OS cacheSearch p99 and throughput, read I/O, and effects on other work such as document ingestion
Growing logs or temporary files exhaust free SSD capacityAdjust retention, off-server storage, and the placement of temporary work to provide the missing working spaceFree capacity remaining during processing and whether write errors occur
The SSD has free capacity, but I/O waits and queues grow and the app slows downSeparate concurrent backups or aggregation jobs. Compare storage performance if necessaryr_await, w_await, aqu-sz, and application p95 and p99
Compare before and after an adjustment using the same app, the same incoming-data conditions, and comparable load. Match not only average incoming traffic but also short bursts and types of work, and record observation duration, event counts, and load conditions. Changing one thing at a time makes it possible to judge which adjustment helped. Check not only normal averages but also periods of increased data, backups, and long-running operation.
For an app that consumes a stream, an initial measurement example is to start when the app receives an incoming event and end when it receives the destination API's response. Recording the processing start time as well lets you separate queueing inside the app. Keep the start and end points fixed before and after the comparison, and do not mix this measurement with one that stops when the request is merely handed to the sending API. This interval excludes delivery latency before reception and any processing that continues after the destination API responds, so record those as separate intervals when needed.
If no measurements exist, add application-side records for reception time, processing start time, send-response time, and API success or failure. For each observation interval, align the received-event count, p95 and p99 processing times, successful operations completed within the deadline, and error count with resource monitoring at the same timestamps. Success in this example means a success response from the specified sending API; track the final processing outcome in the destination system separately. Compare failure and timeout counts as well, so they do not disappear behind a timing distribution that includes only successes. Separately check whether data is already delayed when received, using available information such as source timestamps or progress.
One comparison method is to replay the same recorded data at the same rate and concurrency, using the same test environment for the destination. If only production before-and-after comparisons are possible, also record incoming volume, data size, concurrency, and simultaneous work such as backups, then compare intervals with similar conditions. If the conditions differ, do not attribute the entire observed difference to the configuration change alone.
For example, even if overall CPU utilization is low, high load on the core handling reception may rise at the same time as queueing inside the app. The first candidate adjustment is then to move nonurgent aggregation to another time. If queueing and p99 decrease under the same input conditions while the number of operations completed within the deadline is maintained, the adjustment serves its purpose. This is a hypothetical example of a diagnostic process, not a measured improvement for a particular bot.
Amazon uses the term goodput for work completed without errors and within a time that is useful to the user.4 Lowering CPU utilization by accepting less work and dropping required processing does not achieve the goal. Check whether, for the same incoming work, slower responses improve and the amount of work completed within the required time is maintained or increased.
The target is a state in which required data fits in RAM, the CPU and SSD can accept the next task, and application response times hold up during busy periods. Create that state through work distribution, data retention, and choices of capacity and hardware. Finding the headroom your measurements show you need leads to server selection suited to your app.

Appendix: Ask an AI Agent to Diagnose Your Current Headroom

You can give the following prompt to an AI agent that can access your server. It is intended to observe the current state before making actual configuration changes.
text
Diagnose whether this Linux server has enough headroom
to run the current application with low latency.

Begin with read-only observation, without changing settings or running load tests.
Do not retrieve or display private keys, API keys, or secret environment-variable values.

Check overall CPU utilization and each logical CPU, concentration of load by process,
memory available, current swap reads and writes,
capacity and inodes at data and log destinations, I/O completion times, and queues.
For apps that use GC, also check collection time and pause time from existing GC logs
and monitoring, and report the heap limit, resident memory, and OS cache separately.
Do not conclude that GC, reclamation, or insufficient caching has no cost merely because there is no swap.
Check PSI and virtual-machine steal time if available.
If containers or similar environments have individual CPU or memory limits, check those limits too.

Correlate the observations with application processing latency and queues during the same period.
State the observation date and time, duration, and load conditions, and label uncollected metrics as unverified.
Do not conclude that peak-period capacity is sufficient from a brief observation during normal operation alone.

Do not apply a uniform 20–30% threshold to every resource.
Evaluate waits and shortages separately for CPU, memory, and disk.
For added capacity, separated processing, external storage, or a server change,
provide the observational basis and explain why the change should help.
Do not change settings, restart services, make purchases, or migrate anything as part of this diagnosis.
Tools such as htop and iostat may not be installed in every environment. iostat is part of sysstat. If some metrics are unavailable, make that limitation explicit when observing the system.

References

[1] GitHub, Breaking down CPU speed: How utilization impacts performance. November 25, 2024. Intel CPU with Hyper-Threading enabled; a constant request rate to the app. Median CPU processing time is compared with a low-load baseline. The 45.9% value is printed in the figure; the corresponding utilization of approximately 78% is an approximate reading from the horizontal axis. The same findings were also presented at SREcon25 EMEA. https://github.blog/engineering/architecture-optimization/breaking-down-cpu-speed-how-utilization-impacts-performance/ https://www.usenix.org/conference/srecon25emea/presentation/strikos
[2] Gu et al., Efficient Memory Disaggregation with Infiniswap. NSDI 2017. Figure 1(a), paper p. 650; conditions in Sections 2.2 and 7.2.1. Measurements of capacity constraints and disk paging for VoltDB/TPC-C. The values of 36.18, 6.619, and 1.542 thousand TPS are printed in the figure; 81.7% and similar values are calculated from them. https://www.usenix.org/system/files/conference/nsdi17/nsdi17-gu.pdf
[3] Samsung, Over-Provisioning Benefits for Samsung Data Center SSDs. 2019. Figure 4, PDF p. 3. 983 DCT, random writes at QD32. The values of 47, 89, and 119 KIOPS are printed in the figure. User OP is additional internal SSD reserve capacity, not the percentage of free space in a filesystem. https://download.semiconductor.samsung.com/resources/white-paper/S190311-SAMSUNG-Memory-Over-Provisioning-White-paper.pdf
[4] Amazon Builders' Library, Using load shedding to avoid overload. December 5, 2019. Overload, contention, and goodput. https://aws.amazon.com/builders-library/using-load-shedding-to-avoid-overload/
[5] Lo et al., Towards Energy Proportionality for Large-Scale Latency-Critical Workloads. ISCA 2014. Figure 8 concerns CPU utilization and SLOs, a different metric from peak load in Figure 6 and other figures. https://csl.stanford.edu/~christos/publications/2014.pegasus.isca.pdf
[6] Jeff Poole, System Performance and Queuing Theory - Concepts and Application. SREcon24 Americas. The 80% and 50% figures on PDF p. 55 are operational guidelines. The M/M/1 response times are theoretical values based on assumptions. https://www.usenix.org/system/files/srecon24americas_slides-poole.pdf https://www.usenix.org/conference/srecon24americas/presentation/poole
[7] AWS Well-Architected Framework, REL07-BP03. The 50–70% range is an example target that provides room for delays in adding capacity. https://docs.aws.amazon.com/wellarchitected/latest/framework/rel07-bp03.html
[8] Ahn et al., ScaleSwap: A Scalable OS Swap System for All-Flash Swap Arrays. FAST 2026. Sections 5.1–5.2, Table 2, paper p. 371. CPU time breakdown for Linux swap under heavy memory pressure, and comparison of swap designs. https://www.usenix.org/system/files/fast26-ahn.pdf
[9] Kim et al., D2FS: Device-Driven Filesystem Garbage Collection. FAST 2025. Figure 1 and paper p. 338. Throughput falls to one-fifth with F2FS GC and by up to 20% with device GC. Separate experiments on a Samsung 970 Pro under different conditions. https://www.usenix.org/system/files/fast25-kim-juwon.pdf https://www.usenix.org/conference/fast25/presentation/kim-juwon
[10] Official htop manual. CPU%, RES, VIRT, and treatment of shared pages. https://github.com/htop-dev/htop/blob/main/htop.1.in
[11] procps-ng, official free manual. The distinction between available and free. https://github.com/procps-ng/procps/blob/master/man/free.1
[12] GNU coreutils, df manual. Checking capacity, inodes, and the target filesystem. The GNU manual as hosted on man7. https://man7.org/linux/man-pages/man1/df.1.html
[13] Linux kernel, kernel/sched/loadavg.c. Accounting for runnable tasks and tasks in uninterruptible waits. https://github.com/torvalds/linux/blob/master/kernel/sched/loadavg.c
[14] ERPC, VPS product page and FAQ. Checked November 25, 2026. Capacity selection and current service policies. https://erpc.global/en/vps/
[15] Linux Kernel Documentation, The /proc Filesystem. Definitions of MemAvailable, caches, and related fields. https://docs.kernel.org/filesystems/proc.html
[16] procps-ng, vmstat manual. The project's manual as hosted on man7. Definitions of si, so, st, and observation intervals. https://man7.org/linux/man-pages/man8/vmstat.8.html
[17] Linux Kernel Documentation, PSI - Pressure Stall Information. Stalls caused by resource contention and how to observe them. https://docs.kernel.org/accounting/psi.html
[18] sysstat, official iostat manual. Definitions of await, aqu-sz, and %util, and caveats when applying them to SSDs. https://github.com/sysstat/sysstat/blob/master/man/iostat.in
[19] ERPC, Choosing a VPS or Bare Metal for Solana: CPU, UDP, and Network Performance Explained Through Measurements. November 10, 2026. https://erpc.global/en/news/2026/11/10/erpc-solana-vps-bare-metal-performance-20261110/
[20] Wang et al., What Are You (M)Waiting For: The Hidden Cost of Idle in the Hyperscale Cloud. OSDI 2026. A study of scheduling in environments with virtual CPU overcommitment. https://www.usenix.org/conference/osdi26/presentation/wang-yun
[21] AWS Well-Architected, High Performance Computing Lens, Compute architecture. Workload-specific selection based on measurements, and comparisons between virtualization and bare metal. https://docs.aws.amazon.com/wellarchitected/latest/high-performance-computing-lens/compute-architecture.html
[22] Cloudflare, How R2 works. Updated October 19, 2026. R2 access paths and writes. https://developers.cloudflare.com/r2/how-r2-works/
[23] Cloudflare, R2 Durability. Updated April 21, 2026. Storage across multiple data centers, persistence and success responses, and the distinction between durability and availability. https://developers.cloudflare.com/r2/reference/durability/
[24] AWS Well-Architected Framework, REL13-BP02. Choosing backups, standby systems, and other options according to recovery objectives. https://docs.aws.amazon.com/wellarchitected/latest/framework/rel_planning_for_recovery_disaster_recovery.html
[25] ERPC, High-Performance VPS Restock and Design Approach. March 28, 2026. Combining an execution environment that prioritizes performance with external backups. https://erpc.global/en/news/2026/03/28/erpc-vps-restock-fra-ams-nyc-202603/
[26] AWS Database Blog, Shrink storage volumes for your RDS databases and optimize your infrastructure costs. December 16, 2024. The “Rightsizing RDS database instance storage” section. RDS capacity-selection guidance recommending at least 20% free space and working space for operations such as table rebuilds. The 500GB in this article is calculated from its own planning example; the source's minimum-capacity formula for shrinking storage is not used. https://aws.amazon.com/blogs/database/shrink-storage-volumes-for-your-rds-databases-and-optimize-your-infrastructure-costs/
[27] Linux Kernel Documentation, Control Group v2. The CPU Interface Files section. CPU time limits through cpu.max and throttling records in cpu.stat. https://docs.kernel.org/admin-guide/cgroup-v2.html
[28] Stephen M. Rumble, Ankita Kejriwal, John Ousterhout, Log-structured Memory for DRAM-based Storage, FAST 2014. The R=0, Uniform series in Figure 11. A comparison of live-data occupancy from 30–90% within a 16GB log region. MB/s values are read approximately from the left axis. Figure 10 uses different workload conditions and is not mixed into this figure's series. https://www.scs.stanford.edu/~rumble/papers/fast14-paper_rumble.pdf
[29] Stephen M. Blackburn et al., Rethinking Java Performance Analysis, ASPLOS 2025. Figure 1(a), the geometric mean of 22 DaCapo workloads using G1 in OpenJDK 21. Heap multiples and execution times are read approximately from the original figure, and the figure here renormalizes execution time at a 6× heap to 1. This is not an experiment in physical RAM utilization. https://www.dacapobench.org/assets/pdf/dacapo-asplos-2025-with-appendix.pdf
[30] Iacovos G. Kolokasis et al., FlexHeap: Dynamic I/O-Aware Heap Resizing for Managed Applications, PLDI 2026, DOI:10.1145/3808247. G1-90 and G1-50 in §3.1 and Figures 1–2, and the experimental methodology in §5. The 90% and 50% values mean maximum JVM heap divided by available DRAM. The mixed workload combines search and document ingestion, with swap disabled. Values from separate experiments in §6 are not mixed in. https://zenodo.org/records/20700166 https://zenodo.org/records/20700166/files/pldi26main-p2-p-a78af7e207-176545_176546-final.pdf
[31] Aidi Pi et al., Memory at Your Service: Fast Memory Allocation for Latency-critical Services, Middleware 2021, DOI:10.1145/3464298.3493394. §2.2 and Figure 3. An experiment allocating a total of 1GB in 1KB increments on a machine with 128GB of RAM. The 10.8% increase in mean allocation latency under file-cache pressure is a value stated in the text. It is not presented as an experiment that confirmed zero swap, or as a comparison of 30% and 90%. https://par.nsf.gov/servlets/purl/10324769
[32] Oracle, Java Platform, Standard Edition HotSpot Virtual Machine Garbage Collection Tuning Guide, Garbage-First (G1) Garbage Collector. Full GC, application pauses, and whole-heap compaction in the GC cycle section. https://docs.oracle.com/en/java/javase/21/gctuning/garbage-first-g1-garbage-collector1.html