Skip to content

c3hmke/cpu-direct-usb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPU Direct USB

USB latency analyzer that counts chips between your input devices and the CPU. Fewer chips = lower latency.

Quick Start

Run in PowerShell:

irm https://tools.mariusheier.com/cpudirect.ps1 | iex

Run in bash:

curl -fsSL https://tools.mariusheier.com/cpudirect.bash | bash

or

wget -qO- https://tools.mariusheier.com/cpudirect.bash | bash

What It Shows

  • CHIP 0: Device connects directly to CPU (lowest latency)
  • CHIP 1: Device goes through chipset (adds latency)
  • CHIP 2+: Device goes through USB hub(s) (more latency)

Features

  • Identifies all USB input devices (mice, keyboards, controllers)
  • Shows USB controller topology (Intel/AMD CPU-integrated vs chipset)
  • Detects MSI interrupt status
  • Identifies USB hubs in the path
  • Suggests optimizations (disable selective suspend, enable MSI)

Verification

All releases include SHA256 checksums. To verify:

Powershell:

(Get-FileHash cpudirect.ps1 -Algorithm SHA256).Hash

bash:

sha256sum cpudirect.bash

Compare with the checksum in the release notes.

License

MIT

About

USB latency analyzer - find CPU-direct vs chipset USB ports

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PowerShell 54.8%
  • Shell 45.2%