Re: [linux-audio-dev] FIFOs vs. sockets

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] FIFOs vs. sockets
From: Ingo Oeser (ingo.oeser_AT_informatik.tu-chemnitz.de)
Date: Fri May 16 2003 - 11:58:32 EEST


Hi Hans,

On Thu, May 15, 2003 at 02:59:25PM -0600, Hans Fugal wrote:
> On linux, which is faster, pipe, FIFO, or socket? What about shared
> memory - is it faster, and if so is it faster enough to warrant the
> extra programming overhead?

This depends on how much data you usally transfer at a time, the
kernel used and the machine under it.

LMBench will show you the differences per system on any system
where it compiles. Just google for it (Author is Larry McVoy).

The decision you have to make is, whether a copy will take longer
than the synchronisation overhead. Don't forget the sleep/wakeup
overhead.

Regards

Ingo Oeser


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri May 16 2003 - 12:26:16 EEST