1 වන පාඩමමතක විශ්ලේෂණය: free -m, /proc/meminfo, slabtop, smem—භාවිතා වූ vs ලබාගත හැකි මතකය සහ swap හැසිරීම විග්රහ කිරීමමෙහිදී ඔබ free, /proc/meminfo, slabtop, සහ smem භාවිතයෙන් මතක භාවිතය විශ්ලේෂණය කරනු ලබයි. මෙම කොටස Linux caching, buffers, සහ reclaim පිළිබඳව පැහැදිලි කරයි, swap භාවිතය විග්රහ කිරීම, සහ මතක leaks, fragmentation, සහ වැරදි limits හඳුනාගැනීම ඉගෙන ගනී.
Reading free -m and understanding cached memoryKey fields in /proc/meminfo for diagnosisUsing slabtop to inspect kernel slab usageUsing smem to attribute memory per processRecognizing swap thrashing and OOM risks2 වන පාඩමNetwork භාවිතය සහ bottlenecks: iftop, nload, ss, netstat, ip -s link, tc, tcpdump—network saturation සහ ගැටලු සම්බන්ධතා හඳුනාගැනීමමෙම කොටස iftop, nload, ss, ip, tc, සහ tcpdump භාවිතයෙන් network භාවිතය සහ bottlenecks හඳුනාගැනීම ආවරණය කරයි. ඔබට saturation, noisy neighbors, connection states, සහ slow applications වලට හේතු වන packet level ගැටලු හඳුනාගැනීම ඉගෙන ගත හැක.
Monitoring live bandwidth with iftop and nloadInspecting sockets and states with ssUsing ip -s link to view interface errorsBasics of tc for shaping and rate limitingTargeted packet capture with tcpdump3 වන පාඩමStorage latency සහ deeper I/O: blktrace, bpftrace (මූලික scripts), fio සඳහා tests—latency සහ throughput මැනීම සහ විග්රහ කිරීමමෙම කොටස blktrace, basic bpftrace scripts, සහ fio benchmarks භාවිතයෙන් storage latency සහ deeper I/O විශ්ලේෂණය ආවරණය කරයි. ඔබට latency සහ throughput මැනීම, queue depth විග්රහ කිරීම, සහ device limits workload ගැටලු වලින් වෙන්කිරීම ඉගෙන ගත හැක.
Understanding latency, IOPS, and throughputUsing blktrace to inspect block I/O patternsIntroductory bpftrace scripts for disk latencyDesigning fio workloads that mimic productionReading fio reports and spotting bottlenecks4 වන පාඩමProcess investigation: ps, top/htop filters, pgrep, pidstat, nice/renice—CPU- සහ memory-heavy processes සොයාගැනීමඔබට ps, top හෝ htop filters, pgrep, pidstat, සහ nice හෝ renice භාවිතයෙන් processes investigate කිරීම ඉගෙන ගත හැක. මෙම කොටස CPU සහ memory heavy tasks හඳුනාගැනීම, per process I/O track කිරීම, සහ contention අඩුකිරීමට priorities adjust කිරීම පෙන්වයි.
Listing and filtering processes with psUsing pgrep and pkill safely and preciselyUsing pidstat for per process CPU and I/OFiltering top and htop by user or resourceAdjusting priorities with nice and renice5 වන පාඩමSystem resource overview: top, htop, vmstat, mpstat, dstat—එකක් පෙන්වන්නේ කුමක්ද සහ expected output patternsමෙහිදී ඔබ top, htop, vmstat, mpstat, සහ dstat වැනි tools භාවිතයෙන් system-wide resource snapshots කියවීම ඉගෙන ගනී. මෙම කොටස CPU, memory, සහ load metrics තේරුම් ගැනීම, සහ normal vs pathological usage patterns හඳුනාගැනීම මත අවධානය යොමු කරයි.
Key CPU, load, and memory fields in topUsing htop for interactive process analysisvmstat for run queue, swap, and I/O insightmpstat for per-CPU utilization and steal timedstat for combined multi-resource timelines6 වන පාඩමDisk I/O සහ filesystem checks: iostat, iotop, sar -d, lsblk, df -h, du -sh, tune2fs, xfs_info—I/O bottlenecks සහ low space detect කිරීමමෙම කොටස iostat, iotop, sar -d, lsblk, df, du, tune2fs, සහ xfs_info භාවිතයෙන් disk I/O සහ filesystem health මත අවධානය යොමු කරයි. ඔබට saturation, queue buildup, filesystem errors, සහ low space conditions detect කිරීම ඉගෙන ගත හැකි ඒවා performance degrade කරයි.
Using iostat to spot busy and slow devicesUsing iotop to find I/O heavy processessar -d for historical disk utilization trendsChecking layout and types with lsblk and dfFinding space hogs with du and inode checks7 වන පාඩමSystem logs සහ journaling: journalctl (systemd), /var/log/messages, /var/log/syslog, auth logs—සොයාගත යුතු දේ සහ ඇයිමෙම කොටස systemd journalctl සහ classic log files වන /var/log/messages, /var/log/syslog, සහ authentication logs භාවිතය පැහැදිලි කරයි. ඔබට patterns search කිරීම, noise filter කිරීම, සහ logs root cause analysis සඳහා භාවිතා කිරීම ඉගෙන ගත හැක.
journalctl basics and useful filtering optionsReading /var/log/messages and /var/log/syslogFinding errors, warnings, and rate-limited eventsAnalyzing authentication and sudo related logsCorrelating log timestamps with incidents8 වන පාඩමTime-based සහ historical monitoring: sar, sysstat, collectl—events correlate කිරීමට historical metrics collect කිරීම සහ කියවීමඔබට sar, sysstat, සහ collectl භාවිතයෙන් historical metrics collect සහ interpret කිරීම ඉගෙන ගත හැක. මෙම කොටස data collection schedule කිරීම, time series reports කියවීම, සහ performance anomalies configuration changes හෝ deployments සමඟ correlate කිරීම පැහැදිලි කරයි.
Enabling and configuring sysstat collectionUsing sar for CPU, memory, and I/O historyReading sar network and load average trendsUsing collectl for multi-resource timelinesCorrelating metrics with change windows9 වන පාඩමKernel සහ scheduler insights: dmesg, sysctl -a, /proc/sys/vm parameters—kernel messages සහ tunables reveal කරන දේමෙහිදී ඔබ dmesg, sysctl, සහ /proc/sys/vm parameters භාවිතයෙන් kernel සහ scheduler insights explore කරනු ලබයි. මෙම කොටස kernel messages, tunables, සහ scheduler behavior hardware issues, misconfigurations, සහ tuning options reveal කරන ආකාරය පැහැදිලි කරයි.
Reading dmesg for hardware and driver issuesListing and querying sysctl tunable valuesKey /proc/sys/vm parameters for memoryScheduler related kernel parameters overviewSafely persisting kernel tuning changes10 වන පාඩමRoot cause determination ප්රවේශය: CPU, RAM, disk I/O, හෝ network ලෙස issues classify කිරීමට step-by-step decision treeමෙම කොටස root cause analysis සඳහා practical decision tree ඉදිරිපත් කරයි. ඔබට incidents CPU, memory, disk I/O, හෝ network bound ලෙස classify කිරීම, එක් එක් branch එකේ run කළ යුතු tools, සහ collected evidence භාවිතයෙන් hypotheses iteratively refine කිරීම ඉගෙන ගත හැක.
Initial triage and problem statementClassifying CPU versus I/O bound symptomsDistinguishing memory pressure from leaksIdentifying network versus local bottlenecksIterative hypothesis testing with metrics