From a41f8910c5c16738c45821793300ddd3f88e0574 Mon Sep 17 00:00:00 2001 From: Etayson Date: Mon, 22 May 2023 17:57:58 +0300 Subject: [PATCH] Update README.md --- README.md | 46 +++++++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 4c16e9c..ededffd 100644 --- a/README.md +++ b/README.md @@ -3,35 +3,43 @@ Usage:
-h Help
-t Number of GPU threads, ex. -t 256
-b Number of GPU blocks, ex. -b 68, set equil to the SM number of your card
--p Number of pparam(value 256 is optimal), ex. -p 256
+-p Number of keys per gpu thread, ex. -p 256
-d Select GPU IDs, ex. -d 1,2,3
-pb Set single uncompressed/compressed pubkey for searching
-pk Range start from, ex. -pk 0x1
-pke End range, ex. -pke 0x100
--w Set number of baby items 2^, ex. -w 22 mean 2^22 points
--htsz Set number of HashTable 2^, ex. -htsz 25, default 25
+-w Set number of hash table items 2^ or decimal representation, ex. -w 22 equil to -w 4194304 and mean 2^22 points
+-htsz Set number of hash table size 2^, ex. -htsz 25, default 25
-infile Set file with pubkey for searching in uncompressed/compressed format (search sequential), one pubkey per line
-wl Set recovery file from which the state will be loaded
-wt Set timer for autosaving current state, default 180s
Current state is always saved to file currentwork.txt
If app crash or you stop app, you can start working from the last saved state. Provided the launch configuration has not been changed.
-Note! set minimal -htsz value depending on -w
- --w 30 -htsz 28 need around 32GB of RAM to generate all arrays
--w 29 -htsz 28
--w 28 -htsz 27
--w 27 -htsz 25
-if you set low -htsz value then you can get error during sorting HT, increase -htsz to solve issue.
- --w 30 good for GPU with memory 11Gb
--w 29 good for GPU with memory 8Gb
--w 28 or -w27 good for GPU with memory 6Gb
+Recommendation for -htsz value depending on -w
+-htsz 27 value -w should be less or equil To 1331331443 Or 2^30.310222637591963
+-htsz 28 value -w should be less or equil to 1777178603 Or 2^30.726941530690112
+-htsz 29 value -w should be less or equil to 3069485950 Or 2^31.515349920643907
+-htsz 30 value -w should be less or equil to 3069485951 Or 2^31.515349920643907
+-htsz 31 value -w should be less or equil to 3069485951 Or 2^31.515349920643907
+Example options for some cards:
+gtx 1660super [memory used: 5036MB]
+-t 256 -b 88 -p 130 -w 29.87 -htsz 28
+
+rtx 2080ti [memory used: 9243MB]
+-t 256 -b 272 -p 220 -w 30.5 -htsz 29
+
+rtx 3070 [memory used: 6684MB]
+-t 256 -b 138 -p 244 -w 30.25 -htsz 28
+
+Creating htCPU, htGPU, G2 files depending on the configuration may require a significant amount of host RAM. +You can use onlygen_1_9_6File0.exe to generate files on a PC with a large amount of memory and then copy htCPU, htGPU, G2 files to a computer where video cards are installed. +
All arrays packed htCPU, htGPU, G2 saved to the disk for fast spinup solver next time (if parameters -w, -htsz, -t, -b, -p will not changed). -After you have the arrays saved, you will need less RAM to launch.
-Change -w, -htsz impact _htCPUv2.BIN and _htGPUv2.BIN files
-Change -t, -b, -p impact _g2.BIN file
+After you have the arrays saved on disk, you will need less RAM to launch.
+Change -w, -htsz impact _htCPUv and _htGPUv files
+Change -t, -b, -p, -w impact _g2 file

Example bat file for single pubkey searching:
@@ -42,7 +50,7 @@ SET block_size=68
SET pparam_size=256
SET items_size=26
SET htsz_size=25
-bsgscudaHT_1_9_5.exe -t %thread_size% -b %block_size% -p %pparam_size% -pb %pub% -pk %rangestart% -w %items_size%
+bsgscudaHT_1_9_6file.exe -t %thread_size% -b %block_size% -p %pparam_size% -pb %pub% -pk %rangestart% -w %items_size%
pause
Example bat file for sequential searching pubkeys from file:
@@ -54,7 +62,7 @@ SET pparam_size=256
SET items_size=26
SET htsz_size=25
-bsgscudaHT_1_9_5.exe -t %thread_size% -b %block_size% -p %pparam_size% -pk %rangestart% -pke %rangeend% -w %items_size% -htsz %htsz_size%/ -infile PUBS.txt
+bsgscudaHT_1_9_6file.exe -t %thread_size% -b %block_size% -p %pparam_size% -pk %rangestart% -pke %rangeend% -w %items_size% -htsz %htsz_size%/ -infile PUBS.txt
pause
Solved pubkeys will be saved to the win.txt file