Mon seul intérêt était d’améliorer les performances de la machine virtuelle.
C’est assez frustrant de voir un processeur à 25%, pendant que la machine virtuelle “mouline”.
Après quelques tests et quelques observations, on dirai que la balance penche en faveur de l’hyper-threading.
-
Des tests de compression d’un fichier avi de 700Mo avec la commande tar:
Avec hyper-threading: Environ 4 min 31 s
Sans hyper-threading: Environ 4 min 37 s
-
Temps que la debian met pour “démonter” les addons de virtualbox
Avec hyper-threading:
Environ 45s
Sans hyper-threading:
Environ 1 min 05 s
-
Un test cpu en console trouvé sur internet
$ sysbench --test=cpu --cpu-max-prime=10000 run
Avec hyper-threading:
Test execution summary:
total time: 68.5638s
total number of events: 10000
total time taken by event execution: 68.3634
per-request statistics:
min: 3.25ms
avg: 6.84ms
max: 18.77ms
approx. 95 percentile: 7.43ms
Threads fairness:
events (avg/stddev): 10000.0000/0.00
execution time (avg/stddev): 68.3634/0.00
Sans hyper-threading:
Test execution summary:
total time: 68.6622s
total number of events: 10000
total time taken by event execution: 68.4572
per-request statistics:
min: 2.54ms
avg: 6.85ms
max: 20.09ms
approx. 95 percentile: 7.43ms
Threads fairness:
events (avg/stddev): 10000.0000/0.00
execution time (avg/stddev): 68.4572/0.00
- Des tests de lecture du disque virtuel
hdparm -t -T /dev/sda
Avec hyper-threading:
/dev/sda:
Timing cached reads: 1416 MB in 1.96 seconds = 721.59 MB/sec
Timing buffered disk reads: 124 MB in 3.04 seconds = 40.79 MB/sec
/dev/sda:
Timing cached reads: 1382 MB in 1.97 seconds = 702.46 MB/sec
Timing buffered disk reads: 130 MB in 3.00 seconds = 43.33 MB/sec
/dev/sda:
Timing cached reads: 1440 MB in 1.96 seconds = 734.96 MB/sec
Timing buffered disk reads: 134 MB in 3.03 seconds = 44.22 MB/sec
Sans hyper-threading:
/dev/sda:
Timing cached reads: 1372 MB in 1.97 seconds = 697.42 MB/sec
Timing buffered disk reads: 122 MB in 3.02 seconds = 40.38 MB/sec
/dev/sda:
Timing cached reads: 1398 MB in 1.97 seconds = 710.81 MB/sec
Timing buffered disk reads: 122 MB in 3.01 seconds = 40.50 MB/sec
/dev/sda:
Timing cached reads: 1436 MB in 1.97 seconds = 730.04 MB/sec
Timing buffered disk reads: 132 MB in 3.04 seconds = 43.36 MB/sec
- Un test en écriture sur le disque virtuel
dd bs=1M count=200 if=/dev/zero of=test
Avec hyper-threading:
de 10.4 à 11.5 MB/s
Sans hyper-threading:
Environ 10.8 MB/s