12 changed files with 9134 additions and 7 deletions
@ -0,0 +1,19 @@ |
|||||
|
#! /usr/bin/bash |
||||
|
#inspired by Sun Knudsen |
||||
|
|
||||
|
# create the test files |
||||
|
echo "preparing tests" |
||||
|
sysbench fileio --file-total-size=8G prepare > /dev/null |
||||
|
|
||||
|
# Test with 16K block size, random read/write |
||||
|
echo "run test with 16K block size" |
||||
|
sysbench fileio --file-block-size=16K --file-total-size=8G --file-test-mode=rndrw --threads=$(nproc) run |
||||
|
|
||||
|
# Test with 1M block size, random read/write |
||||
|
echo "run test with 1M block size" |
||||
|
sysbench fileio --file-block-size=1M --file-total-size=8G --file-test-mode=rndrw --threads=$(nproc) run |
||||
|
|
||||
|
# cleanup the test files |
||||
|
sysbench fileio --file-total-size=8G cleanup |
||||
|
|
||||
|
|
@ -0,0 +1,12 @@ |
|||||
|
#! /bin/bash |
||||
|
|
||||
|
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq |
||||
|
vcgencmd measure_temp |
||||
|
|
||||
|
sysbench --test=cpu --cpu-max-prime=1000 --num-threads=4 run >/dev/null 2>&1 |
||||
|
|
||||
|
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq |
||||
|
|
||||
|
sysbench --test=cpu --cpu-max-prime=50000 --num-threads=4 run |
||||
|
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq |
||||
|
vcgencmd measure_temp |
@ -0,0 +1,7 @@ |
|||||
|
proc /proc proc defaults 0 0 |
||||
|
PARTUUID=8acef004-01 /boot vfat defaults,flush 0 2 |
||||
|
PARTUUID=8acef004-02 / ext4 defaults,noatime 0 1 |
||||
|
192.168.178.36:/mnt/md0/public /tank nfs defaults,user,rw 1000 1000 |
||||
|
//clancy/nas /mnt/raspi-nas cifs uid=1000,gid=1000,credentials=/home/pi/.smbcredentials |
||||
|
# a swapfile is not a swap partition, no line here |
||||
|
# use dphys-swapfile swap[on|off] for that |
@ -0,0 +1,12 @@ |
|||||
|
#! /bin/bash |
||||
|
|
||||
|
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq |
||||
|
vcgencmd measure_temp |
||||
|
|
||||
|
sysbench --test=cpu --cpu-max-prime=1000 --num-threads=4 run >/dev/null 2>&1 |
||||
|
|
||||
|
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq |
||||
|
|
||||
|
sysbench --test=cpu --cpu-max-prime=50000 --num-threads=4 run |
||||
|
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq |
||||
|
vcgencmd measure_temp |
File diff suppressed because it is too large
@ -1,5 +1,6 @@ |
|||||
- name: Mount /tank |
- name: Mount /tank |
||||
ansible.posix.mount: |
|
||||
become: true |
become: true |
||||
path: /tank |
|
||||
state: mounted |
ansible.posix.mount: |
||||
|
path: /tank |
||||
|
state: mounted |
||||
|
File diff suppressed because it is too large
@ -0,0 +1,9 @@ |
|||||
|
#! /usr/bin/bash |
||||
|
|
||||
|
export COMPOSE_IGNORE_ORPHANS=True |
||||
|
echo "pulling new image" |
||||
|
docker pull pihole/pihole:latest |
||||
|
echo "removing container" |
||||
|
docker rm -f pihole |
||||
|
echo "creating new container" |
||||
|
docker-compose -f ~/dockerrepo/dockercmd/compose/pihole.yml up -d |
Loading…
Reference in new issue