User documentation and guides for products sold on the Libre Tech Shop. https://docs.libretech.shop
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.6 KiB

  1. # MH-USB Internals
  2. ## MH-USB Performance
  3. ### USB2 Version
  4. From <https://www.blackmoreops.com/2017/04/04/usb-and-ssd-drive-speedtest-in-linux/>
  5. > USB 2.0 has a theoretical maximum signaling rate of 480 Mbits/s or 60
  6. > Mbytes/s. However due to various constraints the maximum throughput is
  7. > restricted to around 280 Mbit/s or 35 Mbytes/s.
  8. #### `hdparm` tests
  9. ``` console
  10. $ sudo hdparm -Ttv /dev/sde1
  11. /dev/sde1:
  12. multcount = 0 (off)
  13. readonly = 0 (off)
  14. readahead = 256 (on)
  15. geometry = 15600/64/32, sectors = 31881176, start = 2048
  16. Timing cached reads: 16422 MB in 2.00 seconds = 8221.42 MB/sec
  17. Timing buffered disk reads: 64 MB in 3.01 seconds = 21.28 MB/sec
  18. ```
  19. #### `dd` write test
  20. ``` console
  21. $ dd if=/dev/zero of=perf oflag=direct bs=128k count=8k
  22. 8192+0 records in
  23. 8192+0 records out
  24. 1073741824 bytes (1.1 GB, 1.0 GiB) copied, 6.94198 s, 155 MB/s
  25. ```
  26. #### `dd` read test
  27. ``` console
  28. ## Clear the memory cache before benchmarking reads
  29. $ sudo sh -c "sync && echo 3 > /proc/sys/vm/drop_caches"
  30. $ dd if=perf of=/dev/null bs=4k
  31. 262144+0 records in
  32. 262144+0 records out
  33. 1073741824 bytes (1.1 GB, 1.0 GiB) copied, 44.5847 s, 24.1 MB/s
  34. ```
  35. ### USB3 Version
  36. *Coming soon!*
  37. ## The MH-USB partition layout
  38. ### The Ventoy partion layout
  39. *Document how Ventoy creates partitions for both GPT and MBR partition tables*
  40. ### The 16 GB model
  41. *Standard ventoy partitions*
  42. ### The 32 GB model
  43. *Coming soon! (special partitions to accommodate haiku.)*
  44. ## Using the MH-USB Source Code
  45. ### Overview of the source code
  46. ### The scripts
  47. #### `download-images.sh`
  48. #### `prepare-usb.sh`
  49. #### `qemu-*.sh`
  50. ### Installing MH-USB
  51. ### Customising the MH-USB