Skip to content

Commit

Permalink
Initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dvalinrh committed Jul 7, 2020
0 parents commit fb488ab
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
12 changes: 12 additions & 0 deletions get_sys_info.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fb488ab

Please sign in to comment.