Author

Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.0 - page 706. (Read 5805728 times)

full member
Activity: 139
Merit: 100
Let luke roam free, heathens.
sr. member
Activity: 462
Merit: 250
I heart thebaron

Please do not allow Luke-Jr to become associated with CGMiner in any way. Frankly, he is nothing more than a stain on the community as a whole and if his past actions are any indication, you would be opening the door for him to create more havoc in the project than it is worth.

He has indicated that reverse engineering is lawful and an acceptable method of moving forward, so please take this into consideration when reviewing his patches and do everything you possibly can to MAKE THEM YOUR OWN so that his reputation doesn't leave any marks on this great project.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4

Well, that explains why I couldn't figure it out Smiley

Ignoring the fact that I still haven't even got around to my pool/cgminer changes that I want to do ... Smiley
At the moment the issue of CPU code and the Luke-jr changes mean I wont be touching any code until those are decided
(except helping ckolivas remove the CPU code from api.c if/when he does the CPU code removal)
there's also a minor bug in the example code: api-example.c that messes up the JSON (works fine otherwise of course)
The +1 in the send() needs removing - that I'll fix later also.
legendary
Activity: 1876
Merit: 1000

Well, that explains why I couldn't figure it out Smiley
legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
They are yet to be implemented!
legendary
Activity: 1876
Merit: 1000


OK,  so maybe I am missing somthing..  but all the rpc requests I see can either start or stop a gpu, get summary of gpu.  but how do you change the clocks? or change the pool??
Code:
The list of requests and replies are:

 Request       Reply Section  Details
 -------       -------------  -------
 version       VERSION        CGMiner=cgminer version
                              API=API version

 summary       SUMMARY        The status summary of the miner
                              e.g. Elapsed=NNN,Found Blocks=N,Getworks=N,...|

 pools         POOLS          The status of each pool
                              e.g. Pool=0,URL=http://pool.com:6311,Status=Alive,...|

 devs          DEVS           Each available CPU and GPU with their details
                              e.g. GPU=0,Accepted=NN,MHS av=NNN,...,Intensity=D|

 gpu|N         GPU            The details of a single GPU number N in the same
                              format and details as for DEVS

 cpu|N         CPU            The details of a single CPU number N in the same
                              format and details as for DEVS

 gpucount      GPUS           Count=N| <- the number of GPUs

 cpucount      CPUS           Count=N| <- the number of CPUs

 gpuenable|N   none           There is no reply section just the STATUS section
                              stating the results of the enable request

 gpudisable|N  none           There is no reply section just the STATUS section
                              stating the results of the disable request

 gpurestart|N  none           There is no reply section just the STATUS section
                              stating the results of the restart request

 quit          none           There is no status section but just a single "BYE|"
                              reply before cgminer quits

I see how to get pool info, but no command to change the pool, or change the fan, or change the clock.? what am i missing?
hero member
Activity: 642
Merit: 500
woah...  Wasn't excpecting that.  Thanks!!  First donation.  Woo!

I'd gotten so used to the trolling and negativity on this forum that I forgot generous and fair people still exist...  Cheesy
legendary
Activity: 1876
Merit: 1000
Looks like you forgot "api-listen" : true in there.

Thank you sir.  1btc on its way!

edit:  i figured if you had api-network it was assumed you wanted it to listen Smiley
hero member
Activity: 642
Merit: 500
Looks like you forgot "api-listen" : true in there.
legendary
Activity: 1876
Merit: 1000
Has anyone had problems connecting to the rpc port for cgminer?  I continue to get the following error:

this is using the api-example.php from a machine on the network with access to the rig
"216ERR: socket connect(miner16,4028) failed 'No connection could be made because the target machine actively refused it. ' "

I have the latest miner: root@linuxcoin:/home/user/cgminer-2.1.2-x86_64-built#

here is my conf file that I start the miner with
Code:
{
"pools" : [
        {
                "url" : "http://us.eclipsemc.com:8337",
                "user" : "jjiimm_64_miner16",
                "pass" : "mypass"
        },
        {
                "url" : "http://192.168.1.100:8332",
                "user" : "myuser",
                "pass" : "mypass"
        }
],

"intensity" : "7",
"gpu-engine" : "850",
"gpu-fan" : "85",
"gpu-memclock" : "300",
"api-network" : true,
"api-port" : "4028",
"auto-fan" : true
}


I am using linuxcoin on a stick..  I am sure I have to push or pull some knob in linux, any help would be appreciated.
hero member
Activity: 632
Merit: 500
You aren't going to like it Brunic BUT it likely is your POS router built in to your modem.  The good news is it is possible to get a router and turn off all routing functions in the modem and get a router which has the ability to handle the high number of simultaneous connections.

It is called bridging the modem and can be "fun" depending on how crappy the modem is and how poor the documentation is.

An example:
http://www.no-ip.com/support/guides/routers/bridging_your_dsl_modem.html

If it were up to me modems w/ built in routers would be deemed a crime against humanity. 

Yeaaaaah!

It worked! Cheesy

It was the shitty Bell modem who caused all of this.
legendary
Activity: 1876
Merit: 1000
Yeah, even with the threads at 1, it didn't change anything. As soon as I get 4 mining rigs working (or around 16 gpus), apocalypse comes say hello.

I'll look into bridging the modem. I have a couple of router in a box here, I'm going to try that.

Thanks!

I had to buy a new router and install tomato on it before I could use cgminer for more then a couple of rigs..  no problems since.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
You aren't going to like it Brunic BUT it likely is your POS router built in to your modem.  The good news is it is possible to get a router and turn off all routing functions in the modem and get a router which has the ability to handle the high number of simultaneous connections.

It is called bridging the modem and can be "fun" depending on how crappy the modem is and how poor the documentation is.

An example:
http://www.no-ip.com/support/guides/routers/bridging_your_dsl_modem.html

If it were up to me modems w/ built in routers would be deemed a crime against humanity.  
Although I bridge my ADSL modem through my linux 'router' (rp-pppoe of course) I would never do that for any of my clients.
As soon as they have internet problems and they call their ISP, having a bridged modem either ends the support conversation, or the support ask them to plug it directly into their computer ... and that's the end of their internet ... until I go visit them - why I stopped doing it.

Maybe for someone who knows what they are doing, bridging is good, but for others there can be issues ...
hero member
Activity: 632
Merit: 500
Yeah, even with the threads at 1, it didn't change anything. As soon as I get 4 mining rigs working (or around 16 gpus), apocalypse comes say hello.

I'll look into bridging the modem. I have a couple of router in a box here, I'm going to try that.

Thanks!
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
It does indeed sound like your network is simply overloaded. cgminer hits the network very hard, and with that many GPUs, especially after a longpoll, they'll all be looking for work at the same time. If it happens at twice as many GPUs when you decrease threads to 1, then that will be diagnostic.
donator
Activity: 1218
Merit: 1079
Gerald Davis
You aren't going to like it Brunic BUT it likely is your POS router built in to your modem.  The good news is it is possible to get a router and turn off all routing functions in the modem and get a router which has the ability to handle the high number of simultaneous connections.

It is called bridging the modem and can be "fun" depending on how crappy the modem is and how poor the documentation is.

An example:
http://www.no-ip.com/support/guides/routers/bridging_your_dsl_modem.html

If it were up to me modems w/ built in routers would be deemed a crime against humanity. 
hero member
Activity: 632
Merit: 500
Quote
Brunic do you have a router?  You say the hub (switch?) is connected directly to the DSL modem.

Some routers especially older crappier ones can't sustain a large number of simultaneous connections.

The problem you describe I have seen described with users having issues w/ bittorrent.  I don't know how many connections cgminer creates but the problem sounds the same.

The DSL modem also act as a router.

My modem:
http://assistance.sympatico.ca/index.cfm?language=en&method=content.view&category_id=674&content_id=11213

My hub:
http://www.superwarehouse.com/Linksys_Etherfast_II_10_100_24_Port_Auto-Sensing_Hub/EF2H24/p/44854

The hub is connected into the Bell modem.

Quote
The other thing is you said you use 4 workers?  You aren't running multiple copies of cgminer on 1 rig are you?  That is a completely wasteful way to run.  1 rig = 1cgminer instance = 1 worker.

How many total rigs do you have and how many total GPUs?

No, I'm running only 1 instance of cgminer. When I said 4 workers, I meant 4 different mining rigs. I have a total of 12 mining rigs with 46 GPU total.

On my 12 mining rigs, I used Phoenix 1.7.2. Never had any problem related to network with this miner. I've decided to install cgminer. If I test it on 1 or 2 mining rig, I don't have any problems at all. With 3 mining rig, it seems ok, rarely having network problem (but you see them starting to appear). At 4 mining rigs, it really gets bad and at 5 mining rigs with cgminer, the network is completely dead. The network is completely jammed, even on computers not mining.

Quote
You can halve the number of connections potentially by decreasing threads per GPU from 2 to 1

--gpu-threads|-g Number of threads per GPU (1 - 10) (default: 2)

Try setting it to 1. I know some miners have a little pause between connections to cope (like diablominer) whereas cgminer is absurdly aggressive with trying to keep the GPU busy - this is also why it's more suitable for mining with p2pool. Perhaps yet another option is required...

I'll try that and let you know.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
You can halve the number of connections potentially by decreasing threads per GPU from 2 to 1

--gpu-threads|-g Number of threads per GPU (1 - 10) (default: 2)

Try setting it to 1. I know some miners have a little pause between connections to cope (like diablominer) whereas cgminer is absurdly aggressive with trying to keep the GPU busy - this is also why it's more suitable for mining with p2pool. Perhaps yet another option is required...
donator
Activity: 1218
Merit: 1079
Gerald Davis
Brunic do you have a router?  You say the hub (switch?) is connected directly to the DSL modem.

Some routers especially older crappier ones can't sustain a large number of simultaneous connections.

The problem you describe I have seen described with users having issues w/ bittorrent.  I don't know how many connections cgminer creates but the problem sounds the same.

The other thing is you said you use 4 workers?  You aren't running multiple copies of cgminer on 1 rig are you?  That is a completely wasteful way to run.  1 rig = 1cgminer instance = 1 worker.

How many total rigs do you have and how many total GPUs?
hero member
Activity: 632
Merit: 500
Hi guys,

I don't why or how, but using cgminer on my miners seems to overload my network or something like that.

If I use cgminer on one or two workers, everything is fine. But usually, as soon as I use it for 4 workers or more, my network jam completely. In cgminer, I see "Lost connection to pool" a bunch of others message linked to network failure. Everything fails so much that even computers on the network that don't mine (like my work computer) get an horrible latency while browsing the web, getting easily "Could not find this website blablabla".

Cgminer 2.1.1 provoke this phenomenon, and 2.1.2 didn't seem to correct it either.

I've used Phoenix for more than 6 months and I never had a similar problem. When I got this problem, I've reverted all my miners back to Phoenix, and everything went fine. All my miners and my computer are connected into a hub, and that hub is connected to the home DSL modem.

I'm really interested in using cgminer, with the new RPC interface. If you guys could help me diagnose the problem, or suggest me things to try, I'll appreciate it!
Jump to: