From fb488ab35f588f41a93e7da075cc931194d39775 Mon Sep 17 00:00:00 2001 From: David Valin Date: Tue, 7 Jul 2020 15:45:31 -0400 Subject: [PATCH] Initial setup --- README.md | 3 +++ get_sys_info.sh | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 README.md create mode 100755 get_sys_info.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..b19b742 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +This is simply a script to gather various tidbits of the system configuration. +Main purpose is to be used with various performance test wrappers to record +the system configuration for future reference. diff --git a/get_sys_info.sh b/get_sys_info.sh new file mode 100755 index 0000000..c1aff6e --- /dev/null +++ b/get_sys_info.sh @@ -0,0 +1,12 @@ +#!/bin/bash +KERN=`uname -r` +numa_nodes=`lscpu | grep NUMA | grep CPU | wc -l` +numb_cpus=`cat /proc/cpuinfo |grep "processor" | wc -l` +cpu_info=`cat /proc/cpuinfo | grep "model name" | sort -u` +memory=`cat /proc/meminfo | grep MemTotal: | cut -d: -f 2` +echo kernel: $KERN +echo numa_nodes: $numa_nodes +echo number_cpus: $numb_cpus +echo cpu_info: $cpu_info +echo total_memory: $memory +