prdatur / phpminer

PHPMiner is a web interface for cgminer on linux machines
Other
34 stars 15 forks source link

high cpu usage on rpcclient #27

Closed sh1ny closed 10 years ago

sh1ny commented 10 years ago

Sometimes ( not all the time ) the rcpclient starts taking 100% cpu and slows down the cgminer/sgminer , thus reducing hashrate.

prdatur commented 10 years ago

How long is it at 100%?

sh1ny commented 10 years ago

It's really random. I can have it running fine for 24 hours, then it suddenly hits 100% and it more or less stays there until i kill it.I started running the process with php index.php on a byobu tab so i can see the output and there isn't really anything weird logged.

prdatur commented 10 years ago

Really strange, i thought i have fixed it, due to a missplaced low timeout value. Which version do you use? because currently my own mining rig runs now for days without this 100% issue. Before i had it also after 1 or 2 days.

sh1ny commented 10 years ago

I am always on the latest git version. Kinda got ...ehh upset when you switched fro sqlite to mysql, because no upgrade from it, but it was fine. I am updating all the clients aswell.

prdatur commented 10 years ago

yes sorry, the reason for that was, that i used the same db class for mysql now as prev. for sqlite... As we now on mysql, this problem will be never again :). But with the high cpu usage, i have to investigate some more time. the problem is, i can't really debug because with my changes with the server socket timeout, the problem is gone for me. Hope i can fix it.

prdatur commented 10 years ago

Please check the latest git version if it solved the issue. I had it now also, so i decided to change the way how i create the socket server connection.

prdatur commented 10 years ago

If the problem occurs again, please report here.