joeykrim
Newbie
Offline
Activity: 9
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 08:41:26 PM |
|
The form and POST processing can handle more than 3 pools dynamically scaling up to 20 - joeykrim
Thanks! I registered an account here so I can keep track of development. I hope to continue contributing code. Project is great, definitely appreciated! Still missing the prioritization of pools "on the fly" and buttons like Restart and Quit, as in old miner.php page.
I'm looking into this .. if you have a link to the miner.php you're referring to handy, could you post that? Edit: think I found it for cgminer at least .. not sure if there is same for bfgminer? https://github.com/kanoi/cgminer/blob/master/miner.phpI'm new to all of this and takes a little bit to get up to speed! ...could you please add this features in the future: * cpu usage * cpu temperature
I started doing a little digging and figured I'd post my notes here. I'm not sure what MineForeman has in mind or is currently working on, but I don't think it should be *too* bad to add cpu Temperature and perhaps also cpu stats. I found some info on how arch linux handles cpu temperature: https://wiki.archlinux.org/index.php/Raspberry_Pi#TemperatureTemperatures sensors for the board itself are including as part of the raspberrypi-firmware-tools package. The RPi offers a sensor on the BCM2835 SoC (CPU/GPU): /opt/vc/bin/vcgencmd measure_temp temp=49.8'C Alternatively, simply read from the filesystem: % cat /sys/class/thermal/thermal_zone0/temp 49768 Also, there is another project, quote earlier in this thread, that gives some great stats on cpu usage as well as many other aspects: https://github.com/imjacobclark/RaspcontrolPerhaps we could include portions of that project? License for the project seems to allow that: https://github.com/imjacobclark/Raspcontrol/blob/master/LICENCE
|
|
|
|
MineForeman.com (OP)
Legendary
Offline
Activity: 896
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 09:06:19 PM |
|
The form and POST processing can handle more than 3 pools dynamically scaling up to 20 - joeykrim
Thanks! I registered an account here so I can keep track of development. I hope to continue contributing code. Project is great, definitely appreciated! Thanks for that one, the way you handled those POST arrays was really cool. Still missing the prioritization of pools "on the fly" and buttons like Restart and Quit, as in old miner.php page.
I'm looking into this .. if you have a link to the miner.php you're referring to handy, could you post that? I'm new to all of this and takes a little bit to get up to speed! There is a copy of miner.php in the root of the git repo, it was written by another guy here called kano (He is one of the cgminer developers). It was sort of the reference PHP client that I built everything on. No origional code exists anymore in MinePeon but i still keep it there for posterity. ...could you please add this features in the future: * cpu usage * cpu temperature
I started doing a little digging and figured I'd post my notes here. I'm not sure what MineForeman has in mind or is currently working on, but I don't think it should be *too* bad to add cpu Temperature and perhaps also cpu stats. I found some info on how arch linux handles cpu temperature: https://wiki.archlinux.org/index.php/Raspberry_Pi#TemperatureTemperatures sensors for the board itself are including as part of the raspberrypi-firmware-tools package. The RPi offers a sensor on the BCM2835 SoC (CPU/GPU): /opt/vc/bin/vcgencmd measure_temp temp=49.8'C Alternatively, simply read from the filesystem: % cat /sys/class/thermal/thermal_zone0/temp 49768 Also, there is another project, quote earlier in this thread, that gives some great stats on cpu usage as well as many other aspects: https://github.com/imjacobclark/RaspcontrolPerhaps we could include portions of that project? License for the project seems to allow that: https://github.com/imjacobclark/Raspcontrol/blob/master/LICENCECPU temp is already being recorded the same way that hashrate is, if you look in /opt/minepeon/etc/cron.d/5min/ there is a file called cputemp or something that handles it, the rrd is output to the normal place (I don't have a peon in front of me so I am relying on memory for paths). Anyways, glad to have you aboard! Neil
|
|
|
|
joeykrim
Newbie
Offline
Activity: 9
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 09:16:12 PM |
|
Still missing the prioritization of pools "on the fly" and buttons like Restart and Quit, as in old miner.php page.
I'm looking into this .. if you have a link to the miner.php you're referring to handy, could you post that? I'm new to all of this and takes a little bit to get up to speed! There is a copy of miner.php in the root of the git repo, it was written by another guy here called kano (He is one of the cgminer developers). It was sort of the reference PHP client that I built everything on. No origional code exists anymore in MinePeon but i still keep it there for posterity. Perfect. I submitted a pull request for some simple code that adds a restart and quit button to the bottom of the status page. https://github.com/MineForeman/MinePeonWebUI/pull/10I wasn't sure if you had UI layout preferences. If you want these somewhere else, or want to group some differently, feel free.
|
|
|
|
BitMinerN8
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 10:09:24 PM |
|
Just throwing this out there, I don't know if it is possible or how much overhead it would create for you to manage but I think it would be cool if there was a "key" code that if you donate directly you could have issued to you. Like paste it in a field under settings or something. This would be another method to stop the killing of kittens. ![Grin](https://bitcointalk.org/Smileys/default/grin.gif) I understand the pool rotation thing is easy, and I know it would be extra work to create the "key" mechanism code. I would just like to give you BTC directly. I'd prefer the comfort level of knowing what my rigs are doing and when. No offence implied, I trust you, it's just sometimes machines/code has a way of breaking. Plus when I am on a pool, I like to stay on it unless it is broken. There are lots of variables that happen jumping around on pools. If I see dips in my graphs at my pool, is it "donate" mining or something wrong with the pool? Stuff like that. Maybe you could offer different levels of features that are enabled with your assigned key? Email alerts, VPN, Central Monitoring, etc. Like Basic, Standard, Pro, or something like that, some people might not need all services. It's just something to think about for the future. Love watching this project grow and evolve. ![Cool](https://bitcointalk.org/Smileys/default/cool.gif)
|
|
|
|
MineForeman.com (OP)
Legendary
Offline
Activity: 896
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 11:47:14 PM |
|
Perfect. I submitted a pull request for some simple code that adds a restart and quit button to the bottom of the status page. https://github.com/MineForeman/MinePeonWebUI/pull/10I wasn't sure if you had UI layout preferences. If you want these somewhere else, or want to group some differently, feel free. Cool, I will have a look at it later. Two problems with it though, Restart is not 100% reliable (its more like 99.999% reliable, but that means 1 time out of 1,000 cgminer goes off to la la land). Quit however seems 100% reliable, but the supervisory process will detect a dead miner and restart it anyway! ![Tongue](https://bitcointalk.org/Smileys/default/tongue.gif) However, we can use the quit button as a restart button. To make a quit button is something else altogether, it requires access to systemd and the httpd process does not have that (I have no idea what scenario people are thinking of that they will actually need to stop the miner though). As to where to put the buttons, I am not sure. I am against adding buttons for the sake of having them, especially when they serve no practical purpose whatsoever, it just starts to look messy. I do plan to add a submenu under settings for 'Advanced Settings' where all the fiddly settings go like API port and subnet and such, perhaps we can put them there. Neil
|
|
|
|
|
elgreco
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 15, 2013, 02:10:23 AM |
|
"P.S. Every time you set donations to zero a kitten dies. Kitten Killer!"
^^^ that plus the sounds was hilarious.
|
1E1GrECoNP1RpvWe72kS5cDZozA47nUFs4
|
|
|
Beastlymac
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 15, 2013, 05:10:31 AM |
|
You can use the usb ports on the pi or even get a non powered usb hub. BFl products have power supplies so they do not draw power from the hub.
|
Message me if you have any problems
|
|
|
BitMinerN8
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 15, 2013, 05:19:40 AM |
|
You can use the usb ports on the pi or even get a non powered usb hub. BFl products have power supplies so they do not draw power from the hub. Hmm, it says on the package "Satechi UH-12P USB 2.0 Hub with Power", I guess I could try another brand. It's just odd that it works fine with (6) Single SCs plugged into it, and plugged into a PC running the same version of cgminer 3.3.1 on Ubuntu Server 13.04. I will play more tomorrow when I go back to the data center.
|
|
|
|
Beastlymac
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 15, 2013, 05:24:38 AM |
|
You can use the usb ports on the pi or even get a non powered usb hub. BFl products have power supplies so they do not draw power from the hub. Hmm, it says on the package "Satechi UH-12P USB 2.0 Hub with Power", I guess I could try another brand. It's just odd that it works fine with (6) Single SCs plugged into it, and plugged into a PC running the same version of cgminer 3.3.1 on Ubuntu Server 13.04. I will play more tomorrow when I go back to the data center. also how are you powering your pi are you using the hub?
|
Message me if you have any problems
|
|
|
BitMinerN8
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 15, 2013, 05:26:54 AM |
|
You can use the usb ports on the pi or even get a non powered usb hub. BFl products have power supplies so they do not draw power from the hub. Hmm, it says on the package "Satechi UH-12P USB 2.0 Hub with Power", I guess I could try another brand. It's just odd that it works fine with (6) Single SCs plugged into it, and plugged into a PC running the same version of cgminer 3.3.1 on Ubuntu Server 13.04. I will play more tomorrow when I go back to the data center. also how are you powering your pi are you using the hub? It has it's own power, and properly rated for it.
|
|
|
|
MineForeman.com (OP)
Legendary
Offline
Activity: 896
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 15, 2013, 05:31:47 AM |
|
Hmm, it says on the package "Satechi UH-12P USB 2.0 Hub with Power", I guess I could try another brand. It's just odd that it works fine with (6) Single SCs plugged into it, and plugged into a PC running the same version of cgminer 3.3.1 on Ubuntu Server 13.04. I will play more tomorrow when I go back to the data center.
That is indeed odd, I doubt it is the hub if it was working before. What makes it really strange is that it is only if you plug 3 or more in! There were a few changes to cgminer between MinePeon 0.2.1 and 0.2.2, nothing huge though and I did not really think anything of it. Any chance you could put the binary from 0.2.1 back and see if it fixes itself? Neil
|
|
|
|
astutiumRob
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 15, 2013, 05:38:42 AM |
|
What about my questions regarding the possibility to use this to run miners in a datacentre?
Yes. For the rPI's we collocate the best setup is to have a powered usb hub powering the pi and any peripherals, so you only need 1 power port and 1 network cable - with 24/7 power control you can always hard-boot it (although too many of those will trash teh SD card, so we advise clients send a configured spare to be kept with their pi
|
|
|
|
BitMinerN8
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 15, 2013, 05:40:28 AM |
|
Hmm, it says on the package "Satechi UH-12P USB 2.0 Hub with Power", I guess I could try another brand. It's just odd that it works fine with (6) Single SCs plugged into it, and plugged into a PC running the same version of cgminer 3.3.1 on Ubuntu Server 13.04. I will play more tomorrow when I go back to the data center.
That is indeed odd, I doubt it is the hub if it was working before. What makes it really strange is that it is only if you plug 3 or more in! There were a few changes to cgminer between MinePeon 0.2.1 and 0.2.2, nothing huge though and I did not really think anything of it. Any chance you could put the binary from 0.2.1 back and see if it fixes itself? Neil I'll re-flash that build (0.2.1) on an alternate SD and test it tomorrow when I head up to the DC. I'll post results when done. It is very strange that (3) will run at 60GH/s, then plug in the 4th and they all drop to around 30GH/s. I even split the load between (2) of the Satechi UH-12P USB 2.0 Hubs, plugging into each USB port on the Pi. If I had (2) on one hub and (1) on another hub, as soon as I plugged in the 4th they would drop speed. Very puzzling. ![Shocked](https://bitcointalk.org/Smileys/default/shocked.gif) EDIT: And yes I tried various reboots and stop/start the cgminer service.
|
|
|
|
ct1aic
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 15, 2013, 06:52:22 AM |
|
... As to where to put the buttons, I am not sure. I am against adding buttons for the sake of having them, especially when they serve no practical purpose whatsoever, it just starts to look messy. I do plan to add a submenu under settings for 'Advanced Settings' where all the fiddly settings go like API port and subnet and such, perhaps we can put them there.
Neil
That's a good placement, Neil. Or you could put the button near the "kill the cat" one, as the Settings page is full of space. No need for a sub-page there. Also, regarding the " Donation Period", I tried to reorder the pools using the " Switch to" buttons of the miner.php page and what they do is to switch the pool, without killing the cgminer program, as you can see in the following image (I did a switch from pool 0 to pool 1 and again a switch from pool 1 to pool 0). The cgminer is still running. Why don't you fix your donation pool as pool 'n' and at donate time, do a switch command to your pool, doing again a pool switch to user's pool at end donation time, instead of killing the cgminer program, launch a new instance with your pool and then, @ end donation time kill it again and launch again the cgminer with user's pools? Killing cgminer 2 times a day is risky (one time, last week, cgminer refused to detect both USB Gizmos) and info is lost, like running time, best share, Hardware Errors, etc... ![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fct1aic.dyndns.info%2Fswitching_pools.png&t=665&c=dvMTodyruL7UhQ)
|
Rui Costa, Portugal - BTC : 1ct1aicGoUVpZeovsw3cCcPJZJHV5JXtW
|
|
|
MineForeman.com (OP)
Legendary
Offline
Activity: 896
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 15, 2013, 07:21:25 AM |
|
Also, regarding the "Donation Period", I tried to reorder the pools using the "Switch to" buttons of the miner.php page and what they do is to switch the pool, without killing the cgminer program, as you can see in the following image (I did a switch from pool 0 to pool 1 and again a switch from pool 1 to pool 0). The cgminer is still running. How do you know this? I set two pi's up with miners and scripts, one to try switching pools via restart and one to do it via the API every 30 seconds for over a day to find the most reliable method. What tests did you run? Why don't you fix your donation pool as pool 'n' and at donate time, do a switch command to your pool, doing again a pool switch to user's pool at end donation time, instead of killing the cgminer program, launch a new instance with your pool and then, @ end donation time kill it again and launch again the cgminer with user's pools? Killing cgminer 2 times a day is risky (one time, last week, cgminer refused to detect both USB Gizmos) and info is lost, like running time, best share, Hardware Errors, etc... Can you PLEASE stop asking for new features whenever they occur to you! I am sorry, and I don't want to appear snarly but if I just start to through things in whenever the fancy takes me this whole this will turn into a buggy, wonky bit of s**t in no time flat! ![Tongue](https://bitcointalk.org/Smileys/default/tongue.gif) The way I (and a lot of other developers) work is we slowly chip away at he code, we release one thing, let it sit and test it for a while with the testers, perhaps go back and make improvements, then once we are happy and the code appears good we release another thing (and the development cycle continues). I will get to the features you want, you just need to let me do it in my own methodical systematic way. Neil P.S I am not really grumpy, its just every post you make there is something new! I also have to hold down my full time job so I can do this for you ![Tongue](https://bitcointalk.org/Smileys/default/tongue.gif) .
|
|
|
|
ct1aic
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 15, 2013, 09:56:20 AM Last edit: July 15, 2013, 01:10:07 PM by ct1aic |
|
Also, regarding the "Donation Period", I tried to reorder the pools using the "Switch to" buttons of the miner.php page and what they do is to switch the pool, without killing the cgminer program, as you can see in the following image (I did a switch from pool 0 to pool 1 and again a switch from pool 1 to pool 0). The cgminer is still running. How do you know this? I set two pi's up with miners and scripts, one to try switching pools via restart and one to do it via the API every 30 seconds for over a day to find the most reliable method. What tests did you run? I tried many, many times to switch pools, using the " Switch to" buttons of the miner.php page of version 0.2.1 of MinePeon and I never had problems. But regarding the pool switch you implemented, last week I received a alert email at 00:25 AM, alerting me that my miner was not working. The fact was that, after MinePeon killed the cgminer at the ending of donation period, the new cgminer could not access the USB Block Erupters. This happened only one time. Why don't you fix your donation pool as pool 'n' and at donate time, do a switch command to your pool, doing again a pool switch to user's pool at end donation time, instead of killing the cgminer program, launch a new instance with your pool and then, @ end donation time kill it again and launch again the cgminer with user's pools? Killing cgminer 2 times a day is risky (one time, last week, cgminer refused to detect both USB Gizmos) and info is lost, like running time, best share, Hardware Errors, etc... Can you PLEASE stop asking for new features whenever they occur to you! I am sorry, and I don't want to appear snarly but if I just start to through things in whenever the fancy takes me this whole this will turn into a buggy, wonky bit of s**t in no time flat! ![Tongue](https://bitcointalk.org/Smileys/default/tongue.gif) The way I (and a lot of other developers) work is we slowly chip away at he code, we release one thing, let it sit and test it for a while with the testers, perhaps go back and make improvements, then once we are happy and the code appears good we release another thing (and the development cycle continues). I will get to the features you want, you just need to let me do it in my own methodical systematic way. Neil P.S I am not really grumpy, its just every post you make there is something new! I also have to hold down my full time job so I can do this for you ![Tongue](https://bitcointalk.org/Smileys/default/tongue.gif) . When I recommend a correction or a new feature, I don't think only about me but also about other users that would like the same feature or correction. It's why I write them here @ the thread and not PMing/SPAMming you. I'm not demanding you to do what I'm writing (after all, I'm not your boss), but only to give you some ideas that I thought being positives for the project. If you would like them, you could implement them in a future release. If you don't like them, you can always disregard them as stupid ideas and move forward. But as I can see, you don't like this type of comments. No problem for me. I'm STOPPING right now to give you any further comments or asking you anything else or even SPAMming you. I rest my case and I'm going to move to other programs, even though those 3rd party programs will never be as good as your's. Best regards and good luck to MinePeon and to yourself.
|
Rui Costa, Portugal - BTC : 1ct1aicGoUVpZeovsw3cCcPJZJHV5JXtW
|
|
|
joeykrim
Newbie
Offline
Activity: 9
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 15, 2013, 11:01:46 AM |
|
Percentages for Reject, Discard and Error have been added to the WebUI. - MineForeman
Quick question on the percentages in the latest version, which is a great idea! I've submitted a code adjustment for how the percentages are calculated under the Pool Stats table for the Rejects and Discards blocks/shares. https://github.com/MineForeman/MinePeonWebUI/pull/11I was going to adjust the percents in the Device Status pool but noticed the terminology differences and wanted to clear things up. The complete picture of possibilities includes, accepted, rejected, error and discarded? Or are error and discarded similar? Or is error a subset of discarded? I submitted a commit to change the rejected % so that the rejected # is divided by the total # (accepted + rejected + discarded) instead of the prior calculation that was taking the accepted # and dividing that by the rejected #. I might be completely misunderstanding the relationships between shares and the percentages so I wanted to post here to get clarification. Hope my commit is helpful and improving!
|
|
|
|
kano
Legendary
Offline
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 15, 2013, 01:25:11 PM |
|
See my comment on the pull request (also note that Accepted/Rejected etc should rarely if ever be used, they should use "Difficulty Accepted"/"Difficulty Rejected" etc ...)
|
|
|
|
joeykrim
Newbie
Offline
Activity: 9
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 15, 2013, 01:52:50 PM |
|
See my comment on the pull request (also note that Accepted/Rejected etc should rarely if ever be used, they should use "Difficulty Accepted"/"Difficulty Rejected" etc ...)
Appreciate the feedback! Humbled to be receiving direct input from somebody so directly involved while I'm definitely new. Sure is a flat org chart around here! The comments between here and the git commit make more sense. I'm also studying the cgminer README - https://github.com/ckolivas/cgminer/blob/master/READMETo summarize, it is best practice to not really use the accepted, rejected and discarded columns and better to focus on the Diff1Shares, Difficulty Accepted and Difficulty Rejected columns? To convert this over to the code currently used on the minepeon pool stats section, attention should be focused on: <td>" . $pool['Diff1Shares'] . "</td>, <td>" . $pool['DifficultyAccepted'] . "</td>, and <td>" . $pool['DifficultyRejected'] . "</td> ? This might come across as a silly question .. I was wondering why there isn't a discarded number for diff1shares? Perhaps hardware errors under the specific mining device are related to the discarded number? I'm positive I'm missing something here, but just attempting to make the stats/calculations as accurate as possible
|
|
|
|
|