Posts

Showing posts from December, 2024

multi-aspect system monitoring

 My own script: #!/bin/bash echo "Resource Usage Report" echo "=====================" # Top 3 CPU consumers echo "CPU:" ps -eo pid,comm,%cpu --sort=-%cpu | head -n 4 | awk 'NR>1 {printf "- %s: %s%%\n", $2, $3}' # Top 3 Memory consumers echo "RAM:" ps -eo pid,comm,%mem --sort=-%mem | head -n 4 | awk 'NR>1 {printf "- %s: %s%%\n", $2, $3}' # Top 3 Disk IO consumers echo "Disk:" iotop -b -n 1 | head -n 12 | grep -E '^ *[0-9]' | awk '{printf "- %s: %s%%\n", $12, $10}' | head -n 3 1. iostat (from the sysstat package) Use: Provides detailed statistics about CPU utilisation and I/O performance for devices and partitions. Why Use It: Focused on I/O bottlenecks. Breaks down performance metrics by individual devices (e.g., disks). Includes metrics like device utilisation, read/write speeds, and queue lengths. 2. iotop Use: Displays real-time I/O usage by processes. Why Use It:...

Multiple Monitor Setup

By default Ubuntu Linux does not copy the app launcher (dock-like thing) or the menubar to new screens (monitors). To do this you have to install some items. 1. Copy the Menubar to Another Screen/Monitor: Install GNOME Shell Extension: Multi Monitors Add-On : sudo apt install gnome-shell-extension-multi-monitors Enable the extension: gnome-extensions enable multi-monitors-add-on@spin83 Open GNOME Tweaks and enable the Multi Monitors extension under the "Extensions" tab. 2. Copy the App-Launcher/Dock-Like App to Another Screen/Monitor: Install Dash to Dock : sudo apt install gnome-shell-extension-dash-to-dock Enable Dash to Dock : gnome-extensions enable dash-to-dock@micxgx.gmail.com Configure Dash to Dock in GNOME Tweaks to display on multiple screens. However, spin83 (multimonitors) only works on old distros (it was released in 2014), so you need this version edited by myself:  https://github.com/JohnOstrowick/multi-monitors-add-on