Bitcoin Forum
July 14, 2024, 07:09:06 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: CGMiner API call 'devs' response limited to about 149 devices?  (Read 1211 times)
Bogart (OP)
Legendary
*
Offline Offline

Activity: 966
Merit: 1000


View Profile
July 08, 2013, 12:14:41 AM
 #1

I'm running some cgminer instances with a large number of devices.

I find that when I use the 'devs' API call, information is only returned for the first 149 devices on one machine (first 147 on another), although the response is a proper JSON structure, and is not truncated.

This is with cgminer 3.1.0 and 3.2.0.  I have not yet tried the latest.

Is this known behavior?

"All safe deposit boxes in banks or financial institutions have been sealed... and may only be opened in the presence of an agent of the I.R.S." - President F.D. Roosevelt, 1933
kano
Legendary
*
Offline Offline

Activity: 4550
Merit: 1850


Linux since 1997 RedHat 4


View Profile
July 08, 2013, 01:39:47 AM
 #2

I'm running some cgminer instances with a large number of devices.

I find that when I use the 'devs' API call, information is only returned for the first 149 devices on one machine (first 147 on another), although the response is a proper JSON structure, and is not truncated.

This is with cgminer 3.1.0 and 3.2.0.  I have not yet tried the latest.

Is this known behavior?
You will also find if you use json it says "id":0 for truncated output
Yes it makes sure it's still at a valid point and truncates it before 65432 bytes
("id":1 for normal/full output)

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
milone
Sr. Member
****
Offline Offline

Activity: 434
Merit: 251


CGWatcher & CGRemote


View Profile WWW
July 08, 2013, 04:05:26 AM
Last edit: July 08, 2013, 06:44:12 AM by milone
 #3

You could use gpu|N, pga|N, and asc|N to get values for truncated devices. Not ideal for a ton of devices but it provides the same info as devs. And not using json should save you some characters and may be able to fit more devices in devs before truncating?

CGWatcher, a GUI/monitor for CGMiner & BFGMiner: http://www.cgwatcher.com
CGRemote, a remote mining dashboard for all of your miners: http://www.minerremote.com
BTC: 12TAYjmSrdDHLNpmix2MG6y3R868SMM7Fx    LTC: LM6Un6hZvPzLBggJWiAVG6E6w2GfaHukXY
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!