[PATCH/RFC] NVMe: add support for doing offline/online of attached namespaces

Jens Axboe axboe at fb.com
Fri Jan 23 09:39:38 PST 2015


On 01/23/2015 10:31 AM, Christoph Hellwig wrote:
> On Fri, Jan 23, 2015 at 10:24:45AM -0700, Jens Axboe wrote:
>> It'd be an interesting experiment in seeing how close scsi-mq is to raw
>> performance, I'd be worried there's still quite a gap though. Maybe when
>> we're further along it starts to become a more viable option, at least I
>> would not rule it out.
>
> I'd love to try it.  On the submission side SCSI for some drivers
> actually is more efficient than nvme in terms of memory allocations
> as we don't require any allocation for common I/O. (Your patch closes
> that gap for the smallest possible IO), altough the per-host and
> per-device shost_busy/sdev_busy counters will show some issues with
> enough sockets.  On the completion side SCSI might still be a bit
> worse as we haven't really haven't started any optimizations yet.

For the per dev host/sdev busy counters, those could be further improved 
if they turn out to be a problem. I've got various "things" here that'll 
do 1-2M IOPS per dev, so some test/profiling would not be a problem to do.

First issue is support for > 1 hw queue in SCSI, though.

>> At the same time, this is a feature we use/need now. So I don't think a
>> potential switch in future direction should preclude that from being done
>> now.
>
> Sure, I was just answering your question for potential alternatives.

Great, thanks.

-- 
Jens Axboe




More information about the Linux-nvme mailing list