Where do message queues, named pipes reside?

  • Follow


One basic question:
What is the actual physical storage place for message queues and named
pipes? Do they exist as part of disk or memory always, implementation
dependent?

0
Reply qazmlp1209 (241) 12/18/2005 5:15:36 PM

In article <1134926135.917040.210370@g47g2000cwa.googlegroups.com>,
 qazmlp1209@rediffmail.com wrote:

> One basic question:
> What is the actual physical storage place for message queues and named
> pipes? Do they exist as part of disk or memory always, implementation
> dependent?

It's implementation-dependent, but most implementations use kernel 
memory for them, since they don't need any permanent storage.  They 
might end up temporarily in the swap partition as a result of paging.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
0
Reply Barry 12/18/2005 5:24:20 PM


qazmlp1209@rediffmail.com wrote:
# One basic question:
# What is the actual physical storage place for message queues and named
# pipes? Do they exist as part of disk or memory always, implementation
# dependent?

There is an i-node and directory entry for a named pipe, but no disk
contents you can access. IPC entities don't even make it as far as a
directory. The pages holding the data may be paged to disk, but normal
users cannot open the swap areas; that's handled by virtual memory
magic for you.

Pay no attention to the kernel behind the curtain.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
Don't say anything. Especially you.
0
Reply SM 12/18/2005 5:54:53 PM

qazmlp1209@rediffmail.com wrote:
> One basic question:
> What is the actual physical storage place for message queues and named
> pipes?
Usually kernel-only accessible memory.

  Do they exist as part of disk or memory always, implementation
> dependent?

Implementation dependant.

0
Reply ISO 12/18/2005 7:22:55 PM

3 Replies
625 Views

(page loaded in 1.055 seconds)

Similiar Articles:













7/22/2012 10:20:37 AM


Reply: