From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 23961 invoked from network); 5 Aug 1998 19:43:08 -0000 Received: from smtp.paralleldata.com (HELO paralleldata.com) (38.153.145.2) by mail2.redhat.com with SMTP; 5 Aug 1998 19:43:08 -0000 Received: by paralleldata.com from localhost (router,SLMail V2.5); Wed, 05 Aug 1998 14:44:06 -0500 Received: by paralleldata.com from paralleldata.com (208.252.48.7::mail daemon; unverified,SLMail V2.5); Wed, 05 Aug 1998 14:44:05 -0500 Sender: "Wsb" Message-ID: <35C8B5B8.27F47C45@paralleldata.com> Date: Wed, 05 Aug 1998 19:42:48 +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: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Christopher Curtis wrote: > > I guess so, but I was making the case that this could also be done > (perhaps more properly?) using threads now. Could be, since threads can share memory access. Just depends on the problem your trying to solve I guess. Threads should have similar access speed. > > > 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. > > Shared memory is typically a file, is it not? > Can be a file but its not necessary. All the stuff I've done it's just a temp buffer space for passing data between processes. It's the high speed local path for data I usually pass thru sockets. It bypasses the overhead of the socket calls which perform similar to pipes. When your contract says you must drive a device at least 90% of it's native rate across a socket or locally, you do whatever you can to cut overhead if you want the contract and to get paid... Wes