/srv/irclogs.ubuntu.com/2017/12/12/#ubuntu-kernel.txt

=== _ruben_ is now known as _ruben
=== himcesjf_ is now known as him-cesjf
alexzzzHi! I'm trying to test hybrid polling. Using ubuntu 16.04 with 4.10.0-42-generic kernel (from linux-generic-hwe-16.04 package). When i do echo 0 > /sys/block/sdc/queue/io_poll_delay then i get error: -bash: echo: write error: Invalid argument. I'm logged in as root, so it is not user permissions problem. Did i miss something?10:45
alexzzzI'm using blk-mq for this disk. scsi_mod.use_blk_mq=y while booting and scheduler for this disk is 'none', which means that scsi_mq is active10:48
alexzzzAny suggestions?:( i really don't know where to look at now11:26
juerghalexzzz, looking11:26
alexzzzjuergh: Thak you!:)11:26
juergh        if (!q->request_fn && !q->mq_ops)11:26
juergh                return -EINVAL;11:26
juerghthat's what you're hitting11:26
juerghoh no wait. that's the one:11:28
juergh        if (!q->mq_ops || !q->mq_ops->poll)11:28
juergh                return -EINVAL;11:28
juerghalexzzz, you need to write 0 to /sys/block/sdc/queue/io_poll first to enable polling (according to the docs).11:35
juerghmaeh, make that 'write 1' :-)11:35
alexzzzHm, but it is 111:35
juergh:-(11:35
alexzzzit is a default behavior11:35
alexzzzand i can't turn polling off, echo 0 to io_poll fails with same error invalid argument11:36
TJ-alexzzz: any apparmor denials or other clues in the system logs?11:40
alexzzzTJ-: no, nothing in logs11:44
juerghalexzzz, The low-level driver needs to support IO polling. Currently, only NVME supports it so you're out of luck with a SCSI disk.12:05
juergh$ find drivers/ -type f -name '*.c' | xargs grep -A20 '^static.* struct blk_mq_ops' | grep '\.poll'12:05
juerghdrivers/nvme/host/rdma.c-.poll= nvme_rdma_poll,12:05
juerghdrivers/nvme/host/pci.c-.poll= nvme_poll,12:05
juerghdrivers/nvme/host/fc.c-.poll= nvme_fc_poll,12:05
alexzzzOh12:06
alexzzzjuergh: Thank you very much!12:07
juerghalexzzz, np12:07
alexzzzi will try it on NVMe some time later12:07
=== ghostcube_ is now known as ghostcube

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!