Windows mining with miniZ step-by-step

We realized that some of you struggle with some issues when starting mining using Windows. Hence, we thought it may be useful for the community to write a few guidelines on how to start miniZ on Windows.

We hope this will help you get started.

1. Download miniZ for Windows mining

First, navigate to the Download page where you will find miniZ Cuda 8 and Cuda 10 versions. In general you can chose. We suggest you to test both versions and chose the one that performs best with your hardware settings. Nevertheless, there are a couple of tips that can help you decide:

  1. Do you have RTX GPUs? Then go for Cuda 10 version. RTX will not run on Cuda 8.
  2. Which NVIDIA driver do you have installed? As we report here, Cuda 10 version requires NVIDIA 411.31 driver or later. Therefore, if you have older drivers you may need to run Cuda 8 or update the driver.

You do not know which driver you have installed? Check this quick guide on How to check NVIDIA driver version easily on Windows.

2. Unzip the file

After downloading the windows .zip file you will need to unzip it, to extract the files it contains.

Windows usually provides a software to extract files from compressed folders. Right click on .zip file and select “Extract all…”, select OK.

Compressed Folder Tools: Select "Extract All..." to unzip file on Windows.

Next, click “Extract” to confirm the operation. Files will be extracted to the specified folder, you can change this location if you want.

Compressed Folder Tools: Click "Extract" button to confirm.

Once you click “Extract”, the software will create a folder where you can find two files:

  1. miniZ.exe – the miner.
  2. miniZ.exe.sha256sum – a file containing a string, the hash of miniZ.exe file (sha256). It is good policy to check the file hash, if the hash you calculate and the one in the file are not the same do not run miniZ.exe and let us know by leaving us a comment. If you downloaded the file from our website everything should be OK.

To get the hash of a file on Windows use Get-FileHash cmd.

On the folder menu bar, go to “File” and select “Open Windows PowerShell”.

Open Windows PowerShell.

Once the Windows PowerShell opens, write “Get-FileHash miniZ.exe”.

Get-FileHash cmd in Wiindows PowerShell. Verify file hash for Windows mining.

Compare the string you get with the hash on the miniZ.exe.sha256sum file.

3. The batch file

3.1 Create the batch file

To start mining using a batch file you need to create new document. But first check whether you can see the filename extensions. In the menu bar, go to “View” and check the “File name extensions” box (if not selected already).

Show file name extensions.

Right click to open the menu and select “New” -> “Text Document”.

Create new document: Open menu (mouse right button click). Select "New" -> "Text Document"

Next, change the name of the file to “miniZ_zel.bat” (for example). The file must have “.bat”extension, so you must delete “.txt”.

Create batch file for Windows mining. Change file name to Ex. "miniZ_zel.bat"

3.2 Edit the batch file

You have just created the batch file, however it is still empty.

So, open the file: right-click on file and select “Edit”. Windows will open the file with notepad.

Edit batch file. ZEL example.

For the purpose of this Windows mining guide, the example is constructed to mine ZelCash using 2miners pool. Yet, the command line is quite similar for other coins and pools. You can check our series of “How to mine…” in FAQ for further usage examples.

Also, here you can add your miniZ command line arguments as you wish. Check Usage page for detailed list of all available options.

Mining ZelCash in 2miners pool. Setting up personal information and miniZ miner options.

Do not forget to adapt for your personal settings.

We added “pause” to the end of the file to prevent the command window to close. For example, if there is a error the window will remain open and you’ll be able to read it immediately. Of course, if you run miniZ with --log you can read the error message in the log file as well.

Then, save the file. On the notepad menu bar, go to “File” -> “Save”.

Save .bat file. Zel Example.

The batch file is saved where it was first created, in the same folder as miniZ.exe.

4. Run miniZ

Finally, to run miniZ you only need to doubleclick on the batch file. A CMD shell window will open and miniZ will start running.

Comand line window, running miniZ.

Because we had -cd 3 in the .bat file, miniZ starts running with the selected graphics GPU 3. Because no valid user wallet was entered, the miner stopped. So, after adding a valid wallet we manage to get miniZ running. You should too. 🙂

miniZ mining on Windows

Notice that, once miniZ starts running it creates a new file miniZ.log, the log file. In the case you need to modify any information you know already how to edit the batch file. 😉

5. Using the GUI Launcher

miniZ version v1.2l introduced a GUI Launcher. Now it is even easier to set up the .bat file and start miniZ.

To run the command line from the previous example simply fill in the information like this:

miniZ GUI Launcher. ZEL Example.

For more details about the GUI check here.

You made it! You managed to get your GPUs mining with miniZ on Windows.

If you have any question leave a comment below. It is likely we’ll need to tweak the post in the future.

Happy mining!

Comments

  1. Eric says:

    Keep getting this error

    out of memory::CUDA: failed to alloc memory for main data13

    • miniZ says:

      Hi Eric,
      Could you paste here the console output when miniZ starts mining, when it shows GPU info. (or beginning of the log file)
      And the output of runing miniZ.exe -ci?
      Thanks.
      Cheers

      • Eric says:

        Algo: EQ[150,5]
        Pool#0: user[7a64f13e20e982028c4d489ad744366509449d2e35bc2f93309805240437aedb2.vega23]
        server[beam.f2pool.com] port[5000] ssl[yes] pers[beam-pow]
        Telemetry: [http://localhost:20000]
        Logging:: file[miniZ.log] period[10] delay[0]
        Temp. limit: [90øC]
        out of memory::CUDA: failed to alloc memory for main data13
        Number of CUDA devices found: 6
        miniZ,150,5[1:0:00]: Selecting GPU#0[0] GeForce GTX 1070
        miniZ,150,5[1:0:00]: Selecting GPU#1[1] GeForce GTX 1070
        miniZ,150,5[1:0:00]: Selecting GPU#2[2] GeForce GTX 1070
        miniZ,150,5[1:0:00]: Selecting GPU#3[3] GeForce GTX 1070
        miniZ,150,5[1:0:00]: Selecting GPU#4[4] GeForce GTX 1070
        miniZ,150,5[1:0:00]: Selecting GPU#5[5] GeForce GTX 1070
        Algo: EQ[150,5]
        Pool#0: user[7a64f13e20e982028c4d489ad744366509449d2e35bc2f93309805240437aedb2.vega23]
        server[beam.f2pool.com] port[5000] ssl[no] pers[beam-pow]
        Telemetry: [http://localhost:20000]
        Logging:: file[miniZ.log] period[10] delay[0]
        Temp. limit: [90øC]
        out of memory::CUDA: failed to alloc memory for main data13

        • miniZ says:

          Hi Eric,
          It looks that you may need to increase your pagefile.
          You can see here how to check the pagefile size and how to manage it.
          The required pagefile size depends on the type and number of GPUs. For example for 6×1070 (8GB) an ideal number would be 6x8GB=64GB. You may start with less but if you have memory just go a bit higher, it helps stability too.

          We noticed that you wrote your pers wrong, you have to write –pers Beam-PoW.
          Let us know if it worked.
          Cheers

          • guest45 says:

            windows 7 x64 sp1, pagefile size 60gb

            C:\Miner\miniZ_v1.3n5_cuda10_win-x64>.\miniZ.exe –url=ssl://f5663b3b51d2ab30f5b6d98c67ea6b6afc07fc794e030062141c050a9fb
            3f69965.ti@beam-eu.leafpool.com:3333 -p x –pers=Beam-PoW
            ************ ←[01;31mminiZ←[22;37m v1.3n5 ************
            Number of CUDA devices found: 5
            ←[01;36mminiZ,150,5[0:1:00]←[22;37m: Selecting GPU#0[0] ←[01;32mGeForce GTX 1060 3GB←[22;37m
            ←[01;36mminiZ,150,5[0:1:00]←[22;37m: Selecting GPU#1[1] ←[01;32mGeForce GTX 1060 3GB←[22;37m
            ←[01;36mminiZ,150,5[0:1:00]←[22;37m: Selecting GPU#2[2] ←[01;32mGeForce GTX 1060 3GB←[22;37m
            ←[01;36mminiZ,150,5[0:1:00]←[22;37m: Selecting GPU#3[3] ←[01;32mGeForce GTX 1060 3GB←[22;37m
            ←[01;36mminiZ,150,5[0:1:00]←[22;37m: Selecting GPU#4[4] ←[01;32mGeForce GTX 1060 3GB←[22;37m
            ←[01;36mAlgo←[22;37m: EQ[←[01;33m150,5←[22;37m]
            ←[01;36mPool#0←[22;37m: user[←[01;33mf5663b3b51d2ab30f5b6d98c67ea6b6afc07fc794e030062141c050a9fb3f69965.ti←[22;3
            7m]
            server[←[01;33mbeam-eu.leafpool.com←[22;37m] port[←[01;33m3333←[22;37m] ssl[←[01;33myes←[22;37m] pers[←[
            01;33mBeam-PoW←[22;37m]
            ←[01;36mTelemetry←[22;37m: [http://localhost:←[01;33m20000←[22;37m]
            ←[01;36mTemp. limit←[22;37m: [←[01;33m90°C←[22;37m]
            ←[01;31m[FATAL ] ←[01;37mCUDA: failed to alloc 1040 MB for main data13
            ←[22;37m←[01;31m[FATAL ] ←[01;37mCUDA: failed to alloc 1040 MB for main data13
            ←[22;37m←[01;31m[FATAL ] ←[01;37mCUDA: failed to alloc 1040 MB for main data13
            ←[22;37m[INFO ]beam-eu.leafpool.com Disconnecting
            [INFO ]beam-eu.leafpool.com Stopping miner

            • miniZ says:

              Hi guest45,
              the 3GB GPUs can run 150,5 on Windows 7, but you have to run with --mode=3 option.
              You can try first with --mode=10, it may not work but it is worth to try.
              Windows does not allow miniZ to use all GPU memory. On Linux this limitation does not exist and miniZ will run at full speed.
              Cheers

              • guest45 says:

                thanks, –mode=3 work on windows 7, but low sols

                hiveos errors:
                ************ miniZ v1.3n5 ************
                Number of CUDA devices found: 5
                miniZ,150,5[0:1:00]: Selecting GPU#2[2] GeForce GTX 1060 3GB
                miniZ,150,5[0:1:00]: Selecting GPU#0[0] GeForce GTX 1060 3GB
                miniZ,150,5[0:1:00]: Selecting GPU#1[1] GeForce GTX 1060 3GB
                miniZ,150,5[0:1:00]: Selecting GPU#3[3] GeForce GTX 1060 3GB
                miniZ,150,5[0:1:00]: Selecting GPU#4[4] GeForce GTX 1060 3GB
                Algo: EQ[150,5]
                Pool#0: user[f5663b3b51d2ab30f5b6d98c67ea6b6afc07fc794e030062141c050a9fb3f69965.G1]
                server[beam-eu.leafpool.com] port[4444] ssl[yes] pers[Beam-PoW]
                Telemetry: [http://localhost:20000]
                Logging:: file[/var/log/miner/miniz/miniz.log] period[10] delay[0]
                Temp. limit: [90°C]
                [FATAL ] CUDA: failed to alloc 2924 MB for main data
                [FATAL ] CUDA: failed to alloc 2924 MB for main data
                [INFO ]beam-eu.leafpool.com Disconnecting
                [INFO ]beam-eu.leafpool.com Stopping miner

                miniz exited, waiting to cooldown a bit
                ————–
                =(

                • miniZ says:

                  Hi guest45,
                  miniZ should work fine on HiveOS with your card, but 3GB memory is very tight for our solver.
                  There may be other programs using GPU memory.
                  If we can undestand which GPU(s) have less memory available, it is possible to set them into a diferent mode, and the others can run at ‘full speed’.
                  If you run nvidia-smi without any miners running, this helps checking this. Could you paste here the output?
                  Cheers

  2. TJAVALANCHE says:

    miniZ is getting an error as it says {Fatal} CUDA: failed to alloc 2112 MB for main data13

    • miniZ says:

      Hi TJAVALANCHE,
      Could you let us know which algorithm and which GPUs are giving this error?
      It looks that there is not enough memory available for running the miner. Do you know if the GPU is being used by another program? It could also be related to the pagefile size…
      Thanks!
      Cheers