SERVER1 / Search

What are you looking for?

Search services, pages and articles. Results appear after 2 characters.

View all articles
VPS & Cloud

Disk I/O or CPU? Investigating a slow VPS request

Compare CPU work, storage waits and application dependencies. Build a small evidence record before changing VPS capacity or worker settings.

SERVER1.GE4 min read
Disk I/O or CPU? Investigating a slow VPS request

A request is slow, but the CPU chart looks quiet. At another moment the CPU is busy and visitors notice nothing unusual. These observations explain why a single utilisation percentage cannot choose your next VPS plan. The useful question is where a particular request spends its time: computing, waiting for storage, waiting inside the database, or waiting for another service.

Consider an illustrative shop where product search occasionally takes several seconds while ordinary pages remain responsive. Neither insufficient CPU nor a storage problem has been established. Start with competing explanations and evidence that could separate them. Existing orders should keep working while you investigate; generating extra traffic is not a prerequisite.

Explanation A: the processor cannot finish the work quickly enough

This explanation becomes more plausible when longer requests coincide with active computation and a growing queue of work. Look beyond the overall average. One saturated core can disappear inside a low average across several cores. Separate visitor requests from background tasks as well. Image processing may consume capacity even though the shop code has not changed.

The same chart can support a different operational decision. Repeated calculations, an inefficient query or unexpected automated traffic may create avoidable work. More CPU might soften the symptom without removing its cause. Record the endpoint category, frequency and conditions of the slowdown. Exclude passwords, cookies and customer search terms from the investigation notes.

Explanation B: a process is waiting for data

Free disk capacity and storage response time answer different questions. Plenty of unused space does not tell you how long a small read or write takes. Compare request duration with available storage latency and queue observations, then note backups or imports running at the same time. First establish which monitoring tools your environment actually provides and what access you have.

The Linux PSI documentation describes observing time lost to CPU, memory and I/O pressure. Where available, this provides another signal rather than an automatic diagnosis. A high iowait figure alone does not prove a faulty disk or provider fault. You still need a time relationship between the application, its process and the relevant storage activity.

A third explanation may change the comparison

Both initial explanations can be incomplete. Database locks, excessive queries or a slow external API can delay the visitor while the machine has spare capacity. Examine existing, appropriately aggregated application timings and database statistics. Do not enable intrusive production profiling or collect private request contents simply to make a diagnostic graph more detailed.

ObservationNext useful check
Slow search, fast ordinary pagesThe search operation and its dependencies
Delays during backup activityTiming overlap and storage queues
High CPU in one processIts workload, repetition and waiting work

Build a small decision record

Collect several naturally occurring slow and fast examples. Include the timezone, endpoint category, duration, broad workload level and background activity. A repeatable relationship is more useful than one dramatic screenshot. This is observation, not a load test, and it should not create customer records or expose individual customer behaviour.

Next propose one limited change and a validation method. If you consider moving a background task to a quieter period, compare similar requests and errors after that change. Avoid changing worker counts, cache behaviour and capacity simultaneously: you would lose the ability to explain the result. Preserve a return path to the current configuration and check the workflows that already work.

There is no universal CPU threshold at which every application should upgrade. Decide what response time the business needs, which requests matter and how often the problem occurs. A rare administrative export has a different consequence from a delayed checkout, even when their raw durations match. Document the consequence alongside the technical evidence.

Use our Linux VPS monitoring guide for the initial measurements. If the queue points towards PHP workers, continue with PHP-FPM resource planning. When discussing an unmanaged VPS, share the evidence and expected workload so the recommendation addresses capacity and management responsibilities together.

SERVER1.GE

Not sure which infrastructure fits this workload?

Tell us what you run, your expected traffic and current setup. We will help you narrow down the right option.

Relevant services
Choose by workload, not by habit.

Use the article context and your actual resource needs to compare the recommended options.