From: Farrel Lifson Date: 2006-10-26T16:53:47+09:00 Subject: Re: threads On 26/10/06, Michael Fellinger wrote: > On Thursday 26 October 2006 10:10, Brad Tilley wrote: > > What are reasonable limits on threads? Say I'm scanning a class b > > network (roughly 65K hosts). How would you break up the threads? I seem > > to get too many execution expired errors if I have more than 500 hosts > > in one thread. It seems to work best with 256 groups of 256 hosts each > > or 254 if you exclude the 0's and 255's > > > > What are reasonable limits when working with threads in Ruby? Any tips? > > No tips there... it always depends on the task on hand - just use what works > for you :) > > You might try using a MapReduce/DRb based approach instead of threads. Have a look at Starfish (http://rufy.com/starfish/doc/) for ideas. Farrel