Re: [PATCH] mmc: block: delete packed command support

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

 



[...]

>>
>> Regarding "performance", are you merely thinking about increased
>> throughput? With packed command we decrease the communication overhead
>> with the card so less commands becomes sent/received.
>>
>> Or, did you also observed an improved behaviour of the card from a
>> garbage collect point of view? In other words also a decreased latency
>> when the device is becoming more and more used?
>>
>> Finally, did you compare the packed command, towards using the
>> asynchronous request mechanisms (using the ->pre|post_req() mmc host
>> ops)?
>
> The main point of command packing is that the device can be smarter
> about garbage collection as well as combine sub-page sized writes.

Ideally, yes! But I am not sure that is the case. Vendors would have to confirm.

By following the evolution of development of the eMMC spec one could
make some guesses. Let me try it :-).

In the eMMC 4.5 spec, "data tag", "context ID" and "packed command"
was added. It seems to me that "data tag" and "context ID" was
intended to help the device to be smarter about garbage collection,
while "packed command" is about reducing overhead.

The below is quoted from the packed command section in the spec:

"Read and write commands can be packed in groups of commands (either
all read or all write) that transfer the data for all commands in the
group in one transfer on the bus, to reduce overheads."

>
> The communication overhead is nearly irrelevant in comparison,
> and we would probably not have done anything for that.

I think we did.

And that's particularly why I am interested to see a fresh comparison
against the async request transfer mechanism.

>
>> >> As far as I can say from reviewing the mobile (Android)
>> >> platforms kernel source (from different vendors),
>> >> many of them are enabling Packed Commands.
>> >
>> > Actually, some shipping Samsung devices with eMMC4.5 might be used packed command.
>> > (For Android/Tizen OS and ARTIK boards)
>>
>> Thanks for sharing this information!
>>
>> It seems like we need to run another round of performance
>> measurements, as to get some fresh number of the benefit of packed
>> command.
>> I would really appreciate if you could help out with that.
>
> As far as I'm concerned, there are already two conclusions and
> I don't think those measurements would help much:
>
> - It's a problem that none of our upstream drivers support this
>   feature, and we really want them to do so, at least after the
>   blk_mq change.
>
> - Linus' analysis is still valid: there is no regression in removing
>   it from the traditional blk code today, anyone who has a private
>   driver that uses it can simply revert the removal in their next
>   private product release.
>
> If removing it helps us enable blk_mq support more easily, then
> I think we can take out the packed command handling, but we have
> to be prepared to put it back later on top of blk_mq.
>

Thanks for the summary. This do seems like a nice approach.

Let's see what other people thinks about this.

Kind regards
Uffe
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux