Thread: akruppa - B2 help please View Single Post
 2007-12-10, 01:33 #1 Prime95 P90 years forever!     Aug 2002 Yeehaw, FL 22×43×47 Posts akruppa - B2 help please I'm tracking ECM effort in the v5 server. I compute total_ecm_effort as sum (curve_count * B1). When this total gets to certain levels I issue ECM assignments with a larger B1 value. The problem? The summed B1 values assume a B2 value of 100*B1. When I use GMP-ECM B2 is often much higher than 100*B1. I need a simple formula that given B1 and B2 it returns a multiplier. I apply this multiplier to the curve count to get a rough equivalent of the number of B2=B1*100 curves. Accuracy is not critical - a 10-20% error would be fine. For example, on a number I'm currently atttacking B2 = 7000 * B1. According to GMP-ECM one of these curves equals 2.3 curves of B2 = 100 * B1. My placeholder routine on the server is this: function normalized_B1 ($B1,$B2) { $ratio = (1.0 *$B2) / $B1; if ($ratio < 7) return ($B1 * 0.4); if ($ratio < 30) return ($B1 * 0.6); if ($ratio < 70) return ($B1 * 0.8); if ($ratio < 300) return ($B1); if ($ratio < 700) return ($B1 * 1.4); if ($ratio < 3000) return ($B1 * 1.7); if ($ratio < 7000) return ($B1 * 2.3); return ($B1 * 2.8); }