Skip to content

LM-opencl benchmark reports unrealistic speeds on small devices #4871

Closed
@solardiz

Description

@solardiz

Matus UHLAR reported this to me via private e-mail after I questioned the benchmark results he posted on the wiki (for several small devices, not only NVIDIA):

uhlar@fhome% ~/src/debian/john/bleeding-jumbo/run/john -test -format=descrypt-opencl
Device 1: GeForce GT 1030
Benchmarking: descrypt-opencl, traditional crypt(3) [DES OpenCL/mask
accel]... LWS=64 GWS=16384
Note: Building per-salt kernels. This takes e.g. 2 hours for 4096 salts.
DONE
Warning: "Many salts" test limited: 19/256
Many salts:     40267K c/s real, 40067K c/s virtual
Only one salt:  36687K c/s real, 36687K c/s virtual
 
uhlar@fhome% ~/src/debian/john/bleeding-jumbo/run/john -test -format=LM-opencl
Device 1: GeForce GT 1030
Benchmarking: LM-opencl [DES BS OpenCL/mask accel]... LWS=96 GWS=65536
DONE
Raw:    26336M c/s real, 25323M c/s virtual
uhlar@fhome% ~/src/debian/john/bleeding-jumbo/run/john -test=15 -format=descrypt-opencl
Device 1: GeForce GT 1030
Benchmarking: descrypt-opencl, traditional crypt(3) [DES OpenCL/mask
accel]... LWS=64 GWS=16384
Note: Building per-salt kernels. This takes e.g. 2 hours for 4096 salts.
DONE
Warning: "Many salts" test limited: 136/256
Many salts:     38417K c/s real, 38443K c/s virtual
Only one salt:  36157K c/s real, 36109K c/s virtual
 
uhlar@fhome% ~/src/debian/john/bleeding-jumbo/run/john -test=15 -format=LM-opencl
Device 1: GeForce GT 1030
Benchmarking: LM-opencl [DES BS OpenCL/mask accel]... LWS=128 GWS=65536
DONE
Raw:    25363M c/s real, 24427M c/s virtual
 
uhlar@fhome% ~/src/debian/john/bleeding-jumbo/run/john -test=60 -format=LM-opencl
Device 1: GeForce GT 1030
Benchmarking: LM-opencl [DES BS OpenCL/mask accel]... LWS=96 GWS=65536
DONE
Raw:    25432M c/s real, 24475M c/s virtual

Actual cracking:

uhlar@fhome% ~/src/debian/john/bleeding-jumbo/run/john -session:lm -format=LM-opencl -mask='?a?a?a?a?a?a' lm
Device 1: GeForce GT 1030
Using default input encoding: UTF-8
Using default target encoding: CP850
Loaded 2 password hashes with no different salts (LM-opencl [DES BS OpenCL])
Remaining 1 password hash
LWS=96 GWS=524288
Press 'q' or Ctrl-C to abort, almost any other key for status
0g 0:00:00:43 6.34% (ETA: 18:25:30) 0g/s 159005Kp/s 159005Kc/s 159005KC/s
A9>#7O..A9>#7O
V#-MNU           (1)
1g 0:00:03:37 DONE (2021-10-30 18:17) 0.004594g/s 159207Kp/s 159207Kc/s
159207KC/s V#-MNU..AZ<_OU
Use the "--show --format=LM-opencl" options to display all of the cracked
passwords reliably
Session completed.

So descrypt-opencl benchmark speed is sane and lm-opencl's actual cracking speed is even somewhat low for it (could be ~1G, achieved ~160M), but the lm-opencl benchmark speed is insane for this small device (~25G). I am puzzled by this.

This is sort of the opposite of #4381, but I guess the underlying causes of these two issues are independent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions