Re: [PATCH] blk-mq-debugfs: add mapping show for hw queue to cpu

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

 



On 07/12/2017 11:13 AM, weiping zhang wrote:
> On Wed, Jul 12, 2017 at 10:57:37AM -0600, Jens Axboe wrote:
>> On 07/12/2017 10:54 AM, weiping zhang wrote:
>>> A mapping show as following:
>>>
>>> hctx		cpus
>>> hctx0		  0   1
>>> hctx1		  2
>>> hctx2		  3
>>> hctx3		  4   5
>>
>> We already have that information in the /sys/block/<dev>/mq/X/cpu_list
>>
>> where X is the hardware queue number. Why do we need it in debugfs as
>> well, presented differently?
> 
> this arribute give a more obviously showing, only by 1 "cat" command.
> /sys/bloc/<dev>/mq/X/cpu_list not easy get mapping for all hctx by 1
> command.
> also /sys/kernel/debug/block/xxx/hctxN/cpuX can export that info, but
> these two methods both not obviously.

The point is the information is there, and I'm sure most people can
work out the shell logic to collect this info. I see zero benefit to
adding this to debugfs.

-- 
Jens Axboe




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux