Anche su Gentoo si puó usare RTirq
codice:
emerge --ask rtirq
solito file di configurazione in conf.d
codice:
nano /etc/conf.d/rtirq
codice:
#
# Copyright (C) 2004-2015, rncbc aka Rui Nuno Capela.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# /etc/conf.d/rtirq
# /etc/default/rtirq
#
# Configuration for IRQ thread tunning,
# for realtime-preempt enabled kernels.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 or later.
#
# IRQ thread service names
# (space separated list, from higher to lower priority).
# RTIRQ_NAME_LIST="rtc snd usb i8042" # old
RTIRQ_NAME_LIST="snd usb enp"
# Highest priority.
RTIRQ_PRIO_HIGH=90
# Priority decrease step.
RTIRQ_PRIO_DECR=5
# Lowest priority.
RTIRQ_PRIO_LOW=51
# Whether to reset all IRQ threads to SCHED_OTHER.
RTIRQ_RESET_ALL=0
# On kernel configurations that support it,
# which services should be NOT threaded
# (space separated list).
RTIRQ_NON_THREADED="rtc snd"
# Process names which will be forced to the
# highest realtime priority range (99-91)
# (space separated list, from highest to lower priority).
RTIRQ_HIGH_LIST="timer networkaudiod squeezelite-R2 mpd"
codice:
/etc/init.d/rtirq start
codice:
gentooplayerP filippo # /etc/init.d/rtirq restart
* Stopping rtirq ...
rtirq.sh: stop [timer] pid=4 prio=1: OK.
rtirq.sh: stop [timer] pid=21 prio=1: OK.
rtirq.sh: stop [timer] pid=30 prio=1: OK.
rtirq.sh: stop [timer] pid=39 prio=1: OK.
rtirq.sh: stop [squeezelite-R2] pid=4408 prio=1: OK.
Setting IRQ priorities: stop [xhci_hcd] irq=88 pid=1186: OK.
Setting IRQ priorities: stop [enp] irq=89 pid=2989: OK. [ ok ]
* Starting rtirq ...
rtirq.sh: start [timer] pid=4 prio=99: OK.
rtirq.sh: start [timer] pid=21 prio=99: OK.
rtirq.sh: start [timer] pid=30 prio=99: OK.
rtirq.sh: start [timer] pid=39 prio=99: OK.
rtirq.sh: start [squeezelite-R2] pid=4408 prio=98: OK.
Setting IRQ priorities: start [xhci_hcd] irq=88 pid=1186 prio=85: OK.
Setting IRQ priorities: start [enp] irq=89 pid=2989 prio=80: OK.
codice:
/etc/init.d/rtirq status
codice:
gentooplayerP filippo # /etc/init.d/rtirq status
PID CLS RTPRIO NI PRI %CPU STAT COMMAND
1186 FF 85 - 125 7.0 S irq/88-xhci_hcd
2989 FF 80 - 120 10.6 S irq/89-enp1s0
56 FF 50 - 90 0.0 S irq/9-acpi
103 FF 50 - 90 0.0 S irq/8-rtc0
703 FF 50 - 90 0.0 S irq/87-ahci[000
2262 FF 50 - 90 0.0 S irq/18-i801_smb
2273 FF 50 - 90 0.0 S irq/90-i915
3 TS - 0 19 0.0 S ksoftirqd/0
22 TS - 0 19 0.0 S ksoftirqd/1
31 TS - 0 19 0.0 S ksoftirqd/2
codice:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1186 root -86 0 0 0 0 S 12,2 0,0 1:26.34 irq/88-xhci_hcd
2989 root -81 0 0 0 0 S 0,3 0,0 2:12.90 irq/89-enp1s0
4408 squeeze+ -99 -20 2143548 1,958g 4664 S 0,3 52,4 0:40.01 squeezelite-R2
4726 root 20 0 21868 3128 2576 R 0,3 0,1 0:00.09 top
1 root 20 0 4196 1520 1424 S 0,0 0,0 0:07.95 init
2 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0,0 0,0 0:00.90 ksoftirqd/0
4 root rt 0 0 0 0 S 0,0 0,0 0:00.87 ktimersoftd/0
6 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/0:0H
8 root 20 0 0 0 0 S 0,0 0,0 0:00.40 rcu_preempt
9 root 20 0 0 0 0 S 0,0 0,0 0:00.01 rcu_sched
10 root 20 0 0 0 0 S 0,0 0,0 0:00.20 rcuc/0
11 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kclksetdelayd
12 root rt 0 0 0 0 S 0,0 0,0 0:00.00 posixcputmr/0
Per aggiungerlo all´avvio
codice:
rc-update add rtirq default