issue156:mon_histoire
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
issue156:mon_histoire [2020/05/05 14:51] – philou511 | issue156:mon_histoire [2020/05/06 10:54] (Version actuelle) – auntiee | ||
---|---|---|---|
Ligne 7: | Ligne 7: | ||
(which was not quite what I was after, yet...).** | (which was not quite what I was after, yet...).** | ||
- | Je suis allé acheter un tas de clés USB / cartes mémoires auprès d'un fournisseur qui les soldait il y a quelque temps (en fait quelques années). En copiant vers et depuis celles-ci, j'ai remarqué que certaines avaient des vitesses horribles. | + | Je suis allé acheter un tas de clés USB/cartes mémoires auprès d'un fournisseur qui les soldait il y a quelque temps (en fait quelques années). En copiant vers et depuis celles-ci, j'ai remarqué que certaines avaient des vitesses horribles. |
La solution | La solution | ||
- | La première chose qui me vint à l' | + | La première chose qui me vint à l' |
- | https:// | + | https:// |
- | (ce qui n' | + | |
**A light went on and I considered hdparm, which I have not used in about ten years or more. I was introduced to hdparm by my friend Lloyd in the wild west days of Ubuntu 04.04, to speed up my laptop. I did not consider it as I did not know if it would work for USB thumb drives and SSDs. You do not need to install hdparm – like dd, it ships with Ubuntu. Just typing hdparm will bring up a list of options. If you go down the list to ‘t’ - you will see lowercase and capital ‘t’ – both perform read timings. So I had to try: sudo hdparm -Tt /dev/sdX - (where X is your USB thumb drive). Frown... >:o( .... The results here were much faster than dd. Okay, let’s turn write caching off and back on again (the W flag), and re-test. Although there is a performance impact, it still does not match my measurements from dd. | **A light went on and I considered hdparm, which I have not used in about ten years or more. I was introduced to hdparm by my friend Lloyd in the wild west days of Ubuntu 04.04, to speed up my laptop. I did not consider it as I did not know if it would work for USB thumb drives and SSDs. You do not need to install hdparm – like dd, it ships with Ubuntu. Just typing hdparm will bring up a list of options. If you go down the list to ‘t’ - you will see lowercase and capital ‘t’ – both perform read timings. So I had to try: sudo hdparm -Tt /dev/sdX - (where X is your USB thumb drive). Frown... >:o( .... The results here were much faster than dd. Okay, let’s turn write caching off and back on again (the W flag), and re-test. Although there is a performance impact, it still does not match my measurements from dd. | ||
Ligne 19: | Ligne 18: | ||
This was a mystery that needed solving. One of the 8GB memory sticks was quite a bit slower than the rest. Let us see what is happening. Running dmesg you should see the memory stick added at the end. Now run lsusb -v | grep bcdUSB to see what it was detected as:** | This was a mystery that needed solving. One of the 8GB memory sticks was quite a bit slower than the rest. Let us see what is happening. Running dmesg you should see the memory stick added at the end. Now run lsusb -v | grep bcdUSB to see what it was detected as:** | ||
+ | Une lumière s'est allumée et j'ai envisagé hdparm, que je n' | ||
+ | C' | ||
**Aaaand there it is. One of the USB 3.0 memory sticks only detects as USB 2.0. If you are not sure which is which, run lsusb -t, then you can see which bus and port it is on. | **Aaaand there it is. One of the USB 3.0 memory sticks only detects as USB 2.0. If you are not sure which is which, run lsusb -t, then you can see which bus and port it is on. | ||
Ligne 27: | Ligne 28: | ||
Make sure your data is backed up before running the benchmark!** | Make sure your data is backed up before running the benchmark!** | ||
- | + | Et la voilà. L'une des clés USB 3.0 n'est détectée qu'en USB 2.0. Si vous n' | |
+ | |||
+ | Avant que l'un d' | ||
+ | |||
+ | Assurez-vous que vos données sont sauvegardées avant d' | ||
**The Conclusion | **The Conclusion | ||
Ligne 33: | Ligne 38: | ||
I got different results on different drives of the same size, as well as different results between the same make but different sizes. Some drives, even though being labelled as USB 3.0, were detected as USB 2.0, so check your drives after buying them! (I could not return mine as they have been lying in a box for over a year). | I got different results on different drives of the same size, as well as different results between the same make but different sizes. Some drives, even though being labelled as USB 3.0, were detected as USB 2.0, so check your drives after buying them! (I could not return mine as they have been lying in a box for over a year). | ||
- | Benchmarking is faster than real-world usage, as seen with dd, so rather work with that if you want to know the ‘true’ speed of your USB thumb drive. So - if the ‘true’ speed of your device does not match your expectation, | + | Benchmarking is faster than real-world usage, as seen with dd, so rather work with that if you want to know the ‘true’ speed of your USB thumb drive. So - if the ‘true’ speed of your device does not match your expectation, |
+ | |||
+ | Conclusion | ||
+ | |||
+ | J'ai obtenu des résultats différents sur différents disques de la même taille, ainsi que des résultats différents entre des disques de même marque, mais de tailles différentes. Certaines clés, même si elles sont étiquetées comme USB 3.0, ont été détectées comme USB 2.0, alors vérifiez vos disques après les avoir achetés ! (je n'ai pas pu rendre le mien car ils dorment dans une boîte depuis plus d'un an). | ||
+ | L' | ||
issue156/mon_histoire.1588683109.txt.gz · Dernière modification : 2020/05/05 14:51 de philou511