Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F85053179
benchmark_io.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Sep 26, 11:09
Size
670 B
Mime Type
text/x-shellscript
Expires
Sat, Sep 28, 11:09 (2 d)
Engine
blob
Format
Raw Data
Handle
21122829
Attached To
rPHINFRA c4science
benchmark_io.sh
View Options
#!/bin/bash
SIZES='1 10 100'
INSTANCES=$(echo -n c4science-app0{0..1}; echo -n " c4science-phd00")
for s in $SIZES; do
CMD_W="sync; dd if=/dev/zero of=/var/repo/test bs=1M count=$s oflag=dsync 2>&1"
CMD_R="sysctl -w vm.drop_caches=3; dd if=/var/repo/test of=/dev/null bs=1M count=$s oflag=dsync 2>&1"
echo "> Write ${s}M"
for n in $INSTANCES; do
echo -en " $n: "
ssh $n "$CMD_W" 2> /dev/null | grep copied | awk '{print $6 " sec, ", $8, $9}'
done
echo "> Read ${s}M"
for n in $INSTANCES; do
echo -en " $n: "
ssh $n "$CMD_R" 2> /dev/null | grep copied | awk '{print $6 " sec, ", $8, $9}'
done
done
Event Timeline
Log In to Comment