Re: md: dm-verity: aggregate crypto API calls

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

 



we are trying to be able to parallalize the handling of blocks, this patch is a precursor to that effort.
currently this patch does not change CPU utiliztion but we wanted to veritfy there is no objection to the direction first, hence sending the patch.

Thanks,
 Yael

-----Original Message-----
From: Mike Snitzer [mailto:snitzer@xxxxxxxxxx] 
Sent: Wednesday, 25 October 2017 18:19
To: Yael Chemla <yael.chemla@xxxxxxxxxxxx>
Cc: dm-devel@xxxxxxxxxx
Subject: Re: md: dm-verity: aggregate crypto API calls

On Wed, Oct 25 2017 at  4:58am -0400,
Yael Chemla <yael.chemla@xxxxxxxxxxxx> wrote:

> Current implementation makes multiple crypto API calls for a single 
> block, forcing underlying crypto tfm implementation to "stop & go", 
> leading to under utilization of CPU (e.g. SIMD state saves) or HW 
> engines. To fix it unify calls to crypto init/update/final into a 
> digest call with a single sg which contains multiple buffers.
> 
> This also opens the way later on to parallelizing the work on 
> different blocks.
> 
> Tested on physical Arm 32 and x86_64 and virtual ARM 64.
> 
> Performance numbers were not changed.

OK, but what about CPU utilization?  Was it reduced?

Thanks,
Mike


--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel



[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux