diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 000000000..d11bb3063 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,13 @@ +## Goal +What is the purpose of this PR? + +## Changes +What was changed? + +## Testing +How was it tested? + +### Checklist +- [ ] Clear, descriptive PR title +- [ ] Documentation/README updated (if needed) +- [ ] No secrets or large temporary files committed \ No newline at end of file diff --git a/labs/artifacts/lab8/df-h.txt b/labs/artifacts/lab8/df-h.txt new file mode 100644 index 000000000..11445a1ba --- /dev/null +++ b/labs/artifacts/lab8/df-h.txt @@ -0,0 +1,6 @@ +Filesystem Size Used Avail Use% Mounted on +tmpfs 593M 1.5M 591M 1% /run +/dev/sda2 25G 13G 11G 55% / +tmpfs 2.9G 0 2.9G 0% /dev/shm +tmpfs 5.0M 8.0K 5.0M 1% /run/lock +tmpfs 593M 116K 593M 1% /run/user/1000 diff --git a/labs/artifacts/lab8/du-var-top10.txt b/labs/artifacts/lab8/du-var-top10.txt new file mode 100644 index 000000000..6dc276357 --- /dev/null +++ b/labs/artifacts/lab8/du-var-top10.txt @@ -0,0 +1,10 @@ +3.1G /var +2.8G /var/lib +2.2G /var/lib/snapd +1.2G /var/lib/snapd/cache +1.1G /var/lib/snapd/snaps +254M /var/lib/apt/lists +254M /var/lib/apt +181M /var/cache +177M /var/lib/docker +176M /var/lib/docker/overlay2 diff --git a/labs/artifacts/lab8/iostat-x-1-5.txt b/labs/artifacts/lab8/iostat-x-1-5.txt new file mode 100644 index 000000000..188369c3c --- /dev/null +++ b/labs/artifacts/lab8/iostat-x-1-5.txt @@ -0,0 +1,122 @@ +Linux 6.17.0-19-generic (andrey-VirtualBox) 05/10/2026 _x86_64_ (2 CPU) + +avg-cpu: %user %nice %system %iowait %steal %idle + 1.11 0.13 5.72 4.52 0.00 88.52 + +Device r/s rkB/s rrqm/s %rrqm r_await rareq-sz w/s wkB/s wrqm/s %wrqm w_await wareq-sz d/s dkB/s drqm/s %drqm d_await dareq-sz f/s f_await aqu-sz %util +loop0 0.01 0.01 0.00 0.00 4.00 1.21 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop1 0.22 3.10 0.00 0.00 20.68 14.40 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.32 +loop10 0.04 0.69 0.00 0.00 92.88 19.25 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.29 +loop11 0.03 0.22 0.00 0.00 81.23 8.07 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.22 +loop12 0.03 0.24 0.00 0.00 72.74 8.06 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.21 +loop13 0.03 0.22 0.00 0.00 78.82 7.76 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.22 +loop14 0.47 17.86 0.00 0.00 9.02 37.68 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.40 +loop15 0.03 0.40 0.00 0.00 14.59 13.93 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.04 +loop16 0.01 0.01 0.00 0.00 0.00 1.27 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop2 0.04 0.68 0.00 0.00 125.50 17.52 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.27 +loop3 0.04 0.68 0.00 0.00 128.45 19.20 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.26 +loop4 0.04 0.72 0.00 0.00 88.85 18.69 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.22 +loop5 0.03 0.22 0.00 0.00 67.09 8.07 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.18 +loop6 0.03 0.22 0.00 0.00 58.30 7.70 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.17 +loop7 1.09 15.96 0.00 0.00 4.58 14.67 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.43 +loop8 0.04 0.68 0.00 0.00 126.03 18.39 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.29 +loop9 1.11 3.35 0.00 0.00 4.71 3.01 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.01 0.34 +sda 9.42 1066.78 3.72 28.31 33.68 113.25 2.40 39.69 2.07 46.26 21.08 16.54 0.00 0.00 0.00 0.00 0.00 0.00 0.40 48.62 0.39 7.57 + + +avg-cpu: %user %nice %system %iowait %steal %idle + 0.00 0.00 4.30 0.00 0.00 95.70 + +Device r/s rkB/s rrqm/s %rrqm r_await rareq-sz w/s wkB/s wrqm/s %wrqm w_await wareq-sz d/s dkB/s drqm/s %drqm d_await dareq-sz f/s f_await aqu-sz %util +loop0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop10 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop11 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop12 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop13 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop14 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop15 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop16 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop4 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop5 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop6 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop7 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop8 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop9 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 + + +avg-cpu: %user %nice %system %iowait %steal %idle + 0.00 0.00 3.76 4.84 0.00 91.40 + +Device r/s rkB/s rrqm/s %rrqm r_await rareq-sz w/s wkB/s wrqm/s %wrqm w_await wareq-sz d/s dkB/s drqm/s %drqm d_await dareq-sz f/s f_await aqu-sz %util +loop0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop10 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop11 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop12 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop13 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop14 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop15 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop16 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop4 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop5 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop6 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop7 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop8 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop9 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +sda 0.00 0.00 0.00 0.00 0.00 0.00 2.00 228.00 55.00 96.49 42.50 114.00 0.00 0.00 0.00 0.00 0.00 0.00 2.00 41.50 0.17 8.50 + + +avg-cpu: %user %nice %system %iowait %steal %idle + 0.00 0.00 3.74 0.00 0.00 96.26 + +Device r/s rkB/s rrqm/s %rrqm r_await rareq-sz w/s wkB/s wrqm/s %wrqm w_await wareq-sz d/s dkB/s drqm/s %drqm d_await dareq-sz f/s f_await aqu-sz %util +loop0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop10 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop11 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop12 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop13 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop14 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop15 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop16 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop4 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop5 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop6 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop7 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop8 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop9 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 + + +avg-cpu: %user %nice %system %iowait %steal %idle + 0.54 0.00 3.23 0.00 0.00 96.24 + +Device r/s rkB/s rrqm/s %rrqm r_await rareq-sz w/s wkB/s wrqm/s %wrqm w_await wareq-sz d/s dkB/s drqm/s %drqm d_await dareq-sz f/s f_await aqu-sz %util +loop0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop10 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop11 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop12 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop13 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop14 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop15 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop16 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop4 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop5 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop6 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop7 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop8 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +loop9 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 +sda 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 + + diff --git a/labs/artifacts/lab8/iotop-active.txt b/labs/artifacts/lab8/iotop-active.txt new file mode 100644 index 000000000..91cff6099 --- /dev/null +++ b/labs/artifacts/lab8/iotop-active.txt @@ -0,0 +1,13 @@ + 6011 be/4 root 0.00 B/s 408.18 M/s ?unavailable? dd if=/dev/zero of=/tmp/lab8-io-test.bin bs=8M count=128 status=none + 6011 be/4 root 0.00 B/s 251.94 M/s ?unavailable? dd if=/dev/zero of=/tmp/lab8-io-test.bin bs=8M count=128 status=none + 6015 be/4 root 0.00 B/s 3.85 K/s ?unavailable? python3 /usr/sbin/iotop -b -o -n 5 -qqq + 6012 be/4 root 30.77 M/s 0.00 B/s ?unavailable? dd if=/var/lib/snapd/snaps/gnome-42-2204_247.snap of=/dev/null bs=4M status=none + 6013 be/4 root 30.77 M/s 0.00 B/s ?unavailable? dd if=/var/lib/snapd/cache/6b8f0b8920d12519d7c5e677950a231810fa253e34962f312b3dfa58af9d91eeab9d5c1b3483cf0da6df66f23f3f5f8d of=/dev/null bs=4M status=none + 6011 be/4 root 0.00 B/s 101.88 M/s ?unavailable? dd if=/dev/zero of=/tmp/lab8-io-test.bin bs=8M count=128 status=none + 6012 be/4 root 38.45 M/s 0.00 B/s ?unavailable? dd if=/var/lib/snapd/snaps/gnome-42-2204_247.snap of=/dev/null bs=4M status=none + 6013 be/4 root 30.76 M/s 0.00 B/s ?unavailable? dd if=/var/lib/snapd/cache/6b8f0b8920d12519d7c5e677950a231810fa253e34962f312b3dfa58af9d91eeab9d5c1b3483cf0da6df66f23f3f5f8d of=/dev/null bs=4M status=none + 6011 be/4 root 0.00 B/s 100.00 M/s ?unavailable? dd if=/dev/zero of=/tmp/lab8-io-test.bin bs=8M count=128 status=none + 6012 be/4 root 31.37 M/s 0.00 B/s ?unavailable? dd if=/var/lib/snapd/snaps/gnome-42-2204_247.snap of=/dev/null bs=4M status=none + 6013 be/4 root 39.22 M/s 0.00 B/s ?unavailable? dd if=/var/lib/snapd/cache/6b8f0b8920d12519d7c5e677950a231810fa253e34962f312b3dfa58af9d91eeab9d5c1b3483cf0da6df66f23f3f5f8d of=/dev/null bs=4M status=none + 6012 be/4 root 21.93 M/s 0.00 B/s ?unavailable? dd if=/var/lib/snapd/snaps/gnome-42-2204_247.snap of=/dev/null bs=4M status=none + 6013 be/4 root 30.34 M/s 0.00 B/s ?unavailable? dd if=/var/lib/snapd/cache/6b8f0b8920d12519d7c5e677950a231810fa253e34962f312b3dfa58af9d91eeab9d5c1b3483cf0da6df66f23f3f5f8d of=/dev/null bs=4M status=none diff --git a/labs/artifacts/lab8/pidstat-d-1-5.txt b/labs/artifacts/lab8/pidstat-d-1-5.txt new file mode 100644 index 000000000..de98b7798 --- /dev/null +++ b/labs/artifacts/lab8/pidstat-d-1-5.txt @@ -0,0 +1,13 @@ +Linux 6.17.0-19-generic (andrey-VirtualBox) 05/10/2026 _x86_64_ (2 CPU) + +05:53:04 PM UID PID kB_rd/s kB_wr/s kB_ccwr/s iodelay Command + +05:53:05 PM UID PID kB_rd/s kB_wr/s kB_ccwr/s iodelay Command + +05:53:06 PM UID PID kB_rd/s kB_wr/s kB_ccwr/s iodelay Command + +05:53:07 PM UID PID kB_rd/s kB_wr/s kB_ccwr/s iodelay Command + +05:53:08 PM UID PID kB_rd/s kB_wr/s kB_ccwr/s iodelay Command + +Average: UID PID kB_rd/s kB_wr/s kB_ccwr/s iodelay Command diff --git a/labs/artifacts/lab8/run-timestamp.txt b/labs/artifacts/lab8/run-timestamp.txt new file mode 100644 index 000000000..eb9723bf3 --- /dev/null +++ b/labs/artifacts/lab8/run-timestamp.txt @@ -0,0 +1 @@ +2026-05-10 17:52:59 MSK diff --git a/labs/artifacts/lab8/screenshots/.gitkeep b/labs/artifacts/lab8/screenshots/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/labs/artifacts/lab8/screenshots/checkly-alert-settings.png b/labs/artifacts/lab8/screenshots/checkly-alert-settings.png new file mode 100644 index 000000000..4e9113786 Binary files /dev/null and b/labs/artifacts/lab8/screenshots/checkly-alert-settings.png differ diff --git a/labs/artifacts/lab8/screenshots/checkly-browser-config.png b/labs/artifacts/lab8/screenshots/checkly-browser-config.png new file mode 100644 index 000000000..754631e6f Binary files /dev/null and b/labs/artifacts/lab8/screenshots/checkly-browser-config.png differ diff --git a/labs/artifacts/lab8/screenshots/checkly-dashboard-overview.png b/labs/artifacts/lab8/screenshots/checkly-dashboard-overview.png new file mode 100644 index 000000000..81f53ff83 Binary files /dev/null and b/labs/artifacts/lab8/screenshots/checkly-dashboard-overview.png differ diff --git a/labs/artifacts/lab8/screenshots/checkly-success-result.png b/labs/artifacts/lab8/screenshots/checkly-success-result.png new file mode 100644 index 000000000..9889fb72c Binary files /dev/null and b/labs/artifacts/lab8/screenshots/checkly-success-result.png differ diff --git a/labs/artifacts/lab8/top-cpu.txt b/labs/artifacts/lab8/top-cpu.txt new file mode 100644 index 000000000..7e8464eed --- /dev/null +++ b/labs/artifacts/lab8/top-cpu.txt @@ -0,0 +1,15 @@ + PID COMMAND %CPU %MEM + 5567 ps 250 0.0 + 2272 gnome-shell 1.2 5.8 + 5421 packagekitd 0.7 0.3 + 3372 kworker/1:0-eve 0.2 0.0 + 1175 happd 0.2 0.2 + 891 polkitd 0.1 0.2 + 1 systemd 0.1 0.2 + 2565 ibus-extension- 0.1 0.4 + 5143 sshd 0.1 0.1 + 895 snapd 0.1 0.6 + 868 dbus-daemon 0.1 0.1 + 1189 containerd 0.1 0.8 + 1224 dockerd 0.1 1.2 + 24 ksoftirqd/1 0.0 0.0 diff --git a/labs/artifacts/lab8/top-mem.txt b/labs/artifacts/lab8/top-mem.txt new file mode 100644 index 000000000..ee1796950 --- /dev/null +++ b/labs/artifacts/lab8/top-mem.txt @@ -0,0 +1,15 @@ + PID COMMAND %MEM %CPU + 2272 gnome-shell 5.8 1.2 + 2936 mutter-x11-fram 1.7 0.0 + 2809 gsd-xsettings 1.3 0.0 + 1224 dockerd 1.2 0.1 + 2358 Xwayland 1.1 0.0 + 2403 evolution-alarm 1.0 0.0 + 1189 containerd 0.8 0.1 + 2359 evolution-sourc 0.7 0.0 + 2930 xdg-desktop-por 0.6 0.0 + 895 snapd 0.6 0.1 + 3070 update-notifier 0.5 0.0 + 2731 evolution-addre 0.5 0.0 + 2686 snapd-desktop-i 0.5 0.0 + 2565 ibus-extension- 0.4 0.1 diff --git a/labs/artifacts/lab8/var-largest-3-files.txt b/labs/artifacts/lab8/var-largest-3-files.txt new file mode 100644 index 000000000..7e1d27e2d --- /dev/null +++ b/labs/artifacts/lab8/var-largest-3-files.txt @@ -0,0 +1,3 @@ +607M /var/lib/snapd/cache/6b8f0b8920d12519d7c5e677950a231810fa253e34962f312b3dfa58af9d91eeab9d5c1b3483cf0da6df66f23f3f5f8d +532M /var/lib/snapd/snaps/gnome-42-2204_247.snap +395M /var/lib/snapd/cache/651a6f21a71dfa0a5303df4e7e5661ba7a9213d5177cdc99ae3f0a1798e47bd6ee4b3805063e8f86da1f7b1b8ce9eacb diff --git a/labs/submission8.md b/labs/submission8.md new file mode 100644 index 000000000..c8a720b51 --- /dev/null +++ b/labs/submission8.md @@ -0,0 +1,102 @@ +# Lab 8 - Submission + +## Task 1 - Key Metrics for SRE and System Analysis + +### Commands used + +```bash +sudo apt-get update -y +sudo apt-get install -y htop sysstat iotop + +ps -eo pid,comm,%cpu,%mem --sort=-%cpu | head -n 15 +ps -eo pid,comm,%mem,%cpu --sort=-%mem | head -n 15 +iostat -x 1 5 +pidstat -d 1 5 + +df -h +sudo du -h /var | sort -rh | head -n 10 +sudo find /var -type f -exec du -h {} + | sort -rh | head -n 3 +``` + +### Key results + +Top 3 CPU consumers (excluding short-lived `ps`): +1. `gnome-shell` (~1.2% CPU) +2. `packagekitd` (~0.7% CPU) +3. `happd` (~0.2% CPU) + +Top 3 memory consumers: +1. `gnome-shell` (~5.8% MEM) +2. `mutter-x11-frames` (~1.7% MEM) +3. `gsd-xsettings` (~1.3% MEM) + +Top 3 I/O consumers (`iotop` under controlled load): +1. `dd if=/dev/zero of=/tmp/lab8-io-test.bin ...` (write up to ~408 MB/s) +2. `dd if=/var/lib/snapd/snaps/gnome-42-2204_247.snap ...` (read ~21-38 MB/s) +3. `dd if=/var/lib/snapd/cache/... ...` (read ~30-39 MB/s) + +Top 3 largest files in `/var`: +1. `607M /var/lib/snapd/cache/6b8f0b8920d12519d7c5e677950a231810fa253e34962f312b3dfa58af9d91eeab9d5c1b3483cf0da6df66f23f3f5f8d` +2. `532M /var/lib/snapd/snaps/gnome-42-2204_247.snap` +3. `395M /var/lib/snapd/cache/651a6f21a71dfa0a5303df4e7e5661ba7a9213d5177cdc99ae3f0a1798e47bd6ee4b3805063e8f86da1f7b1b8ce9eacb` + +Artifacts: +- `labs/artifacts/lab8/top-cpu.txt` +- `labs/artifacts/lab8/top-mem.txt` +- `labs/artifacts/lab8/iostat-x-1-5.txt` +- `labs/artifacts/lab8/pidstat-d-1-5.txt` +- `labs/artifacts/lab8/iotop-active.txt` +- `labs/artifacts/lab8/df-h.txt` +- `labs/artifacts/lab8/du-var-top10.txt` +- `labs/artifacts/lab8/var-largest-3-files.txt` + +### Analysis + +The system stayed mostly idle on CPU, with desktop services as the primary steady consumers. Most disk usage in `/var` is concentrated in `snapd` cache and snap packages, while Docker storage usage is smaller in this snapshot. + +### Reflection + +Main optimization actions: +- Clean snap cache and remove unused snap revisions. +- Keep periodic Docker image cleanup. +- Track baseline CPU/I/O/storage trends and alert on deviations. + +--- + +## Task 2 - Practical Website Monitoring Setup (Checkly) + +### Monitored website + +- `https://example.com` + +### Configured checks + +1. API Check + - URL: `https://example.com` + - Assertion: status code `200` + - Frequency: every `5` minutes + +2. Browser Check + - URL: `https://example.com` + - Validation: page title contains `Example Domain` + - Validation: text `Example Domain` is visible + +3. Alerts + - Alert on failed checks + - Alert on high latency threshold + - Notification channel: email + +### Evidence (screenshots) + +- `labs/artifacts/lab8/screenshots/checkly-browser-config.png` +- `labs/artifacts/lab8/screenshots/checkly-success-result.png` +- `labs/artifacts/lab8/screenshots/checkly-alert-settings.png` +- `labs/artifacts/lab8/screenshots/checkly-dashboard-overview.png` + +### Analysis + +The setup combines availability checks (API) and user-facing behavior checks (Browser). This reduces blind spots where endpoint status is green but user experience is degraded. + +### Reflection + +This monitoring approach improves incident detection speed and helps reduce MTTR by alerting on both downtime and performance issues. diff --git a/labs/test b/labs/test new file mode 100644 index 000000000..2a99ea22e --- /dev/null +++ b/labs/test @@ -0,0 +1 @@ +test commit