Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You will soon forget this.


comp / comp.os.linux.misc / Re: Are We Back to the "Wars" Now ?

SubjectAuthor
* Are We Back to the "Wars" Now ?186282@ud0s4.net
+* Re: Are We Back to the "Wars" Now ?D
|`* Re: Are We Back to the "Wars" Now ?186282@ud0s4.net
| `- Re: Are We Back to the "Wars" Now ?D
+- Re: Are We Back to the "Wars" Now ?Pancho
+- Re: Are We Back to the "Wars" Now ?Richard Kettlewell
+* Re: Are We Back to the "Wars" Now ?Rich
|`* Re: Are We Back to the "Wars" Now ?Phillip Frabott
| `* Re: Are We Back to the "Wars" Now ?Lawrence D'Oliveiro
|  `* Re: Are We Back to the "Wars" Now ?Phillip Frabott
|   `* Re: Are We Back to the "Wars" Now ?Lawrence D'Oliveiro
|    `* Re: Are We Back to the "Wars" Now ?Phillip Frabott
|     +* Re: Are We Back to the "Wars" Now ?Richard Kettlewell
|     |`* Re: Are We Back to the "Wars" Now ?Phillip Frabott
|     | +* Re: Are We Back to the "Wars" Now ?Lawrence D'Oliveiro
|     | |`* Re: Are We Back to the "Wars" Now ?vallor
|     | | +* Re: Are We Back to the "Wars" Now ?Lawrence D'Oliveiro
|     | | |`* Re: Are We Back to the "Wars" Now ?vallor
|     | | | `* Named pipes vs. Unix sockets (was: Re: Are We Back to the "Wars" Now ?)vallor
|     | | |  `* Re: Named pipes vs. Unix socketsvallor
|     | | |   +- Re: Named pipes vs. Unix socketsLawrence D'Oliveiro
|     | | |   `* Re: Named pipes vs. Unix socketsPhillip Frabott
|     | | |    +* Re: Named pipes vs. Unix socketsLawrence D'Oliveiro
|     | | |    |`* Re: Named pipes vs. Unix socketsPhillip Frabott
|     | | |    | `- Re: Named pipes vs. Unix socketsLawrence D'Oliveiro
|     | | |    `* Re: Named pipes vs. Unix socketsRichard L. Hamilton
|     | | |     `* Re: Named pipes vs. Unix socketsLawrence D'Oliveiro
|     | | |      `- Re: Named pipes vs. Unix socketsRichard L. Hamilton
|     | | `* Re: Are We Back to the "Wars" Now ?Rich
|     | |  +* Re: Are We Back to the "Wars" Now ?vallor
|     | |  |+- Re: Are We Back to the "Wars" Now ?Rich
|     | |  |`- Re: Are We Back to the "Wars" Now ?Lawrence D'Oliveiro
|     | |  `- Pipes v. FIFOs (was: Are We Back to the "Wars" Now ?)Geoff Clare
|     | `- Re: Are We Back to the "Wars" Now ?Richard Kettlewell
|     `* Re: Are We Back to the "Wars" Now ?Lawrence D'Oliveiro
|      `* Re: Are We Back to the "Wars" Now ?186282@ud0s4.net
|       `* Re: Are We Back to the "Wars" Now ?Lawrence D'Oliveiro
|        `* Re: Are We Back to the "Wars" Now ?186282@ud0s4.net
|         `* Re: Are We Back to the "Wars" Now ?Lawrence D'Oliveiro
|          `* Re: Are We Back to the "Wars" Now ?186282@ud0s4.net
|           +* Re: Are We Back to the "Wars" Now ?Lawrence D'Oliveiro
|           |`* Re: Are We Back to the "Wars" Now ?Carlos E.R.
|           | +* Re: Are We Back to the "Wars" Now ?Fritz Wuehler
|           | |`- Re: Are We Back to the "Wars" Now ?Carlos E.R.
|           | `* Re: Are We Back to the "Wars" Now ?Lawrence D'Oliveiro
|           |  `- Re: Are We Back to the "Wars" Now ?Carlos E.R.
|           `* Re: Are We Back to the "Wars" Now ?The Natural Philosopher
|            `* Re: Are We Back to the "Wars" Now ?Lawrence D'Oliveiro
|             `* Re: Are We Back to the "Wars" Now ?186282@ud0s4.net
|              +- Re: Are We Back to the "Wars" Now ?Lawrence D'Oliveiro
|              `* Re: Are We Back to the "Wars" Now ?Rich
|               `* Re: Are We Back to the "Wars" Now ?Lew Pitcher
|                +- Re: Are We Back to the "Wars" Now ?Rich
|                `* Re: Are We Back to the "Wars" Now ?Richard Kettlewell
|                 +- Re: Are We Back to the "Wars" Now ?Carlos E.R.
|                 +- Re: Are We Back to the "Wars" Now ?Rich
|                 `* Re: Are We Back to the "Wars" Now ?186282@ud0s4.net
|                  +- Re: Are We Back to the "Wars" Now ?Richard Kettlewell
|                  +- Re: Are We Back to the "Wars" Now ?Lawrence D'Oliveiro
|                  `- Re: Are We Back to the "Wars" Now ?Jerry Peters
`* Re: Are We Back to the "Wars" Now ?Lawrence D'Oliveiro
 `* Re: Are We Back to the "Wars" Now ?186282@ud0s4.net
  +* Re: Are We Back to the "Wars" Now ?Lawrence D'Oliveiro
  |`* Re: Are We Back to the "Wars" Now ?186282@ud0s4.net
  | `- Re: Are We Back to the "Wars" Now ?Lawrence D'Oliveiro
  `* Re: Are We Back to the "Wars" Now ?Richard L. Hamilton
   `* Re: Are We Back to the "Wars" Now ?Pancho
    `* Re: Are We Back to the "Wars" Now ?root
     `* Re: Are We Back to the "Wars" Now ?The Natural Philosopher
      `* Re: Are We Back to the "Wars" Now ?Geoff Clare
       `* Re: Are We Back to the "Wars" Now ?Lawrence D'Oliveiro
        `* Re: Are We Back to the "Wars" Now ?186282@ud0s4.net
         `* Re: Are We Back to the "Wars" Now ?Rich
          +* Re: Are We Back to the "Wars" Now ?Robert Riches
          |`* Re: Are We Back to the "Wars" Now ?Rich
          | `* Re: Are We Back to the "Wars" Now ?Robert Riches
          |  `* Re: Are We Back to the "Wars" Now ?Rich
          |   `- Re: Are We Back to the "Wars" Now ?D
          `* Re: Are We Back to the "Wars" Now ?Richard Kettlewell
           `* Re: Are We Back to the "Wars" Now ?Rich
            `* Re: Are We Back to the "Wars" Now ?John Ames
             +- Re: Are We Back to the "Wars" Now ?Rich
             `- Re: Are We Back to the "Wars" Now ?Richard Kettlewell

Pages:1234
Subject: Re: Are We Back to the "Wars" Now ?
From: Richard Kettlewell
Newsgroups: comp.os.linux.misc
Organization: terraraq NNTP server
Date: Fri, 22 Nov 2024 10:04 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.os.linux.misc
Subject: Re: Are We Back to the "Wars" Now ?
Date: Fri, 22 Nov 2024 10:04:21 +0000
Organization: terraraq NNTP server
Message-ID: <wwvzflrshy2.fsf@LkoBDZeT.terraraq.uk>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me>
<vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me>
<vhmn2t$hv8i$3@dont-email.me> <vhnikj$me7m$1@dont-email.me>
<wwvcyio8m9p.fsf@LkoBDZeT.terraraq.uk> <vhorrb$t48o$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6";
logging-data="95199"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:vDDHMXjCZZfSIkPXlUB9i5tZFK8=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
View all headers

Phillip Frabott <nntp@fulltermprivacy.com> writes:
> On 11/21/2024 13:38, Richard Kettlewell wrote:
>> This remark makes me wonder if you’ve got the wrong end of the stick
>> about what a named pipe is. They are really not the same as regular
>> files, temporary or otherwise.
>
> From a performance perspective they are. At least from the work I've
> done. We had to drop named pipes solely because of the performance hit
> because it is writing to a file system

The only filesystem write involve is the initial mkfifo(at) call. No
further filesystem writes are involved.

--
https://www.greenend.org.uk/rjk/

Subject: Re: Named pipes vs. Unix sockets
From: Phillip Frabott
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Fri, 22 Nov 2024 15:00 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nntp@fulltermprivacy.com (Phillip Frabott)
Newsgroups: comp.os.linux.misc
Subject: Re: Named pipes vs. Unix sockets
Date: Fri, 22 Nov 2024 10:00:31 -0500
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <vhq6ag$176f0$1@dont-email.me>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me>
<vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me>
<vhmn2t$hv8i$3@dont-email.me> <vhnikj$me7m$1@dont-email.me>
<wwvcyio8m9p.fsf@LkoBDZeT.terraraq.uk> <vhorrb$t48o$1@dont-email.me>
<vhosra$1171f$1@dont-email.me> <lqalg1F7fi9U2@mid.individual.net>
<vhp8qi$12m83$2@dont-email.me> <lqaoknF8btnU2@mid.individual.net>
<lqaq6cF8btnU3@mid.individual.net> <lqau7sF8btnU4@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 22 Nov 2024 16:00:33 +0100 (CET)
Injection-Info: dont-email.me; posting-host="e284d08f11627a26d6d133d7fb8219a0";
logging-data="1284576"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19gVh5jBHUIlgI6qmk9oYuTjeOYOdDCGcg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:yu8xS3EnhWVOSri8JeA6jxnkHS0=
In-Reply-To: <lqau7sF8btnU4@mid.individual.net>
Content-Language: en-US
View all headers

On 11/22/2024 03:38, vallor wrote:
> On 22 Nov 2024 07:29:16 GMT, vallor <vallor@cultnix.org> wrote in
> <lqaq6cF8btnU3@mid.individual.net>:
>
>> However, the speed appears to be limited by dd in my examples -- setting
>> a block size to fill the pipe/packets seems to increase throughput:
>>
>> $ nc -l -U -N /tmp/socket > /dev/null & time -p ( dd if=/dev/zero
>> count=$[1024*1024*4] bs=1024 | nc -U -N /tmp/socket > /dev/null )
>
> Realized the bottleneck would be the pipe between dd and nc, so wrote
> a program to connect to /tmp/socket and spew data at it -- it sends
> 46950 212992-byte buffers (9999974400 bytes) in 2.41 seconds.
> (4149366971 bytes/second, or 4.1GB/s).
>
> (The default "MTU" for a Linux Unix socket connection
> is 212992 bytes. Default pipe size is 8*512 bytes.)
>

Yeah, this has been the experience of our testing as well. We can also
bump the MTU up a bit to get sockets to do better and we've also
modified some of the socket code to our environment so it's able to do
around 12GB/s. We think we can tune it further to get about 15GB/s from
sockets. At the moment we have to do 4.6GB per 0.5sec to keep up, and
7GB per 0.5sec to stay ahead. We've done everything we can to squeeze
out as much performance from pipes as we could but there just isn't much
we can do anymore. But yeah, sockets are way more capable of large data
intake vs pipes, and this shows as well in a lot of research that's been
done. We've been testing sockets for about the last year and the results
have shown we are keeping up better then we are with pipes right now.

And for tribute to pipes, we've been using pipes in this project for the
last 30 years. That's a pretty great track record for something to have
been useful for such a long time and not be replaced with something else
until now. Sadly sockets will likely bottom out in the next 10-15 years
and we'll have to switch to something else. But for now, it's working.

--
Phillip Frabott
----------
- Adam: Is a void really a void if it returns?
- Jack: No, it's just nullspace at that point.
----------

Subject: Re: Are We Back to the "Wars" Now ?
From: Rich
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Fri, 22 Nov 2024 19:11 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc
Subject: Re: Are We Back to the "Wars" Now ?
Date: Fri, 22 Nov 2024 19:11:23 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <vhql0r$1a0ch$2@dont-email.me>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com> <vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me> <vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me> <vhmn2t$hv8i$3@dont-email.me> <vhnikj$me7m$1@dont-email.me> <wwvcyio8m9p.fsf@LkoBDZeT.terraraq.uk> <vhorrb$t48o$1@dont-email.me> <vhosra$1171f$1@dont-email.me> <lqalg1F7fi9U2@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Nov 2024 20:11:24 +0100 (CET)
Injection-Info: dont-email.me; posting-host="7d04357b751ecdf08eb14b93d5d8ff68";
logging-data="1376657"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18O6WPMstgef5ZHfXUJ756k"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:q7PZD6nDw+o+vqGVVNHRv5dbYuc=
View all headers

vallor <vallor@cultnix.org> wrote:
> On Fri, 22 Nov 2024 03:12:43 -0000 (UTC), Lawrence D'Oliveiro
> <ldo@nz.invalid> wrote in <vhosra$1171f$1@dont-email.me>:
>
>> On Thu, 21 Nov 2024 21:55:37 -0500, Phillip Frabott wrote:
>>
>>> We had to drop named pipes solely because of the performance hit
>>> because it is writing to a file system so it's being controlled by the
>>> file system, even if that file system is in memory.
>>
>> That doesn’t make any sense, if we were talking about Linux. Is this on
>> Windows, by any chance?
>
> Doesn't the named pipe connection work through the filesystem code?
> That could add overhead.

Only to the extent that a filesystem lookup has to occur to lookup the
name in order to open() the name.

Once you have a file descriptor back from the open() call, there is no
difference at all kernel wise betwenn the two, they are one and the
same block of kernel code.

> Can't use named pipes on just any filesystem -- won't work on NFS
> for example, unless I'm mistaken.

Correct, you need a filesystem that supports storing a 'name' that
that is a reference to a pipe, so windows filesystems are out.

Named pipes appear as 'pipe' nodes across NFS (just tested this to be
certian). And, so long as all the "accessors" of the named pipe are
running on the same Linux machine with the NFS mount containing the
pipe node, the named pipe works as expected (just tested this as well).

But a named pipe on NFS does not give you a machine to machine (two
different machines) transmit channel.

>>> As the demand grows, we are actually at the limits of performance that
>>> even unnamed pipes gives us. So we are starting to migrate to UNIX
>>> sockets which has about double to bandwidth and performance of pipes.
>>
>> Not sure how that works, given that Unix sockets are actually a more
>> complex mechanism than pipes.
>
> With Unix sockets, once the connection is made, it's all in-memory
> networking.

Correct.

> I suspect (but don't know) that named pipes require the data to pass
> through the filesystem for each write.

Incorrect. The only 'filesystem' access for named pipes is during the
open() call to look up the name from the filesystem. Once you get the
file descriptor back, it is the exact same in-memory FIFO queue as an
anonymous pipe created via pipe() (at least on Linux).

Subject: Re: Named pipes vs. Unix sockets
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Fri, 22 Nov 2024 20:52 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Named pipes vs. Unix sockets
Date: Fri, 22 Nov 2024 20:52:17 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <vhqqu0$1b2t7$6@dont-email.me>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me>
<vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me>
<vhmn2t$hv8i$3@dont-email.me> <vhnikj$me7m$1@dont-email.me>
<wwvcyio8m9p.fsf@LkoBDZeT.terraraq.uk> <vhorrb$t48o$1@dont-email.me>
<vhosra$1171f$1@dont-email.me> <lqalg1F7fi9U2@mid.individual.net>
<vhp8qi$12m83$2@dont-email.me> <lqaoknF8btnU2@mid.individual.net>
<lqaq6cF8btnU3@mid.individual.net> <lqau7sF8btnU4@mid.individual.net>
<vhq6ag$176f0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Nov 2024 21:52:17 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d0640d653b3828f8761808e02c741927";
logging-data="1412007"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+p5cWB79aAWaaEawE3lKLd"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:hEIg2jlKTiSjPtR/6x1aYwoal2k=
View all headers

On Fri, 22 Nov 2024 10:00:31 -0500, Phillip Frabott wrote:

> At the moment we have to do 4.6GB per 0.5sec to keep up, and
> 7GB per 0.5sec to stay ahead. We've done everything we can to squeeze
> out as much performance from pipes as we could but there just isn't much
> we can do anymore.

Sounds like a job for a shared memory section.

Subject: Re: Named pipes vs. Unix sockets
From: Phillip Frabott
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Fri, 22 Nov 2024 22:06 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nntp@fulltermprivacy.com (Phillip Frabott)
Newsgroups: comp.os.linux.misc
Subject: Re: Named pipes vs. Unix sockets
Date: Fri, 22 Nov 2024 17:06:06 -0500
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <vhqv8f$1br87$1@dont-email.me>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me>
<vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me>
<vhmn2t$hv8i$3@dont-email.me> <vhnikj$me7m$1@dont-email.me>
<wwvcyio8m9p.fsf@LkoBDZeT.terraraq.uk> <vhorrb$t48o$1@dont-email.me>
<vhosra$1171f$1@dont-email.me> <lqalg1F7fi9U2@mid.individual.net>
<vhp8qi$12m83$2@dont-email.me> <lqaoknF8btnU2@mid.individual.net>
<lqaq6cF8btnU3@mid.individual.net> <lqau7sF8btnU4@mid.individual.net>
<vhq6ag$176f0$1@dont-email.me> <vhqqu0$1b2t7$6@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 22 Nov 2024 23:06:08 +0100 (CET)
Injection-Info: dont-email.me; posting-host="e284d08f11627a26d6d133d7fb8219a0";
logging-data="1436935"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/seT9ZrdoMUSLUXyeZreNA/V0eLNchV4c="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:o9pkQObGJT9yn2+9KdYg2hDK/ig=
Content-Language: en-US
In-Reply-To: <vhqqu0$1b2t7$6@dont-email.me>
View all headers

On 11/22/2024 15:52, Lawrence D'Oliveiro wrote:
> On Fri, 22 Nov 2024 10:00:31 -0500, Phillip Frabott wrote:
>
>> At the moment we have to do 4.6GB per 0.5sec to keep up, and
>> 7GB per 0.5sec to stay ahead. We've done everything we can to squeeze
>> out as much performance from pipes as we could but there just isn't much
>> we can do anymore.
>
> Sounds like a job for a shared memory section.

That only works if the entire dataset originates on, and results within,
the same system. Unfortunately this is not the case so it wouldn't be
possible. This is an intermediate system between the intake and final
processing systems which are further down the line.

Unless you can recommend a way to do shared memory across different
machines without extra hardware. Currently we ingest data from a
(external) /dev (unbuffered data stream) into a process on the machine
that buffers the data (currently though an unnamed pipe, which as I said
before is in the process of being replaced with UNIX socket) then that
data pipes to another process (again, being replaced with UNIX socket
soon) which converts the data stream from the buffer to block data and
then categorizes those blocks based on data types and depending on those
data types sends it to one of 4 /dev devices that leave the machine. The
bottleneck is not between the first and second process (buffer process
and stream to block data processor) it's between the intake /dev to the
intermediate and the intermediate to the 4 outbound /devs. These /dev
are not networks so there is no TCP data. They are hard lined between
the /dev machine and the intermediate computer and the intermediate
computer to the 4 other /dev machines. So how would I share memory
between /dev machines from the 80s-90s and the intermediate computer
without using any network or TCP/UDP capabilities?

(If it was not apparent. these are manufacturing machines.)

--
Phillip Frabott
----------
- Adam: Is a void really a void if it returns?
- Jack: No, it's just nullspace at that point.
----------

Subject: Re: Named pipes vs. Unix sockets
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sat, 23 Nov 2024 00:42 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Named pipes vs. Unix sockets
Date: Sat, 23 Nov 2024 00:42:21 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <vhr8dd$1ddh7$1@dont-email.me>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me>
<vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me>
<vhmn2t$hv8i$3@dont-email.me> <vhnikj$me7m$1@dont-email.me>
<wwvcyio8m9p.fsf@LkoBDZeT.terraraq.uk> <vhorrb$t48o$1@dont-email.me>
<vhosra$1171f$1@dont-email.me> <lqalg1F7fi9U2@mid.individual.net>
<vhp8qi$12m83$2@dont-email.me> <lqaoknF8btnU2@mid.individual.net>
<lqaq6cF8btnU3@mid.individual.net> <lqau7sF8btnU4@mid.individual.net>
<vhq6ag$176f0$1@dont-email.me> <vhqqu0$1b2t7$6@dont-email.me>
<vhqv8f$1br87$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 23 Nov 2024 01:42:21 +0100 (CET)
Injection-Info: dont-email.me; posting-host="2fd1218dfbbc8c3afa5bbf19b4966652";
logging-data="1488423"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kUnQh1toNK08Owm2aVw40"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:d0R8ZlZrIHbedjvbYuNNC7p092Y=
View all headers

On Fri, 22 Nov 2024 17:06:06 -0500, Phillip Frabott wrote:

> Unless you can recommend a way to do shared memory across different
> machines without extra hardware.

Ah, I thought you were running all these processes on the same machine,
since pipes don’t work any other way.

What about those high-speed interconnects like the ones they use in
supercomputers? 40Gb Ethernet (not sure if 100Gb is working yet)? How fast
does SCSI go? Some fibre-based interconnect?

Subject: Re: Are We Back to the "Wars" Now ?
From: vallor
Newsgroups: comp.os.linux.misc
Date: Sat, 23 Nov 2024 03:25 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: vallor@cultnix.org (vallor)
Newsgroups: comp.os.linux.misc
Subject: Re: Are We Back to the "Wars" Now ?
Date: 23 Nov 2024 03:25:08 GMT
Lines: 78
Message-ID: <lqd08jFisv3U1@mid.individual.net>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me>
<vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me>
<vhmn2t$hv8i$3@dont-email.me> <vhnikj$me7m$1@dont-email.me>
<wwvcyio8m9p.fsf@LkoBDZeT.terraraq.uk> <vhorrb$t48o$1@dont-email.me>
<vhosra$1171f$1@dont-email.me> <lqalg1F7fi9U2@mid.individual.net>
<vhql0r$1a0ch$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net rEeaVJheTwwExzIAMeR8PwjYiylYVUQnuzBxNk+SIC4sWFMFHm
Cancel-Lock: sha1:S2z6t591ODHaFuuosqxgI2Pf9Nw= sha256:rNtion57xfWI2cfl2HxYpjqoUyjytqZPXOEW0ZwHquE=
X-Face: +McU)#<-H?9lTb(Th!zR`EpVrp<0)1p5CmPu.kOscy8LRp_\u`:tW;dxPo./(fCl
CaKku`)]}.V/"6rISCIDP`
User-Agent: Pan/0.161 (Hmm2; be402cc9; Linux-6.12.0)
View all headers

On Fri, 22 Nov 2024 19:11:23 -0000 (UTC), Rich <rich@example.invalid>
wrote in <vhql0r$1a0ch$2@dont-email.me>:

> vallor <vallor@cultnix.org> wrote:
>> On Fri, 22 Nov 2024 03:12:43 -0000 (UTC), Lawrence D'Oliveiro
>> <ldo@nz.invalid> wrote in <vhosra$1171f$1@dont-email.me>:
>>
>>> On Thu, 21 Nov 2024 21:55:37 -0500, Phillip Frabott wrote:
>>>
>>>> We had to drop named pipes solely because of the performance hit
>>>> because it is writing to a file system so it's being controlled by
>>>> the file system, even if that file system is in memory.
>>>
>>> That doesn’t make any sense, if we were talking about Linux. Is this
>>> on Windows, by any chance?
>>
>> Doesn't the named pipe connection work through the filesystem code?
>> That could add overhead.
>
> Only to the extent that a filesystem lookup has to occur to lookup the
> name in order to open() the name.
>
> Once you have a file descriptor back from the open() call, there is no
> difference at all kernel wise betwenn the two, they are one and the same
> block of kernel code.

I stand corrected about that.

>
>> Can't use named pipes on just any filesystem -- won't work on NFS for
>> example, unless I'm mistaken.
>
> Correct, you need a filesystem that supports storing a 'name' that that
> is a reference to a pipe, so windows filesystems are out.
>
> Named pipes appear as 'pipe' nodes across NFS (just tested this to be
> certian). And, so long as all the "accessors" of the named pipe are
> running on the same Linux machine with the NFS mount containing the pipe
> node, the named pipe works as expected (just tested this as well).

I tested it too (with an NFS v4.1 filesystem), and yes, mkfifo makes
a named pipe, and it works as expected. (Didn't expect it to work
across machines, though that would be a neat trick.)

> But a named pipe on NFS does not give you a machine to machine (two
> different machines) transmit channel.
>
>>>> As the demand grows, we are actually at the limits of performance
>>>> that even unnamed pipes gives us. So we are starting to migrate to
>>>> UNIX sockets which has about double to bandwidth and performance of
>>>> pipes.
>>>
>>> Not sure how that works, given that Unix sockets are actually a more
>>> complex mechanism than pipes.
>>
>> With Unix sockets, once the connection is made, it's all in-memory
>> networking.
>
> Correct.
>
>> I suspect (but don't know) that named pipes require the data to pass
>> through the filesystem for each write.
>
> Incorrect. The only 'filesystem' access for named pipes is during the
> open() call to look up the name from the filesystem. Once you get the
> file descriptor back, it is the exact same in-memory FIFO queue as an
> anonymous pipe created via pipe() (at least on Linux).

Again, I stand corrected on that.

(Haven't figured out how to increase ulimit -p yet, doesn't seem
to want to increase, even as root...)

--
-v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti
OS: Linux 6.12.0 Release: Mint 21.3 Mem: 258G
"A good hot dog feeds the hand that bites it."

Subject: Re: Are We Back to the "Wars" Now ?
From: Rich
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sat, 23 Nov 2024 04:28 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc
Subject: Re: Are We Back to the "Wars" Now ?
Date: Sat, 23 Nov 2024 04:28:07 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <vhrlkn$1iue3$1@dont-email.me>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com> <vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me> <vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me> <vhmn2t$hv8i$3@dont-email.me> <vhnikj$me7m$1@dont-email.me> <wwvcyio8m9p.fsf@LkoBDZeT.terraraq.uk> <vhorrb$t48o$1@dont-email.me> <vhosra$1171f$1@dont-email.me> <lqalg1F7fi9U2@mid.individual.net> <vhql0r$1a0ch$2@dont-email.me> <lqd08jFisv3U1@mid.individual.net>
Injection-Date: Sat, 23 Nov 2024 05:28:08 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a161c3bd9e4a333e0e5c2b435a0e3da7";
logging-data="1669571"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19PXbQ7khP76li+kTagqkfd"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:oAexPrZd+MB8kNApcoo1GlVx1lg=
View all headers

vallor <vallor@cultnix.org> wrote:
> (Haven't figured out how to increase ulimit -p yet, doesn't seem
> to want to increase, even as root...)

From the ulimit manpage:

-p The pipe size in 512-byte blocks (this may not be set)

Note the "this may not be set" part at the end.

It is likely the case that if you wanted to increase the pipe size that
you would have to make a change in the kernel source and recompile a
custom kernel.

Subject: Re: Are We Back to the "Wars" Now ?
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Sat, 23 Nov 2024 04:44 UTC
References: 1 2 3 4 5 6 7 8 9 10
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!border-3.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 23 Nov 2024 04:44:49 +0000
Subject: Re: Are We Back to the "Wars" Now ?
Newsgroups: comp.os.linux.misc
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me>
<vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me>
<vhmn2t$hv8i$3@dont-email.me> <vhnikj$me7m$1@dont-email.me>
<vhoaau$qjkl$1@dont-email.me>
<lIqcnTlkpf_Jtd36nZ2dnZfqn_udnZ2d@earthlink.com>
<vhp9hs$12qaa$2@dont-email.me>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Fri, 22 Nov 2024 23:44:24 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <vhp9hs$12qaa$2@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <v4adnSK1nItcwNz6nZ2dnZfqnPWdnZ2d@earthlink.com>
Lines: 25
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-XAecVj3cK13StBxIF3TnTdYIEwds348rCwJSA4mmjKdMxB4RmTSpxtkTptDoMJrTTzNwoxHHVIyWxgG!b22xIN7i7tvK/Hzki0V5KNsChNbfZV4znQI+na5MCZ3EEDcBtn+Beg/xCFAcvs+wHYhJp2/xrHQ4!JlP5IpMpXZVtrXWq123D
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

On 11/22/24 1:49 AM, Lawrence D'Oliveiro wrote:
> On Fri, 22 Nov 2024 01:44:35 -0500, 186282@ud0s4.net wrote:
>
>> On 11/21/24 4:56 PM, Lawrence D'Oliveiro wrote:
>>
>>> I have used them to transfer quite large amounts, quickly and reliably.
>>
>> Yep, WILL work. No question.
>>
>> The question is HOW MUCH should you intend to send back
>> and forth using pipes (or any other method) between the
>> parent and children.
>
> How about 10 gigabytes, which I was able to transfer in two seconds? Is
> that “too much” for you?

Yep - though you may have had a 'radical vision' when
writing your parent/child app .... just because *I*
wouldn't do it .......

256 Bytes is about as far as I'd go. The children/threads
should deal with the big files themselves IMHO. Put the
kids to work :-)

Subject: Re: Are We Back to the "Wars" Now ?
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sat, 23 Nov 2024 04:50 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Are We Back to the "Wars" Now ?
Date: Sat, 23 Nov 2024 04:50:09 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <vhrmu1$1j2md$1@dont-email.me>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me>
<vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me>
<vhmn2t$hv8i$3@dont-email.me> <vhnikj$me7m$1@dont-email.me>
<wwvcyio8m9p.fsf@LkoBDZeT.terraraq.uk> <vhorrb$t48o$1@dont-email.me>
<vhosra$1171f$1@dont-email.me> <lqalg1F7fi9U2@mid.individual.net>
<vhql0r$1a0ch$2@dont-email.me> <lqd08jFisv3U1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 23 Nov 2024 05:50:09 +0100 (CET)
Injection-Info: dont-email.me; posting-host="2fd1218dfbbc8c3afa5bbf19b4966652";
logging-data="1673933"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+SydPuPjtpzdnuse/lJtx8"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:Hh3yfxVfA/QSlyfRMlahQIgFqxs=
View all headers

On 23 Nov 2024 03:25:08 GMT, vallor wrote:

> I tested it too (with an NFS v4.1 filesystem), and yes, mkfifo makes a
> named pipe, and it works as expected. (Didn't expect it to work across
> machines, though that would be a neat trick.)

No reason why it shouldn’t work, provided the network protocol has support
for recognizing such special files.

> (Haven't figured out how to increase ulimit -p yet, doesn't seem to want
> to increase, even as root...)

<https://manpages.debian.org/7/pipe.7.en.html> mentions the
/proc/sys/fs/pipe-max-size configuration limit. It could be that ulimit -p
has no effect on Linux.

Subject: Re: Are We Back to the "Wars" Now ?
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sat, 23 Nov 2024 05:19 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Are We Back to the "Wars" Now ?
Date: Sat, 23 Nov 2024 05:19:59 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <vhrolu$1jata$1@dont-email.me>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me>
<vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me>
<vhmn2t$hv8i$3@dont-email.me> <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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 23 Nov 2024 06:19:59 +0100 (CET)
Injection-Info: dont-email.me; posting-host="2fd1218dfbbc8c3afa5bbf19b4966652";
logging-data="1682346"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ilWz45pa6l8iqCjFWbCfg"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:zbFLlKxHgCW3cVfypoUEy9/8lVc=
View all headers

On Fri, 22 Nov 2024 23:44:24 -0500, 186282@ud0s4.net wrote:

> On 11/22/24 1:49 AM, Lawrence D'Oliveiro wrote:
>> On Fri, 22 Nov 2024 01:44:35 -0500, 186282@ud0s4.net wrote:
>>
>>> On 11/21/24 4:56 PM, Lawrence D'Oliveiro wrote:
>>>
>>>> I have used them to transfer quite large amounts, quickly and
>>>> reliably.
>>>
>>> Yep, WILL work. No question.
>>>
>>> The question is HOW MUCH should you intend to send back and forth
>>> using pipes (or any other method) between the parent and children.
>>
>> How about 10 gigabytes, which I was able to transfer in two seconds? Is
>> that “too much” for you?
>
> Yep - though you may have had a 'radical vision' when writing your
> parent/child app .... just because *I* wouldn't do it .......

You didn’t realize IPC on *nix is industrial-strength?

Subject: Re: Are We Back to the "Wars" Now ?
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Sat, 23 Nov 2024 06:27 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 23 Nov 2024 06:27:26 +0000
Subject: Re: Are We Back to the "Wars" Now ?
Newsgroups: comp.os.linux.misc
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me>
<vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me>
<vhmn2t$hv8i$3@dont-email.me> <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>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Sat, 23 Nov 2024 01:27:25 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <vhrolu$1jata$1@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <Oo6dnZb3z-NT6Nz6nZ2dnZfqnPednZ2d@earthlink.com>
Lines: 33
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-p3NN1TMAR0/2OPy7vTBjm1uyw18cpId8SGFsdRgdetk1djV08M+4xiSMd9DFeg7Cql1pURtrMJY6QZ/!sE3JjVhg0LWjL6eIIhLzRSPm1TJSAwu+B9cxyMV6TmZp8Fe3CLgfKM+JocdodWM3JW5/ZWcV6nft!TPkDa7mONrNqgkPorDx7
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

On 11/23/24 12:19 AM, Lawrence D'Oliveiro wrote:
> On Fri, 22 Nov 2024 23:44:24 -0500, 186282@ud0s4.net wrote:
>
>> On 11/22/24 1:49 AM, Lawrence D'Oliveiro wrote:
>>> On Fri, 22 Nov 2024 01:44:35 -0500, 186282@ud0s4.net wrote:
>>>
>>>> On 11/21/24 4:56 PM, Lawrence D'Oliveiro wrote:
>>>>
>>>>> I have used them to transfer quite large amounts, quickly and
>>>>> reliably.
>>>>
>>>> Yep, WILL work. No question.
>>>>
>>>> The question is HOW MUCH should you intend to send back and forth
>>>> using pipes (or any other method) between the parent and children.
>>>
>>> How about 10 gigabytes, which I was able to transfer in two seconds? Is
>>> that “too much” for you?
>>
>> Yep - though you may have had a 'radical vision' when writing your
>> parent/child app .... just because *I* wouldn't do it .......
>
> You didn’t realize IPC on *nix is industrial-strength?

I know it CAN handle BIG transactions.

But SHOULD it ?

This is maybe a "philosophical" matter ...

I'm still of the crap CPU/Mem era ... always look
to minimize/simplify.

Subject: Re: Are We Back to the "Wars" Now ?
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sat, 23 Nov 2024 07:41 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Are We Back to the "Wars" Now ?
Date: Sat, 23 Nov 2024 07:41:49 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <vhs0vs$1k6ft$2@dont-email.me>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me>
<vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me>
<vhmn2t$hv8i$3@dont-email.me> <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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 23 Nov 2024 08:41:49 +0100 (CET)
Injection-Info: dont-email.me; posting-host="2fd1218dfbbc8c3afa5bbf19b4966652";
logging-data="1710589"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+OItDRe4gLjQUFgwR61gJY"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:vUz/8ENUtqDcP08seK3aeLeT+bg=
View all headers

On Sat, 23 Nov 2024 01:27:25 -0500, 186282@ud0s4.net wrote:

> On 11/23/24 12:19 AM, Lawrence D'Oliveiro wrote:
>>
>> You didn’t realize IPC on *nix is industrial-strength?
>
> I know it CAN handle BIG transactions.
>
> But SHOULD it ?

That’s what it’s designed for!

Subject: Re: Are We Back to the "Wars" Now ?
From: The Natural Philosop
Newsgroups: comp.os.linux.misc
Organization: A little, after lunch
Date: Sat, 23 Nov 2024 11:12 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: Are We Back to the "Wars" Now ?
Date: Sat, 23 Nov 2024 11:12:50 +0000
Organization: A little, after lunch
Lines: 52
Message-ID: <vhsdbi$1m6qu$1@dont-email.me>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me>
<vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me>
<vhmn2t$hv8i$3@dont-email.me> <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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 23 Nov 2024 12:12:51 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d66e216f27af22ed0cfed08003360025";
logging-data="1776478"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xFujR4WOCK79O/eL+qM/k+1ExKgtF7tc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:QFGOjR2X+2NAk3374ryK1wxUbMA=
Content-Language: en-GB
In-Reply-To: <Oo6dnZb3z-NT6Nz6nZ2dnZfqnPednZ2d@earthlink.com>
View all headers

On 23/11/2024 06:27, 186282@ud0s4.net wrote:

>
>   I know it CAN handle BIG transactions.
>
>   But SHOULD it ?
>
>   This is maybe a "philosophical" matter ...
>

*Should* is an interesting word, used today in enormous quantities, to
justify actions.
It is a nasty little fella, because its roots like in the language of
debt - both physical and moral - and obligation.

And whilst it seems to not overtly contain such elements, implicitly it
does.

Do if I say 'you *should* do this, there is an implicit quality of
(unspecified) goodness and badness and obligation on you in doing it or
not doing it.

Unless you prefix it with a conditional like 'If you want to get to
Rome, you should take this road' there is the implicit conditional of
'if you want to be regarded as a good and holy person' you should take
this road.

>   I'm still of the crap CPU/Mem era ... always look
>   to minimize/simplify.

Well yes, but we have gigabytes of RAM these days.

You have to look at what your are doing, what you are trying to do, and
what resources are available, to do it with, how long it will take and
what it will cost.

This is standard professional engineering philosophy. It is also officer
class military procedure - a pragmatic approach to achieving well
defined tactical and strategic objectives.

You cant ask 'should we' in isolation.
Only in the context of the above.

--
The theory of Communism may be summed up in one sentence: Abolish all
private property.

Karl Marx

Subject: Re: Are We Back to the "Wars" Now ?
From: Carlos E.R.
Newsgroups: comp.os.linux.misc
Date: Sat, 23 Nov 2024 13:39 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E.R.)
Newsgroups: comp.os.linux.misc
Subject: Re: Are We Back to the "Wars" Now ?
Date: Sat, 23 Nov 2024 14:39:40 +0100
Lines: 28
Message-ID: <sh291lxvc7.ln2@Telcontar.valinor>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me>
<vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me>
<vhmn2t$hv8i$3@dont-email.me> <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>
<vhs0vs$1k6ft$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net qwofXIsCFAnFBU49TbCBGAvz8aYPzbCR/Avp5J2rO1RcsYHmjA
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:btJUmYN6EYltXjA/9kc6N1Yx+dw= sha256:U1X3NeGO5xAn0hWCEt/JaqImYzIK/27B5FSeYvHqnKg=
User-Agent: Mozilla Thunderbird
Content-Language: es-ES, en-CA
In-Reply-To: <vhs0vs$1k6ft$2@dont-email.me>
View all headers

On 2024-11-23 08:41, Lawrence D'Oliveiro wrote:
> On Sat, 23 Nov 2024 01:27:25 -0500, 186282@ud0s4.net wrote:
>
>> On 11/23/24 12:19 AM, Lawrence D'Oliveiro wrote:
>>>
>>> You didn’t realize IPC on *nix is industrial-strength?
>>
>> I know it CAN handle BIG transactions.
>>
>> But SHOULD it ?
>
> That’s what it’s designed for!

I use named pipes on my backup script.

I dd a hard disk partition, compress it, and at the same time calculate a checksum.

mkfifo mdpipe
dd if=/dev/$1 status=progress bs=16M | tee mdpipe | pigz -3 > $3.gz &
md5sum -b mdpipe | tee -a md5checksum_expanded
wait
rm mdpipe
echo "$3" >> md5checksum_expanded

This way there is only one disk read operation. I can see the thing running at max hard disk speed.

--
Cheers, Carlos.

Subject: Re: Are We Back to the "Wars" Now ?
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sat, 23 Nov 2024 21:25 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Are We Back to the "Wars" Now ?
Date: Sat, 23 Nov 2024 21:25:13 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <vhth7o$1s5d5$4@dont-email.me>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me>
<vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me>
<vhmn2t$hv8i$3@dont-email.me> <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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 23 Nov 2024 22:25:13 +0100 (CET)
Injection-Info: dont-email.me; posting-host="2fd1218dfbbc8c3afa5bbf19b4966652";
logging-data="1971621"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19emDmI3kG1XQq+8/iukAxr"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:XCkMC4okVzW0GCwRR2vMmsBTbJI=
View all headers

On Sat, 23 Nov 2024 11:12:50 +0000, The Natural Philosopher wrote:

> *Should* is an interesting word ...

Here I think it is being used to backpedal from the poster’s original
claim that pipes are somehow unsuited to passing around large quantities
of data, while trying to somehow save face.

> Well yes, but we have gigabytes of RAM these days.

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.

Subject: Re: Are We Back to the "Wars" Now ?
From: Fritz Wuehler
Newsgroups: comp.os.linux.misc
Organization: dizum.com - The Internet Problem Provider
Date: Sat, 23 Nov 2024 21:32 UTC
References: 1 2 3 4 5 6 7 8 9
From: fritz@spamexpire-202411.rodent.frell.theremailer.net (Fritz Wuehler)
Subject: Re: Are We Back to the "Wars" Now ?
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
References: <vhmn2t@dont-email.me>
<vhnikj@dont-email.me> <vhoaau@dont-email.me>
<lIqcnTlkpf_Jtd36nZ2dnZfqn_udnZ2d@earthlink.com> <vhp9hs2qaa@dont-email.me>
<v4adnSK1nItcwNz6nZ2dnZfqnPWdnZ2d@earthlink.com> <vhrolujata@dont-email.me>
<Oo6dnZb3z-NT6Nz6nZ2dnZfqnPednZ2d@earthlink.com>
<vhs0vsk6ft@dont-email.me> <sh291lxvc7.ln2@Telcontar.valinor>
Message-ID: <8dd3cea92696338fe22c059158645628@msgid.frell.theremailer.net>
Date: Sat, 23 Nov 2024 22:32:37 +0100
Newsgroups: comp.os.linux.misc
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!alphared!sewer!news.dizum.net!not-for-mail
Organization: dizum.com - The Internet Problem Provider
X-Abuse: abuse@dizum.com
Injection-Info: sewer.dizum.com - 2001::1/128
View all headers

Carlos E.R. <robin_lis...@es.invalid> [CE]:
CE> I dd a hard disk partition, compress it, and at the same time
CE> calculate a checksum.
CE>
CE> mkfifo mdpipe
CE> dd if=/dev/$1 status=progress bs=16M | tee mdpipe | pigz -3 > $3.gz &
CE> md5sum -b mdpipe | tee -a md5checksum_expanded
CE> wait
CE> rm mdpipe
CE> echo "$3" >> md5checksum_expanded

David B Rosen has written the tpipe(1) utility for exactly such cases:

The above steps can be rewritten in a much cleaner way as:

dd if=/dev/$1 status=progress bs=16M |
tpipe "md5sum -b >> md5checksum_expanded" |
pigz -3 > $3.gz

If tpipe is not available on your system, you can always use the shell's
process substitution feature instead:

dd if=/dev/$1 status=progress bs=16M |
tee >(md5sum -b >> md5checksum_expanded) \
>(pigz -3 > $3.gz) \
>/dev/null

Subject: Re: Are We Back to the "Wars" Now ?
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sat, 23 Nov 2024 22:04 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Are We Back to the "Wars" Now ?
Date: Sat, 23 Nov 2024 22:04:17 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <vhtjh0$1s5d5$11@dont-email.me>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me>
<vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me>
<vhmn2t$hv8i$3@dont-email.me> <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>
<vhs0vs$1k6ft$2@dont-email.me> <sh291lxvc7.ln2@Telcontar.valinor>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 23 Nov 2024 23:04:17 +0100 (CET)
Injection-Info: dont-email.me; posting-host="2fd1218dfbbc8c3afa5bbf19b4966652";
logging-data="1971621"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bovS9T6bjkvM5NVLLocdM"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:7qrjyFYpASt2Syi0ER4KJsg1LuI=
View all headers

On Sat, 23 Nov 2024 14:39:40 +0100, Carlos E.R. wrote:

> I use named pipes on my backup script.
>
> I dd a hard disk partition, compress it, and at the same time calculate
> a checksum.
>
> mkfifo mdpipe
> dd if=/dev/$1 status=progress bs=16M | tee mdpipe | pigz -3 > $3.gz &
> md5sum -b mdpipe | tee -a md5checksum_expanded
> wait
> rm mdpipe
> echo "$3" >> md5checksum_expanded
>
> This way there is only one disk read operation. I can see the thing
> running at max hard disk speed.

Clever. Just one thing, I would probably use a dynamic name for the
pipe and put it in $TMPDIR (e.g. generated with tempfile) so that 1)
multiple instances could run at once, and 2) it doesn’t depend on
writing into the current directory, whatever that might be.

(It’s likely neither of those issues is relevant to your particular
use case ...)

Subject: Re: Are We Back to the "Wars" Now ?
From: Carlos E.R.
Newsgroups: comp.os.linux.misc
Date: Sat, 23 Nov 2024 23:11 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E.R.)
Newsgroups: comp.os.linux.misc
Subject: Re: Are We Back to the "Wars" Now ?
Date: Sun, 24 Nov 2024 00:11:16 +0100
Lines: 34
Message-ID: <k14a1lx7l4.ln2@Telcontar.valinor>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me>
<vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me>
<vhmn2t$hv8i$3@dont-email.me> <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>
<vhs0vs$1k6ft$2@dont-email.me> <sh291lxvc7.ln2@Telcontar.valinor>
<vhtjh0$1s5d5$11@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 2WDw7nA10q3Vep6hbWuRHAQ5FtIqitRX2x+nY53elxp0einuLB
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:AOymbyvQvN8gOmfqufTIm/fECQg= sha256:hUh/kZvM4++j1TM9vcg4MFIXc9cOIxxkplAYgqN7Jss=
User-Agent: Mozilla Thunderbird
Content-Language: es-ES, en-CA
In-Reply-To: <vhtjh0$1s5d5$11@dont-email.me>
View all headers

On 2024-11-23 23:04, Lawrence D'Oliveiro wrote:
> On Sat, 23 Nov 2024 14:39:40 +0100, Carlos E.R. wrote:
>
>> I use named pipes on my backup script.
>>
>> I dd a hard disk partition, compress it, and at the same time calculate
>> a checksum.
>>
>> mkfifo mdpipe
>> dd if=/dev/$1 status=progress bs=16M | tee mdpipe | pigz -3 > $3.gz &
>> md5sum -b mdpipe | tee -a md5checksum_expanded
>> wait
>> rm mdpipe
>> echo "$3" >> md5checksum_expanded
>>
>> This way there is only one disk read operation. I can see the thing
>> running at max hard disk speed.
>
> Clever. Just one thing, I would probably use a dynamic name for the
> pipe and put it in $TMPDIR (e.g. generated with tempfile) so that 1)
> multiple instances could run at once, and 2) it doesn’t depend on
> writing into the current directory, whatever that might be.
>
> (It’s likely neither of those issues is relevant to your particular
> use case ...)

No, it is not relevant :-)

Using the current dir allows me to see it there, too.

--
Cheers, Carlos.

Subject: Re: Are We Back to the "Wars" Now ?
From: Carlos E.R.
Newsgroups: comp.os.linux.misc
Date: Sat, 23 Nov 2024 23:11 UTC
References: 1 2 3 4 5 6 7 8 9 10 11
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E.R.)
Newsgroups: comp.os.linux.misc
Subject: Re: Are We Back to the "Wars" Now ?
Date: Sun, 24 Nov 2024 00:11:48 +0100
Lines: 57
Message-ID: <k24a1lx7l4.ln2@Telcontar.valinor>
References: <vhmn2t@dont-email.me> <vhnikj@dont-email.me>
<vhoaau@dont-email.me> <lIqcnTlkpf_Jtd36nZ2dnZfqn_udnZ2d@earthlink.com>
<vhp9hs2qaa@dont-email.me> <v4adnSK1nItcwNz6nZ2dnZfqnPWdnZ2d@earthlink.com>
<vhrolujata@dont-email.me> <Oo6dnZb3z-NT6Nz6nZ2dnZfqnPednZ2d@earthlink.com>
<vhs0vsk6ft@dont-email.me> <sh291lxvc7.ln2@Telcontar.valinor>
<8dd3cea92696338fe22c059158645628@msgid.frell.theremailer.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net czFlttsgdD9dmCd52ObvNA4y6NSD9SkzvImqBoz9XRcBE9HvZc
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:kmim9aKNfADut317UpzEVeGxG9Y= sha256:UxnPk58+NtKjmbr8o4aRze0z+lb75UJ/CQmhXGnB71I=
User-Agent: Mozilla Thunderbird
Content-Language: es-ES, en-CA
In-Reply-To: <8dd3cea92696338fe22c059158645628@msgid.frell.theremailer.net>
View all headers

On 2024-11-23 22:32, Fritz Wuehler wrote:
> Carlos E.R. <robin_lis...@es.invalid> [CE]:
> CE> I dd a hard disk partition, compress it, and at the same time
> CE> calculate a checksum.
> CE>
> CE> mkfifo mdpipe
> CE> dd if=/dev/$1 status=progress bs=16M | tee mdpipe | pigz -3 > $3.gz &
> CE> md5sum -b mdpipe | tee -a md5checksum_expanded
> CE> wait
> CE> rm mdpipe
> CE> echo "$3" >> md5checksum_expanded
>
>
> David B Rosen has written the tpipe(1) utility for exactly such cases:
>
> The above steps can be rewritten in a much cleaner way as:
>
> dd if=/dev/$1 status=progress bs=16M |
> tpipe "md5sum -b >> md5checksum_expanded" |
> pigz -3 > $3.gz
>
>
> If tpipe is not available on your system,

it is not.

Telcontar:~ # tpipe
If 'tpipe' is not a typo you can use command-not-found to lookup the
package that contains it, like this:
cnf tpipe
Telcontar:~ # cnf tpipe
tpipe: command not found
Telcontar:~ # opi tpipe
Searching repos for: tpipe
1. inputpipe
2. socketpipe
3. inputpipe-debuginfo
4. socketpipe-debuginfo
5. inputpipe-debugsource
6. socketpipe-debugsource
Pick a number (0 to quit): 0
Telcontar:~ #

> you can always use the shell's
> process substitution feature instead:
>
> dd if=/dev/$1 status=progress bs=16M |
> tee >(md5sum -b >> md5checksum_expanded) \
> >(pigz -3 > $3.gz) \
> >/dev/null
>

I like my way, it is mine :-)

--
Cheers, Carlos.

Subject: Re: Are We Back to the "Wars" Now ?
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Sun, 24 Nov 2024 00:42 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!border-2.nntp.ord.giganews.com!nntp.giganews.com!local-3.nntp.ord.giganews.com!local-2.nntp.ord.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 24 Nov 2024 00:42:01 +0000
Subject: Re: Are We Back to the "Wars" Now ?
Newsgroups: comp.os.linux.misc
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me>
<vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me>
<vhmn2t$hv8i$3@dont-email.me> <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>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Sat, 23 Nov 2024 19:42:01 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <vhth7o$1s5d5$4@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <heednZLHO-zE69_6nZ2dnZfqn_idnZ2d@earthlink.com>
Lines: 29
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-WPzbHhOyLnxxES1kbokpMCaSC15uIAQ5iLMT6mtT+iOQiIcQG0dbs7WWficApTf7agYNlPKdHG2SDpO!2u89+Fe/j8ueBWpcq3B8oHHgZsGCjGginuYcyBn6Ah7GWPilnLUyqyAcyHDo1a+KrnYSO9nKmXAx!MwXWqH/KnUD3btHG99tJ
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

On 11/23/24 4:25 PM, Lawrence D'Oliveiro wrote:
> On Sat, 23 Nov 2024 11:12:50 +0000, The Natural Philosopher wrote:
>
>> *Should* is an interesting word ...
>
> Here I think it is being used to backpedal from the poster’s original
> claim that pipes are somehow unsuited to passing around large quantities
> of data, while trying to somehow save face.

Check - I said there were OTHER, reasonably good, ways
to pass lots of data between parents/children. Others
here said they've used ordinary disk files instead of
pipes for various reasons.

As for my face ... it never was very handsome, no
saving it now ... :-)

>> Well yes, but we have gigabytes of RAM these days.
>
> 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.

Of course 'gigabytes' ALL AT ONCE -vs- "a little
at a time, added up" are entirely different things.

Subject: Re: Are We Back to the "Wars" Now ?
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sun, 24 Nov 2024 02:03 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Are We Back to the "Wars" Now ?
Date: Sun, 24 Nov 2024 02:03:53 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <vhu1i9$1uqb7$1@dont-email.me>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhf5ts$16rpr$1@dont-email.me> <vhfjtj$19ijm$1@dont-email.me>
<vhja6j$23f5e$4@dont-email.me> <vhmm4c$hnbj$1@dont-email.me>
<vhmn2t$hv8i$3@dont-email.me> <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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 24 Nov 2024 03:03:54 +0100 (CET)
Injection-Info: dont-email.me; posting-host="27ab7e63bed7df08cdacd32e400e7f6c";
logging-data="2058599"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9+j3tx52Ucg6/yI7N5i2E"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:TQM5cESZeOCngez5aYPH3Wmacgo=
View all headers

On Sat, 23 Nov 2024 19:42:01 -0500, 186282@ud0s4.net wrote:

> On 11/23/24 4:25 PM, Lawrence D'Oliveiro wrote:
>
>> 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.

It might be generated in one process and consumed in another. It might be
coming from the network, or going to the network -- the process at the
other end of the pipe being isolated from the network, perhaps for
security reasons.

In short, it might work any number of ways, without involving (local)
mass-storage devices.

Subject: Re: Are We Back to the "Wars" Now ?
From: Rich
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sun, 24 Nov 2024 14:25 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc
Subject: Re: Are We Back to the "Wars" Now ?
Date: Sun, 24 Nov 2024 14:25:10 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <vhvd06$2900d$1@dont-email.me>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com> <vhmm4c$hnbj$1@dont-email.me> <vhmn2t$hv8i$3@dont-email.me> <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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 24 Nov 2024 15:25:11 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f9f41132f628b1fe2d858245900693aa";
logging-data="2392077"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18od8ALDlzejFZflX7isLbT"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:3MNfhG8qAwU5rTP+V8lGjPBFxPM=
View all headers

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.

> Of course 'gigabytes' ALL AT ONCE -vs- "a little at a time, added
> up" are entirely different things.

"A little at a time, added up" is exactly what pipes give you, and is
what allows processing gigabytes of total data, without also needing
gigabytes of memory (or disk) to do the processing.

I regularly re-encode video files using a pipeline of several image
filters from the mjpegtools package, ending up with a pipe to x264 for
final compression (for size reduction purposes).

The source files tend to be around 2-5G. The pipes between the image
filters, and the final pipe to the x264 compressor transfers raw
uncompressed YUV data.

The raw uncompressed YUV data for an hours worth of 1080p video is
about 336GiB of data (way more data than I have RAM to store it all,
and slightly more than the total free space available right now on the
1.9T disk I run the encodes from). Not one byte of that 336GiB of raw
YUV data that passes through the pipes ever touches disk storage. The
only data in disk files are the source, compressed, video file, and the
final result, also compressed, video file.

Subject: Re: Are We Back to the "Wars" Now ?
From: Lew Pitcher
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sun, 24 Nov 2024 15:48 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.os.linux.misc
Subject: Re: Are We Back to the "Wars" Now ?
Date: Sun, 24 Nov 2024 15:48:49 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <vhvht1$28nn4$1@dont-email.me>
References: <Sp-cnSz8UupYQaf6nZ2dnZfqnPednZ2d@earthlink.com>
<vhmm4c$hnbj$1@dont-email.me> <vhmn2t$hv8i$3@dont-email.me>
<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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 24 Nov 2024 16:48:50 +0100 (CET)
Injection-Info: dont-email.me; posting-host="76e623aa3f0a186f7e2e752e482ecf5b";
logging-data="2383588"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181HlMLXwegpuDM95YgAOOazTKB05e20Eo="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:wQlzH30e/LtB1sTSw3BVRdiJrNk=
View all headers

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]

--
Lew Pitcher
"In Skills We Trust"

Subject: Re: Are We Back to the "Wars" Now ?
From: Rich
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Sun, 24 Nov 2024 16:56 UTC
References: 1 2 3 4 5 6 7 8 9 10 11 12
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
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=
View all headers

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.

Pages:1234

rocksolid light 0.9.8
clearnet tor