Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #62588
| From | Geoff Clare <geoff@clare.See-My-Signature.invalid> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: Are We Back to the "Wars" Now ? |
| Date | 2024-12-17 13:34 +0000 |
| Message-ID | <68b83l-jtd.ln1@ID-313840.user.individual.net> (permalink) |
| References | (2 earlier) <lNycnZghasCXPtP6nZ2dnZfqnPSdnZ2d@earthlink.com> <w0b7P.64695$oR74.19157@fx16.iad> <vjjljh$3unfq$1@dont-email.me> <vjk9nm$2chi$1@dont-email.me> <vjkae9$1uri$11@dont-email.me> |
The Natural Philosopher wrote: > On 14/12/2024 15:54, root wrote: >> If you create a tmpfs /ram directory then pipes or named >> files would both work in ram, and there would be no >> functional difference. > > I am not sure how pipes work as to be certain of that. In fact quite the opposite is true; there is a very real and easily noticeable functional difference. If you use a regular file in a tmpfs to transfer data between two processes, the amount of data you can transfer is limited to the free space on the tmpfs, unless you go to great lengths to put logic into the two processes to coordinate the reading and writing such that the file never grows larger than a certain size and is overwritten as necessary. You also need a way for the writer to indicate to the reader that all of the data has been written. With a pipe or FIFO, you just use simple read and write operations and the system handles all the messy stuff for you. If the pipe reaches capacity, write blocks until there is room to write some more; if the pipe becomes empty, read blocks until there is more data available; when read returns EOF that's the end of the data. -- Geoff Clare <netnews@gclare.org.uk>
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Re: Are We Back to the "Wars" Now ? rlhamil@smart.net (Richard L. Hamilton) - 2024-12-14 08:06 +0000
Re: Are We Back to the "Wars" Now ? Pancho <Pancho.Jones@proton.me> - 2024-12-14 10:10 +0000
Re: Are We Back to the "Wars" Now ? root <NoEMail@home.org> - 2024-12-14 15:54 +0000
Re: Are We Back to the "Wars" Now ? The Natural Philosopher <tnp@invalid.invalid> - 2024-12-14 16:06 +0000
Re: Are We Back to the "Wars" Now ? Geoff Clare <geoff@clare.See-My-Signature.invalid> - 2024-12-17 13:34 +0000
Re: Are We Back to the "Wars" Now ? Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-18 01:23 +0000
Re: Are We Back to the "Wars" Now ? "186282@ud0s4.net" <186283@ud0s4.net> - 2024-12-17 23:25 -0500
Re: Are We Back to the "Wars" Now ? Rich <rich@example.invalid> - 2024-12-18 05:01 +0000
Re: Are We Back to the "Wars" Now ? Robert Riches <spamtrap42@jacob21819.net> - 2024-12-18 05:12 +0000
Re: Are We Back to the "Wars" Now ? Rich <rich@example.invalid> - 2024-12-18 14:03 +0000
Re: Are We Back to the "Wars" Now ? Robert Riches <spamtrap42@jacob21819.net> - 2024-12-19 04:27 +0000
Re: Are We Back to the "Wars" Now ? Rich <rich@example.invalid> - 2024-12-19 14:07 +0000
Re: Are We Back to the "Wars" Now ? D <nospam@example.net> - 2024-12-19 16:02 +0100
Re: Are We Back to the "Wars" Now ? Richard Kettlewell <invalid@invalid.invalid> - 2024-12-18 08:27 +0000
Re: Are We Back to the "Wars" Now ? Rich <rich@example.invalid> - 2024-12-18 14:02 +0000
Re: Are We Back to the "Wars" Now ? John Ames <commodorejohn@gmail.com> - 2024-12-18 08:11 -0800
Re: Are We Back to the "Wars" Now ? Rich <rich@example.invalid> - 2024-12-18 16:51 +0000
Re: Are We Back to the "Wars" Now ? Richard Kettlewell <invalid@invalid.invalid> - 2024-12-18 18:32 +0000
csiph-web