On 5/26/05, Dean Michael C. Berris <[EMAIL PROTECTED]> wrote: > Good day everyone, > > I've downloaded the latest CVS sources of grep and am about to implement > the Parallel/Concurrent feature to grep multiple files at the same time > to maximize SMP capable machines. I'm about to dig in when I remembered > reading something about something similar available already from the > debian repositories a few years ago (either that or I thought I read > "parallel grep" instead of the already available "parallel make"). > > Do you know any grep derivatives that already fork/multithread to handle > multiple files? > > In case there isn't one already out there, would it be a good idea to > actually let grep have that capability instead of just running grep in > the background multiple times? I know the latter suggestion sounds like > it's too big a performance hit to actually consider. > > And while I'm on the subject of grep being concurrent, would fork be > more portable than pthreads? Or would pthreads consume "less resources" > on linux at least?
Linux implements fork() using COW pages, so there's not much penalty as opposed to using a more traditional Unix variant. However, if the grep variant you want to develop would be able to exploit SMT and/or SMP capabilities when doing a recursive search then it might be interesting. -- Paolo Alexis Falcone [EMAIL PROTECTED] _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

