HashCat does not show CPU consumption
#1
Hello.
 
I have running HashCat on a dedicated server with Ubuntu 20.04 Operating System and GNOME 3.36.8 desktop.
 
The information of the devices is as follows:
 
CUDA API (CUDA 11.4)
====================
* Device #1: NVIDIA GeForce GTX 750 Ti, 1971/2001 MB, 5MCU
 
OpenCL API (OpenCL 2.1 LINUX) - Platform #1 [Intel(R) Corporation]
==================================================================
* Device #2: Intel(R) Core(TM) i7 CPU         980  @ 3.33GHz, skipped
 
OpenCL API (OpenCL 3.0 CUDA 11.4.56) - Platform #2 [NVIDIA Corporation]
=======================================================================
* Device #3: NVIDIA GeForce GTX 750 Ti, skipped
 
The problem is that the HashCat System Monitor does NOT show the CPU consumption, (it shows 0%).
 
Why?

All the best.
 
[Image: hashcat-noCPU.jpg]
Reply
#2
As you can see from your own message, the cpu has been skipped, so it's not used, as expected.
If you want to actually use your cpu as well, you have to tell hashcat (check the various options related to devices).

If you are talking about hardware monitor for cpu inside of hashcat, well atom recently did a commit on that subject: https://github.com/hashcat/hashcat/commi...05a8c1db43.
Reply
#3
Hello.
 
$ ./hashcat.bin -I


Code:
hashcat (v6.2.2) starting in backend information mode...   CUDA Info: ==========   CUDA.Version.: 11.4   Backend Device ID #1 (Alias: #3)   Name...........: NVIDIA GeForce GTX 750 Ti   Processor(s)...: 5   Clock..........: 1084   Memory.Total...: 2001 MB   Memory.Free....: 1672 MB   OpenCL Info: ============   OpenCL Platform ID #1   Vendor..: Intel(R) Corporation   Name....: Intel(R) CPU Runtime for OpenCL(TM) Applications   Version.: OpenCL 2.1 LINUX     Backend Device ID #2     Type...........: CPU     Vendor.ID......: 8     Vendor.........: Intel(R) Corporation     Name...........: Intel(R) Core(TM) i7 CPU         980  @ 3.33GHz     Version........: OpenCL 2.1 (Build 0)     Processor(s)...: 12     Clock..........: 3330     Memory.Total...: 24050 MB (limited to 6012 MB allocatable in one block)     Memory.Free....: 23986 MB     OpenCL.Version.: OpenCL C 2.0     Driver.Version.: 18.1.0.0920   OpenCL Platform ID #2   Vendor..: NVIDIA Corporation   Name....: NVIDIA CUDA   Version.: OpenCL 3.0 CUDA 11.4.56     Backend Device ID #3 (Alias: #1)     Type...........: GPU     Vendor.ID......: 32     Vendor.........: NVIDIA Corporation     Name...........: NVIDIA GeForce GTX 750 Ti     Version........: OpenCL 3.0 CUDA     Processor(s)...: 5     Clock..........: 1084     Memory.Total...: 2001 MB (limited to 500 MB allocatable in one block)     Memory.Free....: 1664 MB     OpenCL.Version.: OpenCL C 1.2     Driver.Version.: 470.42.01
Reply
#4
$ clinfo


Code:
Number of platforms                               2   Platform Name                                   Intel(R) CPU Runtime for OpenCL(TM) Applications   Platform Vendor                                 Intel(R) Corporation   Platform Version                                OpenCL 2.1 LINUX   Platform Profile                                FULL_PROFILE   Platform Extensions                             cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_khr_fp64 cl_khr_image2d_from_buffer cl_intel_vec_len_hint   Platform Host timer resolution                  1ns   Platform Extensions function suffix             INTEL     Platform Name                                   NVIDIA CUDA   Platform Vendor                                 NVIDIA Corporation   Platform Version                                OpenCL 3.0 CUDA 11.4.56   Platform Profile                                FULL_PROFILE   Platform Extensions                             cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_device_uuid cl_khr_pci_bus_info   Platform Host timer resolution                  0ns   Platform Extensions function suffix             NV     Platform Name                                   Intel(R) CPU Runtime for OpenCL(TM) Applications Number of devices                                 1   Device Name                                     Intel(R) Core(TM) i7 CPU         980  @ 3.33GHz   Device Vendor                                   Intel(R) Corporation   Device Vendor ID                                0x8086   Device Version                                  OpenCL 2.1 (Build 0)   Driver Version                                  18.1.0.0920   Device OpenCL C Version                         OpenCL C 2.0   Device Type                                     CPU   Device Profile                                  FULL_PROFILE   Device Available                                Yes   Compiler Available                              Yes   Linker Available                                Yes   Max compute units                               12   Max clock frequency                             3330MHz   Device Partition                                (core)     Max number of sub-devices                     12     Supported partition types                     by counts, equally, by names (Intel)     Supported affinity domains                    (n/a)   Max work item dimensions                        3   Max work item sizes                             8192x8192x8192   Max work group size                             8192   Preferred work group size multiple              128   Max sub-groups per work group                   1   Preferred / native vector sizes                     char                                                 1 / 16          short                                                1 / 8           int                                                  1 / 4           long                                                 1 / 2           half                                                 0 / 0        (n/a)     float                                                1 / 4           double                                               1 / 2        (cl_khr_fp64)   Half-precision Floating-point support           (n/a)   Single-precision Floating-point support         (core)     Denormals                                     Yes     Infinity and NANs                             Yes     Round to nearest                              Yes     Round to zero                                 No     Round to infinity                             No     IEEE754-2008 fused multiply-add               No     Support is emulated in software               No     Correctly-rounded divide and sqrt operations  No   Double-precision Floating-point support         (cl_khr_fp64)     Denormals                                     Yes     Infinity and NANs                             Yes     Round to nearest                              Yes     Round to zero                                 Yes     Round to infinity                             Yes     IEEE754-2008 fused multiply-add               Yes     Support is emulated in software               No   Address bits                                    64, Little-Endian   Global memory size                              25218273280 (23.49GiB)   Error Correction support                        No   Max memory allocation                           6304568320 (5.872GiB)   Unified memory for Host and Device              Yes   Shared Virtual Memory (SVM) capabilities        (core)     Coarse-grained buffer sharing                 Yes     Fine-grained buffer sharing                   Yes     Fine-grained system sharing                   Yes     Atomics                                       Yes   Minimum alignment for any data type             128 bytes   Alignment of base address                       1024 bits (128 bytes)   Preferred alignment for atomics                     SVM                                           64 bytes     Global                                        64 bytes     Local                                         0 bytes   Max size for global variable                    65536 (64KiB)   Preferred total size of global vars             65536 (64KiB)   Global Memory cache type                        Read/Write   Global Memory cache size                        262144 (256KiB)   Global Memory cache line size                   64 bytes   Image support                                   Yes     Max number of samplers per kernel             480     Max size for 1D images from buffer            394035520 pixels     Max 1D or 2D image array size                 2048 images     Base address alignment for 2D image buffers   64 bytes     Pitch alignment for 2D image buffers          64 pixels     Max 2D image size                             16384x16384 pixels     Max 3D image size                             2048x2048x2048 pixels     Max number of read image args                 480     Max number of write image args                480     Max number of read/write image args           480   Max number of pipe args                         16   Max active pipe reservations                    21845   Max pipe packet size                            1024   Local memory type                               Global   Local memory size                               32768 (32KiB)   Max number of constant args                     480   Max constant buffer size                        131072 (128KiB)   Max size of kernel argument                     3840 (3.75KiB)   Queue properties (on host)                          Out-of-order execution                        Yes     Profiling                                     Yes     Local thread execution (Intel)                Yes   Queue properties (on device)                        Out-of-order execution                        Yes     Profiling                                     Yes     Preferred size                                4294967295 (4GiB)     Max size                                      4294967295 (4GiB)   Max queues on device                            4294967295   Max events on device                            4294967295   Prefer user sync for interop                    No   Profiling timer resolution                      1ns   Execution capabilities                              Run OpenCL kernels                            Yes     Run native kernels                            Yes     Sub-group independent forward progress        No     IL version                                    SPIR-V_1.0     SPIR versions                                 1.2   printf() buffer size                            1048576 (1024KiB)   Built-in kernels                                (n/a)   Device Extensions                               cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_khr_fp64 cl_khr_image2d_from_buffer cl_intel_vec_len_hint     Platform Name                                   NVIDIA CUDA Number of devices                                 1   Device Name                                     NVIDIA GeForce GTX 750 Ti   Device Vendor                                   NVIDIA Corporation   Device Vendor ID                                0x10de   Device Version                                  OpenCL 3.0 CUDA   Driver Version                                  470.42.01   Device OpenCL C Version                         OpenCL C 1.2   Device Type                                     GPU   Device Topology (NV)                            PCI-E, 02:00.0   Device Profile                                  FULL_PROFILE   Device Available                                Yes   Compiler Available                              Yes   Linker Available                                Yes   Max compute units                               5   Max clock frequency                             1084MHz   Compute Capability (NV)                         5.0   Device Partition                                (core)     Max number of sub-devices                     1     Supported partition types                     None     Supported affinity domains                    (n/a)   Max work item dimensions                        3   Max work item sizes                             1024x1024x64   Max work group size                             1024   Preferred work group size multiple              32   Warp size (NV)                                  32   Max sub-groups per work group                   0   Preferred / native vector sizes                     char                                                 1 / 1           short                                                1 / 1           int                                                  1 / 1           long                                                 1 / 1           half                                                 0 / 0        (n/a)     float                                                1 / 1           double                                               1 / 1        (cl_khr_fp64)   Half-precision Floating-point support           (n/a)   Single-precision Floating-point support         (core)     Denormals                                     Yes     Infinity and NANs                             Yes     Round to nearest                              Yes     Round to zero                                 Yes     Round to infinity                             Yes     IEEE754-2008 fused multiply-add               Yes     Support is emulated in software               No     Correctly-rounded divide and sqrt operations  Yes   Double-precision Floating-point support         (cl_khr_fp64)     Denormals                                     Yes     Infinity and NANs                             Yes     Round to nearest                              Yes     Round to zero                                 Yes     Round to infinity                             Yes     IEEE754-2008 fused multiply-add               Yes     Support is emulated in software               No   Address bits                                    64, Little-Endian   Global memory size                              2099118080 (1.955GiB)   Error Correction support                        No   Max memory allocation                           524779520 (500.5MiB)   Unified memory for Host and Device              No   Integrated memory (NV)                          No   Shared Virtual Memory (SVM) capabilities        (core)     Coarse-grained buffer sharing                 Yes     Fine-grained buffer sharing                   No     Fine-grained system sharing                   No     Atomics                                       No   Minimum alignment for any data type             128 bytes   Alignment of base address                       4096 bits (512 bytes)   Preferred alignment for atomics                     SVM                                           0 bytes     Global                                        0 bytes     Local                                         0 bytes   Max size for global variable                    0   Preferred total size of global vars             0   Global Memory cache type                        Read/Write   Global Memory cache size                        122880 (120KiB)   Global Memory cache line size                   128 bytes   Image support                                   Yes     Max number of samplers per kernel             32     Max size for 1D images from buffer            134217728 pixels     Max 1D or 2D image array size                 2048 images     Max 2D image size                             16384x16384 pixels     Max 3D image size                             4096x4096x4096 pixels     Max number of read image args                 256     Max number of write image args                16     Max number of read/write image args           0   Max number of pipe args                         0   Max active pipe reservations                    0   Max pipe packet size                            0   Local memory type                               Local   Local memory size                               49152 (48KiB)   Registers per block (NV)                        65536   Max number of constant args                     9   Max constant buffer size                        65536 (64KiB)   Max size of kernel argument                     4352 (4.25KiB)   Queue properties (on host)                          Out-of-order execution                        Yes     Profiling                                     Yes   Queue properties (on device)                        Out-of-order execution                        No     Profiling                                     No     Preferred size                                0     Max size                                      0   Max queues on device                            0   Max events on device                            0   Prefer user sync for interop                    No   Profiling timer resolution                      1000ns   Execution capabilities                              Run OpenCL kernels                            Yes     Run native kernels                            No     Sub-group independent forward progress        No     Kernel execution timeout (NV)                 No   Concurrent copy and kernel execution (NV)       Yes     Number of async copy engines                  1     IL version                                    (n/a)   printf() buffer size                            1048576 (1024KiB)   Built-in kernels                                (n/a)   Device Extensions                               cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_device_uuid cl_khr_pci_bus_info     NULL platform behavior   clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  No platform   clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No platform   clCreateContext(NULL, ...) [default]            No platform   clCreateContext(NULL, ...) [other]              Success [INTEL]   clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)     Platform Name                                 Intel(R) CPU Runtime for OpenCL(TM) Applications     Device Name                                   Intel(R) Core(TM) i7 CPU         980  @ 3.33GHz   clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  Success (1)     Platform Name                                 Intel(R) CPU Runtime for OpenCL(TM) Applications     Device Name                                   Intel(R) Core(TM) i7 CPU         980  @ 3.33GHz   clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No devices found in platform   clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform   clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform   clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)     Platform Name                                 Intel(R) CPU Runtime for OpenCL(TM) Applications     Device Name                                   Intel(R) Core(TM) i7 CPU         980  @ 3.33GHz                 NOTE:   your OpenCL library only supports OpenCL 2.2,                                but some installed platforms support OpenCL 3.0.                                Programs using 3.0 features may crash                                or behave unexpectedly
Reply
#5
$ lspci


Code:
00:00.0 Host bridge: Intel Corporation 5520/5500/X58 I/O Hub to ESI Port (rev 13) 00:02.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 2 (rev 13) 00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 13) 00:10.0 PIC: Intel Corporation 7500/5520/5500/X58 Physical and Link Layer Registers Port 0 (rev 13) 00:10.1 PIC: Intel Corporation 7500/5520/5500/X58 Routing and Protocol Layer Registers Port 0 (rev 13) 00:11.0 PIC: Intel Corporation 7500/5520/5500 Physical and Link Layer Registers Port 1 (rev 13) 00:11.1 PIC: Intel Corporation 7500/5520/5500 Routing & Protocol Layer Register Port 1 (rev 13) 00:13.0 PIC: Intel Corporation 7500/5520/5500/X58 I/O Hub I/OxAPIC Interrupt Controller (rev 13) 00:14.0 PIC: Intel Corporation 7500/5520/5500/X58 I/O Hub System Management Registers (rev 13) 00:14.1 PIC: Intel Corporation 7500/5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 13) 00:14.2 PIC: Intel Corporation 7500/5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 13) 00:15.0 PIC: Intel Corporation 7500/5520/5500/X58 Trusted Execution Technology Registers (rev 13) 00:1a.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4 00:1a.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5 00:1a.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6 00:1a.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2 00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1 00:1c.4 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 5 00:1d.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1 00:1d.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2 00:1d.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3 00:1d.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90) 00:1f.0 ISA bridge: Intel Corporation 82801JIR (ICH10R) LPC Interface Controller 00:1f.2 SATA controller: Intel Corporation 82801JI (ICH10 Family) SATA AHCI Controller 00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller 01:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03) 02:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] (rev a2) 02:00.1 Audio device: NVIDIA Corporation GM107 High Definition Audio Controller [GeForce 940MX] (rev a1) 04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06) 3f:00.0 Host bridge: Intel Corporation Device 2c71 (rev 02) 3f:00.1 Host bridge: Intel Corporation Xeon 5600 Series QuickPath Architecture System Address Decoder (rev 02) 3f:02.0 Host bridge: Intel Corporation Xeon 5600 Series QPI Link 0 (rev 02) 3f:02.1 Host bridge: Intel Corporation Xeon 5600 Series QPI Physical 0 (rev 02) 3f:02.2 Host bridge: Intel Corporation Xeon 5600 Series Mirror Port Link 0 (rev 02) 3f:02.3 Host bridge: Intel Corporation Xeon 5600 Series Mirror Port Link 1 (rev 02) 3f:03.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Registers (rev 02) 3f:03.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Target Address Decoder (rev 02) 3f:03.4 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Test Registers (rev 02) 3f:04.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Control (rev 02) 3f:04.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Address (rev 02) 3f:04.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Rank (rev 02) 3f:04.3 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Thermal Control (rev 02) 3f:05.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Control (rev 02) 3f:05.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Address (rev 02) 3f:05.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Rank (rev 02) 3f:05.3 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Thermal Control (rev 02) 3f:06.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Control (rev 02) 3f:06.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Address (rev 02) 3f:06.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Rank (rev 02) 3f:06.3 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Thermal Control (rev 02)
Reply
#6
I have no idea why you start posting outputs of clinfo/lspci/hashcat -I , maybe you have issues with english (but then many people on this forum are not native english speakers too).

So if it wasn't clear when I mention checking "options related to devices" I mean something like this:

Code:
./hashcat.bin --help | grep device     --cpu-affinity          | Str  | Locks to CPU devices, separated with commas        | --cpu-affinity=1,2,3 -I, --backend-info          |      | Show info about detected backend API devices       | -I -d, --backend-devices        | Str  | Backend devices to use, separated with commas      | -d 1 -D, --opencl-device-types    | Str  | OpenCL device-types to use, separated with commas  | -D 1     --spin-damp              | Num  | Use CPU for device synchronization, in percent     | --spin-damp=10
Reply
#7
(07-12-2021, 07:57 PM)Xanadrel Wrote: I have no idea why you start posting outputs of clinfo/lspci/hashcat -I , maybe you have issues with english (but then many people on this forum are not native english speakers too).
 
 
Hello.
 
Yes, I have a little problem with in English, but I saw this post with a problem similar to mine and they asked for that information: https://hashcat.net/forum/thread-9411.html
 
All the best.
Reply
#8
Hello.
 
I think I already know what the problem is; although I don't know the solution.
 
In the response of "$ clinfo", at the end this message is displayed:
 

Code:
                NOTE:   your OpenCL library only supports OpenCL 2.2,                                but some installed platforms support OpenCL 3.0.                                Programs using 3.0 features may crash                                or behave unexpectedly

 
It seems that there is some incompatibility between the CUDA and OpenCL libraries.
 
I have done the following test: If I only install OpenCL, the message does not appear and HashCat works correctly with the CPU. It is after installing CUDA that the message appears and HashCat bypasses the CPU.
 
Please, can someone help me?
 
All the best.
Reply