Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6dcab9274de2462644d8eef6c8ee107a@smtp.hushmail.com>
Date: Tue, 8 Sep 2015 12:32:11 +0200
From: magnum <john.magnum@...hmail.com>
To: john-dev@...ts.openwall.com
Subject: Re: SHA-1 H()

On 2015-09-08 10:47, Solar Designer wrote:
> On Tue, Sep 08, 2015 at 03:04:57PM +0800, Lei Zhang wrote:
>> On AltiVec (4xOMP):
>
> Is this 4 threads likely across different CPU cores? That's no good.
> What we need for benchmarking is the maximum number of threads supported
> in hardware on a certain number of CPU cores (on 1 core is OK if you
> can't reliably use the entire machine's cores). So on POWER8 I guess
> you'll run 8 threads all locked to one physical CPU core. You should be
> able to do that with OpenMP env vars (affinity).
>
> Please also run non-OpenMP benchmarks (thus, using 1 thread on 1 core
> only) for reference.
>
>> [before]
>> pbkdf2-sha1:	35840 c/s real, 8982 c/s virtual
>> pbkdf2-sha256:	14194 c/s real, 3566 c/s virtual
>> pbkdf2-sha512:	5944 c/s real, 1489 c/s virtual
>>
>> [after]
>> pbkdf2-sha1:	36141 c/s real, 9057 c/s virtual
>> pbkdf2-sha256:	14336 c/s real, 3592 c/s virtual
>> pbkdf2-sha512:	5936 c/s real, 1498 c/s virtual
>
> Thanks, but why are you testing these 3 hash types?  I think we made
> relevant changes to SHA-1 (optimized H using vcmov() as discussed in
> this thread), MD5 (ditto, using my newly found expression for I), and
> MD4 (ditto, realizing that G is the same as SHA-2 Maj).
>
> We also revised how vcmov() is emulated and what we do when it is
> emulated, but this should not affect AltiVec and NEON because those have
> non-emulated vcmov().  We also adjusted SHA-256's interleaving factor on
> XOP, but that's just XOP.
>
> There should be no change to SHA-256 and SHA-512 on AltiVec and NEON.

Lei, you could also run the testparas.pl script (with OMP_NUM_THREADS 
and GOMP_CPU_AFFINITY) before and after. But we'd want normal benchmarks 
(like you did but for pbkdf2-hmac-md4/5 and -sha1) too, so we can assess 
the virtual figures.

magnum

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.