Unix Shell - Anonymous Vs Named Pipes

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > December 2007 > Anonymous Vs Named Pipes





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Anonymous Vs Named Pipes
Tom

2007-12-04, 1:25 pm

I haven't been able to track down a definitive answer on this, so I'm
hoping someone in this group may know the answer.

Does an anonymous pipe have any benefits over a named pipe? Does a
named pipe physically write to the filesystem that pipe resides in
(thus the speed of the write is dependant on the speed of the disk).
The reason I'm curious is if I know I have an IO bottleneck, will
using named pipes cause me to feel that bottleneck, or is it all in
memory like an anonymous pipe.

ie)
cat test.dat | grep junk 1>/dev/null
vs
mkfifo test.dat.pipe
cat test.dat > test.dat.pipe &
grep junk test.dat.pipe 1>/dev/null
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com