From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 8820 invoked from network); 5 Aug 1998 19:52:31 -0000 Received: from smtp.paralleldata.com (HELO paralleldata.com) (38.153.145.2) by mail2.redhat.com with SMTP; 5 Aug 1998 19:52:31 -0000 Received: by paralleldata.com from localhost (router,SLMail V2.5); Wed, 05 Aug 1998 14:53:35 -0500 Received: by paralleldata.com from paralleldata.com (208.252.48.7::mail daemon; unverified,SLMail V2.5); Wed, 05 Aug 1998 14:53:34 -0500 Sender: "Wsb" Message-ID: <35C8B7F1.BB326707@paralleldata.com> Date: Wed, 05 Aug 1998 19:52:17 +0000 From: "Wes Bauske" Organization: Parallel Data Systems X-Mailer: Mozilla 4.04 [en] (X11; U; Linux 2.0.33 i686) MIME-Version: 1.0 To: "axp-list@redhat.com" Subject: Re: SHMMAX (was Re: using cdrecord) References: <35C530F6.42C35B8B@paralleldata.com> <199808050936.LAA00785@stefan.sime.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Quant-X Alpha Linux Support wrote: > > Hi Wes ! > > > SHM segments are very useful on an SMP where you want > > to do parallel processing. It's faster than a pipe > > because a pipe copies to kernel land and back and > > SHM is directly in your memory space so there's > > only one copy to it and the next process can get it. > > Yes, yes I agree. But SHM can be painful too (for > the programmer who maintains locks). > It's sometimes really easier to rewrite a piped > app than to hack SHM in. There are also many cases > where pipes looks more natural (correct). > If you replace pipe with socket, I agree completely. Most stuff I work on can run on an SMP or a shared nothing cluster so I use sockets instead of pipes. Locking/synch is always interesting to get right... AND fast... Wes