Re: CCREE performance on R-Car H3 + crash

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

 



On Mon, Jul 23, 2018 at 12:55 PM, Geert Uytterhoeven
<geert@xxxxxxxxxxxxxx> wrote:
> Hi Gilad,
>
> CC linux-crypto for the crash log.
>
> On Sun, Jul 22, 2018 at 7:28 AM Gilad Ben-Yossef <gilad@xxxxxxxxxxxxx> wrote:
>> On Thu, Jul 19, 2018 at 3:43 PM, Geert Uytterhoeven
>> <geert@xxxxxxxxxxxxxx> wrote:
>> > I've noticed CCREE is used with a LUKS-formatted disk, so I did some small
>> > performance benchmarks.  The disk is an old 160 GiB SATA hard drive,
>> > connected to either Salvator-XS (R-Car H3 ES2.0) or Koelsch (R-Car M2-W).
>> >
>> > hdparm -t /dev/sda (unencrypted data): 62 MB/s (both systems)
>> >
>> > hdparm -t /dev/dm-0 (encrypted data, LUKS AES):
>> >
>> >     salvator-xs (CCREE): 15 MB/s
>> >     salvator-xs (SW):    62 MB/s
>> >     koelsch (SW):        47 MB/s
>> >
>> > I'm a bit disappointment by the results when using crypto acceleration.
>> > Apparently the in-kernel optimized arm64 implementation can decrypt at
>> > raw read speed, while CCREE can't keep up.
>>
>> Interesting. What is the encryption sector size used?
>
> crypt_config.sector_size is 512.
>
>> If it is he default of 512 bytes, you might want to try setting the
>> new block_size DM-Crypt option. I believe it will have a large effect
>> on the result.
>
> Where do I specifiy that option? I couldn't find it.

It seems my memory of the config option name failed me,
I was referring to the the sector_size and iv_large_sectors options
of dm-crypt.



> Is that compatible with the encrypted media that's already in use?

No, if you created the media with 512 sector size than obviously trying to mount
with a different sector size will not work.

There is a discussion right now in the MD mailing list about changes
to DM-Crypt so that
you don't have to change the sector size and still work with larger
buffers if the HW supports
auto increment the sector number in the IV, as CryptoCell indeed knows
how to do in a newer
revision of the HW than the one that is found in the R-Car, but that
won't help us here, alas.

Thanks,
Gilad


-- 
Gilad Ben-Yossef
Chief Coffee Drinker

values of β will give rise to dom!




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

  Powered by Linux