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?

TIA

PS. I got the idea thanks to Mr. Mike Liguit -- was trying to help him
get "better performance" for a script he uses to grep multipl ~100MB log
files. To my surprise, I couldn't find parallel grep or concurrent grep,
that's why my last resorts were to hack at grep, or make my own "grep
wrapper" which spawned child fork processes to handle multiple files.
-- 
Dean Michael C. Berris
< [EMAIL PROTECTED] >
GPG Key: 0x08AE6EAC
http://mikhailberis.blogspot.com
Mobile: +63 921 7841815

Attachment: signature.asc
Description: This is a digitally signed message part

_________________________________________________
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

Reply via email to