Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase maximum value of the p cmdline parameter #385

Merged
merged 1 commit into from
May 9, 2024

Conversation

gperciva
Copy link
Member

@gperciva gperciva commented Apr 7, 2024

The upper limit of the value of the -p cmdline parameter is 32, which is relatively low. Currently, hashing with logN=20, r=8 and p=32 takes around 90s on my slow CPU (Intel i3-7020U).

This is in contrast to the --logN parameter, which can be set up to 40, which corresponds to 1TB of RAM. Additionally, the program will automatically pick high values of p when given high values of the -t (maxtime) parameter.

So allow specifying higher values of the p parameter in cmdline.

The upper limit of the value of the `-p` cmdline parameter is 32, which
is relatively low. Currently, hashing with logN=20, r=8 and p=32 takes
around 90s on my slow CPU (Intel i3-7020U).

This is in contrast to the `--logN` parameter, which can be set up to 40,
which corresponds to 1TB of RAM. Additionally, the program will
automatically pick high values of `p` when given high values of the
`-t` (maxtime) parameter.

So allow specifying higher values of the `p` parameter in cmdline.

Signed-off-by: Mateusz Jończyk <[email protected]>
@cperciva cperciva merged commit deb547d into master May 9, 2024
4 checks passed
@gperciva gperciva deleted the increase-possible-p branch May 9, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants