Pages:
Author

Topic: Smartcoin Linux mining administration. [MULTI-MACHINE SUPPORT NOW IN!] (Read 105029 times)

sr. member
Activity: 348
Merit: 251
Simple question - Simple question.

If I go into the menu for setting up a miner for example and I want to stop and go back to the main menu (this is in the control screen) How do I do this? I can't find anything with the screen options.

Thanks a mill. This one hurdle is completely holding me back.
hero member
Activity: 481
Merit: 502
Hi again John.
I hope you're still checking this thread =D

Just wondered if it was possible to get an email notification when the hashrate drops below a certain level for more than a certain period of time (e.g. less than 300 for 10 minutes) or maybe get smartcoin to execute the lockup script if this happens?

As what i've been noticing is one of my cards may go down but smartcoin wont pick up on it because it's only one card.

Thanks!
sr. member
Activity: 348
Merit: 251
Hi,
Can anyone tell me to go back to the main control screen after I have gone into an option?

Thanks.
legendary
Activity: 1764
Merit: 1006
hmm, so i used the init.sh for overclocking, but everytime i make changes and restarted smartcoin, the new changes never work..it keeps using the old settings from init.sh

any clue?
newbie
Activity: 41
Merit: 0
I ended up reinstalling everything and Smartcoin now works well for me in LinuxCoin.  The first installation turned into a mess and I decided to start afresh.  Thanks for the suggestions!
donator
Activity: 798
Merit: 500
I am having trouble getting Smartcoin to automatically identify my GPUs.  I just set up LinuxCoin on my machine so it is most likely related to that.  (Smartcoin had been working beautifully on my HDD before the switch to LinuxCoin.)  This is the error message I get when I try to add the GPUs manually from within Smartcoin (hey, it was worth a shot) and then start mining:

Code:
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1
File "/opt/smartcoin/smartcoin_devices.py", line 5, in
    devices = p.get_devices(device_type=cl.device_type.GPU)
pyopencl.RuntimeError: clGetDeviceIDs failed: device not found
done.

(The last couple of lines appeared when I tried re-installing Smartcoin.)

Also, I set up a simple profile yesterday and it seems to have disappeared; perhaps it's not saving to the persistence file?

I would appreciate guidance from folks who have got Smartcoin running successfully on LinuxCoin.  Thanks!

change background color on desktop reboot to see if persistence is working ,  if it reverts back then it isnt saving .


Nice simple test, definitely try that. Did you use the patched unetbootin and set "space used to preserve files across reboots"? And are the GPU's listed in aticonfig --lsa?  I believe you will also need to be root to install and run smartcoin in Linuxcoin and to do that over ssh look here:
https://bitcointalksearch.org/topic/m.477313
That should solve those issues - though I gave up on getting it to work consistently in 0.2 final.  The new version just doesn't seem to be set up for remote use.  But Smartcoin works great in Ubuntu.

full member
Activity: 167
Merit: 100
I am having trouble getting Smartcoin to automatically identify my GPUs.  I just set up LinuxCoin on my machine so it is most likely related to that.  (Smartcoin had been working beautifully on my HDD before the switch to LinuxCoin.)  This is the error message I get when I try to add the GPUs manually from within Smartcoin (hey, it was worth a shot) and then start mining:

Code:
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1
File "/opt/smartcoin/smartcoin_devices.py", line 5, in
    devices = p.get_devices(device_type=cl.device_type.GPU)
pyopencl.RuntimeError: clGetDeviceIDs failed: device not found
done.

(The last couple of lines appeared when I tried re-installing Smartcoin.)

Also, I set up a simple profile yesterday and it seems to have disappeared; perhaps it's not saving to the persistence file?

I would appreciate guidance from folks who have got Smartcoin running successfully on LinuxCoin.  Thanks!

change background color on desktop reboot to see if persistence is working ,  if it reverts back then it isnt saving .

newbie
Activity: 41
Merit: 0
I am having trouble getting Smartcoin to automatically identify my GPUs.  I just set up LinuxCoin on my machine so it is most likely related to that.  (Smartcoin had been working beautifully on my HDD before the switch to LinuxCoin.)  This is the error message I get when I try to add the GPUs manually from within Smartcoin (hey, it was worth a shot) and then start mining:

Code:
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1
File "/opt/smartcoin/smartcoin_devices.py", line 5, in
    devices = p.get_devices(device_type=cl.device_type.GPU)
pyopencl.RuntimeError: clGetDeviceIDs failed: device not found
done.

(The last couple of lines appeared when I tried re-installing Smartcoin.)

Also, I set up a simple profile yesterday and it seems to have disappeared; perhaps it's not saving to the persistence file?

I would appreciate guidance from folks who have got Smartcoin running successfully on LinuxCoin.  Thanks!

UPDATE: It turns out OpenCL is not identifying my GPUs at all; only the CPU shows up when I run clinfo.
sr. member
Activity: 383
Merit: 250
The miner instance screen sessions are hidden in the background, but you can view them at any time by disconnecting from smartcoin (from the control screen, or using the Ctrl+A D key combo), and typing
Code:
screen -r miner
There, you can see all of the individual miner instances.

Normally, you don't need to worry about the individual instances as the status screen should give you an overview of the miner instances.  There may also be a chance that smartcoin isn't yet configured correctly. Have you set up worker accounts? Have you set up a profile yet (or are you using the automatic profile?) Are your devices and miners present in the database? Are you sure that the correct profile is being selected?




I'm trying to get Smartcoin working with Cgminer. I have all 4 GPU's running and the temps have been raised and they are at 99% load but I'm not seeing any mining stats.

Any idea what is wrong?

I'm running latest release version (r657). I ran the update.

Are you sure you're on the status screen tab? (ctrl + a then 1)
Can you take a screenshot of the problem and post it here?

I do not have a screen shot as I gave up for now and went back to Windows 7. I did hit ctrl + a and then 1 and was on the screen you are talking about. I had fan speeds and temps, but no data below that. According to Deepbit's website they were hashing at the correct rate.



Were you logged in as root or as a user? My Linuxcoing rig showed the same symptoms if I was not root.  The screen sessions run in a root socket and are not viewable as user and the status screen showed only gpu status, no hash rates.

I was running a root terminal session from Xwindows. whoami reported as root. Smartcoin was installed as root and .smartcoin dir was installed in /root. Also started up from the /root dir. The only screen sessions were the main smartcoin config screen and the smartcoin stats screen. Should have been 4 cgminer screens as well but I'm not sure if that is the way smartcoin sets up screens or not as I'm really new at using it.

I did not know they would show up by disconnecting. I opened up another root terminal and typed screen -ls and did not find any others. I will try that next time I fire up Linuxcoin/Smartcoin.

Yes, I set up worker accounts. Yes, I set up a manual profile (not automatic). Yes devices and miners are present in the database. I also selected the active profile. They work because I know I'm hashing at the correct rate as evidence from the Pool website and GPU temps rising. Just no info other than fan speeds and GPU temps.

The reason I wanted to see the miner screens is because cgminer I believe will provide more info than Smartcoin will.

Would I be better off using cgminer by itself and not using Smartcoin? It has Fail over and uses multiple threads already.
full member
Activity: 238
Merit: 100
The miner instance screen sessions are hidden in the background, but you can view them at any time by disconnecting from smartcoin (from the control screen, or using the Ctrl+A D key combo), and typing
Code:
screen -r miner
There, you can see all of the individual miner instances.

Normally, you don't need to worry about the individual instances as the status screen should give you an overview of the miner instances.  There may also be a chance that smartcoin isn't yet configured correctly. Have you set up worker accounts? Have you set up a profile yet (or are you using the automatic profile?) Are your devices and miners present in the database? Are you sure that the correct profile is being selected?




I'm trying to get Smartcoin working with Cgminer. I have all 4 GPU's running and the temps have been raised and they are at 99% load but I'm not seeing any mining stats.

Any idea what is wrong?

I'm running latest release version (r657). I ran the update.

Are you sure you're on the status screen tab? (ctrl + a then 1)
Can you take a screenshot of the problem and post it here?

I do not have a screen shot as I gave up for now and went back to Windows 7. I did hit ctrl + a and then 1 and was on the screen you are talking about. I had fan speeds and temps, but no data below that. According to Deepbit's website they were hashing at the correct rate.



Were you logged in as root or as a user? My Linuxcoing rig showed the same symptoms if I was not root.  The screen sessions run in a root socket and are not viewable as user and the status screen showed only gpu status, no hash rates.

I was running a root terminal session from Xwindows. whoami reported as root. Smartcoin was installed as root and .smartcoin dir was installed in /root. Also started up from the /root dir. The only screen sessions were the main smartcoin config screen and the smartcoin stats screen. Should have been 4 cgminer screens as well but I'm not sure if that is the way smartcoin sets up screens or not as I'm really new at using it.
sr. member
Activity: 383
Merit: 250
I'm trying to get Smartcoin working with Cgminer. I have all 4 GPU's running and the temps have been raised and they are at 99% load but I'm not seeing any mining stats.

Any idea what is wrong?

I'm running latest release version (r657). I ran the update.

Are you sure you're on the status screen tab? (ctrl + a then 1)
Can you take a screenshot of the problem and post it here?

I do not have a screen shot as I gave up for now and went back to Windows 7. I did hit ctrl + a and then 1 and was on the screen you are talking about. I had fan speeds and temps, but no data below that. According to Deepbit's website they were hashing at the correct rate.



Were you logged in as root or as a user? My Linuxcoing rig showed the same symptoms if I was not root.  The screen sessions run in a root socket and are not viewable as user and the status screen showed only gpu status, no hash rates.

I was running a root terminal session from Xwindows. whoami reported as root. Smartcoin was installed as root and .smartcoin dir was installed in /root. Also started up from the /root dir. The only screen sessions were the main smartcoin config screen and the smartcoin stats screen. Should have been 4 cgminer screens as well but I'm not sure if that is the way smartcoin sets up screens or not as I'm really new at using it.
donator
Activity: 798
Merit: 500
I'm trying to get Smartcoin working with Cgminer. I have all 4 GPU's running and the temps have been raised and they are at 99% load but I'm not seeing any mining stats.

Any idea what is wrong?

I'm running latest release version (r657). I ran the update.

Are you sure you're on the status screen tab? (ctrl + a then 1)
Can you take a screenshot of the problem and post it here?

I do not have a screen shot as I gave up for now and went back to Windows 7. I did hit ctrl + a and then 1 and was on the screen you are talking about. I had fan speeds and temps, but no data below that. According to Deepbit's website they were hashing at the correct rate.



Were you logged in as root or as a user? My Linuxcoing rig showed the same symptoms if I was not root.  The screen sessions run in a root socket and are not viewable as user and the status screen showed only gpu status, no hash rates.
sr. member
Activity: 383
Merit: 250
I'm trying to get Smartcoin working with Cgminer. I have all 4 GPU's running and the temps have been raised and they are at 99% load but I'm not seeing any mining stats.

Any idea what is wrong?

I'm running latest release version (r657). I ran the update.

Are you sure you're on the status screen tab? (ctrl + a then 1)
Can you take a screenshot of the problem and post it here?

I do not have a screen shot as I gave up for now and went back to Windows 7. I did hit ctrl + a and then 1 and was on the screen you are talking about. I had fan speeds and temps, but no data below that. According to Deepbit's website they were hashing at the correct rate.

Is there an option I'm supposed to set for it to work with Smartcoin? Like text only output or something?

Would like to get as much info together before I go try it again. Down time = less BTC.

Also, I did not notice any screens for Cgminer itself and thus as well Phoenix when I tried that (Phoenix did output data). Maybe that is normal, but would be nice to be able to toggle to the miners actual screen display for other info not normally displayed in Smartcoin.

full member
Activity: 238
Merit: 100
I ran into an issue where the script didn't check for the existence of commands it relies on. locate and updatedb, to be specific. Just wanted to let you know; searches for these keys in google code issue tracker didn't turn anything up.

Code:
Running AutoDetection on machine localhost...

In order for smartcoin to try to reliably determine the location of installed miners and the AMD/ATI SDK for you, the linux command 'updatedb' should be run.  This can take quite a long time on machines with large filesystems.Note: root password is required and you will be prompted for it.
Do you want to attempt to run 'updatedb' now? (y)es or (n)o?
y

Running 'updatedb'... Please be patient
sudo: updatedb: command not found

Would you like smartcoin to attempt to auto-detect installed GPUs on this machine? (y)es or (n)o?

Invalid response!
y
Detecting available local devices. Please be patient...

done.

These are the locally installed devices that I have found:
Name Device #
---- --------
GPU[0] 0

If these don't look correct, please fix them manually via the control tab under option 9) Configure Devices.

Auto detecting local installed miners...
Would you like smartcoin to attempt to auto-detect installed miners? (y)es or (n)o?
y

/home/user/smartcoin/smartcoin_ops.sh: line 833: locate: command not found
/home/user/smartcoin/smartcoin_ops.sh: line 833: locate: command not found
/home/user/smartcoin/smartcoin_ops.sh: line 833: locate: command not found

Which miner listed above do you want to be the default miner for this machine?

Invalid selection. Please try again.

Invalid selection. Please try again.
0
Invalid selection. Please try again.
1
Invalid selection. Please try again.
locate
Invalid selection. Please try again.
2
Invalid selection. Please try again.
1
Invalid selection. Please try again.


Thanks for the report - yes, its known that dependencies are ignored for now - I will fix this at some point once I find a graceful way to do it across different distros
full member
Activity: 238
Merit: 100
Now that I got your very good tool for about some weeks up and running, I am very happy that I gave it a try. Smiley
Anyway, as a noob to linux, I still got a question about making smartcoin and also the fan-control (AMDOverdriveCtrl) autostarting.
Is there a way to make it starting after a complete reboot together with vnc, and AMDOverdriveCtrl for each graphic-card?

As I am not here, this would help to let other people restart the machine if something has happend...



This isn't hard to do, but we have to know what linux distro you are running.
Also, why would you want to use vnc instead of ssh?
full member
Activity: 238
Merit: 100
I'm trying to get Smartcoin working with Cgminer. I have all 4 GPU's running and the temps have been raised and they are at 99% load but I'm not seeing any mining stats.

Any idea what is wrong?

I'm running latest release version (r657). I ran the update.

Are you sure you're on the status screen tab? (ctrl + a then 1)
Can you take a screenshot of the problem and post it here?
full member
Activity: 238
Merit: 100
Dime

Thanks for your feedback on everything, I'll try to respond to your comments:


So I have a handful of mining rigs running 4 cards each (sempron 140/5850's).

At the current moment, I have a heavily editted linuxcoin that I pxeboot and automatically starts mining with a cascade of screens that report back to the head node and I have a watch window over each miner, etc. The drawback of my approach is that it relies on 1. nfs for loading user/pass database or 2. hard packing it into squashfs. I can see how using smartcoin might be an easier approach assuming it worked the way it advertised. In testing, I've found several bugs/issues and I'd be grateful if you all can confirm whether these are things being worked on or acknowledged.

*) In my testing, latest phoenix, poclbm, and smartcoin was used and tested with ati 11.6 and 11.8 drivers.

1) When handling multiple machines, I constantly have the windows for remote machines not update after a while. This is not a connection problem. It's just smartcoin that does this.

I'm currently in the middle of building another mining rig right now.  I only had one rig when the multi-machine code was written and my testing time on other people's rigs was very limited.  I'm going to continue to improve the multi-machine stuff once I get my other rig in place (should be about a week from now)

Quote
2) I haven't done enough testing yet to see what causes the problem (and this is why I'm reaching out to see if others have similar issues), but CPU usage is inconsistent.

How inconsistent is the CPU usage for you?  Mine normally varies by about .2 or so

Quote
On my local machines (not dedicated mining rigs), I run a 4 window screen with phoenix instances with low aggression in each. They each use .3% cpu and the computers are usable.
When I set these machines up as remote machines from the dedicated smartcoin machine however, they run only 3 phoenix instances (exact same path, also with low aggression) and phoenix takes up 33% cpu.
With 2 pheonix instances, it uses up 50% each. Both of these cause my local machines to lag out the gui and make them unusable by the housemates.

On a remote machine, there is no extra code being executed - the only difference should be the extra communication overhead, which should be fairly minimal on the CPU load.  Though Its not 100% clear to me what you are saying above... 

Quote
On dedicated mining rigs, I have them running 4 phoenix instances (on 4 cards) and it eats up .7% cpu, so again, negligible.
When I set up smartcoin however, I ideally wanted them to each run 3 instances, so I set it up to run 12 phoenix instances. Each instance took up max % available cpu and 1 of the instances was always killed. When it was killed, it resulted in skewed numbers in the summary window because it did not show it was killed. For instance:
miner00: [133 mh/s] (not really running but still showing 133.3 mh/s)
miner01: [133 mh/s]
miner02: [133 mh/s]
miner03: [133 mh/s]
miner04: [200 mh/s]
miner05: [133 mh/s]
miner06: [133 mh/s]
miner07: [133 mh/s]
miner08: [200 mh/s]
miner09: [133 mh/s]
miner10: [133 mh/s]
miner11: [133 mh/s]

The total then showed 1733 mh/s instead of the correct 1600 mh/s because it couldn't tell what was going on. When I load up the miner screen, I can press o to reload that window and have it relaunch the miner. As soon as I do this, another window (usually 1 or 2 windows after that one) gets killed. It's not hung. It says Killed on the window so it's smartcoin killing the processes.

Regarding CPU usage, smartcoin will definitely use more CPU than running instances manually. This is because it is running a loop on each instance, monitoring for failover, lockup, etc - which is pretty CPU intensive.  Under Edit Settings->Machine Settings there is a "Status screen loop delay" setting that you can adjust for each machine that will greatly help your CPU load.  It injects a delay in each loop iteration so that you don't pound the CPU so much.  I usually run mine at 5 seconds,  but you can go as high as you want (of course your visual refreshes will be slower as well)

Regarding a killed process, its definitely not smartcoin killing it - smartcoin will only kill the entire screen session, and start a new one - it has no code to kill only a single instance (it sould be something at the OS level which kills it..).  Whats the memory usage when this happens?

If your machines are secure (no wallet.dat or anything personal laying around) and could give me some temporary ssh access, I'd be more than happy to help you figure out what is happening

Quote
So:
a. Summary window needs work on updating. And also detecting when miners are killed (especially when smartcoin is the one doing it).
b. Why is the cpu being eaten up? Because it works properly when I launch it from my scripts, but when smartcoin launches it (with the exact same parameters), it eats up more cpu.
c. Does anyone have any experience running smartcoin with 4+ cards and 3+ workers? (12+ phoenix instances) on a single sempron?

Thanks for your time, it's pretty impressive work, but so far, my custom image that I whipped up over a weekend does a far better job with less bloat: 0.0? load averages as opposed to 1.5+ consistent. SmartCoin will be great if it gets to where it needs to be but it still needs a bit to get there.
a) Yes, some work is still needed - though as I've mentioned earlier, smartcoin is definitely not killing the miner instance.
b) see if the Status screen loop delay setting helps
c) I do 3 cards with 4 workers very often - and I've personally tested 48 instances on a single-core p4 (3 cards * 16 instances each) with no problems at all (other than very high CPU usage, which would be expected).  Also, my mining rig (soon to be more than one rig) is dedicated, and therefore have no experience in keeping a usable GUI while mining. Have you messed with the phoenix aggression setting at all?




Quote
I was looking over a small part of the code, specifically the status window and I think there's lots of things that can be trimmed to make smartcoin be a bit faster.

A good example is this part:
I'll be messing with optimizations pretty soon,  I'll definitely give this one a good look and do some actual benchmarking.



Quote
A couple more bugs:

1. If I don't split the screen fast enough when smartcoin loads up, and focus each window of the screen, I don't see the timestamp at the top (which is important to tell if smartcoin froze up).

2. When smartcoin creates its persistent ssh connections, it should do so using screen, or use a pid file so it can kill old ones. After running smartcoin for a while,

I had this many:

1) Can you explain what you mean by split the screen?

2) There are apparently some issues left to resolve with the persistent SSH connections, and this is undoubtedly why your remote miner status screens stop refreshing after a while.  This will be my first priority once I get my second miner put together.''


Thanks again for all of the feedback!
full member
Activity: 238
Merit: 100
Hey guys - I was away for the last week so I'm going to go over the backlog and make sure I address all questions that I missed on my break.  Thanks to those that stepped in and answered some questions while I was away!

full member
Activity: 168
Merit: 100
I'll have a steak sandwich and a... steak sandwich
Has no one a solution to make smartcoin automatically autostart after computer-restart?
It depends on which operating system/distribution you're running. If you're running Ubuntu, you can follow the instructions I posted earlier in this topic:

https://bitcointalksearch.org/topic/m.352509
sr. member
Activity: 333
Merit: 250
Has no one a solution to make smartcoin automatically autostart after computer-restart?
Pages:
Jump to: