pyavitz / debian-image-builder

Debian image builder for single board computers
Other
141 stars 33 forks source link

Script to tie device interrupts to single cores #26

Closed 0n3man closed 2 years ago

0n3man commented 2 years ago

This script sets the interrupts for mmc, xhci-hcd and eth0 to a single core. Right now I'm running it from rc.local on my machine but it should really be connected with odroid_tweaks. As written it depend on inotify-tools, however I'm thinking it could probable just have the loop that greps for "-" which indicates a range of cores assigned. I was hoping I could totally rely on inotifywait, however there is a timing issue. So it was possible for the OS to update an interrupt value while the script was setting the values. At which point inotifywait will miss the value being updated. Right now the script also just runs forever, which isn't really a bad thing, but it's probably not required. After a couple minutes without any change in the interrupt assignment it could probably exit.