Gentoo: Installazione PC Server (HQPlayer, LMS ) e PC Player (NAA, Mpd, Squeezelite-R2)

Pagina 1 di 3 1 2 3 ultimo
Visualizzazione dei risultati da 1 a 10 su 773

Hybrid View

Messaggio precedente Messaggio precedente   Prossimo messaggio Prossimo messaggio
  1. #1
    tebibyte
    Registrato
    Aug 2011
    Età
    50
    Messaggi
    2,928
    configurazione

    Predefinito

    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

  2. #2
    byte L'avatar di blueray
    Registrato
    Oct 2015
    Messaggi
    172
    configurazione

    Predefinito

    Per esperienza soconsiglio di mettere in priorità alta mpd meglio un bel renice, io l' ho settato su "-16" di niceness.

  3. #3
    tebibyte
    Registrato
    Aug 2011
    Età
    50
    Messaggi
    2,928
    configurazione

    Predefinito

    Originariamente inviato da blueray
    Per esperienza soconsiglio di mettere in priorità alta mpd meglio un bel renice, io l' ho settato su "-16" di niceness.
    L´ultima riga la lasci commentata o scommentata con solo timer?

  4. #4
    byte L'avatar di blueray
    Registrato
    Oct 2015
    Messaggi
    172
    configurazione

    Predefinito

    La lascio scommentata con il solo timer.

  5. #5
    pebibyte L'avatar di marcoc1712
    Registrato
    Jan 2013
    Messaggi
    5,254
    configurazione

    Predefinito

    Originariamente inviato da antonellocaroli

    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
    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
    [/CODE]
    Quel processo irq/88-xhci_hcd (USB) che anche da me impiega un bel po di risorse, se non ricordo male lo avevamo già incontrato e risolto in Debian, non riesco a ricordare se con un intervento sul BIOS osul kernel.
    Ciao, Marco.

    "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
    — E. F. Schumacher (mis-attributed to A. Einstein)
    ________________________________________________________________________________
    Autore della patch R2 per Squeezelite e del plugin C-3PO. note libere
    Logitech media Server 7.9 > miniPc + squeezelite-R2 / SB+ > "Lu Scalmentu" NOS R2R DAC by TubeOne/ AudioResearch DAC 1-20 >
    Klimo Merlino Gold TPS > DIS Interconnect > Kent Gold > Reference > Monitor Audio Studio 20 SE

  6. #6
    tebibyte L'avatar di bigtube
    Registrato
    May 2012
    Località
    cagliari
    Età
    69
    Messaggi
    2,258
    configurazione

    Predefinito

    Originariamente inviato da marcoc1712
    Quel processo irq/88-xhci_hcd (USB) che anche da me impiega un bel po di risorse, se non ricordo male lo avevamo già incontrato e risolto in Debian, non riesco a ricordare se con un intervento sul BIOS osul kernel.
    Allora per fare le cose per bene dopo aver installato rtirq
    bisogna dare il comando per conoscere lo stato attuale degli irq
    (nella situazione di Marco se xhci_hcd non deve ricevere la priorita' alta
    sara estromessa dalla configurazione che sotto rappresento...come ? non
    viene scritta nella riga RTIRQ_NAME_LIST= )

    codice:
    /etc/init.d/rtirq status
    nel mio player ho questo
    codice:
    PID CLS RTPRIO  NI PRI %CPU STAT COMMAND    
       96 FF      95   - 135  0.0 S    irq/8-rtc0    
       84 FF      93   - 133  2.6 S    irq/20-ehci_hcd    
       83 FF      92   - 132  0.0 S    irq/22-ehci_hcd    
     2905 FF      91   - 131  0.0 S    irq/29-enp0s25    
       38 FF      50   -  90  0.0 S    irq/9-acpi    
       85 FF      50   -  90  1.1 S    irq/20-uhci_hcd    
       86 FF      50   -  90  0.0 S    irq/21-uhci_hcd    
       87 FF      50   -  90  0.0 S    irq/22-uhci_hcd    
       88 FF      50   -  90  0.4 S    irq/20-uhci_hcd    
       89 FF      50   -  90  0.0 S    irq/21-uhci_hcd    
       90 FF      50   -  90  0.0 S    irq/22-uhci_hcd    
       92 FF      50   -  90  0.0 S    irq/12-i8042    
       93 FF      50   -  90  0.0 S    irq/1-i8042    
      797 FF      50   -  90  0.0 S    irq/28-ahci[000    
     2196 FF      50   -  90  0.0 S    irq/6-floppy    
     2197 FF      50   -  90  0.0 S    irq/18-ata_gene    
     2206 FF      50   -  90  0.0 S    irq/30-snd_hda_    
     2210 FF      50   -  90  0.0 S    irq/31-i915    
        3 TS       -   0  19  0.0 S    ksoftirqd/0    
       22 TS       -   0  19  0.0 S    ksoftirqd/1
    questo stato è la risultante della modifica da me gia' fatta sul file /etc/conf.d/rtirq
    in pratica per ottenerlo si procede cosi
    aprire il file di configurazione del vostro player e dare
    codice:
    nano /etc/conf.d/rtirq
    andiamo al testo che interessa ( dobbiamo modificare il testo fra "" come indicato sotto....dando il nostro ordine di priorita')
    codice:
    ..............................................................
    # IRQ thread service names
    # (space separated list, from higher to lower priority).
    # RTIRQ_NAME_LIST="rtc snd usb i8042" # old
    RTIRQ_NAME_LIST="rtc ehci_hcd enp0s25"
    
    # Highest priority.
    RTIRQ_PRIO_HIGH=99
    
    # Priority decrease step.
    RTIRQ_PRIO_DECR=2
    
    # 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=""
    
    # 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 squeezelite-R2"
    nella prima riga
    RTIRQ_NAME_LIST="rtc ehci_hcd enp0s25"

    rtc ha la massima priority seguita dalla USB-Hi-Speed e poi la rete
    nell'ultima riga la alta priority a squeezelite-R2 (decommentare la riga...togliere # )
    Tutte le righe in rosso devono essere riscritte come indicato

    fatto tutto cio' nel file di configurazione si da'
    codice:
    /etc/init.d/rtirq restart
    per ridefinire permanentemente le priorita'.

    Per assicurarsene si da' il comando
    codice:
    /etc/init.d/rtirq status
    il nuovo e definitivo stato con le priorita' prescelte da noi .

    Tutta questa storia si ripete aggiungendo gli altri player nell'ultima riga come aveva rappresentato Filippo in precedenza.
    Inoltre rtirq puo' e deve essere installato anche sul PC Server .
    Ultima modifica di bigtube : 28-10-2016 a 02:28
    player1:thin client+voyage - player2:futros450+Debian > Usb Transport: I2soverUSB + DAC (6x1704+I/V a tubi) - Attenuatore passivo Lightspeed
    Ampli finale: OTL 6C33 - MyRef Fremen Ed. - Diff.: Diapason Adamantes II - Guida LMS+Squeezelite - B

  7. #7
    Moderatore L'avatar di bibo01
    Registrato
    Oct 2010
    Messaggi
    4,591
    configurazione

    Predefinito

    Originariamente inviato da bigtube
    ...
    codice:
    /etc/init.d/rtirq status
    nel mio player ho questo
    codice:
    PID CLS RTPRIO  NI PRI %CPU STAT COMMAND    
       96 FF      95   - 135  0.0 S    irq/8-rtc0    
       84 FF      93   - 133  2.6 S    irq/20-ehci_hcd    
       83 FF      92   - 132  0.0 S    irq/22-ehci_hcd    
     2905 FF      91   - 131  0.0 S    irq/29-enp0s25    
       38 FF      50   -  90  0.0 S    irq/9-acpi    
       85 FF      50   -  90  1.1 S    irq/20-uhci_hcd    
       86 FF      50   -  90  0.0 S    irq/21-uhci_hcd    
       87 FF      50   -  90  0.0 S    irq/22-uhci_hcd    
       88 FF      50   -  90  0.4 S    irq/20-uhci_hcd    
       89 FF      50   -  90  0.0 S    irq/21-uhci_hcd    
       90 FF      50   -  90  0.0 S    irq/22-uhci_hcd    
       92 FF      50   -  90  0.0 S    irq/12-i8042    
       93 FF      50   -  90  0.0 S    irq/1-i8042    
      797 FF      50   -  90  0.0 S    irq/28-ahci[000    
     2196 FF      50   -  90  0.0 S    irq/6-floppy    
     2197 FF      50   -  90  0.0 S    irq/18-ata_gene    
     2206 FF      50   -  90  0.0 S    irq/30-snd_hda_    
     2210 FF      50   -  90  0.0 S    irq/31-i915    
        3 TS       -   0  19  0.0 S    ksoftirqd/0    
       22 TS       -   0  19  0.0 S    ksoftirqd/1
    questo stato è la risultante della modifica da me gia' fatta sul file /etc/conf.d/rtirq
    Credo che in quell'elenco delle tue porte usb dovresti riuscire ad avere solo 20-ehci_hcd, senza 22-ehci_hcd che si prende priorità 92 senza essere probabilmente usato. Infatti, sto assumendo che 20-ehci_hcd sia il tuo DAC usb o comunque la porta in uscita del tuo stream.

    in pratica per ottenerlo si procede cosi
    aprire il file di configurazione del vostro player e dare
    codice:
    nano /etc/conf.d/rtirq
    andiamo al testo che interessa ( dobbiamo modificare il testo fra "" come indicato sotto....dando il nostro ordine di priorita')
    codice:
    ..............................................................
    # IRQ thread service names
    # (space separated list, from higher to lower priority).
    # RTIRQ_NAME_LIST="rtc snd usb i8042" # old
    RTIRQ_NAME_LIST="rtc ehci_hcd enp0s25"
    
    # Highest priority.
    RTIRQ_PRIO_HIGH=99
    
    # Priority decrease step.
    RTIRQ_PRIO_DECR=2
    
    # 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=""
    
    # 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 squeezelite-R2"
    nella prima riga
    RTIRQ_NAME_LIST="rtc ehci_hcd enp0s25"

    rtc ha la massima priority seguita dalla USB-Hi-Speed e poi la rete
    nell'ultima riga la alta priority a squeezelite-R2[I] (decommentare la riga...togliere # )
    Tutte le righe in rosso devono essere riscritte come indicato
    ...
    Per RTIRQ_PRIO_HIGH puoi mettere "95" perché, come vedi anche dal tuo risultato, non va oltre il valore 95.

  8. #8
    tebibyte L'avatar di bigtube
    Registrato
    May 2012
    Località
    cagliari
    Età
    69
    Messaggi
    2,258
    configurazione

    Predefinito

    Originariamente inviato da bibo01
    Credo che in quell'elenco delle tue porte usb dovresti riuscire ad avere solo 20-ehci_hcd, senza 22-ehci_hcd che si prende priorità 92 senza essere probabilmente usato. Infatti, sto assumendo che 20-ehci_hcd sia il tuo DAC usb o comunque la porta in uscita del tuo stream.


    Per RTIRQ_PRIO_HIGH puoi mettere "95" perché, come vedi anche dal tuo risultato, non va oltre il valore 95.
    Gia' ...vero ....però se non metto 99 mi cambia l'elenco e mette la rete prima e mi assegna 50 alle usb
    per escludere 22-ehci_hcd hai qualche idea? toglierla dall'elenco di RTIRQ_PRIO_HIGH non sortisce effetto
    player1:thin client+voyage - player2:futros450+Debian > Usb Transport: I2soverUSB + DAC (6x1704+I/V a tubi) - Attenuatore passivo Lightspeed
    Ampli finale: OTL 6C33 - MyRef Fremen Ed. - Diff.: Diapason Adamantes II - Guida LMS+Squeezelite - B

  9. #9
    tebibyte
    Registrato
    Aug 2011
    Età
    50
    Messaggi
    2,928
    configurazione

    Predefinito

    @bibo

    Sai che tipo di licenza ha rtapp? visto che é un pacchetto per archlinux...presumo si possa usare liberamente....(?)

  10. #10
    Moderatore L'avatar di bibo01
    Registrato
    Oct 2010
    Messaggi
    4,591
    configurazione

    Predefinito

    Originariamente inviato da antonellocaroli
    @bibo

    Sai che tipo di licenza ha rtapp? visto che é un pacchetto per archlinux...presumo si possa usare liberamente....(?)
    Non so... ti conviene chiedere direttamente a Piero - hifi25nl che ne è anche il maintainer

Pagina 1 di 3 1 2 3 ultimo

Informazioni Thread

Users Browsing this Thread

Ci sono attualmente 2 utenti che stanno visualizzando questa discussione. (0 utenti e 2 ospiti)

Regole d'invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
nexthardware.com - © 2002-2022