Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: Bogart on July 08, 2013, 12:14:41 AM



Title: CGMiner API call 'devs' response limited to about 149 devices?
Post by: Bogart on July 08, 2013, 12:14:41 AM
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?


Title: Re: CGMiner API call 'devs' response limited to about 149 devices?
Post by: kano on July 08, 2013, 01:39:47 AM
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)


Title: Re: CGMiner API call 'devs' response limited to about 149 devices?
Post by: milone on July 08, 2013, 04:05:26 AM
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?