masonr / yet-another-bench-script

YABS - a simple bash script to estimate Linux server performance using fio, iperf3, & Geekbench
Do What The F*ck You Want To Public License
4.22k stars 430 forks source link

No free -h on CentOS 6 #8

Closed mr119 closed 3 years ago

mr119 commented 4 years ago

Great script! Forked it for our internal use.

The script uses free -h to get RAM information, however on CentOS 6 surprisingly free -h isn't available, so might have to update with free and convert the response to human-readable numbers.

masonr commented 4 years ago

Hey there, thanks for the bug report! I'll look into this and see if I can replicate. Just using free without options and converting to a human-readable format within the script is easily doable since the disk speed results already do something similar. Let me test and write up a fix for this one. Thanks again!

masonr commented 4 years ago

Hello there @mr119!

Please give the following a test and make sure the fix I implemented works well. I confirmed using a CentOS 6 Docker container that the 'free -h' problem existed and that this fix worked. Please make sure this is the case on your end as well.

curl -s https://raw.githubusercontent.com/masonr/yet-another-bench-script/testing/yabs.sh | bash -s -- -dig

Once confirmed and I do some additional testing, I'll merge the changes into the master branch.

Thanks!

masonr commented 3 years ago

Fixed in 203c9a0