Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No I/O schedulers at all disks
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Perfect Gentleman
l33t
l33t


Joined: 18 May 2014
Posts: 861

PostPosted: Wed Oct 29, 2014 6:25 am    Post subject: No I/O schedulers at all disks Reply with quote

Code:
$ cat /sys/block/sd*/queue/scheduler
none
none
none                                                                                                                                                                               
none                                                                                                                                                                               
none

but
Code:

$ dmesg | grep -i sched
[    0.213915] io scheduler noop registered
[    0.213929] io scheduler bfq registered (default)
[    0.213930] BFQ I/O-scheduler version: v7r6
[    0.658499] BFS CPU scheduler v0.456 by Con Kolivas.
$ zcat /proc/config.gz | grep -i bfq
CONFIG_IOSCHED_BFQ=y
CONFIG_CGROUP_BFQIO=y
CONFIG_DEFAULT_BFQ=y
CONFIG_DEFAULT_IOSCHED="bfq"

Code:
# echo bfq > /sys/block/sda/queue/scheduler && cat /sys/block/sda/queue/scheduler
none

I would like to know WTF ?

P.S. Can be
Code:
$ zcat /proc/config.gz | grep -i blk_mq
CONFIG_CMDLINE="root=/dev/sdd1 rw rootfstype=ext4 scsi_mod.use_blk_mq=Y"
the reason?
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Wed Oct 29, 2014 7:30 am    Post subject: Reply with quote

uname -a

wgetpaste your kernel config

wgetpaste emerge --info

did you checked the net for guides? are you sure this should be the expected behaviour? did you check that your kernel supports this feature? it could be removed or changed in syntax ... you may post a reference with your current kernel version showing that it works. if so than it may me a kernel configuration issue
Back to top
View user's profile Send private message
Perfect Gentleman
l33t
l33t


Joined: 18 May 2014
Posts: 861

PostPosted: Wed Oct 29, 2014 7:37 am    Post subject: Reply with quote

Code:
$ uname -a
Linux De-Humanizer 3.17.1-gentoo-r1 #9 SMP PREEMPT Sat Oct 25 06:03:19 NOVT 2014 x86_64 Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz GenuineIntel GNU/Linux

emerge --info
zcat /proc/config.gz

Quote:
did you checked the net for guides? are you sure this should be the expected behaviour? did you check that your kernel supports this feature? it could be removed or changed in syntax ... you may post a reference with your current kernel version showing that it works. if so than it may me a kernel configuration issue

Yep, i googled for those cases, but with no results.
I don't know, maybe, 'cause behind the wall there is Gentoo desktop the same kernel config, except BFS and scsi_mod.use_blk_mq=Y
Code:
$ cat /sys/block/sda/queue/scheduler
noop [bfq]
.
As far as I know, 3.17 supports this feature as it was introduced in it.
------------------------------------------------------------------------------------
Quote:
Missing features:

I/O scheduler support in blk-mq
from http://events.linuxfoundation.org/sites/events/files/slides/scsi.pdf.
I think that is the problem, or not?
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Wed Oct 29, 2014 7:53 am    Post subject: Reply with quote

serious if you rely on a new feature in the newest kernel version you may be out of luck.
some features works after a few kernel versioin relyable. it may be a testing feature at all.
afaik in the past uneven kernel numbers were unstable kernel realeases. so 3.17 should be totally unstable.

maybe someone else knows a glue
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5970

PostPosted: Fri Oct 31, 2014 12:33 am    Post subject: Reply with quote

Are you by any chance using LVM, or have any other /sys/block entries with schedulers visible?
Back to top
View user's profile Send private message
Perfect Gentleman
l33t
l33t


Joined: 18 May 2014
Posts: 861

PostPosted: Fri Oct 31, 2014 4:09 am    Post subject: Reply with quote

Ant P. wrote:
Are you by any chance using LVM, or have any other /sys/block entries with schedulers visible?

I don't use LVM.
Code:
$ ls /sys/block/
sda  sdb  sdc  sdd  sde

Code:
$ ls /sys/block/sdb
alignment_offset  capability  device             events        events_poll_msecs  holders   mq     range      ro    size    stat       uevent
bdi               dev         discard_alignment  events_async  ext_range          inflight  queue  removable  sdb1  slaves  subsystem

Code:
$ ls /sys/block/sdb/queue/
add_random           discard_zeroes_data  logical_block_size      max_sectors_kb    minimum_io_size  optimal_io_size      rotational   write_same_max_bytes
discard_granularity  hw_sector_size       max_hw_sectors_kb       max_segments      nomerges         physical_block_size  rq_affinity                                           
discard_max_bytes    iostats              max_integrity_segments  max_segment_size  nr_requests      read_ahead_kb        scheduler
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5970

PostPosted: Fri Oct 31, 2014 7:40 pm    Post subject: Reply with quote

Hm, then I'm out of ideas... reason I was asking is I've seen the same thing happen on an LVM-running server. I wonder if the cgroup feature is preventing it being set for the entire disk.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat Nov 01, 2014 1:49 am    Post subject: Reply with quote

report the bug:

https://groups.google.com/forum/#!forum/bfq-iosched


does switching back and forth between, e.g. cfq and bfq changes things ?


could be related to scsi_mod.use_blk_mq though & that it doesn't work - haven't used it yet

3.17 + BFQ works fine here

Quote:
As far as I know, 3.17 supports this feature as it was introduced in it.
------------------------------------------------------------------------------------
Quote:
Missing features:

I/O scheduler support in blk-mq
from http://events.linuxfoundation.org/sites/events/files/slides/scsi.pdf.
I think that is the problem, or not?


yes, seems like you answered your own question

that is weird - why would they add something that lacks fundamental features ?
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Perfect Gentleman
l33t
l33t


Joined: 18 May 2014
Posts: 861

PostPosted: Sat Nov 01, 2014 9:24 am    Post subject: Reply with quote

kernelOfTruth wrote:

that is weird - why would they add something that lacks fundamental features ?

maybe, because modern drives have NCQ and any other scheduler are not necessary?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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