Sujet : Re: The joy of pipes
De : spamtrap42 (at) *nospam* jacob21819.net (Robert Riches)
Groupes : comp.os.linux.miscDate : 19. Nov 2024, 05:50:15
Autres entêtes
Organisation : none-at-all
Message-ID : <slrnvjo687.vg5.spamtrap42@one.localnet>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : slrn/1.0.3 (Linux)
On 2024-11-18,
186282@ud0s4.net <
186283@ud0s4.net> wrote:
...
>
As I said somewhere, if your child processes are sending
megabytes back to the parent you're DOING SOMETHING WRONG.
Oh?
Let's take my example of an older Raspberry Pi model 1 with less
than 1GB of RAM and only 4GB of SD card "disk", and process a
video stream several GB in total length, from an mplayer process
that will write only to a file and refuses to write to stdout,
where the stream needs to be sent over the LAN to a machine with
enough spinning rust to store the stream.
Would temporary files work? Not really. A named pipe let
mplayer write to a named file. Even if having two processes
shuffling the data wasn't the most efficient, the Pi handled it
quite well.
-- Robert Richesspamtrap42@jacob21819.net(Yes, that is one of my email addresses.)