mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-04-22 08:24:35 +02:00
Add script to setup IRQ on sf-daq-3
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
cpu_low_irqs=2
|
||||
cpu_high_irqs=3
|
||||
|
||||
low_irqs=`grep "ens3f0" /proc/interrupts | awk '{print substr($1, 1, length($1)-1)}' | head -n 20`
|
||||
high_irqs=`grep "ens3f0" /proc/interrupts | awk '{print substr($1, 1, length($1)-1)}' | tail -n 20`
|
||||
|
||||
for irq in $low_irqs;
|
||||
do
|
||||
echo $cpu_low_irqs > /proc/irq/$irq/smp_affinity_list
|
||||
done
|
||||
|
||||
for irq in $high_irqs;
|
||||
do
|
||||
echo $cpu_high_irqs > /proc/irq/$irq/smp_affinity_list
|
||||
done
|
||||
Reference in New Issue
Block a user