Re: Sets update

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Dňa 21. júla 2024 12:29:44 UTC používateľ Kerin Millar <kfm@xxxxxxxxxxxxx> napísal:

>You have a point. If on a severely RAM-constrained system, you may prefer to avoid the use of asynchronous pipelines and generate temporary files instead. Doing so would minimise RAM consumption.

Correct me, if i am wrong, please...

AFAIK memory is not problem in pipes. Yes, any pipe consumes some
memory, but AFAIK it is somewhat limited (i don't know exact numbers)
and if full, the writing process is paused, thus stops to produce more
output, and thus not consumes more memory.

On other side, nowadays linux systems uses tmpfs for /tmp, thus storing
output in temp file can be even worse (in mean of RAM) than using pipes,
as whole output is in that file. Storing temporary file on disk is possible too,
but doing that too often can drain Flash's lifetime, as modern Flash storage
are really limited in that (in comparison with magnetic disks). IIRC the disk
was used for pipes in old Unixes...

But yes, without temp file, one cannot produce the same IP list multiple
times (reading it into variable is the same), but at least second temp file
have to be avoided...

>You are definitely not the only one to think so.

:-) nice to know

regards


-- 
Slavko
https://www.slavino.sk/





[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux