Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Risolto] BFQ Scheduler
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 509

PostPosted: Sat Feb 02, 2019 12:36 pm    Post subject: [Risolto] BFQ Scheduler Reply with quote

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
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1014

PostPosted: Sat Feb 02, 2019 2:45 pm    Post subject: Reply with quote

Beh , se magari ci dici cosa hai fatto ...
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 509

PostPosted: Sat Feb 02, 2019 4:58 pm    Post subject: Reply with quote

tipo ho seguito questo

https://community.chakralinux.org/t/how-to-enable-the-bfq-i-o-scheduler-on-kernel-4-12/6418
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1014

PostPosted: Sat Feb 02, 2019 5:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 509

PostPosted: Sat Feb 02, 2019 5:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1014

PostPosted: Sat Feb 02, 2019 5:36 pm    Post subject: Reply with quote

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 ? :roll:
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
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 509

PostPosted: Sat Feb 02, 2019 5:53 pm    Post subject: Reply with quote

Gentoo si trova su usb e sda é un SSD

ma lo stesso vale per sdb
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1014

PostPosted: Sat Feb 02, 2019 5:59 pm    Post subject: Reply with quote

Code:
zcat /proc/config.gz | grep BFQ

_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 509

PostPosted: Sat Feb 02, 2019 6:02 pm    Post subject: Reply with quote

sabayonino wrote:
Code:
zcat /proc/config.gz | grep BFQ


ho tolto il suppurto al config.gz

ma il file di configurazione che ho usato é questo

https://paste.pound-python.org/raw/PxGWiuRRdiBOmLztSjWT/
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1014

PostPosted: Sat Feb 02, 2019 6:21 pm    Post subject: Reply with quote

A questo punto incolla anche il grub.cfg :lol:

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
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 509

PostPosted: Sat Feb 02, 2019 6:47 pm    Post subject: Reply with quote

sabayonino wrote:
A questo punto incolla anche il grub.cfg :lol:


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
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1014

PostPosted: Sat Feb 02, 2019 7:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 509

PostPosted: Sat Feb 02, 2019 7:30 pm    Post subject: Reply with quote

Adesso dovrebbe essere ok..

https://paste.pound-python.org/raw/7yNoBFZbYkIYclfAyjci/

ma comunque la situazione non cambia

Code:
cat /sys/class/block/sd*/queue/scheduler
noop deadline [cfq]
noop deadline [cfq]
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1014

PostPosted: Sat Feb 02, 2019 8:45 pm    Post subject: Reply with quote

Hai creato la regola udev ?
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 509

PostPosted: Sat Feb 02, 2019 9:06 pm    Post subject: Reply with quote

sabayonino wrote:
Hai creato la regola udev ?


come hai impostato la tua? che la confronto...
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1014

PostPosted: Sat Feb 02, 2019 9:33 pm    Post subject: Reply with quote

come quella che hai linkato all'inizio.
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
antonellocaroli
Guru
Guru


Joined: 11 Aug 2016
Posts: 509

PostPosted: Sun Feb 03, 2019 3:42 am    Post subject: Reply with quote

Grazie, risolto....
c'era un po di confusione con il grub dell'altro hd....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum