Author

Topic: [OS] nvOC easy-to-use Linux Nvidia Mining - page 410. (Read 418251 times)

legendary
Activity: 1260
Merit: 1009
First off thanks for doing this. I am setting up my first 4 card system with 1060s and a GA-B250M board so this is perfect for me.

I downloaded the image and verified the checksum. I am using the HDD Raw Copy Tool to install it on an Adata 16GB 3.0 USB that I had but it gives me an error at around 97%, Operation Terminated at offset 15,535,636,480 LBA 30,343,040

The image shows 16GB in HDD Raw and the flash drive shows 15.53 could this be the problem even though the image file is below this size when I look at it in windows.

I did get it to work on a 32Gb 2.0 drive just to test but it was unbearable slow but did work and i was able to mine with one card.

Not all USB keys listed as 16gb are actually 16gb; some of them are only 15.5gb or somewhere inbetween.  I made all the nvOC images with this in mind and ended the primary partition before the 15.5gb point.  So, as in your case, when using a USB key that is not actually 16gb it will give you an error: but the key should still be properly imaged.  Smiley


Quote
When it started up I got an error about the fan control.

ERROR: Error assigning value 75 to attribute 'GPUTargetFanSpeed'
(m1-desktop:0[fan:0]) as specified in the assignment
'[fan:0]/GPUTargetFanSpeed=75' (Unknown Error).

This is on a 1060 EVGA SC 3GB.

I was only running one card directly in the main PCI slot during this error.

Thanks for your time and assistance.

that error means oneBash tried to implement fan speed on a card that either doesn't exist in the system or is identified differently than the logic implemented in oneBash is programmed to handle.

If you scroll up to the beginning of oneBash do you see gpu0 core overclock and gpu0 memory overclock messages?


newbie
Activity: 10
Merit: 0
First off thanks for doing this. I am setting up my first 4 card system with 1060s and a GA-B250M board so this is perfect for me.

I downloaded the image and verified the checksum. I am using the HDD Raw Copy Tool to install it on an Adata 16GB 3.0 USB that I had but it gives me an error at around 97%, Operation Terminated at offset 15,535,636,480 LBA 30,343,040

The image shows 16GB in HDD Raw and the flash drive shows 15.53 could this be the problem even though the image file is below this size when I look at it in windows.

I did get it to work on a 32Gb 2.0 drive just to test but it was unbearable slow but did work and i was able to mine with one card.



When it started up I got an error about the fan control.

ERROR: Error assigning value 75 to attribute 'GPUTargetFanSpeed'
(m1-desktop:0[fan:0]) as specified in the assignment
'[fan:0]/GPUTargetFanSpeed=75' (Unknown Error).

This is on a 1060 EVGA SC 3GB.

I was only running one card directly in the main PCI slot during this error.


Thanks for your time and assistance.
legendary
Activity: 1260
Merit: 1009
Finally got around to getting some USB drives and through some other tasks that were more pressing.  So I think I am ready to try and setup an nvOC miner.  I am using an Asrock H97 Anniversary for this rig.  Which image should I download for the best support of that mobo?  Thanks.

Use the  ASRock H81 PRO BTC or BIOSTAR TB85 image; it will recognize all six cards and OC the first five without modification.  To get the sixth to OC you can either follow this process:

Quote
on first boot close mining process if open

Log out

Log in (yes you need to do this to make sure this process works)

Attach a second monitor or dummy plug to the GPU in the sixth slot.

open Ubuntu start button equivalent on top right. 

Type: n 

now you should see Nvidia X Server Settings

open Nvidia X Server Settings

select X server Display Configuration

look in the display area click each box that has a black boarder  (should only be the last screen) and change "configuration" to: New x screen)

click Save to X Configuration File

save xorg  ( ensure Merge with existing file is checked and the field contains: /etc/X11/xorg.conf )

Note: you may need to browse an existing xorg file; in order to enable selecting Merge with existing file

password is: miner1

quit Nvidia X Server Settings (you must actually quit)

close mining process if open

logout

login

now all 6x cards should OC

or I can show you how to edit the xorg.conf file directly with the terminal commands, gksu, and gedit.

legendary
Activity: 1260
Merit: 1009

to launch oneBash with screen you would edit 2unix to contain the following:

Code:
#!/bin/bash

expect -c 'spawn sudo dos2unix /media/m1/1263-A96E/oneBash
expect "*password*:"
send "miner1\r" '
sleep 6

expect -c 'spawn sudo ldconfig /usr/local/cuda/lib64
expect "*password*:"
send "miner1\r" '
sleep 6

screen -m -t name_of_your_window bash '/media/m1/1263-A96E/oneBash'

Let me know how this goes.

Thank you so much.  This works for starting screen, but the onebash script keeps creating new instances...  
I thought I would be able to fix this, but I couldn't figure out how you're making onebash reinitialize.
How are you starting onebash on terminal startup? I checked ~/.bashrc and /etc/bash.bashrc, I might have missed it, but didn't seem to be in there.  

Thanks again, you're enabling me to learn a lot.

You would need to change the gnome terminal profile setting to alter this.  I have it set to relaunch on command exit to ensure that dos2unix will eventually properly convert oneBash, as it will not always do so successfully on the first attempt.

So long as you don't reconnect your usb to a windows computer this should already be done on your rig, so altering it should be ok.

when mining process is open select the gnome terminal (where gpus are mining) then move the cursor to the top right, select preferences, ensure mining (profile) is highlighted, click edit, select the command tab, change "when the command exits" to exit the terminal

This should be what you are looking to do.

hero member
Activity: 868
Merit: 517
Finally got around to getting some USB drives and through some other tasks that were more pressing.  So I think I am ready to try and setup an nvOC miner.  I am using an Asrock H97 Anniversary for this rig.  Which image should I download for the best support of that mobo?  Thanks.

legendary
Activity: 1260
Merit: 1009
The zip image for the H81 appears corrupt. I can't unzip on a mac. It says the header is corrupted when I try to unzip - I downloaded twice.

Any chance you can post SHA256 hashes for the images?

for H81-PRO-BTC_or_Biostar-TB85__nvOC_v0014.zip the SHA256 hash is:


Code:
46e53e99edb2bfa654ebd1f2d1fed53df97e41756e88898da3536590981050d8


I don't have a mac currently, so I can't test on one.  I will get one eventually.

The default OSX disk tools may not like the zip.  I am not familiar with third party OSX disk apps, generally I like rufus, but I don't believe there is a mac version.

If your image produces the same hash, then it is most likely a problem with the OSX disk tools.  If you install bootcamp with windows or linux you should be able to decompress the zip.  I also imagine there is a third party mac app that can unzip the image. 



I have no issues on mac with winzip for mac

thanks that should help fatsailor
newbie
Activity: 8
Merit: 0

to launch oneBash with screen you would edit 2unix to contain the following:

Code:
#!/bin/bash

expect -c 'spawn sudo dos2unix /media/m1/1263-A96E/oneBash
expect "*password*:"
send "miner1\r" '
sleep 6

expect -c 'spawn sudo ldconfig /usr/local/cuda/lib64
expect "*password*:"
send "miner1\r" '
sleep 6

screen -m -t name_of_your_window bash '/media/m1/1263-A96E/oneBash'

Let me know how this goes.

Thank you so much.  This works for starting screen, but the onebash script keeps creating new instances...  
I thought I would be able to fix this, but I couldn't figure out how you're making onebash reinitialize.
How are you starting onebash on terminal startup? I checked ~/.bashrc and /etc/bash.bashrc, I might have missed it, but didn't seem to be in there.  

Thanks again, you're enabling me to learn a lot.
hero member
Activity: 672
Merit: 500
The zip image for the H81 appears corrupt. I can't unzip on a mac. It says the header is corrupted when I try to unzip - I downloaded twice.

Any chance you can post SHA256 hashes for the images?

for H81-PRO-BTC_or_Biostar-TB85__nvOC_v0014.zip the SHA256 hash is:


Code:
46e53e99edb2bfa654ebd1f2d1fed53df97e41756e88898da3536590981050d8


I don't have a mac currently, so I can't test on one.  I will get one eventually.

The default OSX disk tools may not like the zip.  I am not familiar with third party OSX disk apps, generally I like rufus, but I don't believe there is a mac version.

If your image produces the same hash, then it is most likely a problem with the OSX disk tools.  If you install bootcamp with windows or linux you should be able to decompress the zip.  I also imagine there is a third party mac app that can unzip the image. 



I have no issues on mac with winzip for mac
legendary
Activity: 1260
Merit: 1009
The zip image for the H81 appears corrupt. I can't unzip on a mac. It says the header is corrupted when I try to unzip - I downloaded twice.

Any chance you can post SHA256 hashes for the images?

for H81-PRO-BTC_or_Biostar-TB85__nvOC_v0014.zip the SHA256 hash is:


Code:
46e53e99edb2bfa654ebd1f2d1fed53df97e41756e88898da3536590981050d8


I don't have a mac currently, so I can't test on one.  I will get one eventually.

The default OSX disk tools may not like the zip.  I am not familiar with third party OSX disk apps, generally I like rufus, but I don't believe there is a mac version.

If your image produces the same hash, then it is most likely a problem with the OSX disk tools.  If you install bootcamp with windows or linux you should be able to decompress the zip.  I also imagine there is a third party mac app that can unzip the image. 

newbie
Activity: 29
Merit: 0
The zip image for the H81 appears corrupt. I can't unzip on a mac. It says the header is corrupted when I try to unzip - I downloaded twice.

Any chance you can post SHA256 hashes for the images?
legendary
Activity: 1260
Merit: 1009

ASRock H81 PRO BTC R2.0 LGA 1150 is in Stock at Newegg 1 per customer.   Grin

This motherboard is fully supported by nvOC and will allow for 6x GPUs.

https://www.newegg.com/Product/Product.aspx?Item=N82E16813157724

Get one fast before they are gone.


legendary
Activity: 1260
Merit: 1009
Hey fullzero

On ETH only it is not that great. According to web I should get close to 22 - 24 but on my 150cpu oc and 900mem oc my ETH only runs at between 18.8 and 18.1 per card. I also have the same Zotacs as you being the 1060 AMP+ 6GB edition.

I think it is because of the powerlimit/level being stuck on 2 and cant go to 0 so that it can get more 'juice'. I have read other threads regarding the powelevel/limit being stuck on 2 but I don't know enough about linux to go about upgrading nvidia drivers etc to test. I have played with my cpu and mem oc but my limit stays on P2.

Kind Regards
Roes5000

I have the non + version, this is the first Pascal card I have seen with this problem.  Does 22 mh/s with ETH no problem with OC.

What happens if you open the guake terminal ( press f12 ) open a new tab if cpu mining, then enter the command:

sudo nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1

enter password ( miner1 ) when prompted

Also have you tried not using a powerlimit?



When I enter that command into the quake terminal it says atttribute set to 1 , but when I go nvidia-smi , it stays on P2. I have now disabled powerlimit setting and I have increased it to 150 , it stays on P2 my side. My ETH does not go over 18.8. Can you confirm yours is on P0 ? I suspect my side might be driver related or the image I flashed isn't 100% compatible. Is there a easy'ish way to upgrade Nvidia drivers ? Smiley

Kind Regards

This is the newest driver: http://www.geforce.com/drivers/results/118524

Code:
It's not recognized yet (and may not be as it is not a long term support version) by the Ubuntu ppa with which you would:

sudo add-apt-repository ppa:graphics-drivers/ppa ( I have already added )

sudo apt update

then go to the top right and type ad, select additional drivers, and change to the newer driver.

So you have to do it manually:

download the driver, then extract the folder.  There should an install script inside.  Right click the install script and go to properties, ensure the allow execution as a program box is checked.  Now drag the script to the guake terminal, move the cursor to the front of the command and add: sudo before the 'absolute_path_command'.  Make sure there is a space between the sudo and the '.

Before doing this I would recommend making a image of your modified usb with hddrawcopy on your maincomputer.

newbie
Activity: 5
Merit: 0
Hey fullzero

On ETH only it is not that great. According to web I should get close to 22 - 24 but on my 150cpu oc and 900mem oc my ETH only runs at between 18.8 and 18.1 per card. I also have the same Zotacs as you being the 1060 AMP+ 6GB edition.

I think it is because of the powerlimit/level being stuck on 2 and cant go to 0 so that it can get more 'juice'. I have read other threads regarding the powelevel/limit being stuck on 2 but I don't know enough about linux to go about upgrading nvidia drivers etc to test. I have played with my cpu and mem oc but my limit stays on P2.

Kind Regards
Roes5000

I have the non + version, this is the first Pascal card I have seen with this problem.  Does 22 mh/s with ETH no problem with OC.

What happens if you open the guake terminal ( press f12 ) open a new tab if cpu mining, then enter the command:

sudo nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1

enter password ( miner1 ) when prompted

Also have you tried not using a powerlimit?



When I enter that command into the quake terminal it says atttribute set to 1 , but when I go nvidia-smi , it stays on P2. I have now disabled powerlimit setting and I have increased it to 150 , it stays on P2 my side. My ETH does not go over 18.8. Can you confirm yours is on P0 ? I suspect my side might be driver related or the image I flashed isn't 100% compatible. Is there a easy'ish way to upgrade Nvidia drivers ? Smiley

Kind Regards
legendary
Activity: 1260
Merit: 1009
Hey fullzero

On ETH only it is not that great. According to web I should get close to 22 - 24 but on my 150cpu oc and 900mem oc my ETH only runs at between 18.8 and 18.1 per card. I also have the same Zotacs as you being the 1060 AMP+ 6GB edition.

I think it is because of the powerlimit/level being stuck on 2 and cant go to 0 so that it can get more 'juice'. I have read other threads regarding the powelevel/limit being stuck on 2 but I don't know enough about linux to go about upgrading nvidia drivers etc to test. I have played with my cpu and mem oc but my limit stays on P2.

Kind Regards
Roes5000

I have the non + version, this is the first Pascal card I have seen with this problem.  Does 22 mh/s with ETH no problem with OC.

What happens if you open the guake terminal ( press f12 ) open a new tab if cpu mining, then enter the command:

sudo nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1

enter password ( miner1 ) when prompted

Also have you tried not using a powerlimit?

legendary
Activity: 1260
Merit: 1009
Hi fullzero,

Excavator will support Linux very soon according to zawawa.

I often do rentals at Nicehash and for this case I would want to use the NH's optimized Excavator instead of EWBF or Claymore.

Hope you will add Excavator Linux when its available.

Thanks


I will add Excavator to the next version after it is released.

legendary
Activity: 1260
Merit: 1009
So I was trying to run 7 Zotac 1070 Minis with Asus Z270F using Z270A image, the most it could detect is 6 Zotacs. Someone here said that Z270F runs 7 GPUs out of the box, but not in my case. I need to try windows to verify that. Do you have Z270F and planning to post an image? Running 6 Zotacs with TB85 for now, but Minis are so tiny that 8 could fit in Rosewill easily.

Thanks.

I just got one of these mobos in yesterday.  I can get 7x cards to be detected by the system, but there is a conflict with x and the driver.  I can manually OC the first 6 cards, but the 7th has no response to OC commands. 

There is also what appears to be a TPM / Secureboot problem preventing subsequent boots into the same install.  Initially changing the bios setting for enabling above 4gb encoding is required to get 7 cards to work.  There are also some TPM / Secureboot bios changes that are needed, but I still need to isolate which.  I started with the MSI z270-A PRO image.

I will work on this more tonight.

newbie
Activity: 5
Merit: 0
Lastly, I am trying your onebash on a MSI Tomahawk Arctic H270, but the onebash only seems to overclock and set the fan speed of my first card. ? Any ideas what I can do to try get all my cards Overclocked, I have the ZOTAC 1060 AMP+ and I am only getting 16 HS in Eth.

Kind Regards


Roes5000,

sorry I missed this part of your post earlier.  First which image, and how many cards are you using?

I used the MSI Z270-A PRO image. At first I could not get it going for it only overclocked and set the fan speed of my first card. I have a good friend who is much more Linux educated than me and he helped me just to edit my /etc/X11/xorg.conf so that the ID's match up with lspci | grep VGA . After the reboot all 4 cards had manual fan speed of 78% and ran on 150core and 900mem oc. I just don't know why the powerlevel inside the nvidia settings stays on level 2 , my nvidia-smi output is as follows:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 378.13                 Driver Version: 378.13                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 106...  Off  | 0000:01:00.0      On |                  N/A |
| 78%   52C    P2   104W / 105W |   2472MiB /  6072MiB |     96%      Default |
+-------------------------------+----------------------+----------------------+
|   1  GeForce GTX 106...  Off  | 0000:02:00.0     Off |                  N/A |
| 78%   51C    P2   103W / 105W |   2207MiB /  6072MiB |     96%      Default |
+-------------------------------+----------------------+----------------------+
|   2  GeForce GTX 106...  Off  | 0000:04:00.0     Off |                  N/A |
| 78%   52C    P2   108W / 105W |   2207MiB /  6072MiB |     94%      Default |
+-------------------------------+----------------------+----------------------+
|   3  GeForce GTX 106...  Off  | 0000:05:00.0     Off |                  N/A |
| 78%   49C    P2   104W / 105W |   2207MiB /  6072MiB |     97%      Default |
+-------------------------------+----------------------+----------------------+

Would please like to know if above is normal or If it can be tweaked a bit more. Must I run any other command and send output for you to confirm my OS detects everything correctly for you ?

Oh, and for peeps that might be interested in DUAL_ETH_SC. In the bottom of the oneBash file, I added -dcri 70 to the back of my claymore miner argument. When it runs on default my dual mining was doing +-18 Mh/s eth and 170 sMh/s SIA. After I added -dcri 70 my eth stayed on +-18 Mh/s but by SIA climbed to 425 Mh/s. Temps looks good at +- 52 degrees so I don't think the card is working to hard ? I set my powerlimit to 105.

Thanks again for making this image. Any help and suggestions are always appreciated.

Glad your friend helped you with the xorg.conf   Smiley

If when oneBash starts you see each card cc and mc, fan control state and speed being set, you should be good.

I will have to try -dcri 70 argument myself

What speed do you get for ETH when not dual mining?



Hey fullzero

On ETH only it is not that great. According to web I should get close to 22 - 24 but on my 150cpu oc and 900mem oc my ETH only runs at between 18.8 and 18.1 per card. I also have the same Zotacs as you being the 1060 AMP+ 6GB edition.

I think it is because of the powerlimit/level being stuck on 2 and cant go to 0 so that it can get more 'juice'. I have read other threads regarding the powelevel/limit being stuck on 2 but I don't know enough about linux to go about upgrading nvidia drivers etc to test. I have played with my cpu and mem oc but my limit stays on P2.

Kind Regards
Roes5000
newbie
Activity: 1
Merit: 0
Hi fullzero,

Excavator will support Linux very soon according to zawawa.

I often do rentals at Nicehash and for this case I would want to use the NH's optimized Excavator instead of EWBF or Claymore.

Hope you will add Excavator Linux when its available.

Thanks


Thank you sir for this information  Grin Grin
legendary
Activity: 1834
Merit: 1080
---- winter*juvia -----
Hi fullzero,

Excavator will support Linux very soon according to zawawa.

I often do rentals at Nicehash and for this case I would want to use the NH's optimized Excavator instead of EWBF or Claymore.

Hope you will add Excavator Linux when its available.

Thanks
hero member
Activity: 895
Merit: 504
So I was trying to run 7 Zotac 1070 Minis with Asus Z270F using Z270A image, the most it could detect is 6 Zotacs. Someone here said that Z270F runs 7 GPUs out of the box, but not in my case. I need to try windows to verify that. Do you have Z270F and planning to post an image? Running 6 Zotacs with TB85 for now, but Minis are so tiny that 8 could fit in Rosewill easily.

Thanks.
Jump to: