« Scaleway performance test » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
|||
Ligne 1 : | Ligne 1 : | ||
=Protocole= | =Protocole= | ||
Performance crypto ssh : | * Performance crypto ssh : | ||
<pre> | <pre> | ||
ssh-keygen -t rsa -f ~/.ssh/id_rsa -P "" | ssh-keygen -t rsa -f ~/.ssh/id_rsa -P "" | ||
Ligne 12 : | Ligne 12 : | ||
grep -v records /root/tmp/dd.txt | grep -v records /root/tmp/dd.txt | ||
done | done | ||
done | |||
</pre> | |||
* Performance disque écriture | |||
<pre> | |||
for i in 1 2 3 ; do | |||
dd if=/dev/zero of=tempfile bs=1M count=1024 conv=fdatasync,notrunc | |||
done | |||
</pre> | |||
* Performance disque lecture | |||
<pre> | |||
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 | done | ||
</pre> | </pre> |
Version du 27 octobre 2018 à 17:11
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