This shows you the differences between two versions of the page.
|
ep:labs:04:contents:tasks:ex3 [2025/03/24 22:08] silvia.dragan [03. [30p] Kernel Samepage Merging] |
ep:labs:04:contents:tasks:ex3 [2026/03/24 11:36] (current) radu.mantu |
||
|---|---|---|---|
| Line 61: | Line 61: | ||
| === [10p] Task C - Plot results === | === [10p] Task C - Plot results === | ||
| - | Now that you’ve observed the effects of KSM using vmstat, it’s time to visualize them. Generate a real-time plot that shows free memory, used memory, and memory used as a buffer over time, based on the freemem column from the output of the vmstat command. The plot should dynamically adjust the axis ranges based on the data. The x-axis should represent time, and the y-axis should represent the amount of free memory. The plot should update in real-time as new data is collected. | + | Now that you’ve observed the effects of KSM using vmstat, it’s time to visualize them. Solve the TODOs from plot.py from skeleton to generate a real-time plot that shows free memory, used memory, and memory used as a buffer over time, based on the freemem column from the output of the vmstat command. |
| - | + | ||
| + | <note tip> | ||
| + | **Troubleshooting** | ||
| + | ----- | ||
| + | If you get something resembling ''Could not load the Qt platform plugin "xcb" in "" even though it was found.'' on either WSL or certain Linux environments (e.g., having Hyprland as a Wayland compositor), check out | ||
| + | [[https://blinq.hashnode.dev/fixing-xcb-load-failures-in-pyqt5-on-windows-subsystem-for-linux-wsl|this post]]. | ||
| + | </note> | ||