Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150831085310.GA12326@openwall.com>
Date: Mon, 31 Aug 2015 11:53:10 +0300
From: Solar Designer <solar@...nwall.com>
To: john-dev@...ts.openwall.com
Subject: Re: PHC: Argon2 on GPU

On Mon, Aug 31, 2015 at 10:26:43AM +0300, Solar Designer wrote:
> [solar@...er run]$ LWS=48 GWS=2304 ./john -test -format=argon2d-opencl -v=4 -dev=5
> Benchmarking: argon2d-opencl [Blake2 OpenCL]... 
> memory per hash : 1.50 MB
> Device 5: GeForce GTX TITAN
> Options used: -I ./kernels -cl-mad-enable -cl-nv-verbose -D__GPU__ -DDEVICE_INFO=65554 -DDEV_VER_MAJOR=352 -DDEV_VER_MINOR=21 -D_OPENCL_COMPILER -DBINARY_SIZE=256 -DSALT_SIZE=64 -DPLAINTEXT_LENGTH=125
> Local worksize (LWS) 48, global worksize (GWS) 2304
> using different password for benchmarking
> DONE
> Speed for cost 1 (t) of 1, cost 2 (m) of 1536, cost 3 (l) of 1
> Many salts:     9680 c/s real, 9600 c/s virtual
> Only one salt:  9600 c/s real, 9600 c/s virtual

I tried to improve this with a script:

[solar@...er run]$ cat try5.sh 
#!/bin/sh

for LWS in 12 16 18 24 32 48 64 96 128 192; do
        for m in 3 5 7 9 11 13 15 17 19 21; do
                GWS=$[$LWS * $m]
                while [ $GWS -lt 1536 ]; do
                        GWS=$[$GWS * 2]
                done
                echo $LWS $GWS
                export LWS GWS
                ./john -test -format=argon2d-opencl -dev=5 -v=4
        done
done

but its best result is exactly the same as above.

[solar@...er run]$ fgrep Many try5a.log | sort -k3 -rn | head
Many salts:     9680 c/s real, 9680 c/s virtual
Many salts:     9345 c/s real, 9428 c/s virtual
Many salts:     9330 c/s real, 9330 c/s virtual
Many salts:     9163 c/s real, 9247 c/s virtual
Many salts:     9124 c/s real, 9124 c/s virtual
Many salts:     9056 c/s real, 9056 c/s virtual
Many salts:     8991 c/s real, 8991 c/s virtual
Many salts:     8941 c/s real, 8941 c/s virtual
Many salts:     8741 c/s real, 8670 c/s virtual
Many salts:     8727 c/s real, 8727 c/s virtual
[solar@...er run]$ fgrep Only try5a.log | sort -k3 -rn | head
Only one salt:  9600 c/s real, 9600 c/s virtual
Only one salt:  9428 c/s real, 9428 c/s virtual
Only one salt:  9418 c/s real, 9418 c/s virtual
Only one salt:  9247 c/s real, 9247 c/s virtual
Only one salt:  9035 c/s real, 9124 c/s virtual
Only one salt:  8991 c/s real, 8991 c/s virtual
Only one salt:  8971 c/s real, 8971 c/s virtual
Only one salt:  8941 c/s real, 8854 c/s virtual
Only one salt:  8813 c/s real, 8813 c/s virtual
Only one salt:  8712 c/s real, 8712 c/s virtual

Alexander

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.