Skip to content

Commit

Permalink
Merge pull request #18 from redhat-performance/fix_cpu_freq
Browse files Browse the repository at this point in the history
Remove cpu freq code that was for RHEL 6
  • Loading branch information
dvalinrh authored Jul 11, 2024
2 parents 01523ce + 07c6dc9 commit 89fe110
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions iozone/iozone_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -373,29 +373,7 @@ check_for_numa()
prep_system()
{
rm -f ${testing_dir}/FAILED >& /dev/null
#
# Shut down any crond anacron activity.
#
systemctl stop crond.service
systemctl stop anacron.service

#
# Turn off power services
#
systemctl restart cpupower.service
systemctl stop cpupower.service

if [ -d "/sys/devices/system/cpu/cpu0/cpufreq" ]; then
echo "CPUSPEED must be enabled to prep for locking processors at highest speed"
echo ""
echo "Adjusting CPU governors"
for CPU in `seq 0 ${max_cpu}`; do
echo -n "CPU: ${CPU} "
echo -n "was `cat /sys/devices/system/cpu/cpu${CPU}/cpufreq/scaling_governor` "
echo performance > /sys/devices/system/cpu/cpu${CPU}/cpufreq/scaling_governor
echo "now `cat /sys/devices/system/cpu/cpu${CPU}/cpufreq/scaling_governor`"
done
fi
cp /proc/cpuinfo ${configdir}/cpuinfo

#
Expand Down

0 comments on commit 89fe110

Please sign in to comment.