All tags
Start here · performanceGet the most out of Unraid: the settings worth changing, from shares to backups21 steps · 14 min read · Unraid owners who want their server fast, quiet and safeStart the guide performance
Narrow down
Guides1
Other tips45
- Tip
renice -n 10 -p 4242renice -n 10 -p PID makes a running process less greedyLower the priority of a job that is already running, without restarting it.3 Dec 2026 - Tip
sysctl vm.vfs_cache_pressureVm.vfs_cache_pressure sets how eagerly Linux drops cached folder listingsControls how strongly the kernel reclaims directory and inode caches, with 100 as the default.3 Dec 2026 - Tip
atop -w /tmp/atop.raw 60 30atop -w and atop -r record and replay system activityRecords system and process statistics to a file and lets you step through them afterwards.2 Dec 2026 - Tip
LOAD 'auto_explain';Auto_explain writes the plan of slow PostgreSQL queries to the logA contrib module that logs the execution plan of any statement slower than a limit you set.2 Dec 2026 - Tip
FOR UPDATE SKIP LOCKED;MySQL FOR UPDATE SKIP LOCKED lets workers grab different rowsMakes a locking read skip rows that another transaction has locked, instead of waiting.2 Dec 2026 - Tip
CREATE EXTENSION pgstattuple;Pgstattuple_approx estimates PostgreSQL table bloat without reading the whole tableReports dead tuples and free space of a table, skipping pages that the visibility map marks clean.2 Dec 2026 - Tip
FROM pg_stat_user_indexesPg_stat_user_indexes idx_scan = 0 points at PostgreSQL indexes nobody usesLists indexes with zero scans since the statistics were last reset, so you can review them for removal.2 Dec 2026 - Tip
EXPLAIN (SETTINGS) SELECT * FROM my_table WHERE id = 42;EXPLAIN (SETTINGS) lists the planner settings that differ from the defaultsAdds a line to the plan with every planner-related setting that has a non-default value.2 Dec 2026 - Tip
about:processesAbout:processes shows which tab is making Firefox eat memory and CPUSpot the heavy tab and close it without guessing.1 Dec 2026 - Tip
SHOW FULL PROCESSLIST;SHOW EXPLAIN shows the plan of a query that is still running in MariaDBReveals how a slow query is executing without waiting for it to finish.1 Dec 2026 - Tip
ALTER TABLE orders ADD COLUMN note VARCHAR(100), ALGORITHM=INSTANT;Ask MySQL for ALGORITHM=INSTANT so ALTER TABLE never rebuilds silentlyMakes a schema change fail fast instead of starting a long table rebuild.1 Dec 2026 - Tip
SELECT * FROM sys.schema_unused_indexesMySQL's sys.schema_unused_indexes view lists indexes nothing has usedFinds candidates for removal that only slow down writes.1 Dec 2026 - Tip
prlimit --pid 1234 --nofileprlimit changes the limits of a Linux process that is already runningRaise the open files limit of a running service without restarting it.30 Nov 2026 - Tip
cat /proc/sys/fs/file-nr/proc/sys/fs/file-nr shows how many file handles the whole Linux system has openSee system wide open file usage next to its maximum in one line.30 Nov 2026 - Tip
chrt -i 0 ./reindex.shchrt -i 0 runs a Linux job only when the CPU has nothing better to doGive a background job the idle scheduling class, lower than even nice 19.30 Nov 2026 - Tip
appdb=# \timing on\timing on in psql shows how long each PostgreSQL statement tookPrints the run time of every statement so you can compare a query before and after a change.30 Nov 2026 - Tip
CREATE INDEX 'orders_user_id' ON 'orders'('user_id'); --> users(id).lint fkey-indexes finds SQLite foreign keys that have no indexLists foreign key columns without an index and prints the CREATE INDEX to fix each one.30 Nov 2026 - Tip
choom -p 1234choom tells the Linux OOM killer which process to spare and which to sacrificeProtect an important process, or offer up a less important one, when memory runs out.30 Nov 2026 - Tip
CREATE INDEX CONCURRENTLY orders_customer_idx ON orders (customer_id);CREATE INDEX CONCURRENTLY adds a PostgreSQL index without blocking writesBuilds an index on a live table while inserts and updates keep running.30 Nov 2026 - Tip
CREATE INDEX users_active_email ON users(email) WHERE active = 1;A partial index in SQLite only covers the rows your queries ask forIndexes only rows that match a WHERE clause, so the index stays small and fast.30 Nov 2026 - Tip
ALTER ROLE report SET statement_timeout = '30s';ALTER ROLE … SET statement_timeout caps query time for one PostgreSQL userGives one login a maximum query time so its runaway queries stop on their own.30 Nov 2026 - Tip
sysctl vm.overcommit_memoryVm.overcommit_memory decides whether Linux promises more memory than it hasUnderstand why a program got memory it could not use, and when to change the policy.30 Nov 2026 - Tip
strace -c -f ./slow-script.shstrace -c counts the system calls of a Linux program to show where its time goesGet a summary table of syscalls, errors and time instead of thousands of trace lines.30 Nov 2026 - Tip
mount -t tmpfs -o size=512M,mode=1777 tmpfs /mnt/scratchmount -t tmpfs -o size= gives you a folder that lives in RAM on LinuxCreate a fast scratch folder in memory with a hard size cap.30 Nov 2026 - Tip
shared_preload_libraries = 'pg_stat_statements'Pg_stat_statements shows which PostgreSQL queries take the most time overallRanks normalized queries by their total run time so you tune the ones that matter.30 Nov 2026 - Tip
ANALYZE SELECT * FROM orders WHERE customer = 'ann';ANALYZE SELECT runs the query and shows real row counts next to the database estimatesRuns a query and prints the plan with actual rows read beside the optimizer's guess.30 Nov 2026 - Tip
SET STATEMENT max_statement_time = 5 FORMax_statement_time stops a runaway database query after a set number of secondsSets a time limit so a slow query is aborted instead of running for hours.30 Nov 2026 - Tip
ALTER TABLE orders ALTER INDEX idx_customer IGNORED;An IGNORED index lets you test dropping a database index without dropping itHides an index from the optimizer so you can see what breaks before you drop it.30 Nov 2026 - Tip
ps -eo stat,pid,wchan:32,cmd | awk '$1 ~ /^D/'ps shows the Linux processes stuck in D state, the ones that drive up load without CPUFind what makes the load average high while the CPU looks idle.30 Nov 2026 - Tip
SHOW SESSION STATUS LIKE 'Handler_read%';Handler_read_rnd_next shows when a database query reads the whole tableCounts the rows a query actually read, so full table scans stand out right away.30 Nov 2026 - Tip
cat /proc/sys/fs/inotify/max_user_watchesFs.inotify.max_user_watches fixes 'no space left' errors from file watchers on LinuxRaise the inotify watch limit when an editor, sync tool or dev server cannot watch your files.30 Nov 2026 - Tip
zramctlzramctl shows the compressed swap that lives in your RAMLists zram devices and sets up compressed swap in memory.28 Nov 2026 - Tip
tasklist /svc /fi "IMAGENAME eq svchost.exe"tasklist /svc /fi shows which services run inside a processLists the services running inside each process, filtered by name, PID or memory use.28 Nov 2026 - Tip
powercfg /requestspowercfg /requests shows what keeps Windows awakeLists the programs and drivers that stop Windows from sleeping or turning off the display.28 Nov 2026 - Tip
dtparam=fan_temp0=55000Dtparam=fan_temp0=55000 keeps the Raspberry Pi 5 fan off until 55 degreesChanges the temperature at which the Pi 5 fan starts spinning.28 Nov 2026 - Tip
pg_restore -j 4 -d appdb appdb.dumppg_restore -j restores a large PostgreSQL dump with several parallel jobsRestores a PostgreSQL archive dump using several concurrent jobs so large restores finish sooner.28 Nov 2026 - Tip
sqlite3 app.db "PRAGMA optimize;"PRAGMA optimize lets SQLite refresh its statistics only where it needs toUpdates SQLite's query planner statistics only for tables where that is likely to help.28 Nov 2026 - Tip
sqlite> .expertsqlite3 .expert suggests the index a slow query is missingProposes missing indexes for a query you type in the SQLite shell.28 Nov 2026 - Tip
mpstat -P ALL 2 5mpstat -P ALL shows what each CPU core is doing, not just the averagePrint one line per CPU core every few seconds to spot a single busy core, I/O wait or steal time.28 Nov 2026 - Tip
sysctl vm.swappinessVm.swappiness tells linux how expensive swap is compared with the page cacheSets how eagerly linux swaps out memory compared with dropping page cache.28 Nov 2026 - Tip
pidstat -u -r -d 1 -e tar czf /tmp/test.tar.gz ~/Documentspidstat -e watches a command only for as long as it runsStarts a command and reports its CPU, memory and disk use every second until it ends.28 Nov 2026 - Tip
Measure-Command { Get-ChildItem -Path C:\Windows\*.txt -Recurse }Measure-Command times any PowerShell commandRuns a PowerShell command and reports how long it took to finish.27 Nov 2026 - Tip
find . -name '*.png' -print0 | xargs -0 -n 1 -P 4 optipngXargs -P runs commands in parallel, no GNU parallel neededRuns a command on several inputs at the same time instead of one after another.27 Aug 2026 - Tip
vmstat 1 5vmstat 1 5 shows linux CPU, swap and I/O wait in one tablePrints CPU, memory, swap and I/O wait figures once per second.29 May 2026 - Tip
redis-cli --bigkeys -i 0.1redis-cli --bigkeys finds the largest keys filling up your cacheScans a Redis instance and reports the biggest keys per type without blocking the server.27 May 2026
Shell39
- Tip
sudo swapon -p 10 /swap-fastSwapon -p decides which swap area Linux fills firstSets a priority per swap area, so a fast one is used before a slow one.3 Dec 2026 - Tip
sudo systemctl freeze indexer.serviceSystemctl freeze pauses a service and thaw lets it continueSuspend a busy service for a moment without stopping it.1 Dec 2026 - Tip
sudo apt install sysstatSar reads back your monitoring data from earlier today or yesterdayCheck load and memory at the time a problem happened, after the fact.1 Dec 2026 - Tip
sudo apt install hyperfineHyperfine compares the performance of two commands properlyBenchmark two ways of doing something with repeated, comparable runs.1 Dec 2026 - Tip
sudo apt install fioFio measures the random read performance of a disk with a test fileTest small random reads, which feel closer to real use than big copies.1 Dec 2026 - Tip
sudo apt install smemSmem shows the fair share of shared memory that each process usesGet per process and per user memory numbers that add up sensibly.1 Dec 2026 - Tip
fincore /var/lib/example/data.dbfincore shows how much of a file sits in the page cacheSee whether a file is being served from RAM or still from disk.1 Dec 2026 - Tip
sudo systemctl edit nginx.serviceLimitNOFILE= raises the open files limit of one systemd serviceGive a busy service more file handles than the default, set in the unit itself.30 Nov 2026 - Tip
watch -n 1 "grep -E '^(Dirty|Writeback):' /proc/meminfo"Dirty and Writeback in /proc/meminfo show how much data Linux still has to write to diskKnow when a copy has really reached the disk before you pull a USB drive.30 Nov 2026 - Tip
pmset displaysleepnowpmset displaysleepnow turns off your Mac screen from the terminalTurns the display off right away while everything keeps running.30 Nov 2026 - Tip
systemd-analyze plot > boot.svgsystemd-analyze plot draws your boot as an SVG timelineSee in one picture which units start in parallel and which ones hold up the boot.30 Nov 2026 - Tip
cp -c ~/VMs/ubuntu.img ~/VMs/ubuntu-before-upgrade.imgcp -c copies a big file instantly on a Mac terminal using APFS clonesMakes a copy of a large file in a moment without using extra disk space.30 Nov 2026 - Tip
sudo cpufreq-set -g powersavesudo cpufreq-set -g powersave lowers the Raspberry Pi idle power useSwitches the CPU governor to powersave to cut idle power use.28 Nov 2026 - Tip
sudo slabtop -o -s cSlabtop -o shows which kernel cache is eating your memoryList the biggest kernel slab caches once, sorted by size, when memory goes missing.28 Nov 2026 - Tip
/usr/bin/time -f "%e s elapsed, %M KB peak memory" tar czf /tmp/test.tar.gz ~/Documents/usr/bin/time -f '%e s, %M KB' shows how much memory a command neededReports elapsed time and peak memory of one command with GNU time.28 Nov 2026 - Tip
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUEDSDontWriteNetworkStores stops Finder from reading .DS_Store files on SMB sharesMakes Finder skip .DS_Store files on SMB shares, which can speed up browsing.28 Nov 2026 - Tip
footprint Safarifootprint shows what one Mac process's memory is made ofBreaks down the memory footprint of a process into categories, with optional sampling.28 Nov 2026 - Tip
memory_pressure -S -l warn -s 20memory_pressure -S simulates low memory on your MacApplies real or simulated low-memory states to a Mac, for a set number of seconds.28 Nov 2026 - Tip
mkfile -v 100m /tmp/test-100m.binmkfile makes a test file of an exact size on a MacCreates a file of an exact size, optionally without allocating the disk space.28 Nov 2026 - Tip
pmset -g battpmset -g batt prints your MacBook battery state in TerminalPrints the status of the batteries and power sources of a MacBook from Terminal.28 Nov 2026 - Tip
taskpolicy -b ./convert-all.shtaskpolicy -b runs a heavy command at background priority on your MacRuns a command or an already running process at low background priority.28 Nov 2026 - Tip
top -o mem -n 10top -o mem lists the Mac processes with the biggest memory footprintShows the processes with the biggest memory footprint first, in a fixed-size list.28 Nov 2026 - Tip
vm_statvm_stat prints Mac memory in pages, so check the page size firstPrints macOS memory statistics in pages, with the page size in the header.28 Nov 2026 - Tip
sudo mount -o remount,noatime /mnt/dataNoatime stops Linux from writing a timestamp every time you read a fileStops the filesystem from updating access times on every read, which saves writes on data disks.27 Nov 2026 - Tip
sudo systemd-run --wait -P -G -p CPUAccounting=yes -p MemoryAccounting=yes /usr/local/bin/backup.shsystemd-run --wait reports runtime and exit code when a command endsRuns a command as a service and prints its runtime and exit status afterwards.27 Nov 2026 - Tip
journalctl -b -o short-delta -u myappjournalctl -o short-delta shows the gap between each line and the one beforePrints the time since the previous entry on every line, to find long pauses and timeouts.26 Nov 2026 - Tip
journalctl -b -o short-monotonicjournalctl -o short-monotonic counts seconds since bootPrints seconds since boot as the time stamp, which reads well for startup problems.26 Nov 2026 - Tip
[Journal]RuntimeMaxUse in journald.conf limits a journal that lives in memoryCaps the size of the in-memory journal, which matters on small machines such as a Raspberry Pi.26 Nov 2026 - Tip
define( 'DISABLE_WP_CRON', true );Switch off WP-Cron and let a real cron job do the workTurns off WordPress's visitor-triggered scheduler so a real server cron job runs the scheduled tasks instead.14 Aug 2026 - Tip
systemd-analyze blamesystemd-analyze blame shows what slows down your bootLists services by how long they took to start, so you can see what slows the boot.4 Jul 2026 - Tip
redis-cli info stats | grep -E 'keyspace_(hits|misses)|evicted_keys|expired_keys'redis-cli info stats shows the cache hit rate in keyspace_hits and missesReads the hit and miss counters of a Redis server to calculate how well its cache works.26 May 2026 - Tip
sudo fstrim -avFstrim -av tells the SSD which blocks of the disk are freeTrims all mounted filesystems that support it, which keeps SSD write speed up.18 May 2026 - Tip
sudo hdparm -tT /dev/sdaHdparm -tT gives a quick read speed number for a diskMeasures how fast a disk reads sequentially, as a quick health and cabling check.18 May 2026 - Tip
sudo iotop -oPaIotop -oPa shows which program wrote the most to the diskLists the processes currently reading or writing the disk, with accumulated totals.17 May 2026 - Tip
curl -s --compressed -D - -o /dev/null https://example.com/ | grep -i '^content-encoding'curl --compressed asks for gzip and decodes it for youRequests compressed content and shows from the headers whether the server provides it.6 May 2026 - Tip
systemd-run --user --scope -p MemoryMax=2G -p CPUQuota=200% make -j8systemd-run --user --scope applies resource limits to any commandRuns a command in a temporary cgroup with memory and CPU limits, no unit file needed.26 Apr 2026 - Tip
systemctl show nginx.service -p MemoryMax -p CPUQuotaPerSecUSecsystemctl set-property sets a systemd resource limit on a running serviceApplies memory and CPU limits to a running service, temporarily or permanently, without editing files.25 Apr 2026 - Tip
systemd-analyze critical-chainsystemd-analyze critical-chain shows what the boot waited forDisplays the chain of units that actually held up the boot, with start times.24 Apr 2026 - Tip
sudo sysctl -w vm.swappiness=10Sysctl -w tries a linux kernel setting, a file in sysctl.d keeps itChanges a kernel setting at once and keeps it across reboots with one small file.9 Apr 2026
Network14
- Tip
ab -n 200 -c 10 https://example.com/ab -n -c gives a quick load test of a web pageSend many concurrent requests to a URL to see how the server copes3 Dec 2026 - Tip
proxy_cache app;Proxy_cache_lock lets one request fill an empty cache while others waitProtect a slow backend when many visitors ask for an expired page at once.1 Dec 2026 - Tip
Cache-Control: max-age=60, stale-while-revalidate=600stale-while-revalidate serves the old copy while the cache fetches a new oneVisitors get a fast answer even right after the content expires.1 Dec 2026 - Tip
nmap --top-ports 20 192.0.2.0/24nmap top-ports checks only the most common ports for a quick lookTrade coverage for speed by checking the most frequently used ports first.1 Dec 2026 - Tip
location /protected/ {X-Accel-Redirect lets your app check access and nginx send the fileLets a backend approve a download and hand the actual file transfer to nginx.30 Nov 2026 - Tip
proxy_cache app;Proxy_cache_use_stale keeps nginx serving pages while the backend is downServes the last cached copy of a page when the backend errors out or is busy refreshing.30 Nov 2026 - Tip
limit_rate_after 500k;Nginx limit_rate_after lets a download start fast and then slows it downThrottles big downloads per connection after the first part, so small files stay quick.30 Nov 2026 - Tip
limit_conn addr 1;Nginx limit_conn caps simultaneous connections per IP addressLimits how many connections one IP address may keep open at once.28 Nov 2026 - Tip
View > Dock Icon > (pick one of the Show CPU options)Activity Monitor can show a live CPU or network graph in the DockTurn the Activity Monitor Dock icon into a live graph of CPU or network use.28 Nov 2026 - Tip
upstream app_backend {Nginx keepalive in an upstream block reuses connections to your backendKeeps a few connections from nginx to the backend open for reuse instead of reconnecting per request.27 Nov 2026 - Tip
curl "https://example.com/wp-json/wp/v2/posts?_fields=id,title,link"Add _fields to a WordPress REST API request to get a smaller answerMakes the WordPress REST API return only the fields you list, so responses are smaller and faster.1 Sep 2026 - Tip
log_format timed '$remote_addr "$request" $status $body_bytes_sent 'Nginx log_format with $request_time shows which requests are slowAdds request and upstream timing to each access log line.4 May 2026 - Tip
expires 30d;Nginx expires 30d sets browser caching for static files in one lineTells browsers to keep static files for 30 days and skip repeat downloads.3 May 2026 - Tip
add_header Cache-Control "public, max-age=31536000, immutable";Cache-Control: immutable stops revalidation of a cache-busted fileMarks fingerprinted files as never changing so browsers skip revalidation on reload.5 Apr 2026
Web12
- Tip
wp media image-sizewp media image-size lists every thumbnail size WordPress createsShows the registered image sizes with width, height and crop, so you see what each upload costs.30 Nov 2026 - Tip
width="800" height="600" decoding="async">Decoding="async" on an image lets the page paint before the image is decodedHints that an image can be decoded after the rest of the page has painted.28 Nov 2026 - Tip
powercfg /energypowercfg /energy writes an HTML report of power problemsObserves an idle PC for a minute and writes an HTML report on power problems.28 Nov 2026 - Tip
Always keep these sites active > AddAdd a site to Memory Saver's keep-active list so Chrome stops freezing itKeep chosen sites from being put to sleep by Chrome's Memory Saver, using the always-active list.28 Nov 2026 - Tip
const observer = new IntersectionObserver((entries) => {JavaScript's IntersectionObserver tells you when an element scrolls into viewRuns code when an element enters the viewport, without listening to every scroll event.26 Nov 2026 - Tip<link rel="preconnect"> in your HTML warms up the connection to another site earlyLets the browser set up the connection to a critical third-party server before it is needed.26 Nov 2026
- TipFetchpriority="high" in your HTML makes the browser load the hero image firstTells the browser which image matters most, so the main picture of a page appears sooner.26 Nov 2026
- Tip
wp option list --autoload=on --format=total_byteswp option list --autoload=on --format=total_bytes shows what every page load drags alongShows how many bytes of WordPress options load on every page request, and which ones are biggest.4 Oct 2026 - Tip
wp transient delete --expiredwp transient delete --expired cleans the leftovers out of your options tableRemoves expired cached values from the WordPress database without touching the ones still in use.22 Aug 2026 - Tip
define( 'WP_POST_REVISIONS', 5 );Cap post revisions with WP_POST_REVISIONSLimits how many old versions WordPress keeps of each post so the database stops growing.23 Jul 2026 - Tip
print_r( opcache_get_status( false )['opcache_statistics'] );Opcache_get_status(false) shows the hit rate of the PHP opcode cachePrints how often PHP reuses compiled scripts and how full the opcode cache memory is.27 May 2026 - Tip
define( 'WP_CACHE', true );WP_CACHE true makes wordpress load wp-content/advanced-cache.php earlyEnables the advanced-cache drop-in that page caching plugins use to answer requests before WordPress loads.26 Mar 2026
Python9
- Tip
import statisticsPython's statistics module gives you median and percentiles without numpySummarise response times or sizes with median and percentiles using only the standard library.30 Nov 2026 - Tip
known = set(load_known_ids()) # convert oncePython checks in on a set thousands of times faster than on a listSpeed up repeated membership checks by turning the lookup list into a set.30 Nov 2026 - Tip
import heapqPython's heapq.nlargest picks the top few without sorting everythingGet the biggest or smallest n items from a large list or a generator.30 Nov 2026 - Tip
from concurrent.futures import ThreadPoolExecutorPython's ThreadPoolExecutor.map runs slow network calls side by sideSpeed up a script that waits on many downloads or API calls with a thread pool.30 Nov 2026 - Tip
import tracemallocPython's tracemalloc shows which lines are eating your memoryFind the lines of code that allocate the most memory in a Python program.30 Nov 2026 - Tip
import timePython's time.perf_counter is the clock for timing a piece of your codeMeasure how long a block of code takes with the right clock.30 Nov 2026 - Tip
from functools import lru_cachePython's functools.lru_cache remembers results so slow functions run onceCaches the results of a Python function, so repeated calls with the same arguments are instant.26 Nov 2026 - Tip
python3 -m cProfile -s cumtime script.py | head -20python -m cProfile -s cumtime shows where a script spends its timeProfiles a whole script with the standard library and sorts functions by time spent.24 Nov 2026 - Tip
python3 -m pytest --durations=5python -m pytest --durations=5 lists the slowest testsPrints the slowest phases of a test run so you know where the time goes.24 Nov 2026
Storage6
- Tip
xxhsum -H64 backup.tar > backup.xxhxxhsum is a very fast checksum for spotting changed files, not for securityQuickly detect a changed or damaged file with a very fast, non-cryptographic hash.3 Dec 2026 - Tip
cat /sys/block/sda/queue/scheduler/sys/block/sda/queue/scheduler shows and switches the Linux I/O scheduler of a diskSee which I/O scheduler a disk uses and try another one without a reboot.30 Nov 2026 - Tip
cat /proc/pressure/cpu/proc/pressure shows how long tasks wait for CPU, memory or diskShows the share of time tasks stall on CPU, memory or disk, over 10, 60 and 300 seconds.28 Nov 2026 - Tip
zstd -b1 -e19 app-backup.tarzstd -b1 -e19 benchmarks every compression level on your own fileMeasures ratio and speed of each zstd level on your data, so you can pick one.27 Nov 2026 - Tip
nice -n 19 ionice -c3 tar -czf /backup/www.tar.gz /var/wwwnice and ionice keep a heavy linux job out of everyone's wayRuns a heavy command with the lowest CPU and disk priority.28 May 2026 - Tip
iostat -xz 1iostat -xz 1 shows how busy each disk is, once per secondPrints per-disk utilisation and wait times every second to show whether storage is the bottleneck.17 May 2026
Docker6
- Tip
COPY . .COPY with link keeps a Docker layer valid when the base image changesCopy files into their own independent layer so base image updates do not force a recopy.30 Nov 2026 - Tip
docker run --rm --gpus all ubuntu nvidia-smidocker run with gpus all gives a container your NVIDIA cardPass an NVIDIA GPU into a container for transcoding or machine learning.30 Nov 2026 - Tip
services:Deploy.resources.limits caps memory and CPU in plain Docker Compose tooSet memory and CPU limits per service in the Compose file, no Swarm needed.30 Nov 2026 - Tip
docker run -d --log-driver local --name web nginx:alpineThe local log driver keeps Docker logs compressed and rotated by defaultSwitch to Docker's local log driver for smaller logs that rotate on their own.30 Nov 2026 - Tip
docker run -d --name encoder --cpus="1.5" example/app:1.0docker run --cpus caps how much CPU a container can useSets a hard ceiling on the CPU a container may use, in whole or fractional cores.28 Nov 2026 - Tip
docker run -d --name app --memory=512m --memory-swap=512m example/app:1.0docker run --memory-swap decides whether a container may use swapSets memory plus swap together for a container, or turns swap off for it completely.28 Nov 2026
Media5
- Tip
jq -cn --stream 'fromstream(1|truncate_stream(inputs))' big.jsonStream mode reads a huge JSON array without loading it all at onceProcess a file that is too big for a normal jq run.1 Dec 2026 - Tip
taskset -c 0,1 ffmpeg -i in.mkv out.mp4taskset shows and sets which CPU cores a process may useStarts a command on chosen CPU cores or changes the cores of a running process.28 Nov 2026 - Tip
proxy_buffering off;Nginx proxy_buffering off passes a streaming response straight throughStops nginx from buffering a proxied response, so streamed data reaches the client as it arrives.28 Nov 2026 - Tip
ffmpeg -hide_banner -hwaccelsffmpeg -hwaccels lists the hardware acceleration your build hasPrints the hardware acceleration methods your ffmpeg build was compiled with.28 Nov 2026 - Tip
Settings > Media Management > File Management > Analyze video filesTurn off Analyze video files if nothing in your setup needs itCuts disk reads during Sonarr and Radarr refreshes by switching off MediaInfo analysis you do not use.16 Oct 2026
CSS4
- Tip
Show Rendering > Paint flashingPaint flashing in DevTools shows which parts of a page repaintFind animations and widgets that redraw far more than they need to.1 Dec 2026 - Tip
gzip -k -9 dist/app.css dist/app.jsNginx gzip_static serves your precompressed .gz files instead of compressing on every requestSends ready-made .gz versions of static files, compressed once at maximum level.30 Nov 2026 - Tip
gzip on;Nginx gzip_types is the line that makes JSON and CSS compressCompresses CSS, JavaScript and JSON responses, which nginx skips by default.3 May 2026 - Tip
.post-card { content-visibility: auto; contain-intrinsic-size: auto 400px; }Content-visibility: auto in css skips rendering of cards that are off screenSkips layout and painting of off-screen elements to make long pages render faster.20 Mar 2026
Mac3
- Tip
Allow in the Background (switches)Check which apps run in the background on your MacSwitch off background tasks for apps that don't need them.1 Dec 2026 - Tip
brew autoremove -nbrew autoremove -n shows which leftover Homebrew dependencies can goLists and removes packages that only came along as a dependency and are unused now.30 Nov 2026 - Tip
On power adapter: High Power ModeHigh Power Mode lets a MacBook Pro run its fans harder for heavy workLets your Mac trade battery life or fan noise for speed, separately on battery and on power.27 Nov 2026
Security1
Nothing matches.