Pages:
Author

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

full member
Activity: 238
Merit: 100
sojolly:
It looks like CentOS is using a different version of read that doesn't use the -i parameter (the -i parameter lets me set the initial value to what is already in the database).  I wonder if CentOS has an alternate read package.. Beyond that, maybe you'll have to look up GNU read and compile it yourself?  Perhaps somebody in the CentOS community knows?
newbie
Activity: 34
Merit: 0
Tried this on my CENTOS 5.6 setup.

When i run $./smartcoin.sh and then pick option 7 --> add i get a continuous set of lines that say:

Invalid selection. Please try again.
/home/sysadmin/smartcoin/smartcoin_ops.sh: line 507: read: -i: invalid option
read: usage: read [-ers] [-u fd] [-t timeout] [-p prompt] [-a array] [-n nchars] [-d delim] [name ...]

Thoughts on how to fix this?

Sojolly
newbie
Activity: 42
Merit: 0
press "CTRL + A", release, "1" for status monitor

to get back to options:

press "CRTL + A", release, "0"
full member
Activity: 168
Merit: 100
I'll have a steak sandwich and a... steak sandwich
One quick question. How do I get to the monitor screen? I've launched smartcoin and completed all the configuration, but there's no entry in the menu to get to the monitoring screen.
newbie
Activity: 42
Merit: 0
I'm using

DISPLAY=0

or

DISPLAY=0.1 sudo aticonfig --od-enable --odsc 900,300 (GPU Clock, RAM Clock)

or --odgt or whatever you might do with aticonfig.

That works for all my three rigs.
full member
Activity: 238
Merit: 100
New updates are available:
- Added current revision number to the header at the top of the screen
- Hopefully fixed the bug where GPU display gets out of order on some systems (as pointed out by echo465)
- Log files moved to smartcoin folder
- LogRotate implemented. On a new session of smartcoin, smartcoin.log is moved to smartcoin.log.previous, and smartcoin.log starts fresh
- Improved logging - converted a lot of echo'd feedback into Log entries
- I'm trying something new with exporting the DISPLAY variable
- The database is backed up to smartcoin.db.backup upon update. This way, if an update patch modifies the database, you still have the original backed up in case something doesn't work
- Various other cleanup of the code

echo465: Let me know if the newest  update fixes the out of order GPU display. Also, the pause after starting miner1 is to make sure screen successfully loaded before attempting to load the rest (thats what fixed the bug where you would get the error that the screen session wasn't found)

kripz: I'll look into the aticonfig error. I know this is one of the remaining issues, and its a pretty complex one.  I export DISPLAY=:0 before the aticonfig calls, so that shouldn't be the issue.  For some reason, depending on the install, here is what I have found:
A) On some systems, aticonfig will only run correctly if run with superuser permissions
B) On some systems, aticonfig will not run unless the call is directly preceeded by DISPLAY:0
C) On some systems, aticonfig will only run if export DISPLAY=:0 preceeds all aticonfig calls.

Unfortunately, I haven't found a way where it wants to run reliably on all systems yet (though I just commit a change here, so maybe it will be what we need), though I'm working on it still.  Any suggestions on this are welcome!
full member
Activity: 182
Merit: 100
i'm getting an error on the 2nd tab, it flashes too quickly so i dont know what it is. looks like something related to aticonfig.

How do i change which display it's using? Mine runs on display=:0
newbie
Activity: 11
Merit: 0
I believe i just fixed both bugs (just committed the changes a second ago)
Run an update, and restart smartcoin. Hopefully this will do it

Well, this looks better, after updating to 279...

Code:
--------------------------------------------------------------------------------
A configuration change has been detected.  Loading the new profile....
Starting miner Miner.1!
Starting miner Miner.2!
Starting miner Miner.3!
Starting miner Miner.4!
Starting miner Miner.5!
Starting miner Miner.6!
Starting miner Miner.7!
Starting miner Miner.8!

But I'm still showing the card to be not working. (and it looks like BTCGuild is having issues tonight (hey! good reason to be using smartcoin!), confirmed in IRC)
Code:
smartcoin Management System  Sat Jul 2 01:09:25 EDT 2011
--------------------------------------------------------------------------------
Host: localhost
GPU[0]: Temp: 80.50 load: 99%
GPU[1]: Temp: 77.50 load: 99%
GPU[2]: Temp: 76.00 load: 99%
GPU[3]: Temp: 49.00 load: 0%
CPU Load : 9.24%

Profile: Automatic
--------DeepBit--------
GPU[0]: <<>>
GPU[1]: [274.92 Mhash/sec] [3 Accepted] [0 Rejected] [RPC (+LP)]
GPU[2]: [274.28 Mhash/sec] [5 Accepted] [0 Rejected] [RPC (+LP)]
GPU[3]: [275.08 Mhash/sec] [2 Accepted] [0 Rejected] [RPC (+LP)]
Total : [824.28 Mhash/sec] [10 Accepted] [0 Rejected]
--------BTCGuild--------
GPU[0]: <<>>
GPU[1]: <<>>
GPU[2]: [0 Khash/sec] [0 Accepted] [0 Rejected] [RPC]
GPU[3]: [0 Khash/sec] [0 Accepted] [0 Rejected] [RPC]
Total : [0 MHash/sec] [0 Accepted] [0 Rejected]

Grand Total: [824.28 hash/sec] [10 Accepted] [0 Rejected] [0% Rejected]

The devices all look correct in option 9.  I'm not sure what the device table in the DB should look like, but:
Code:
sqlite3 smartcoin.db "SELECT * FROM device"
1|1|GPU[0]|0|gpu|1|0
2|1|GPU[1]|1|gpu|1|0
3|1|GPU[2]|2|gpu|1|0
4|1|GPU[3]|3|gpu|1|0

Not sure if it's relevant or not, but there was a several second pause between miner.1 starting and the rest of them.






full member
Activity: 238
Merit: 100
One thing to mention:
If for some reason there isn't a Miner screen session running
(you can tell by running:)
Code:
screen -ls

Chances are, your miner launch string is invalid for some reason.  Double check it in the Configure Miners option.
full member
Activity: 238
Merit: 100
I believe i just fixed both bugs (just committed the changes a second ago)
Run an update, and restart smartcoin. Hopefully this will do it
newbie
Activity: 42
Merit: 0
- Hopefully, I fixed the "No screen session found." bug.

No, still have this error after starting up smartcoin.


Is anybody having problems after a reboot with errors regarding files in the /tmp folder?  I do have a few reports of this, just wanted to see if it was localized to a few people, or if its common.

That anybody would also still be me Wink You still have my data? I leave the machine on, will go to bed now.

Just make sure you write down the phoenix startup line within the 4 screens (basically the same, just device), kill them, test around with smartcoin, and bring them back on if smartcoin won't start.

Thx for the continuous hard work!

Cu tomorrow,
Alan
full member
Activity: 238
Merit: 100
Thanks for all the info guys,  I had a busy day today so I just got a chance to get on here.
Thank you to the LinuxCoin crew for the excellent info that will help getting this running smoother on LinuxCoin!

Just committed the new updates. They include:
- bc is not installed with the install script
- Hopefully, I fixed the "No screen session found." bug. I think what is happening, on some machines, is that after the miner screen session starts, my first call to command the screen session is coming too early (Not giving screen enough time to start up on some systems). There is now a 2 second delay after starting the session before pounding it with commands Smiley
- Started adding some of the local feedback to the log file.

Again, how to update:
prior to r273:
Code:
cd ~/smartcoin
svn update
For those after r273, just use the update option from the control screen.




Is anybody having problems after a reboot with errors regarding files in the /tmp folder?  I do have a few reports of this, just wanted to see if it was localized to a few people, or if its common.
epg
member
Activity: 63
Merit: 10
I'm having an issue with smartcoin not using one of my GPU's.  This is a 4x5830 box.  Notice that GPU[3] in the top section is idle, but GPU[0] in the bottom sections:

*snip*

Help?

I think I had this issue. Verify that your Devices (option 9 I think from the control menu) are each lined up with an OpenCL device/GPU. I had only 3 out of the 4 5830s working from the start and I had to manually add the fourth card before all 4 started working.

*edit* I also recall making a new profile, but I'm not sure if this step was necessary. Hope this helps!
member
Activity: 79
Merit: 10
thank you!

"sudo apt-get install bc" fixed the status update problem!

You are welcome! Btw, I added some of my other LinuxCoin findings to the LinuxCoin thread.
newbie
Activity: 10
Merit: 0
thank you!

"sudo apt-get install bc" fixed the status update problem!
member
Activity: 79
Merit: 10
Anybody test this on LinuxCoin yet?
I do have one report so far from a LinuxCoin user that they get aticonfig errors if they try to start it remotely in a terminal, but if they start it from a terminal running in X its fine, after which point they can ssh in and control it like they should.

Just looking to see if this is a common thing for LinuxCoin users, I'd like to get this fixed ASAP so any information will be very helpful


Yes it works great. LinuxCoin is setup to automatically log in to an X server on card 0. Unfortunately it is still a requirement to have X running to use OpenCL, so this is a good default. If you want to do any aticonfig commands you must have first set the environment var: "export DISPLAY=:0.0"

I have an overdrive.sh script that looks like this:

Quote
export DISPLAY=:0.0
aticonfig --od-enable
AMDOverdriveCtrl -b -i 0 overdrive_mining.ovdr
AMDOverdriveCtrl -b -i 3 overdrive_mining.ovdr
AMDOverdriveCtrl -b -i 6 overdrive_mining.ovdr
AMDOverdriveCtrl -b -i 9 overdrive_mining.ovdr

This sets up the fan speed and overclock of the cards. Then I simply run smartcoin and it is off to the races.

My plan is to have this done at startup in the future...

Cheers,
jaebird

I forgot to mention that LinuxCoin does not currently come with "bc" installed so:

Quote
sudo apt-get install bc

That will help the status to update properly.

newbie
Activity: 11
Merit: 0
I'm having an issue with smartcoin not using one of my GPU's.  This is a 4x5830 box.  Notice that GPU[3] in the top section is idle, but GPU[0] in the bottom sections:

Code:
smartcoin Management System  Fri Jul 1 15:18:49 EDT 2011
--------------------------------------------------------------------------------
Host: localhost
GPU[0]: Temp: 82.50 load: 99%
GPU[1]: Temp: 79.50 load: 99%
GPU[2]: Temp: 75.50 load: 99%
GPU[3]: Temp: 48.50 load: 0%
CPU Load : 8.88%

Profile: Automatic
--------DeepBit--------
GPU[0]: <<>>
GPU[1]: [137.69 Mhash/sec] [97 Accepted] [0 Rejected] [RPC (+LP)]
GPU[2]: [137.31 Mhash/sec] [106 Accepted] [1 Rejected] [RPC (+LP)]
GPU[3]: [137.75 Mhash/sec] [116 Accepted] [1 Rejected] [RPC (+LP)]
Total : [412.75 Mhash/sec] [319 Accepted] [2 Rejected]
--------BTCGuild--------
GPU[0]: <<>>
GPU[1]: [137.70 Mhash/sec] [109 Accepted] [3 Rejected] [RPC (+LP)]
GPU[2]: [137.30 Mhash/sec] [85 Accepted] [3 Rejected] [RPC (+LP)]
GPU[3]: [137.75 Mhash/sec] [99 Accepted] [3 Rejected] [RPC (+LP)]
Total : [412.75 MHash/sec] [293 Accepted] [9 Rejected]

Grand Total: [825.50 Mhash/sec] [612 Accepted] [11 Rejected] [1.797% Rejected]

I believe the issue is with screen, but I don't know how to fix it:

Code:
A configuration change has been detected.  Loading the new profile....
Starting miner Miner.1!
No screen session found.
Starting miner Miner.2!
Starting miner Miner.3!
Starting miner Miner.4!
Starting miner Miner.5!
Starting miner Miner.6!
Starting miner Miner.7!
Starting miner Miner.8!

Help?
full member
Activity: 238
Merit: 100
ANNOUNCEMENT:
The smartcoin update system is now complete.  Here is what you need to do:

Kill smartcoin, then run
Code:
svn update
then start smartcoin back up.

From that point on, all updates should be done via the control screen (there is a new option 11) Update )
The update system is much more than just automatically running svn update.  The update system will split off into a stable branch, and an experimental branch (default stable).  It will grab the updates from the appropriate repository as needed.  It also has a post-update patching system.
What this does, is allow me to apply local patches against specific revision numbers.  For example, if at revision 300, I add a new setting entry to the database for a master email address for email reports,  then I can be sure that when you update, that the entry gets added to the database (a backup will be created each time before modifying the database so that you are safe in case of a bug etc).  This allows me to make major revision changes, without making all the users start with a fresh install.  It will also allow me to automatically notify you in the future when updates are available.

This is why it is very important that once you update up to revision 273, that you only use the built-in update system.  I won't use any of the advanced features of the update system for a while, to give everyone time to get to the current version, so if you forget and run a manual svn update for the next week or so, no big deal.  But please get into the habit of using the built-in update system!
full member
Activity: 238
Merit: 100
I will be adding stats for poclbm and diable before too long.  I'm still experimenting on the best way to do this! (currently I'm experimenting with a background script that tails the output and converts it into a phoenix-like output).. This would keep me from having to have a bunch of different looking displays, and I would like if smartcoins display was consistent regardless of miner used.


Regarding a problem with the Kill comand on the control screen. I've never had a problem with it, but will look into it.  What svn revision are you running?
Code:
svn info | grep "^Revision" | awk '{print $2}'
will tell you
epg
member
Activity: 63
Merit: 10
Ohhh, thanks guys. Yeah, I was using poclbm instead of phoenix.  Grin
Pages:
Jump to: