soundcheck wrote: > Another improvement proposal for the Cubitruck and other multiprocessor > installations. > > CPU1 usually runs completly idle! All interrupts are assigned to a > single CPU0 (see: cat /proc/interrupts) > > Below my script and a systemd.service that assigns eth0 to the 2nd CPU. > > /usr/local/bin/eth0affinity > > Code: -------------------- > > > #!/bin/bash > # This script assigns the eth0 interrupt to the 2nd processor on the Cubitruck board. > # It's started by the eth0affinity.service > ############################################# > > echo 2 > /proc/irq/$(cat /proc/interrupts | grep eth0 | cut -f 1 -d ":" )/smp_affinity > > exit 0 > -------------------- > > > > > > /etc/systemd/system/eth0affinity.service > > Code: -------------------- > > > [Unit] > Description= Assigns eth0 IRQ to 2nd CPU > > [Service] > Type=oneshot > ExecStart=/usr/local/bin/eth0affinity > > [Install] > WantedBy=multi-user.target > -------------------- > > > > Obviously above can easily be adapted for USB (-DACs) IRQs. > > > Cheers
Why don't you use 'irqbalance' to spread the load over all available CPU's. It's built specifically to share irq's and it does work. You can check it out by running 'top' and then pressing numeric 1 to see the load is actually balanced across all CPU's. pacman -S irqbalance 1 x Touch 1 x Radio 1 x Boom 1 x Cubox-i4 Pro SoA as main server and player running LMS 7.9 Lavry DA-10 DAC HP PC as secondary server running LMS 7.9 Starfish Pre-amp : Based on NAIM Heavily modified NAIM NAP 250 Power-amp Behringer DEQ2496 Linn Isobarik DMS ------------------------------------------------------------------------ bobertuk's Profile: http://forums.slimdevices.com/member.php?userid=30376 View this thread: http://forums.slimdevices.com/showthread.php?t=101624 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
