154 articles
Knowledge Base
Performance
154 articles in the Performance category · page 2 of 7.
- LiteSpeed Enterprise vs OpenLiteSpeed: which edition your server needs LiteSpeed Enterprise reads Apache config and .htaccess live, OpenLiteSpeed does not. How to tell which edition is running, verify LSAPI and LSCache, and choose correctly on cPanel/WHM.
- Reducing TTFB on WordPress: the server, cache and query layers A reduction guide, not a measurement guide. Work the layers in the order that pays: page cache hit ratio first, then connection cost, PHP-FPM sizing, OPcache, object cache, and finally the SQL that survives all of it.
- Inode exhaustion on cPanel: "No space left on device" with free disk Triage runbook for inode exhaustion on a cPanel server: read df -i correctly, walk down to the directory holding millions of files, and clear PHP sessions, Maildir, Exim spool and cache trees without hanging the box.
- WP Super Cache: how it serves a page, and when it stops being enough How WP Super Cache answers a request in Expert and Simple mode, the settings that matter, how to prove PHP is bypassed on a hit, and the four signals that mean you have outgrown it.
- Benchmarking block storage with fio: real IOPS, throughput and tail latency How to benchmark block storage with fio on Linux — choosing the right job file for random IOPS, sequential throughput or fsync latency, bypassing the page cache with direct=1, preconditioning SSDs, and reading clat percentiles correctly.
- Redis memory fragmentation: reading INFO memory and using activedefrag How to tell real Redis memory fragmentation apart from swapping, copy-on-write during BGSAVE, and client buffer growth, then roll out activedefrag safely or fail over and restart instead.
- Scripting nginx with njs: js_import, js_set, and js_content for request-time logic Install the nginx njs JavaScript module, then use js_import, js_set, and js_content to validate a signed token, compute a cache key, and pick an upstream at the edge — plus the limits njs will not cross.
- Tune NIC IRQ affinity and RSS queues on a busy Linux server Prove that one CPU is absorbing every network interrupt, then fix it: size RSS queues with ethtool -L, pin queue IRQs with smp_affinity_list, keep irqbalance out of the way, and use RPS when the NIC has a single queue.
- Enable HTTP/3 (QUIC) on nginx: build check, listen directives, Alt-Svc, and verification A working nginx HTTP/3 setup: confirm your build has the v3 module, pair listen 443 quic reuseport with listen 443 ssl, send the Alt-Svc header browsers need, open UDP 443, and verify a real QUIC connection with curl.
- Allocate explicit huge pages for PostgreSQL shared_buffers on Linux Size vm.nr_hugepages from postgres -C shared_memory_size_in_huge_pages instead of guessing, choose huge_pages = on or try deliberately, grant the right permissions, and confirm from /proc/meminfo and the postmaster status that the pages are in use.
- bpftrace one-liners that answer production questions without a restart Practical bpftrace one-liners for finding which files are opened, which syscalls are slow, which process issues the disk I/O, and how to read a bpftrace latency histogram — plus the kernel and BTF prerequisites that decide whether they run at all.
- Simulate latency, packet loss and bandwidth limits with tc netem Use tc netem latency, jitter, loss and rate options to reproduce a bad network link on Linux, scope the shaping to one destination so you keep your SSH session, and verify it with ping and iperf3.
- Choose and tune the Linux I/O scheduler: none, mq-deadline, bfq and kyber How to pick a Linux I/O scheduler for NVMe, SATA SSD and spinning disks, read and set it through /sys/block, and make the choice persist with a udev rule instead of the ignored elevator= kernel parameter.
- SSH connection multiplexing with ControlMaster — one session for every command Set up SSH connection multiplexing with ControlMaster, a hashed ControlPath and ControlPersist so repeated ssh, scp, rsync, git and Ansible runs reuse one authenticated session instead of re-handshaking every time.
- Transparent huge pages and database latency — diagnose THP, then disable it properly Why transparent huge pages cause p99 latency spikes and resident-memory bloat under Redis, MongoDB, PostgreSQL and MySQL, how to read the kernel counters that prove it, and how to disable THP so it survives a reboot.
- Read a MySQL EXPLAIN query plan: columns, access types, and Extra Learn to read MySQL EXPLAIN output — decode the id, type, key, rows, and Extra columns, spot Using filesort and full table scans, then confirm the fix with EXPLAIN ANALYZE.
- Linux load average explained — and how to triage a high-load server What the 1/5/15-minute load average numbers actually measure on Linux, why load can be high while the CPU sits idle, how to normalize by core count, and a step-by-step triage to tell a CPU hog from I/O wait or a D-state pileup.
- OpenTelemetry tail sampling — keep every error and every slow trace, drop the rest Why the tail_sampling processor forces a two-tier collector layout, how to route spans by trace ID with the loadbalancing exporter, and a working config covering decision_wait, num_traces, memory sizing and OR-ed policies.
- Tuning Linux swap and swappiness for servers What vm.swappiness actually controls (reclaim preference, not a threshold), how to size and add a swap file safely, set swappiness persistently, and read memory pressure with vmstat, free, and PSI.
- Enabling TCP BBR congestion control on Linux Switch Linux from CUBIC to BBR congestion control with sysctl (fq qdisc + tcp_congestion_control), make it persistent, and honestly measure whether it helped.
- HTTP caching headers: Cache-Control, ETag, and Last-Modified A practitioner guide to http caching headers: what Cache-Control, ETag and Last-Modified actually do, the right policy per asset type in nginx and Apache, and how to prove a 304 with curl.
- Applying a temporary LVE limit boost on CloudLinux during an incident — without making it permanent During a launch or a legitimate spike, an account needs more LVE headroom right now. Here is how to apply a temporary boost with lvectl, watch it, and roll it back cleanly.
- CloudLinux entry process (EP) limit reached on cPanel — when concurrency, not CPU, is the wall An account throttles under load even though CPU looks fine. The wall is the EP limit — too many simultaneous requests. The fix is concurrency, caching, and finding what holds requests open.
- cPanel "508 Resource Limit Is Reached" — which CloudLinux limit the account hit A site returns HTTP 508 and recovers on its own minutes later. That is CloudLinux LVE throttling the account — and the fix depends on which of the limits (CPU, EP, IO, memory) it actually hit.