Deutsch English Français Italiano |
<vhvls0$2aerk$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Rich <rich@example.invalid> Newsgroups: comp.os.linux.misc Subject: Re: Are We Back to the "Wars" Now ? Date: Sun, 24 Nov 2024 16:56:32 -0000 (UTC) Organization: A noiseless patient Spider Lines: 33 Message-ID: <vhvls0$2aerk$1@dont-email.me> References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com> <vhnikj$me7m$1@dont-email.me> <vhoaau$qjkl$1@dont-email.me> <lIqcnTlkpf_Jtd36nZ2dnZfqn_udnZ2d@earthlink.com> <vhp9hs$12qaa$2@dont-email.me> <v4adnSK1nItcwNz6nZ2dnZfqnPWdnZ2d@earthlink.com> <vhrolu$1jata$1@dont-email.me> <Oo6dnZb3z-NT6Nz6nZ2dnZfqnPednZ2d@earthlink.com> <vhsdbi$1m6qu$1@dont-email.me> <vhth7o$1s5d5$4@dont-email.me> <heednZLHO-zE69_6nZ2dnZfqn_idnZ2d@earthlink.com> <vhvd06$2900d$1@dont-email.me> <vhvht1$28nn4$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 24 Nov 2024 17:56:33 +0100 (CET) Injection-Info: dont-email.me; posting-host="f9f41132f628b1fe2d858245900693aa"; logging-data="2440052"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18VHbGXde1Yk4jwZjuBsnM4" User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64)) Cancel-Lock: sha1:6IcguCz6pvJiYhnxmFqp2Bid3a0= Bytes: 2989 Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote: > On Sun, 24 Nov 2024 14:25:10 +0000, Rich wrote: > >> 186282@ud0s4.net <186283@ud0s4.net> wrote: >>> On 11/23/24 4:25 PM, Lawrence D'Oliveiro wrote: >>>> That’s irrelevant. Pipes originated on the earliest Unix machine, >>>> which was a PDP-11 with only a 64kiB address space. They work >>>> great for pumping around gigabytes of data, but you don’t need >>>> gigabyte-sized memory buffers to do that. >>> >>> It all has to be SOMEWHERE ... if not in RAM then >>> on a mass storage device. >> >> Nope, at least not with pipes. > > Hold on a sec.... pipes are /buffered/ in RAM, so there's at least a > small bit of ram set aside for each open pipe. On Linux, pipe(7) > says "In Linux versions before 2.6.11, the capacity of a pipe was the > same as the system page size (e.g., 4096 bytes on i386). Since Linux > 2.6.11, the pipe capacity is 65536 bytes. Since Linux 2.6.35, the > default pipe capacity is 65536 bytes, but the capacity can be queried > and set using the fcntl(2) F_GETPIPE_SZ and F_SETPIPE_SZ operations. > See fcntl(2) for more information." and that "capacity" referred to > consists of a kernel-managed RAM buffer. > > [snip] Fair enough -- about 64k of RAM per each pipe is used for the kernel FIFO buffer. But that is at most 64k of RAM (unless one's C code adjusts the buffer size), regardless of how many GiB flow through the pipe. So it "all" (to quote the nymshifter) does not have to be in RAM.