Re: Querying the CPU queue mapping of blk-mq device in general and nvme device in particular

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 15, 2018 at 02:31:45PM -0400, Vladislav Zolotarov wrote:
> Christoph, hi!
> I'd like to ask you if there is a way to learn from the user space the 
> current CPU queue mapping of a particular blk-mq device?

root@testvm:~# cat /sys/block/nvme0n1/mq/?/cpu_list 
0
1
2
3


> For instance, given a particular NVMe device queue (e.g. nvme0q8) how can I 
> tell which CPU it is mapped to?
>
> I need this in order to properly set the SMP affinity of the corresponding 
> IRQ vectors in case when kernel doesn't auto-tune it.

For any somewhat modern kernel the affinity will be set up properly.
If you are on an old distro kernel file a bug with them that they backport
this support..



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux