1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-26 09:58:16 +00:00

Backend devices: In non -S mode, limit the number of workitems so that no more than 4GB of host memory is required per backend device

This commit is contained in:
Jens Steube 2021-10-04 08:36:56 +02:00
parent 3f4dca13f9
commit 07e58631a5
2 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,8 @@
## Technical ## Technical
## ##
- Back-end devices: In -S mode, limit the number of workitems so that no more than 2GB of host memory is required per backend device - Backend devices: In -S mode, limit the number of workitems so that no more than 2GB of host memory is required per backend device
- Backend devices: In non -S mode, limit the number of workitems so that no more than 4GB of host memory is required per backend device
- Makefile: Added wildcard include src/modules/module_*.mk directive so that plugin developers can add 3rd party libraries for their plugins - Makefile: Added wildcard include src/modules/module_*.mk directive so that plugin developers can add 3rd party libraries for their plugins
- Rejects: Disabled checking of the minimum and maximum length of the password candidate in attack-mode 9 because they are incompatible - Rejects: Disabled checking of the minimum and maximum length of the password candidate in attack-mode 9 because they are incompatible
- POCL: Added a workaround for an issue in POCL that uses a quote character as part of the path itself given to a path for the -I option - POCL: Added a workaround for an issue in POCL that uses a quote character as part of the path itself given to a path for the -I option

View File

@ -6877,7 +6877,6 @@ int run_cracker (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, co
* result * result
*/ */
// check_cracked (hashcat_ctx, device_param, salt_pos);
check_cracked (hashcat_ctx, device_param); check_cracked (hashcat_ctx, device_param);
if (status_ctx->run_thread_level2 == false) break; if (status_ctx->run_thread_level2 == false) break;
@ -14546,11 +14545,11 @@ int backend_session_begin (hashcat_ctx_t *hashcat_ctx)
// In theory this check could be disabled if we check if total video RAM < total host RAM, // In theory this check could be disabled if we check if total video RAM < total host RAM,
// but at this point of initialization phase we don't have this information available. // but at this point of initialization phase we don't have this information available.
// We need to hard-code some value, let's assume that (in 2021) the host has at least 8GB ram per active GPU // We need to hard-code some value, let's assume that (in 2021) the host has at least 4GB ram per active GPU
const u64 SIZE_8GB = 8ULL * 1024 * 1024 * 1024; const u64 SIZE_4GB = 4ULL * 1024 * 1024 * 1024;
u64 accel_limit = SIZE_8GB; u64 accel_limit = SIZE_4GB;
// in slow candidate mode we need to keep the buffers on the host alive // in slow candidate mode we need to keep the buffers on the host alive
// a high accel value doesn't help much here anyway // a high accel value doesn't help much here anyway