You are not logged in.

#1 2013-05-25 16:46:30

flipper T
Member
Registered: 2012-09-14
Posts: 419

[SOLVED] linux-ck repo: IO scheduler bfq issue

Hi, have followed wiki & installed repo-ck.

Everything seems to be ok, except i noticed a message on boot along the lines of "IO scheduler bfq (?) not found"

I followed the wiki, i think, and made the adjustment to my syslinux.cfg, so I need some help.

How do I know whether bfscheduler is running.

Found similar thread here : https://bbs.archlinux.org/viewtopic.php?id=133081

...but is the answer still the same ?

Any guidance gratefully accepted.

Last edited by flipper T (2013-05-25 22:06:32)


If I'm curt with you it's because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the [censored] car. -The Wolf

Offline

#2 2013-05-25 16:49:51

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] linux-ck repo: IO scheduler bfq issue

flipper T wrote:

Hi, have followed wiki & installed repo-ck.

Everything seems to be ok, except i noticed a message on boot along the lines of "bf scheduler not found"

I followed the wiki, i think, and made the adjustment to my syslinux.cfg, so I need some help.

Please post your bootloader's config.

flipper T wrote:

How do I know whether bfscheduler is running.

https://wiki.archlinux.org/index.php/Li … if_Enabled

Offline

#3 2013-05-25 16:51:43

flipper T
Member
Registered: 2012-09-14
Posts: 419

Re: [SOLVED] linux-ck repo: IO scheduler bfq issue

syslinx.cfg

# Config file for Syslinux -
# /boot/syslinux/syslinux.cfg
#
# Comboot modules:
#   * menu.c32 - provides a text menu
#   * vesamenu.c32 - provides a graphical menu
#   * chain.c32 - chainload MBRs, partition boot sectors, Windows bootloaders
#   * hdt.c32 - hardware detection tool
#   * reboot.c32 - reboots the system
#   * poweroff.com - shutdown the system
#
# To Use: Copy the respective files from /usr/lib/syslinux to /boot/syslinux.
# If /usr and /boot are on the same file system, symlink the files instead
# of copying them.
#
# If you do not use a menu, a 'boot:' prompt will be shown and the system
# will boot automatically after 5 seconds.
#
# Please review the wiki: https://wiki.archlinux.org/index.php/Syslinux
# The wiki provides further configuration examples

DEFAULT arch
PROMPT 0        # Set to 1 if you always want to display the boot: prompt 
TIMEOUT 10
# You can create syslinux keymaps with the keytab-lilo tool
#KBDMAP de.ktl

# Menu Configuration
# Either menu.c32 or vesamenu32.c32 must be copied to /boot/syslinux 
#UI menu.c32
#UI vesamenu.c32

# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
MENU TITLE Arch Linux
#MENU BACKGROUND /boot/syslinux/splash.png
MENU COLOR border       30;44   #40ffffff #a0000000 std
MENU COLOR title        1;36;44 #9033ccff #a0000000 std
MENU COLOR sel          7;37;40 #e0ffffff #20ffffff all
MENU COLOR unsel        37;44   #50ffffff #a0000000 std
MENU COLOR help         37;40   #c0ffffff #a0000000 std
MENU COLOR timeout_msg  37;40   #80ffffff #00000000 std
MENU COLOR timeout      1;37;40 #c0ffffff #00000000 std
MENU COLOR msg07        37;40   #90ffffff #a0000000 std
MENU COLOR tabmsg       31;40   #30ffffff #00000000 std

# boot sections follow
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*

LABEL arch
	MENU LABEL Arch Linux
	LINUX ../vmlinuz-linux
	APPEND root=/dev/sda3 ro init=/usr/lib/systemd/systemd vga=794 elevator=bfq
	INITRD ../initramfs-linux.img

LABEL archfallback
	MENU LABEL Arch Linux Fallback
	LINUX ../vmlinuz-linux
	APPEND root=/dev/sda3 ro
	INITRD ../initramfs-linux-fallback.img

#LABEL windows
#        MENU LABEL Windows
#        COM32 chain.c32
#        APPEND hd0 1

LABEL hdt
        MENU LABEL HDT (Hardware Detection Tool)
        COM32 hdt.c32
 
LABEL reboot
        MENU LABEL Reboot
        COM32 reboot.c32
 
LABEL off
        MENU LABEL Power Off
        COMBOOT poweroff.com

thanks


If I'm curt with you it's because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the [censored] car. -The Wolf

Offline

#4 2013-05-25 16:55:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] linux-ck repo: IO scheduler bfq issue

Where is the linux-ck config?

LABEL arch
	MENU LABEL Arch Linux
	LINUX ../vmlinuz-linux
	APPEND root=/dev/sda3 ro init=/usr/lib/systemd/systemd vga=794 elevator=bfq
	INITRD ../initramfs-linux.img

says you expect the regular linux kernel to have bfq.


I think you should have opened a new thread, as this one is for repo-related issues.

@Graysky: is it OK to continue here? A moderator can later move these posts to a new thread.

Last edited by karol (2013-05-25 16:56:33)

Offline

#5 2013-05-25 16:58:19

flipper T
Member
Registered: 2012-09-14
Posts: 419

Re: [SOLVED] linux-ck repo: IO scheduler bfq issue

Sorry, like i said, trying to follow the wiki.

What changes do I need to make?


If I'm curt with you it's because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the [censored] car. -The Wolf

Offline

#6 2013-05-25 17:04:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] linux-ck repo: IO scheduler bfq issue

Remove 'elevator=bfq' from the APPEND line of the stock kernel.
Create a similar entry, but with a different label. It should point to the linux-ck kernel, not to the stock one.
At boot, pick the linux-ck kernel from the menu.

Offline

#7 2013-05-25 17:04:52

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,592
Website

Re: [SOLVED] linux-ck repo: IO scheduler bfq issue

I don't want to bother the mods to move part of this thread.  The problem with flipper T's config is that his isn't hitting the linux-ck files as you pointed out, he is hitting the standard ones.  Something like this should work:

LABEL arch-ck
	MENU LABEL Arch Linux-ck
	LINUX ../vmlinuz-linux-ck
	APPEND root=/dev/sda3 ro init=/usr/lib/systemd/systemd vga=794 elevator=bfq
	INITRD ../initramfs-linux-ck.img

@flipper - if it doesn't work, please open a new thread and paste in just the relevant parts there.  This thread is for repo issues (i.e. file is missing, index is bad, can't connect, etc.)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#8 2013-05-25 17:11:56

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [SOLVED] linux-ck repo: IO scheduler bfq issue

graysky wrote:

I don't want to bother the mods to move part of this thread.

Don't worry, I need to fill my quota else I have to pay out the difference from my TU taco reserves.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#9 2013-05-25 17:18:49

flipper T
Member
Registered: 2012-09-14
Posts: 419

Re: [SOLVED] linux-ck repo: IO scheduler bfq issue

Made suggested changes & can no longer see boot error messages.

Is there a way to confirm that i am running the patched kernel & that bf scheduler is running (bf scheduler intalled globally per wiki)

Thank for help so far.


If I'm curt with you it's because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the [censored] car. -The Wolf

Offline

#10 2013-05-25 17:21:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] linux-ck repo: IO scheduler bfq issue

flipper T wrote:

Is there a way to confirm that i am running the patched kernel & that bf scheduler is running (bf scheduler intalled globally per wiki)

The wiki tells you how, I posted a link already https://bbs.archlinux.org/viewtopic.php … 4#p1277904

Offline

#11 2013-05-25 17:28:08

flipper T
Member
Registered: 2012-09-14
Posts: 419

Re: [SOLVED] linux-ck repo: IO scheduler bfq issue

thanks. I get this

dmesg | grep scheduler
[    0.191410] io scheduler noop registered
[    0.191412] io scheduler deadline registered
[    0.191418] io scheduler cfq registered
[    0.191423] io scheduler bfq registered (default)
[    0.288896] BFS CPU scheduler v0.430 by Con Kolivas.

Can i assume that everything is now tickety - boo ?


If I'm curt with you it's because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the [censored] car. -The Wolf

Offline

#12 2013-05-25 17:31:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] linux-ck repo: IO scheduler bfq issue

Yup, everything seems OK.
The stock kernel returns

$ dmesg | grep scheduler
[    0.428874] io scheduler noop registered
[    0.428879] io scheduler deadline registered
[    0.428943] io scheduler cfq registered (default)

Observe if you see any positive / negative changes. You can always boot the stock kernel by picking it from the menu.
If you prefer the -ck kernel, rearrange the order of the available kernels so it's the first (default) one to make it easier to pick from the menu.

Last edited by karol (2013-05-25 17:32:15)

Offline

#13 2013-05-25 17:48:44

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED] linux-ck repo: IO scheduler bfq issue

In your syslinux.cfg leave the elevator you want for that kernel!
Than you just need to change /etc/tmpfiles.d/set_IO_scheduler.conf, like this;

w /sys/block/sda/queue/scheduler - - - - bfq
#w /sys/block/sda/queue/scheduler - - - - cfq

edit; is it possible to automate this?, check which kernel is chosen than add the right elevator?
Could a piece of bash added to the bootloader work?, but I can't script, I thought of something like this!

#!/bin/bash
if [uname -r = linux-ck];
then echo bfq > /sys/block/sda/queue/scheduler
fi
else
if [uname -r = linux];
then echo cfq > /sys/block/sda/queue/scheduler
fi

Last edited by qinohe (2013-05-25 18:11:29)

Offline

#14 2013-05-25 19:20:19

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] linux-ck repo: IO scheduler bfq issue

@qinohe, I used udev rules to set my schedulers.  But the only problem was that I wanted to use bfq for graysky's kernel and cfq otherwise.  I still haven't figured out how to have udev query which kernel it is running... when I can get that, success will be mine!


Edit: This is what I have currently (I stopped using the CK kernel as my daily driver so that I can use "systemd --user"):

% cat /etc/udev/rules.d/60-scheduler.rules 
## set scheduler for non-rotating disks
ACTION=="add", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"

# set scheduler for rotating disks
ACTION=="add", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="cfq"

Last edited by WonderWoofy (2013-05-25 19:21:50)

Offline

#15 2013-05-25 22:06:09

flipper T
Member
Registered: 2012-09-14
Posts: 419

Re: [SOLVED] linux-ck repo: IO scheduler bfq issue

Hi. Thanks to all for help & mod for modding.

Will mark as solved.


If I'm curt with you it's because time is a factor. I think fast, I talk fast and I need you guys to act fast if you wanna get out of this. So, pretty please... with sugar on top. Clean the [censored] car. -The Wolf

Offline

#16 2013-05-25 22:28:12

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: [SOLVED] linux-ck repo: IO scheduler bfq issue

Hmm, I really like your idea better than mine WonderWoofy!
But it did make me start thinking about the boot process.
So maybe that udev can't handle that too, mine was off-limits;)
We need to start looking earlier in the process What starts the kernel , the bootloader, right?, and udev is started by the kernel, so the check must be done prior to that!, correct me if I'm wrong.)
Maybe a nice new app for EFI, now I can't program really!, but this would be nice!, or something in grub, I think it can be done!
p.s. forgive me , my systemd powers are not that great!,come again!

edit, oh I don't mean to hijack the thread, I didn't see, left the post open far to long, movie in one eye...

Last edited by qinohe (2013-05-25 22:33:36)

Offline

Board footer

Powered by FluxBB