سبق 1ਪ੍ਰੋਸੈਸ ਨੂੰ ਮਾਰਨ, ਫਿਰ ਚਲਾਉਣ ਜਾਂ ਥ੍ਰੌਟਲ ਕਰਨਾ ਕਦੋਂ: ਸੁਰੱਖਿਅਤ ਮਾਰਨ ਅਭਿਆਸ, systemctl ਰੀਸਟਾਰਟ ਅਤੇ cgroups ਅਤੇ nice/renice ਵਰਤੋਪ੍ਰੋਸੈਸ ਨੂੰ ਮਾਰਨ, ਫਿਰ ਚਲਾਉਣ ਜਾਂ ਥ੍ਰੌਟਲ ਕਰਨਾ ਕਦੋਂ ਅਤੇ ਕਿਵੇਂ ਸੁਰੱਖਿਅਤ ਢੰਗ ਨਾਲ ਕਰਨਾ ਹੈ ਇਸ ਨੂੰ ਸਮਝੋ। ਸਿਗਨਲ ਕਿਸਮਾਂ, ਸੁਰੱਖਿਅਤ ਮਾਰਨ ਪੈਟਰਨਾਂ, systemctl ਰੀਸਟਾਰਟ ਵਿਵਹਾਰ ਅਤੇ ਪ੍ਰਭਾਵ ਸੀਮਤ ਕਰਨ ਲਈ cgroups ਅਤੇ nice ਜਾਂ renice ਲਾਗੂ ਕਰਨਾ ਸਿੱਖੋ।
Choosing SIGTERM, SIGKILL, and othersUsing kill and pkill with safeguardsRestarting services with systemctlThrottling CPU with nice and reniceLimiting resources using cgroupsDocumenting and automating remediesسبق 2ਸਵੈਪ ਵਰਤੋਂ ਅਤੇ OOM ਘਟਨਾਵਾਂ ਦਾ ਵਿਸ਼ਲੇਸ਼ਣ: dmesg, ਕਰਨਲ OOM ਕਿਲਰ ਲੌਗ ਅਤੇ /var/log/kern.logfree, dmesg, ਕਰਨਲ OOM ਲੌਗ ਅਤੇ /var/log/kern.log ਵਰਤ ਕੇ ਸਵੈਪ ਵਰਤੋਂ ਅਤੇ ਆਊਟ ਆਫ ਮੈਮਰੀ ਘਟਨਾਵਾਂ ਦੀ ਖੋਜ ਕਰੋ। ਥ੍ਰੈਸ਼ਿੰਗ ਨੂੰ ਪਛਾਣੋ, swappiness ਟਿਊਨ ਕਰੋ ਅਤੇ RAM ਜੋੜਨ ਜਾਂ ਸੀਮਾਵਾਂ ਐਡਜਸਟ ਕਰਨ ਦਾ ਫੈਸਲਾ ਕਰੋ।
Checking swap usage with free and /procRecognizing swap thrashing symptomsReading dmesg for OOM killer entriesParsing /var/log/kern.log detailsTuning swappiness and vm overcommitDeciding when to add RAM or adjust limitsسبق 3ਗਰਮ ਪ੍ਰੋਸੈਸਾਂ ਪਛਾਣੋ: ps, ps aux --sort, pgrep, pidstat ਅਤੇ PID ਨੂੰ ਸਰਵਿਸਾਂ ਨਾਲ ਜੋੜੋps, pgrep, pidstat ਅਤੇ ਸੌਰਟਿੰਗ ਵਿਕਲਪਾਂ ਵਰਤ ਕੇ ਗਰਮ ਜਾਂ ਖਰਾਬ ਪ੍ਰੋਸੈਸਾਂ ਨੂੰ ਤੇਜ਼ੀ ਨਾਲ ਪਛਾਣਨਾ ਸਿੱਖੋ। PID ਨੂੰ ਸਰਵਿਸਾਂ, ਯੂਨਿਟਾਂ ਅਤੇ ਕੰਟੇਨਰਾਂ ਨਾਲ ਜੋੜੋ ਤਾਂ ਜੋ ਸਰੋਤ ਵਰਤੋਂ ਨੂੰ ਜ਼ਿੰਮੇਵਾਰ ਭਾਗਾਂ ਨਾਲ ਜੋੜੋ।
Sorting ps output by CPU and memoryUsing pgrep and pkill name filtersMonitoring per-process stats with pidstatMapping PIDs to systemd unitsRelating PIDs to containers or cgroupsTracking short-lived bursty processesسبق 4ਬਾਰ-ਬਾਰ ਵਾਪਰਨ ਵਾਲੇ ਸਰੋਤ ਸਪਾਈਕਸ ਪਛਾਣੋ: cron, systemd ਟਾਈਮਰ, at ਜੌਬਸ ਅਤੇ ਐਪਲੀਕੇਸ਼ਨ ਸਕੈਡਿਊਲਰ ਜਾਂਚੋਮੈਟ੍ਰਿਕਸ ਨੂੰ ਅਨੁਸੂਚਿਤ ਕਾਰਜਾਂ ਨਾਲ ਜੋੜ ਕੇ ਬਾਰ-ਬਾਰ ਵਾਪਰਨ ਵਾਲੇ CPU, ਮੈਮਰੀ ਅਤੇ I/O ਸਪਾਈਕਸ ਨੂੰ ਪਛਾਣਨ ਦੇ ਢੰਗ ਖੋਜੋ। cron, systemd ਟਾਈਮਰਾਂ, at ਜੌਬਸ ਅਤੇ ਐਪ ਸਕੈਡਿਊਲਰਾਂ ਨੂੰ ਜਾਂਚੋ ਤਾਂ ਜੋ ਸ਼ੋਰ ਵਾਲੇ ਜਾਂ ਓਵਰਲੈਪਿੰਗ ਜੌਬਸ ਨੂੰ ਲੱਭੋ ਅਤੇ ਠੀਕ ਕਰੋ।
Listing and reading user and system crontabsInspecting systemd timers and calendar unitsReviewing at jobs and one-off schedulesTracing app-level schedulers and workersCorrelating spikes with job execution timesRefining or staggering noisy recurring jobsسبق 5ਮੈਮਰੀ ਟ੍ਰਬਲਸ਼ੂਟਿੰਗ: free, /proc/meminfo, smem, pmap ਅਤੇ ਮੈਮਰੀ ਲੀਕਸ ਜਾਂਚੋfree, /proc/meminfo, smem ਅਤੇ pmap ਵਰਤ ਕੇ ਮੈਮਰੀ ਸਮੱਸਿਆਵਾਂ ਨੂੰ ਟ੍ਰਬਲਸ਼ੂਟ ਕਰਨ ਦੀਆਂ ਹੁਨਰ ਪ੍ਰਾਪਤ ਕਰੋ। ਕੈਸ਼ ਨੂੰ ਅਸਲੀ ਦਬਾਅ ਤੋਂ ਵੱਖ ਕਰੋ, ਪ੍ਰੋਸੈਸ-ਪ੍ਰਤੀ ਵਰਤੋਂ ਲੱਭੋ ਅਤੇ ਮੈਮਰੀ ਲੀਕਸ ਜਾਂ ਫ੍ਰੈਗਮੈਂਟੇਸ਼ਨ ਦਰਸਾਉਣ ਵਾਲੇ ਪੈਟਰਨ ਪਛਾਣੋ।
Interpreting free and available memoryReading /proc/meminfo key fieldsUsing smem for per-process breakdownsInspecting process maps with pmapSpotting memory leak growth patternsDifferentiating cache from real pressureسبق 6ਮਾਨੀਟਰਿੰਗ ਡਾਟਾ (Prometheus, Grafana) ਨਾਲ ਏਕੀਕਰਣ ਅਤੇ ਰੁਝਾਨ ਨਿਰਧਾਰਤ ਕਰਨ ਲਈ ਇਤਿਹਾਸਕ ਮੈਟ੍ਰਿਕਸ ਵਰਤੋਲੋਕਲ ਟ੍ਰਬਲਸ਼ੂਟਿੰਗ ਨੂੰ Prometheus ਅਤੇ Grafana ਡਾਟਾ ਨਾਲ ਜੋੜਨਾ ਸਿੱਖੋ। ਇਤਿਹਾਸਕ ਮੈਟ੍ਰਿਕਸ, ਡਾਸ਼ਬੋਰਡ ਅਤੇ ਅਲਰਟਸ ਵਰਤੋ ਤਾਂ ਜੋ ਰੁਝਾਨ, ਰੀਗ੍ਰੈਸ਼ਨਾਂ ਅਤੇ ਹੌਲੀ ਡ੍ਰਿਫਟਸ ਪਛਾਣੋ ਅਤੇ ਪਰਫਾਰਮੈਂਸ ਫਿਕਸਾਂ ਦੇ ਪ੍ਰਭਾਵ ਨੂੰ ਵੈਲੀਡੇਟ ਕਰੋ।
Reviewing key CPU and load dashboardsInspecting memory, cache, and swap panelsAnalyzing disk and network latency graphsUsing PromQL to slice historical metricsCorrelating deploys with metric changesValidating fixes with before and after viewsسبق 7ਲੋਡ ਵਿਚ CPU ਸੈਚੁਰੇਸ਼ਨ: uptime, ਲੋਡ ਔਸਤ ਵਿਆਖਿਆ ਅਤੇ CPU ਕੋਰਾਂ ਨਾਲ ਸਬੰਧਸਿਸਟਮ ਲੋਡ ਔਸਤਾਂ ਦੇ ਅਰਥ ਅਤੇ ਉਹਨਾਂ ਦੇ CPU ਕੋਰਾਂ ਅਤੇ ਰਨ ਕਿਊਆਂ ਨਾਲ ਸਬੰਧ ਨੂੰ ਸਪੱਸ਼ਟ ਕਰੋ। ਸਿਹਤਮੰਦ ਉੱਚ ਲੋਡ ਨੂੰ CPU ਸੈਚੁਰੇਸ਼ਨ ਤੋਂ ਵੱਖ ਕਰੋ ਅਤੇ ਲੋਡ ਨੂੰ I/O ਵੇਟ, ਕੰਟੈਕਸਟ ਸਵਿੱਚਾਂ ਅਤੇ ਲੇਟੈਂਸੀ ਨਾਲ ਜੋੜੋ।
Reading uptime and load averagesRelating load to CPU core countsSeparating runnable and blocked tasksIdentifying CPU-bound saturation casesRecognizing I/O wait driven loadUsing vmstat and mpstat to confirmسبق 8ਲਾਈਵ ਸਿਸਟਮ ਮੈਟ੍ਰਿਕਸ ਇਕੱਤਰ ਕਰੋ: top, htop, vmstat, mpstat, iostat ਅਤੇ ਆਊਟਪੁਟ ਵਿਆਖਿਆ ਕਰੋtop, htop, vmstat, mpstat ਅਤੇ iostat ਵਰਤ ਕੇ ਲਾਈਵ ਲੀਨਕਸ ਪਰਫਾਰਮੈਂਸ ਮੈਟ੍ਰਿਕਸ ਇਕੱਤਰ ਕਰਨ ਅਤੇ ਵਿਆਖਿਆ ਕਰਨਾ ਸਿੱਖੋ। CPU, ਮੈਮਰੀ ਅਤੇ I/O ਵਿਊਜ਼, ਮੁੱਖ ਫੀਲਡ, ਰਿਫ੍ਰੈਸ਼ ਅੰਤਰਾਲ ਅਤੇ ਰੀਅਲ ਟਾਈਮ ਵਿੱਚ ਬੋਤਲਨੈੱਕਸ ਪਛਾਣਨਾ ਸਮਝੋ।
Reading CPU usage in top and htopMonitoring memory and swap in topUsing vmstat for system-wide snapshotsAnalyzing CPU stats with mpstatChecking disk I/O patterns with iostatChoosing sampling intervals and filtersسبق 9ਡੂੰਘੇ ਪ੍ਰੋਸੈਸ ਵਿਸ਼ਲੇਸ਼ਣ ਲਈ perf, strace ਅਤੇ ltrace ਵਰਤੋ ਅਤੇ ਹਰੇਕ ਵਰਤਣ ਦਾ ਸਮਾਂਡੂੰਘੇ ਪ੍ਰੋਸੈਸ ਵਿਸ਼ਲੇਸ਼ਣ ਲਈ perf, strace ਅਤੇ ltrace ਵਰਤਣਾ ਅਤੇ ਹਰੇਕ ਨੂੰ ਕਦੋਂ ਵਰਤਣਾ ਹੈ ਇਸ ਨੂੰ ਸਮਝੋ। CPU ਹਾਟਸਪਾਟਸ ਪ੍ਰੋਫਾਈਲ ਕਰੋ, ਸਿਸਟਮ ਕਾਲਸ ਟ੍ਰੇਸ ਕਰੋ, ਲਾਇਬ੍ਰੇਰੀ ਕਾਲਸ ਜਾਂਚੋ ਅਤੇ ਐਕਸ਼ਨਐਬਲ ਡਾਇਗਨੌਸਟਿਕਸ ਕੈਪਚਰ ਕਰਦੇ ਹੋਏ ਓਵਰਹੈੱਡ ਘੱਟੋ-ਘੱਟ ਕਰੋ।
Profiling CPU hotspots with perf recordViewing perf reports and call graphsTracing syscalls with strace safelyFiltering noisy strace outputInspecting library calls using ltraceChoosing the right tool for each symptomسبق 10ਪਾਈਥਨ ਐਪਸ ਲਈ ਹਲਕੇ ਪ੍ਰੋਫਾਈਲਿੰਗ ਅਤੇ ਟ੍ਰੇਸਿੰਗ ਟੂਲ (py-spy, gdb, ਫਲੇਮਗ੍ਰਾਫਸ) ਵਰਤੋਪਾਈਥਨ ਐਪਲੀਕੇਸ਼ਨਾਂ ਲਈ ਹਲਕੇ ਪ੍ਰੋਫਾਈਲਿੰਗ ਅਤੇ ਟ੍ਰੇਸਿੰਗ ਟੂਲਾਂ (py-spy, gdb, ਫਲੇਮਗ੍ਰਾਫਸ) ਤੇ ਧਿਆਨ ਕੇਂਦ੍ਰਿਤ। ਪ੍ਰੋਡਕਸ਼ਨ ਵਿੱਚ ਸਟੈਕ ਸੈਂਪਲਸ ਕੈਪਚਰ ਕਰੋ, ਗਰਮ ਕੋਡ ਪਾਥ ਲੱਭੋ ਅਤੇ ਸਰਵਿਸਾਂ ਰੋਕੇ ਬਿਨਾਂ ਫਲੇਮਗ੍ਰਾਫਸ ਵਿਆਖਿਆ ਕਰੋ।
Sampling Python stacks with py-spyGenerating and reading flamegraphsAttaching gdb safely to live PythonHandling stripped or optimized buildsProfiling async and multithreaded codeReducing profiler overhead in production