Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 42

Thread: Shy Crocodile version 5.0 ...

  1. #31
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    2,810
    Distro
    Ubuntu Development Release

    Re: Shy Crocodile version 5.0 ...

    Quote Originally Posted by zika View Post
    For additional, as always, You need to add their modules, if they are available in the particular kernel build, no matter which edition,You're using. There are more than shown in Your code for sure...
    Example:
    Code:
    $ locate bfq.ko
    /usr/lib/modules/5.0.0-7-generic/kernel/block/bfq.ko
    /usr/lib/modules/5.0.0-994-generic/kernel/block/bfq.ko
    $modprobe bfq
    $ cat /sys/block/sda/queue/scheduler
    [none] mq-deadline bfq
    I can also load the bfq module via the modrpobe command, but not kyber. Do you know how to get the system to use the bfq or kyber schedulers? I assumed, but do not know for sure that they would have to be built in and not modules in order to be a boot time option. I got them both to appear by building them in:

    Code:
    doug@s15:~$ uname -r && cat /sys/block/sda/queue/scheduler && cat /proc/cmdline
    5.0.0-teo11-boost2
    [mq-deadline] none
    BOOT_IMAGE=/boot/vmlinuz-5.0.0-teo11-boost2 root=UUID=bcbc624b-892b-46ca-9e9e-102daf644170 ro ipv6.disable=1 consoleblank=300 elevator=bfq
    
    doug@s15:~/temp-k-git/linux$ uname -r && cat /sys/block/sda/queue/scheduler && cat /proc/cmdline
    5.0.0-teo11-bfq
    [mq-deadline] kyber bfq none
    BOOT_IMAGE=/boot/vmlinuz-5.0.0-teo11-bfq root=UUID=bcbc624b-892b-46ca-9e9e-102daf644170 ro ipv6.disable=1 consoleblank=300 elevator=bfq
    
    doug@s15:~/temp-k-git/linux$ uname -r && cat /sys/block/sda/queue/scheduler && cat /proc/cmdline
    5.0.0-teo11-bfq
    [mq-deadline] kyber bfq none
    BOOT_IMAGE=/boot/vmlinuz-5.0.0-teo11-bfq root=UUID=bcbc624b-892b-46ca-9e9e-102daf644170 ro ipv6.disable=1 consoleblank=300 scsi_mod.use_blk_mq=1 elevator=kyber
    Code:
    doug@s15:~/temp-k-git/linux$ scripts/diffconfig .config-5.0-teo11 .config-5.0-bfq
     IOSCHED_BFQ m -> y
     MQ_IOSCHED_KYBER m -> y
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  2. #32
    Join Date
    Oct 2008
    Location
    ExodusHair<Čubura
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Shy Crocodile version 5.0 ...

    Code:
    $ locate kyber
    /usr/lib/modules/4.19.0-13-generic/kernel/block/kyber-iosched.ko
    /usr/lib/modules/5.0.0-994-generic/kernel/block/kyber-iosched.ko
    /usr/src/linux-headers-4.19.0-13-generic/include/config/mq/iosched/kyber.h
    /usr/src/linux-headers-5.0.0-994/include/trace/events/kyber.h
    /usr/src/linux-headers-5.0.0-994-generic/include/config/mq/iosched/kyber.h
    Code:
    $ sudo modprobe kyber-iosched
    $ cat /sys/block/sda/queue/scheduler
    [mq-deadline] kyber none
    Code:
    $ cat /etc/modules# /etc/modules: kernel modules to load at boot time.
    #
    # This file contains the names of kernel modules that should be loaded
    # at boot time, one per line. Lines beginning with "#" are ignored.
    bfq
    kyber-iosched
    
    $ cat /etc/rc.local
    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.
    
    /usr/bin/echo kyber > /sys/block/sda/queue/scheduler
    exit 0
    
    $ sudo chmod +x /etc/rc.local
    Last edited by zika; March 8th, 2019 at 07:10 AM.
    Ignota nulla curatio morbi.

  3. #33
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    2,810
    Distro
    Ubuntu Development Release

    Re: Shy Crocodile version 5.0 ...

    Quote Originally Posted by zika View Post
    Code:
    /usr/bin/echo kyber > /sys/block/sda/queue/scheduler
    Oh! Thanks. For unknown reasons I thought it was a boot time only thing. Yes, it works fine:

    Code:
    doug@s15:~/temp-k-git/linux$ cat /sys/block/sda/queue/scheduler
    [mq-deadline] kyber bfq none
    doug@s15:~/temp-k-git/linux$ echo kyber |sudo tee /sys/block/sda/queue/scheduler
    kyber
    doug@s15:~/temp-k-git/linux$ cat /sys/block/sda/queue/scheduler
    mq-deadline [kyber] bfq none
    doug@s15:~/temp-k-git/linux$ echo bfq |sudo tee /sys/block/sda/queue/scheduler
    bfq
    doug@s15:~/temp-k-git/linux$ cat /sys/block/sda/queue/scheduler
    mq-deadline kyber [bfq] none
    edit: I observe that i do not need to force load the module, as it will load when asked for:
    Code:
    doug@s15:~$ cat /sys/block/sda/queue/scheduler
    mq-deadline [bfq] none
    doug@s15:~$ echo kyber |sudo tee /sys/block/sda/queue/scheduler
    kyber
    doug@s15:~$ cat /sys/block/sda/queue/scheduler
    mq-deadline bfq [kyber] none
    Last edited by Doug S; March 8th, 2019 at 08:40 AM.
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  4. #34
    Join Date
    Oct 2008
    Location
    ExodusHair<Čubura
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Shy Crocodile version 5.0 ...

    In 1 I gave You on-fly method while in 2 there is how to make that permanent...
    Reboot is not an often used word in Linux... But, old habbits do die hard...
    Do check if the module is actually loaded even though it is present in mentioned file.
    Last edited by zika; March 8th, 2019 at 09:53 AM.
    Ignota nulla curatio morbi.

  5. #35
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Shy Crocodile version 5.0 ...

    Sorry late for party, way to much work (Job) for this old fart.
    Along with zika's post, My findings thus far, bfq is about the same performance as prior mq-deadline scheduler, with a notable difference>> moving files form one disk to another the initial start is a bit laggy but transfer speeds were almost identical. Files sizes ranged from 900mb to 5 Gigs.
    media transcodeing was very close to same.
    I went about setting this like:>>(If interested)
    Code:
    sudoedit /etc/default/grub
    Adding this:
    Code:
    GRUB_CMDLINE_LINUX="scsi_mod.use_blk_mq=1 quiet"
    Then updated grub;
    Code:
    sudo update-grub
    Next I made a file "60-scheduler.rules"
    Code:
    sudoedit /etc/udev/rules.d/60-scheduler.rules
    With this for the content:
    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" ## Or use the one you want/need
    This should work for SSD drives and Spinning disks.
    Next reload udevadm:
    Code:
    sudo udevadm control --reload
    sudo udevadm trigger
    Now on next boot should show you:
    Code:
    cat /sys/block/sda/queue/scheduler
    mq-deadline kyber [bfq] none
    Summary: Just goes to show, Using a multi-queue scheduler is like using high-octane fuel in a car from the 90s, its not going to make it run better, especially when its worked just fine with regular fuel for the last 3 decades.
    Hi 1fallen, Recall that CFQ is now gone.
    Not just yet:
    Code:
    me on Tue Mar 12 at 02:00 PM in ~ branch: (HEAD) 
    >> sudo dmesg | grep cfq && uname -r
    [sudo] password for me: 
    [    2.166975] io scheduler cfq registered (default)
    4.20.15.a-1-hardened
    Last edited by 1fallen; March 13th, 2019 at 03:20 PM. Reason: Edited to be current
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  6. #36
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    2,810
    Distro
    Ubuntu Development Release

    Re: Shy Crocodile version 5.0 ...

    Quote Originally Posted by 1fallen View Post
    Next I made a file "60-scheduler.rules"
    Code:
    sudoedit /etc/udev/rules.d/60-scheduler.rules
    With this for the content:
    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"
    Hi 1fallen, Recall that CFQ is now gone.

    Quote Originally Posted by zika View Post
    In 1 I gave You on-fly method while in 2 there is how to make that permanent...
    Reboot is not an often used word in Linux... But, old habbits do die hard...
    Hi zika, Thanks. My point was that I don't actually need to do either of your steps, as it will load automatically when asked for.

    Quote Originally Posted by zika View Post
    Do check if the module is actually loaded even though it is present in mentioned file.
    It is:
    Code:
    doug@s15:~$ lsmod | grep kyber
    kyber_iosched          32768  1
    Now.... It was so many months ago, that I no longer recall what I wanted to test with bfq or kyber...
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  7. #37
    Join Date
    Oct 2008
    Location
    ExodusHair<Čubura
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Shy Crocodile version 5.0 ...

    Old dogs, like me, learn very slowly new tricks but I'll try this on my machine. Last time I've tried I had to provide that module is loaded. Nice to know there is real progress even in that obscure part of this. Thanks.
    Last edited by zika; March 9th, 2019 at 07:26 AM.
    Ignota nulla curatio morbi.

  8. #38
    Join Date
    Oct 2008
    Location
    Rezzoaglio (GE) Italy
    Beans
    331
    Distro
    Ubuntu Development Release

    Re: Shy Crocodile version 5.0 ...


  9. #39
    Join Date
    Jan 2006
    Location
    Palmela, Portugal
    Beans
    660

    Re: Shy Crocodile version 5.0 ...

    Thank you.
    All good here on Ubuntu 19.04 dev.

    $ inxi -SCx
    System:
    Host: ubuntu19 Kernel: 5.0.1-050001-generic x86_64 bits: 64 compiler: gcc
    v: 8.3.0 Desktop: Gnome 3.31.92 Distro: Ubuntu 19.04 (Disco Dingo)
    CPU:
    Topology: Quad Core model: Intel Core i7-6700HQ bits: 64 type: MT MCP
    arch: Skylake-S rev: 3 L2 cache: 6144 KiB
    flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 41472
    Speed: 900 MHz min/max: 800/3500 MHz Core speeds (MHz): 1: 900 2: 900
    3: 900 4: 901 5: 900 6: 900 7: 900 8: 900
    Last edited by moma; March 13th, 2019 at 09:55 PM.

  10. #40
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    2,810
    Distro
    Ubuntu Development Release

    Re: Shy Crocodile version 5.0 ...

    With the pending kernel 5.1-rc1, and already in the daily, there will be a new Timer Events Oriented (TEO) idle governor (I have mentioned it herein before).
    Currently, and in today's daily, the related kernel configuration is:

    Code:
    doug@s15:~/temp-k-git/linux$ grep -B 6 -A 1 IDLE_GOV_TEO .config-5.0.0-999-lowlatency
    #
    # CPU Idle
    #
    CONFIG_CPU_IDLE=y
    CONFIG_CPU_IDLE_GOV_LADDER=y
    CONFIG_CPU_IDLE_GOV_MENU=y
    # CONFIG_CPU_IDLE_GOV_TEO is not set
    CONFIG_INTEL_IDLE=y
    whereas this would be great, and allow users that do not compile the kernel for themselves to be able try try the new governor:
    Code:
    #
    # CPU Idle
    #
    CONFIG_CPU_IDLE=y
    CONFIG_CPU_IDLE_GOV_LADDER=y
    CONFIG_CPU_IDLE_GOV_MENU=y
    CONFIG_CPU_IDLE_GOV_TEO=y
    CONFIG_INTEL_IDLE=y
    Does anybody know how to request a mainline kernel configuration change?
    I have searched the wikis and such.
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

Page 4 of 5 FirstFirst ... 2345 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •