Skip to content

Commit

Permalink
opp test image
Browse files Browse the repository at this point in the history
  • Loading branch information
loki666 committed Nov 28, 2024
1 parent e1ec851 commit 2022a2e
Show file tree
Hide file tree
Showing 15 changed files with 601 additions and 5,499 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

available_freq=("480000" "720000" "1008000" "1032000" "1104000" "1200000" "1416000")

# Seed random generator
RANDOM=$$$(date +%s)

echo userspace > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
stress-ng -c4 &

for (( ; ; ))
do
CHOICE_FREQ=${available_freq[$RANDOM % ${#available_freq[@]}]}
echo $CHOICE_FREQ
echo "$CHOICE_FREQ" > /sys/devices/system/cpu/cpufreq/policy0/scaling_setspeed
sleep 0.1
done

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

available_freq=("480000" "720000" "1008000" "1032000" "1104000" "1200000" "1416000" "1512000")

# Seed random generator
RANDOM=$$$(date +%s)

echo userspace > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
stress-ng -c4 &

for (( ; ; ))
do
CHOICE_FREQ=${available_freq[$RANDOM % ${#available_freq[@]}]}
echo $CHOICE_FREQ
echo "$CHOICE_FREQ" > /sys/devices/system/cpu/cpufreq/policy0/scaling_setspeed
sleep 0.1
done

Loading

0 comments on commit 2022a2e

Please sign in to comment.