Sub topic 11
Diagnosing Degraded Performance
This chapter assumes you can open Task Manager, Event Viewer and an elevated Command Prompt. You should also know the basic roles of RAM, storage and the CPU. It builds on the earlier chapters on monitoring tools, services and memory, and puts them into one diagnostic routine.
What "slow" means
Users say "the computer is slow" for many different faults. Your job is to turn that complaint into a measurable symptom and then find the resource that is the bottleneck. A bottleneck is the one component that is fully used while the others wait on it.
The A+ exam gives you a symptom and asks for the most likely cause or the best next step. A good routine is to follow the CompTIA methodology. Identify the problem, establish a theory, test it, make a plan, verify, and document.
Start by asking three questions:
- When did it start? A change such as an update, a new driver or a new program is a strong clue.
- Is it slow all the time, or only at startup, only in one program, or only after hours of use?
- Is it slow for every user, or only for one profile?
Find the saturated resource
Open Task Manager and check the Performance tab. Each resource tells a different story.
| Resource | Healthy | Warning sign | Common causes |
|---|---|---|---|
| CPU | Below about 70% when idle or lightly used | Sustained near 100% | Runaway process, malware, a Windows Update scan, a bad driver |
| Memory | Free memory available, little paging | In use near 100%, high "committed" value | Memory leak, too many startup programs, too little RAM |
| Disk | Active time low at idle | Sustained 100% active time with long response times | Failing drive, hard drive running a heavy workload, antivirus scan, low free space |
| Network | Matches expected traffic | High use with no user activity | Background updates, cloud sync, malware |
Then use the Processes tab and sort by each column to see which program is responsible. For deeper detail, use Resource Monitor (resmon). Its Disk tab shows which files a process is reading, and its Memory tab shows hard faults per second. A hard fault happens when Windows must read a page from the paging file on disk because it is not in RAM. Many hard faults mean the system is short of memory.
High CPU use
When one process holds the CPU, first decide whether it is expected. MsMpEng.exe (Windows Defender) and TiWorker.exe (Windows Update) often cause short, heavy use that ends on its own. A process with an unfamiliar name, or one that stays high for hours, needs investigation.
Steps to try, from least to most disruptive:
- Wait for a scan or update to finish if the cause is known.
- End the task in Task Manager if the program is unresponsive.
- Check for a pending restart or a stuck update.
- Run a malware scan if the process looks suspicious.
- Update or roll back the driver if the process is
Systemor an interrupt-related item.
High memory use and paging
When RAM fills, Windows moves data to the paging file (virtual memory). The disk is far slower than RAM, so the whole system slows. Signs include a "Your computer is low on memory" warning, rising hard faults, and a disk that is busy even though the user is not saving files.
A memory leak is a program that keeps requesting memory and never gives it back. Watch the process in Task Manager. If its memory grows over time and does not fall when you use it less, it is probably leaking. Restart the program as a short-term fix, then look for an update from the vendor.
Longer-term options are closing unneeded programs, reducing startup items, or adding RAM. Increasing the paging file helps with errors but does not make the system faster.
High disk use
A disk at 100% active time makes everything freeze, including the mouse and menus. Possible causes:
- A hard disk drive (HDD) under heavy random reads, such as indexing, an antivirus scan or a large update.
- A failing drive. Look for clicking sounds, very slow file copies, or errors in Event Viewer from the
diskorNtfssources. - A drive that is almost full. Windows needs free space for temporary files and paging.
- Excessive paging from low memory.
Check the drive's health with chkdsk and the manufacturer's tool or SMART status. Then defragment an HDD (never an SSD) or run Disk Cleanup to free space. If the drive reports errors, back up the data first and replace the drive.
Slow startup
A slow boot or sign-in usually comes from too many programs launching at once. In Task Manager, open the Startup apps tab (Startup in older versions). The Startup impact column rates each item as Low, Medium or High. Disable the high-impact items that the user does not need at sign-in. This does not uninstall them.
Also check services. A service set to start automatically that waits for a missing resource can delay boot by its timeout. This command lists automatic services that are not running:
Get-Service | Where-Object { $_.StartType -eq 'Automatic' -and $_.Status -ne 'Running' } | Select-Object Name, DisplayName, StatusSome automatic services are delayed start or trigger start by design, so a stopped service is not always a fault. Cross-check the result with Event Viewer. Event ID 7000 and 7009 in the System log indicate a service that failed to start or timed out.
If the slowness occurs only at sign-in for one account, suspect a corrupt or oversized profile. Test by signing in with a new local account. If the new account is fast, the cause is in the old profile and not the system.
Use logs to find the pattern
Task Manager shows the present. Event Viewer shows the past. This command lists recent application errors, which can reveal a program that fails and restarts repeatedly and so consumes CPU:
Get-WinEvent -FilterHashtable @{ LogName = 'Application'; Level = 2; StartTime = (Get-Date).AddDays(-1) } | Select-Object -First 10 TimeCreated, ProviderName, Id, MessageFor a long-term view, use Performance Monitor (perfmon). Add counters such as % Processor Time, Available MBytes, and % Disk Time, and record a data collector set during the slow period. A baseline taken when the system was healthy lets you compare numbers instead of guessing.
Other causes to rule out
- Malware. Unexplained high CPU, network use, browser redirects or disabled security tools point to malware. Isolate the machine and scan with an updated tool.
- Overheating. A hot CPU lowers its speed to protect itself (thermal throttling). Check fan noise, dust and vent blockage.
- Power plan. A "Power saver" plan can limit CPU speed. Switch to Balanced.
- Visual effects. On very old hardware, reduce animations in System Properties, Performance Options.
- Damaged system files. Run
sfc /scannow, thenDISM /Online /Cleanup-Image /RestoreHealthif it reports unfixable files. - Network. If only web pages or shared files are slow, test other devices on the same network before changing Windows settings.
Worked example
A user says her laptop became slow last week. Task Manager shows disk at 100% and memory at 92%. Resource Monitor shows high hard faults per second. The Startup tab lists nine high-impact items, and a new cloud-sync tool was installed recently.
- Theory: low memory is causing heavy paging, and the sync tool and the startup items are the load.
- Test: disable the sync tool at startup and restart. Disk use falls to 15% after boot.
- Plan: keep the tool disabled, remove unneeded startup items, and recommend a RAM upgrade.
- Verify: the laptop boots in less time and stays responsive.
- Document: record the change and the cause in the ticket.
Exercise
A technician finds a workstation at 100% disk active time. Resource Monitor shows very high hard faults per second and memory use near 95%. Which action best addresses the root cause?
Show answer
Reduce memory pressure by closing or disabling memory-heavy startup programs and, if the load is normal for the user, add RAM. The disk activity is a symptom of paging caused by low memory, so replacing the drive or defragmenting would not fix the cause.
Exercise
Only one user's account is slow at sign-in. Other accounts on the same PC are fast. What is the most likely cause and the first test?
Show answer
A corrupt or oversized user profile. Sign in with a newly created account to confirm that the system is healthy, then repair or rebuild the original profile and migrate the user's data.