Scaleway performance test

De Linux Server Wiki
Aller à la navigation Aller à la recherche

Protocole

  • Performance crypto ssh :
ssh-keygen -t rsa -f ~/.ssh/id_rsa -P ""
cat ~/.ssh/id_rsa.pub >> .ssh/authorized_keys
ciphers="aes128-ctr aes192-ctr aes256-ctr aes128-gcm@openssh.com aes256-gcm@openssh.com chacha20-poly1305@openssh.com"
for cipher in $ciphers ; do
    for i in 1 2 3 ; do
        echo
        echo "Cipher: $cipher (try $i)"
        dd if=/dev/zero bs=4M count=1024 2>/root/tmp/dd.txt | pv --size 4G | time -p ssh -c "$cipher" root@localhost 'cat > /dev/null'
        grep -v records /root/tmp/dd.txt
    done
done
  • Performance disque écriture
for i in 1 2 3 ; do
   dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc
done
  • Performance disque lecture
for i in 1 2 3 ; do
   echo 3 > /proc/sys/vm/drop_caches
   dd if=tempfile of=/dev/null bs=1M count=1024
done

Test

Baremetal C1