Updates to scripts etc

This commit is contained in:
Jeff Curless
2025-07-15 15:56:45 -04:00
parent 97a33f2328
commit 399e4a2515
10 changed files with 124 additions and 9 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*/readdatafile
*/writedatafile

10
config/update.sh Executable file
View File

@@ -0,0 +1,10 @@
#! /bin/sh
#
for file in $(ls -1 *_config.txt)
do
echo "Processig file: $file"
while read line
do
echo $line
done < $file
done

7
fioscript/drives Normal file
View File

@@ -0,0 +1,7 @@
sequential 4K
READ: bw=826MiB/s (866MB/s), 826MiB/s-826MiB/s (866MB/s-866MB/s), io=96.8GiB (104GB), run=120003-120003msec
WRITE: bw=814MiB/s (854MB/s), 814MiB/s-814MiB/s (854MB/s-854MB/s), io=95.4GiB (102GB), run=120003-120003msec
Random 4K
READ: bw=858MiB/s (900MB/s), 858MiB/s-858MiB/s (900MB/s-900MB/s), io=101GiB (108GB), run=120004-120004msec
WRITE: bw=803MiB/s (842MB/s), 803MiB/s-803MiB/s (842MB/s-842MB/s), io=94.1GiB (101GB), run=120003-120003msec

View File

@@ -5,7 +5,7 @@ rw=randread
bs=4K
direct=1
time_based=1
runtime=300
runtime=120
group_reporting=1
ioengine=libaio

View File

@@ -0,0 +1,43 @@
[global]
name=fio-ran-rw
filename=writedatafile
rw=randrw
bs=4K
direct=1
time_based=1
runtime=120
group_reporting=1
ioengine=libaio
[job1]
size=10g
iodepth=64
[job2]
size=10g
iodepth=64
[job3]
size=10g
iodepth=64
[job4]
size=10g
iodepth=64
[job5]
size=10g
iodepth=64
[job6]
size=10g
iodepth=64
[job7]
size=10g
iodepth=64
[job8]
size=10g
iodepth=64

View File

@@ -5,7 +5,7 @@ rw=randwrite
bs=4K
direct=1
time_based=1
runtime=300
runtime=120
group_reporting=1
ioengine=libaio

View File

@@ -5,7 +5,7 @@ rw=read
bs=4K
direct=1
time_based=1
runtime=300
runtime=120
group_reporting=1
ioengine=libaio

View File

@@ -0,0 +1,43 @@
[global]
name=fio-seq-r
filename=writedatafile
rw=readwrite
bs=4K
direct=1
time_based=1
runtime=120
group_reporting=1
ioengine=libaio
[job1]
size=10g
iodepth=64
[job2]
size=10g
iodepth=64
[job3]
size=10g
iodepth=64
[job4]
size=10g
iodepth=64
[job5]
size=10g
iodepth=64
[job6]
size=10g
iodepth=64
[job7]
size=10g
iodepth=64
[job8]
size=10g
iodepth=64

View File

@@ -5,7 +5,7 @@ rw=write
bs=4K
direct=1
time_based=1
runtime=300
runtime=120
group_reporting=1
ioengine=libaio

View File

@@ -169,16 +169,26 @@ def getNVMETemp(device : str) -> float:
return float(0.0)
def argonsysinfo_kbstr(kbval, wholenumbers = True):
remainder = 0
suffixidx = 0
suffixlist = ["KiB", "MiB", "GiB", "TiB"]
while kbval > 1023 and suffixidx < len(suffixlist):
remainder = kbval % 1024
kbval = kbval // 1024
suffixidx = suffixidx + 1
return f"{kbval} {suffixlist[suffixidx]}"
stats = DriveStat( 'nvme0n1' )
cpuTemp = setupTemperatureObject()
while True:
os.system( "clear ")
print( f"CPU : {cpuTemp.temperature}" )
print( f"Fan : {getFanSpeed()}" )
print( f"NVME : {getNVMETemp('nvme0n1')}" )
data = stats.readWriteSectors()
print( f"Read : {data[0]*512}" )
print( f"Write: {data[1] *512}" )
time.sleep( 1 )
print( f"Read : {argonsysinfo_kbstr(data[0]*512)}/s" )
print( f"Write: {argonsysinfo_kbstr(data[1]*512)}/s" )
time.sleep(1)