diff --git a/docs/epyc.lstopo.svg b/docs/epyc.lstopo.svg new file mode 100644 index 0000000..6c0d2ec --- /dev/null +++ b/docs/epyc.lstopo.svg @@ -0,0 +1,229 @@ + + + + Machine (126GB total) + + Package L#0 + + L3 (32MB) + + L2 (512KB) + + L1d (32KB) + + L1i (32KB) + + Core L#0 + + PU L#0 + P#0 + + PU L#1 + P#64 + + L2 (512KB) + + L1d (32KB) + + L1i (32KB) + + Core L#1 + + PU L#2 + P#1 + + PU L#3 + P#65 + + + + 8x total + + L2 (512KB) + + L1d (32KB) + + L1i (32KB) + + Core L#7 + + PU L#14 + P#7 + + PU L#15 + P#71 + + L3 (32MB) + + L2 (512KB) + + L1d (32KB) + + L1i (32KB) + + Core L#8 + + PU L#16 + P#8 + + PU L#17 + P#72 + + L2 (512KB) + + L1d (32KB) + + L1i (32KB) + + Core L#9 + + PU L#18 + P#9 + + PU L#19 + P#73 + + + + 8x total + + L2 (512KB) + + L1d (32KB) + + L1i (32KB) + + Core L#15 + + PU L#30 + P#15 + + PU L#31 + P#79 + + + + 8x total + + L3 (32MB) + + L2 (512KB) + + L1d (32KB) + + L1i (32KB) + + Core L#56 + + PU L#112 + P#56 + + PU L#113 + P#120 + + L2 (512KB) + + L1d (32KB) + + L1i (32KB) + + Core L#57 + + PU L#114 + P#57 + + PU L#115 + P#121 + + + + 8x total + + L2 (512KB) + + L1d (32KB) + + L1i (32KB) + + Core L#63 + + PU L#126 + P#63 + + PU L#127 + P#127 + + NUMANode L#0 P#0 (126GB) + + + + 7.9 + + 4.0 + + 0.2 + + 1.0 + + + + + 7.9 + + + PCI 41:00.0 + + Block nvme0c0n1 + 6334 GB + + + + + + PCI 43:00.0 + + + + 0.2 + + + + + + + PCI 46:00.0 + + + + 1.0 + + 1.0 + + + PCI 48:00.0 + + Net eno1 + + PCI 48:00.1 + + Net eno2 + + MemoryModule + + MemoryModule + + MemoryModule + + MemoryModule + + MemoryModule + + MemoryModule + + MemoryModule + + MemoryModule + + Host: epyc + Date: Mon 05 Jun 2023 03:19:33 PM UTC + diff --git a/docs/epyc.md b/docs/epyc.md new file mode 100644 index 0000000..bd39c52 --- /dev/null +++ b/docs/epyc.md @@ -0,0 +1,121 @@ +# epyc + +``` +System: Host: epyc Kernel: 6.1.31 x86_64 bits: 64 compiler: gcc v: 12.2.0 + parameters: initrd=\efi\nixos\11cjvasd1nh1dk783alsa14v4w00d467-initrd-linux-6.1.31-initrd.efi + init=/nix/store/9lnrp5ryf7gh3j94q8xn39zyl21kaw9f-nixos-system-epyc-23.05.419.3a70dd92993/init + loglevel=4 + Console: N/A Distro: NixOS 23.05 (Stoat) +Machine: Type: Server System: Supermicro product: Super Server v: 0123456789 serial: 0123456789 + Chassis: type: 17 v: 0123456789 serial: 0123456789 + Mobo: Supermicro model: H12SSL-i v: 1.01 serial: WM21AS601818 UEFI: American Megatrends + v: 2.4 date: 04/14/2022 +Memory: RAM: total: 125.64 GiB used: 2.32 GiB (1.8%) + Array-1: capacity: 4 TiB note: check slots: 8 EC: Multi-bit ECC + max-module-size: 512 GiB note: est. + Device-1: DIMMA1 size: No Module Installed + Device-2: DIMMB1 size: No Module Installed + Device-3: DIMMC1 size: 64 GiB speed: 3200 MT/s type: DDR4 + detail: synchronous registered (buffered) bus-width: 64 bits total: 72 bits + manufacturer: Samsung part-no: M393A8G40AB2-CWE serial: Y10R120249249E38E1 + Device-4: DIMMD1 size: 64 GiB speed: 3200 MT/s type: DDR4 + detail: synchronous registered (buffered) bus-width: 64 bits total: 72 bits + manufacturer: Samsung part-no: M393A8G40AB2-CWE serial: Y10R120249249E38E8 + Device-5: DIMME1 size: No Module Installed + Device-6: DIMMF1 size: No Module Installed + Device-7: DIMMG1 size: No Module Installed + Device-8: DIMMH1 size: No Module Installed +PCI Slots: Slot: 1 type: x16 PCI Express 4 x16 CPU SLOT1 PCI-E 4.0 X16 status: Available + length: Long + Slot: 2 type: x8 PCI Express 4 x8 CPU SLOT2 PCI-E 4.0 X8 status: In Use length: Long + Slot: 3 type: x16 PCI Express 4 x16 CPU SLOT3 PCI-E 4.0 X16 status: Available + length: Long + Slot: 4 type: x8 PCI Express 4 x8 CPU SLOT4 PCI-E 4.0 X8 status: Available length: Long + Slot: 5 type: x16 PCI Express 4 x16 CPU SLOT5 PCI-E 4.0 X16 status: Available + length: Long + Slot: 6 type: x16 PCI Express 4 x16 CPU SLOT6 PCI-E 4.0 X16 status: Available + length: Long + Slot: 7 type: x16 PCI Express 4 x16 CPU SLOT7 PCI-E 4.0 X16 status: Available + length: Long + Slot: N/A type: x4 M.2 Socket 3 PCI-E M.2-M1 status: Available length: Short + Slot: N/A type: x4 M.2 Socket 3 PCI-E M.2-M2 status: Available length: Short +CPU: Info: 64-Core model: AMD EPYC 7763 socket: SP3 bits: 64 type: MT MCP arch: Zen 3 + family: 19 (25) model-id: 1 stepping: 1 microcode: A0011CE cache: L1: 4 MiB L2: 32 MiB + L3: 256 MiB + flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 627203 + Speed: 2450 MHz min/max: 1500/2450 MHz base/boost: 2450/3525 boost: enabled + volts: 1.1 V ext-clock: 100 MHz Core speeds (MHz): 1: 2450 2: 2450 3: 2450 4: 2450 + 5: 2450 6: 2450 7: 2450 8: 2450 9: 2450 10: 2450 11: 2450 12: 2450 13: 2450 14: 2450 + 15: 2450 16: 2450 17: 2450 18: 2450 19: 2450 20: 2450 21: 1799 22: 2450 23: 2450 + 24: 2450 25: 2450 26: 2450 27: 2450 28: 2450 29: 2450 30: 2450 31: 2450 32: 2450 + 33: 2450 34: 2450 35: 2450 36: 2450 37: 2450 38: 2450 39: 2450 40: 2450 41: 2450 + 42: 2450 43: 2450 44: 3525 45: 2450 46: 2450 47: 2450 48: 2450 49: 2450 50: 2450 + 51: 2450 52: 2450 53: 2450 54: 2450 55: 2450 56: 2450 57: 2450 58: 2450 59: 2450 + 60: 2450 61: 2450 62: 2450 63: 2450 64: 2450 65: 2450 66: 2450 67: 2450 68: 2450 + 69: 2450 70: 2450 71: 2450 72: 2450 73: 2450 74: 2450 75: 2450 76: 2450 77: 2450 + 78: 2450 79: 2450 80: 2450 81: 2450 82: 2450 83: 2450 84: 2450 85: 2450 86: 2450 + 87: 2450 88: 2450 89: 2450 90: 2450 91: 2450 92: 2450 93: 2450 94: 2450 95: 2450 + 96: 2450 97: 2450 98: 2450 99: 2450 100: 2450 101: 2450 102: 2450 103: 2450 104: 2450 + 105: 2450 106: 2450 107: 2450 108: 2450 109: 2450 110: 2450 111: 2450 112: 2450 + 113: 2450 114: 2450 115: 2450 116: 2450 117: 2450 118: 1799 119: 2450 120: 2450 + 121: 2450 122: 2450 123: 2450 124: 2450 125: 2450 126: 2450 127: 2450 128: 2450 + Vulnerabilities: Type: itlb_multihit status: Not affected + Type: l1tf status: Not affected + Type: mds status: Not affected + Type: meltdown status: Not affected + Type: mmio_stale_data status: Not affected + Type: retbleed status: Not affected + Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl + Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization + Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP: always-on, + RSB filling, PBRSB-eIBRS: Not affected + Type: srbds status: Not affected + Type: tsx_async_abort status: Not affected +Graphics: Device-1: ASPEED Graphics Family vendor: Super Micro H12SSL-i driver: ast v: kernel + bus-ID: 46:00.0 chip-ID: 1a03:2000 class-ID: 0300 + Display: server: No display server data found. Headless machine? tty: N/A + Message: Advanced graphics data unavailable in console for root. +Audio: Message: No device data found. +Network: Device-1: Intel 82599ES 10-Gigabit SFI/SFP+ Network driver: N/A modules: ixgbe + port: 1000 bus-ID: 43:00.0 chip-ID: 8086:10fb class-ID: 0200 + Device-2: Broadcom NetXtreme BCM5720 Gigabit Ethernet PCIe vendor: Super Micro H12SSL-i + driver: tg3 v: kernel port: 2000 bus-ID: 48:00.0 chip-ID: 14e4:165f class-ID: 0200 + IF: eno1 state: up speed: 1000 Mbps duplex: full mac: 3c:ec:ef:7e:bd:c8 + IP v4: 10.32.65.13/20 type: dynamic noprefixroute scope: global broadcast: 10.32.79.255 + IP v6: fe80::3eec:efff:fe7e:bdc8/64 scope: link + Device-3: Broadcom NetXtreme BCM5720 Gigabit Ethernet PCIe vendor: Super Micro H12SSL-i + driver: tg3 v: kernel port: 2000 bus-ID: 48:00.1 chip-ID: 14e4:165f class-ID: 0200 + IF: eno2 state: up speed: 1000 Mbps duplex: full mac: 3c:ec:ef:7e:bd:c9 + IP v4: 169.254.249.6/16 type: noprefixroute scope: global broadcast: 169.254.255.255 + IP v6: 2001:470:ca5e:dee:587c:7a50:f36c:cae8/64 type: temporary dynamic scope: global + IP v6: 2001:470:ca5e:dee:3eec:efff:fe7e:bdc9/64 type: dynamic mngtmpaddr noprefixroute + scope: global + IP v6: fe80::3eec:efff:fe7e:bdc9/64 scope: link + IF-ID-1: enp74s0f3u1u2c2 state: unknown speed: -1 duplex: half mac: be:3a:f2:b6:05:9f + IP v4: 169.254.3.1/24 type: dynamic noprefixroute scope: global + broadcast: 169.254.3.255 + IP v6: fe80::bc3a:f2ff:feb6:59f/64 scope: link + WAN IP: 82.65.118.1 +Bluetooth: Device-1: Insyde RNDIS/Ethernet Gadget type: USB driver: rndis_host v: kernel + bus-ID: 7-1.2:4 chip-ID: 0b1f:03ee class-ID: 0a00 + Report: This feature requires one of these tools: hciconfig/bt-adapter +Drives: Local Storage: total: 6.19 TiB used: 2.08 GiB (0.0%) + ID-1: /dev/nvme0n1 maj-min: 259:1 vendor: Samsung model: MZWLJ7T6HALA-00AU3 + size: 6.19 TiB block-size: physical: 512 B logical: 512 B rotation: SSD + serial: S5RTNG0T110589 rev: EPK96R5Q temp: 44 Celsius C scheme: GPT + SMART: yes health: PASSED on: 24 hrs cycles: 44 read-units: 1,449,016 [741 GB] + written-units: 13,364,537 [6.84 TB] +Partition: ID-1: / raw-size: 6.18 TiB size: 6.18 TiB (100.00%) used: 2.04 GiB (0.0%) fs: btrfs + block-size: 4096 B dev: /dev/dm-0 maj-min: 254:0 mapped: nixroot + ID-2: /boot raw-size: 1023 MiB size: 1021 MiB (99.80%) used: 37 MiB (3.6%) fs: vfat + block-size: 512 B dev: /dev/nvme0n1p1 maj-min: 259:2 +Swap: Kernel: swappiness: 60 (default) cache-pressure: 100 (default) + ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2 + dev: /dev/nvme0n1p2 maj-min: 259:3 +Sensors: Message: No ipmi sensor data found. + Message: No sensor data found. Is lm-sensors configured? +Info: Processes: 1010 Uptime: 20h 25m wakeups: 0 Init: systemd v: 253 + target: multi-user.target tool: systemctl Compilers: gcc: 12.2.0 Packages: + nix-default: 0 nix-sys: 268 lib: 47 nix-usr: 0 Client: Sudo v: 1.9.13p3 inxi: 3.3.04 +``` +![hardware topology](epyc.lstopo.svg) diff --git a/docs/generate-host-info.sh b/docs/generate-host-info.sh new file mode 100755 index 0000000..793d307 --- /dev/null +++ b/docs/generate-host-info.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +hostname=$(echo "$2") +report="$hostname.md" +lstopo="$hostname.lstopo.svg" +echo -e "# ${hostname}\n" > "$report" +echo "\`\`\`" >> "$report" +ssh "$1" -- nix-shell -p \'inxi.override { withRecommends = true\; }\' --run \"sudo inxi -F -a -i --slots -xxx -c0 -Z -i -m\" >> "$report" +ssh "$1" -- nix-shell -p hwloc -p dmidecode --run \"sudo lstopo /tmp/$hostname.lstopo.svg\" +scp "$1":/tmp/$hostname.lstopo.svg "$lstopo" +ssh "$1" -- sudo rm /tmp/$hostname.lstopo.svg +echo "\`\`\`" >> "$report" +echo "![hardware topology]($hostname.lstopo.svg)" >> "$report" +echo "wrote $report" >&2