CPU performance counters

Hardware CPU counters during a 5-second window

perf stat -e cycles,instructions,cache-misses -- sleep 5

tool
linux133 commands
tags
linuxmonitoringperformance

More linux commands

  • lscpu | grep -E 'Model|Socket|Core|Thread|MHz'

    CPU model, socket/core/thread topology, and clock speed

  • dmidecode -t memory | grep -E 'Size|Speed|Locator|Type:'

    Physical DIMM slots: size, speed, type (requires root)

  • lspci -v | grep -A5 'VGA\|Ethernet\|NVMe'

    Network cards, GPUs, NVMe controllers with driver info

  • chattr +i /etc/resolv.conf && lsattr /etc/resolv.conf

    Prevent any user (incl. root) from modifying the file

  • lsattr -R /etc/ 2>/dev/null | grep -v '^\-\-\-\-'

    List non-default extended attrs in /etc/

all 133 linux commands