View previous topic :: View next topic |
Author |
Message |
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 509
|
Posted: Sat Feb 02, 2019 12:36 pm Post subject: [Risolto] BFQ Scheduler |
|
|
Qualcuno sa come si puó abilitare il BFQ scheduler su gentoo?
ho visto varie cose in giro...ma nessuna ha funzionato...
Last edited by antonellocaroli on Sun Feb 03, 2019 3:41 am; edited 1 time in total |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1014
|
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 509
|
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1014
|
Posted: Sat Feb 02, 2019 5:11 pm Post subject: |
|
|
Hai provato quel metodo su quale kernel ? ... dai su qualche info in piu
Anzi , ti illumino :
Portage
Code: | sys-kernel/ck-sources |
Oppure con i sorgenti gentoo
Code: | USE="experimental" emerge gentoo-sources:<versione> |
Questo aggiunge il relativo codice per BFQ nei sorgenti ... da abilitare in compilazione.
Code: | CONFIG_IOSCHED_BFQ=y
CONFIG_BFQ_GROUP_IOSCHED=y
|
Poi se il metodo "kra-kra" funziona , buon per tutti.
PS : il BFQ anche se compialto , non è selezionabile durante la selezione dei moduli (con --menuconfig)
PPS :
Gentoo su VM con BFQ
https://imageshack.com/a/img924/2525/GFFksb.png _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Last edited by sabayonino on Sat Feb 02, 2019 5:31 pm; edited 1 time in total |
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 509
|
Posted: Sat Feb 02, 2019 5:27 pm Post subject: |
|
|
il kernel é gentoo-sources con use experimental v. 4.20.5
bfq é stato compilato con "y"
ma non compare nessuna voce al riguardo...
Code: | cat /sys/class/block/sda/queue/scheduler
noop deadline [cfq]
|
|
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1014
|
Posted: Sat Feb 02, 2019 5:36 pm Post subject: |
|
|
Code: | # set deadline scheduler for non-rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", TEST!="queue/rotational", ATTR{queue/scheduler}="deadline"
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq"
# set cfq scheduler for rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="cfq"
|
se hai aggiornato le regole di UDEV , questo ti dice che
BFQ è attivo per SSD/dispositivi USB etc
mentre per i rischi rotativi (i classici dischi ed il consueto parcheggio della testina di lettura per intenderci) resta il CFQ come scheduler
Quindi sorge la domanda : Che tipo di disco hai ?
Domanda di riserva :
cat /sys/class/block/sda/queue/scheduler ... Gentoo è in esecuzione su sda ? _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Last edited by sabayonino on Sat Feb 02, 2019 5:58 pm; edited 1 time in total |
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 509
|
Posted: Sat Feb 02, 2019 5:53 pm Post subject: |
|
|
Gentoo si trova su usb e sda é un SSD
ma lo stesso vale per sdb |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1014
|
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 509
|
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1014
|
Posted: Sat Feb 02, 2019 6:21 pm Post subject: |
|
|
A questo punto incolla anche il grub.cfg
Guarda . L'ho ppena abilitato sulla mia MAIN di Gentoo ... rilevato. _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 509
|
Posted: Sat Feb 02, 2019 6:47 pm Post subject: |
|
|
sabayonino wrote: | A questo punto incolla anche il grub.cfg |
https://paste.pound-python.org/raw/LPMffKwe6QJoqXJbGBVU/
e
Code: | GRUB_DISTRIBUTOR="GentooPlayer"
GRUB_SAVEDEFAULT=true
GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_DISABLE_SUBMENU="y"
#GRUB_CMDLINE_LINUX="threadirqs intel_idle.max_cstate=0 isolcpus=3 vsyscall=none elevator=noop"
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash threadirqs transparent_hugepage=never noapic clocksource=hpet"
GRUB_CMDLINE_LINUX="threadirqs intel_idle.max_cstate=0 vsyscall=none scsi_mod.use_blk_mq=1"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash threadirqs transparent_hugepage=never clocksource=hpet"
GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd"
GRUB_BACKGROUND="/boot/grub/gp2.png"
GRUB_DISABLE_RECOVERY="true"
|
sabayonino wrote: | Guarda . L'ho ppena abilitato sulla mia MAIN di Gentoo ... rilevato. |
Ho visto...e come? |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1014
|
Posted: Sat Feb 02, 2019 7:02 pm Post subject: |
|
|
ecco l'intoppo.
Nelle righe del grub.cfg non appare la modifica del parametro scsi_mod.use_blk_mq=1
Perchè forse non hai aggiornato il grub ?
Stai utilizzando il bootloder di un altra distribuzione ? In tal caso devi aggiornare quel bootloader inserendo il parametro là.
Oppure
Quote: |
GRUB_CMDLINE_LINUX="threadirqs intel_idle.max_cstate=0 vsyscall=none scsi_mod.use_blk_mq=1"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash threadirqs transparent_hugepage=never clocksource=hpet"
GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd"
|
in tal caso GRUB_CMDLINE_LINUX è doppio e viene considerato solo l'ultimo (quello senza il BFQ ), quindi commentalo e riaggiorna il grub .Infatti nel grub.cfg ti mancano anche tutti gli altri parametri del primo GRUB_CMLINE
Se ti serve system-coso-d , aggiungilo al primo GRUB_CMDLINE_LINUX oppure il BFQ nel GRUB_CMDLINE_DEFAULT ... dipene da come vuoi gestire la cosa.
Ti ricordo che grub legge le variabili indicate sequenzialmente sovrascrivendole se uguali
potresti usare eventualmente :
Code: | GRUB_CMDLINE_LINUX="${GRUB_CMDLINE_LINUX} op1 op2 op3... |
_________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 509
|
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1014
|
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 509
|
Posted: Sat Feb 02, 2019 9:06 pm Post subject: |
|
|
sabayonino wrote: | Hai creato la regola udev ? |
come hai impostato la tua? che la confronto... |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1014
|
|
Back to top |
|
|
antonellocaroli Guru
Joined: 11 Aug 2016 Posts: 509
|
Posted: Sun Feb 03, 2019 3:42 am Post subject: |
|
|
Grazie, risolto....
c'era un po di confusione con il grub dell'altro hd.... |
|
Back to top |
|
|
|