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
Limitare la possibilità di qccedere allo swap mi sembra importante, anche se dimensionando bene il buffer lo scopo si ottiene con certezza, quindi mi apre saggio il consiglio fornito dallo script. il secondo parametro relativo alle inotify, riguarda il monotoraggio del filesistem, che alcune applicazioni possono richiedere per essere informate quando succede qualcosa a files o directories.
Per squeezleite non serve assolutamente a nulla, ma immagino che MPD lo possa usare. HO provato a mettere il valore suggerito, ma non ssendoci subscripions immagino non cambi molto nel mio sistema.
Ho anche cambiato le protezioni ai timer, così da renderli visibili al gruppo audio (a tutti, in realtà), anche se non ho capito SE porta benefici in esecuzione.
Questo è il mio file:
codice:# /etc/sysctl.conf # # For more information on how this file works, please see # the manpages sysctl(8) and sysctl.conf(5). # # In order for this file to work properly, you must first # enable 'Sysctl support' in the kernel. # # Look in /proc/sys/ for all the things you can setup. # # Disables packet forwarding net.ipv4.ip_forward = 0 # Disables IP dynaddr #net.ipv4.ip_dynaddr = 0 # Disable ECN #net.ipv4.tcp_ecn = 0 # Enables source route verification net.ipv4.conf.default.rp_filter = 1 # Enable reverse path net.ipv4.conf.all.rp_filter = 1 # Enable SYN cookies (yum!) # http://cr.yp.to/syncookies.html #net.ipv4.tcp_syncookies = 1 # Disable source route #net.ipv4.conf.all.accept_source_route = 0 #net.ipv4.conf.default.accept_source_route = 0 # Disable redirects #net.ipv4.conf.all.accept_redirects = 0 #net.ipv4.conf.default.accept_redirects = 0 # Disable secure redirects #net.ipv4.conf.all.secure_redirects = 0 #net.ipv4.conf.default.secure_redirects = 0 # Ignore ICMP broadcasts #net.ipv4.icmp_echo_ignore_broadcasts = 1 # Disables the magic-sysrq key #kernel.sysrq = 0 # When the kernel panics, automatically reboot in 3 seconds #kernel.panic = 3 # Allow for more PIDs (cool factor!); may break some programs #kernel.pid_max = 999999 # You should compile nfsd into the kernel or add it # to modules.autoload for this to work properly # TCP Port for lock manager #fs.nfs.nlm_tcpport = 0 # UDP Port for lock manager #fs.nfs.nlm_udpport = 0 #see http://wiki.linuxaudio.org/wiki/system_configuration#sysctlconf vm.swappiness = 10 fs.inotify.max_user_watches = 524288
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
Questo é il risultato dello script nel mio caso
Lo swap, visto che non swappa mai, lo disattiverei propio...codice:filippo@gentoplayerP ~/realtimeconfigquickscan $ perl ./realTimeConfigQuickScan.pl == GUI-enabled checks == Checking if you are root... no - good Checking filesystem 'noatime' parameter... 4.6.7 kernel - good (relatime is default since 2.6.30) Checking CPU Governors... CPU 0: 'performance' CPU 1: 'performance' CPU 2: 'performance' CPU 3: 'performance' - good warning: '/sbin/sysctl vm.swappiness' did not produce a parsable result Checking swappiness... - warning Checking for resource-intensive background processes... none found - good Checking checking sysctl inotify max_user_watches... >= 524288 - good Checking access to the high precision event timer... readable - good Checking access to the real-time clock... readable - good Checking whether you're in the 'audio' group... yes - good Checking for multiple 'audio' groups... no - good Checking the ability to prioritize processes with chrt... yes - good Checking kernel support for high resolution timers... found - good Kernel with Real-Time Preemption... found - good Checking if kernel system timer is high-resolution... found - good Checking kernel support for tickless timer... found - good == Other checks == Checking filesystem types... ok. not found. ** Warning: no tmpfs partition mounted on /tmp For more information, see: - http://wiki.linuxaudio.org/wiki/system_configuration#tmpfs - http://lowlatency.linuxaudio.org ** Set $SOUND_CARD_IRQ to the IRQ of your soundcard to enable more checks. Find your sound card's IRQ by looking at '/proc/interrupts' and lspci.
Poi questa parte presa sempre dal link indicato nella guida come "Per chi volesse "ottimizzare" ulteriormente il S.O."
toglerei quello in rosso(?)... bisogna dare prima una occhiata in /sys/bus/usb/devices/ quante usb elenca (nel mio caso 1 e 2, dovrei togliere le ultime due righe)codice:Per ottenere con parametri corretti del kernel che il medesimo utilizzi esclusivamente la porta USB dedicata al DAC bisogna immettere nel file pippo queste altre voci. fare attenzione a posizionarle DOPO l’ultima riga del file come si presenta ai vostri occhi. dare da terminale : nano /etc/init.d/pippo dopo l’ultima riga immettere : echo 3000 > /proc/sys/vm/dirty_writeback_centisecs echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor > /dev/null 2>&1 echo “suspend” >/sys/bus/usb/devices/usb1/power/level > /dev/null 2>&1 # Choose the best USB port soundwise echo “suspend” >/sys/bus/usb/devices/usb2/power/level > /dev/null 2>&1 # Shutdown the other ports echo “suspend” >/sys/bus/usb/devices/usb3/power/level > /dev/null 2>&1 # lsusb will show you your port echo “suspend” >/sys/bus/usb/devices/usb5/power/level > /dev/null 2>&1 Salvare (CTRL+x > Y > Enter ) Riavviare
Potrebbe essere utile?
Ultima modifica di antonellocaroli : 31-10-2016 a 10:38
concordo.
Se poi usate SSD o altre memorie a stato solido, ne va anche della loro durata...
casomai potresti metterci "performance" anziché "ondemand", ma non so se convenga...
mah. Forse potrebbe essere utile se si usa un laptop o altri hardware che hanno dispositivi vari (Blueooth, videocamere, lettori di schede, ecc) collegati internamente al bus USB. Ma se le porte non sono utilizzate/collegate, dubito che faccia molta differenza. Cmq si fa presto a provare...
Ciao, Paolo.
«Se tu hai una mela, e io ho una mela, e ce le scambiamo, allora tu ed io abbiamo sempre una mela per uno. Ma se tu hai un'idea, ed io ho un'idea, e ce le scambiamo, allora abbiamo entrambi due idee.»
@ Paolo
WATCHDOG lo posso togliere come modulo?
@ marco questo é il mio config
https://paste.pound-python.org/show/...p1cBzUmzHOn29/
c´é un po di roba tolta...ma anche altra che si potrebbe ancora togliere...
se vuoi lo puoi usare anche tu per ricompilare il kernel
fai la modifica del Makefile come indicato qui http://www.nexthardware.com/forum/pc...tml#post966804
crei un file nano /usr/src/linux-4.6.7-rt14/.config--prova
e ci copi il contenuto dentro...cambi questa parte iniziale
sostiusci -min con quello che hai messo tu nel Makefile, non credo sia necessario..macodice:# # Automatically generated file; DO NOT EDIT. # Linux/x86 4.6.7-rt-min Kernel Configuration #
e poi dai
genkernel --kernel-config=/usr/src/linux-4.6.7-rt14/.config--prova --kerneldir=/usr/src/linux-4.6.7-rt14/ --menuconfig --install all
devi controllare solo la parte in rosso se é la stessa
Ultima modifica di antonellocaroli : 31-10-2016 a 20:11
se altri pezzi importanti del sistema non dipendono da quello, probabilmente sì.
Linux watchdog daemon overview
How to configure the Linux kernel/drivers/char/watchdog | How To Wiki | Fandom powered by Wikia
https://duckduckgo.com/?q=linux+WATCHDOG+kernel+module![]()
Ciao, Paolo.
«Se tu hai una mela, e io ho una mela, e ce le scambiamo, allora tu ed io abbiamo sempre una mela per uno. Ma se tu hai un'idea, ed io ho un'idea, e ce le scambiamo, allora abbiamo entrambi due idee.»
BINGO!
a forza di ricompilare ho riempito la partizione di boot, ed adesso GRUB non riesce a fare il boot...
Se uso rescuecd vedo tutto:
ma il sistema non parte più, probabilmente perchè l'errore è qui:codice:df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda4 60116068 8504084 48535224 15% / /dev/sda2 126931 126931 0 100% /boot udev 10240 84 10156 1% /dev shm 1964188 0 1964188 0% /dev/shm sysresccd boot # ls grub initramfs-genkernel-x86_64-4.6.7-r14-basic-rt-rt14 initramfs-genkernel-x86_64-4.6.7-rt-low-latency-rt14 initramfs-genkernel-x86_64-4.6.7-rt-rt14 kernel-genkernel-x86_64-4.6.7-r14-basic-rt-rt14 kernel-genkernel-x86_64-4.6.7-rt-low-latency-rt14 kernel-genkernel-x86_64-4.6.7-rt-rt14 lost+found System.map-genkernel-x86_64-4.6.7-r14-basic-rt-rt14 System.map-genkernel-x86_64-4.6.7-rt-low-latency-rt14 System.map-genkernel-x86_64-4.6.7-rt-rt14
sysresccd boot # grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
cat: write error: No space left on device
Qualcuno ha idee su come recuperare senza fare danni?
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
Riesci a ridimensionare le partizioni con gparted?
o ne cancelli qualcuno
comunque puoi entrare in gentoo da sysresuecd:
mount /dev/sda4 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/sda2 /mnt/gentoo/boot
mount -t proc proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
oppure piu semplice lo provi a riavviare con http://www.supergrubdisk.org/categor...2-disk-stable/
una volta entrato ridai quel comando
esatto... non c'era più spazio e grub non è riuscito a scrivere la sua configurazione (ma nel frattempo probabilmente aveva già sovrascritto quella vecchia).
come ti ha suggerito Filippo, usa il grub disk per far partire il sistema (avvia uno dei kernel precedenti, l'ultimo è possibile che sia corrotto a causa del disk full), quindi sposta/elimina l'ultimo kernel e ripeti il grub-mkconfig...
Ciao, Paolo.
«Se tu hai una mela, e io ho una mela, e ce le scambiamo, allora tu ed io abbiamo sempre una mela per uno. Ma se tu hai un'idea, ed io ho un'idea, e ce le scambiamo, allora abbiamo entrambi due idee.»
Grazie, ho 'risolto' copiando tutti i files in /boor (tranne la certella grub) in una cartella sotto il mio user, quindi ho cancellato l'ultimo kernel compilato e ridato il comando.
Però... Ho un solo kernel al boot:
uname -a
Linux gentooMiniPc 4.6.7-rt-rt14 #1 SMP PREEMPT RT Sat Oct 22 13:22:05 CEST 2016 x86_64 Intel(R) Celeron(R) CPU N2930 @ 1.83GHz GenuineIntel GNU/Linux
quindi è il primo compilato, dove sono finiti gli altri?
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
Ci sono attualmente 1 utenti che stanno visualizzando questa discussione. (0 utenti e 1 ospiti)