<div dir="auto"><div>Hi Christos,</div><div dir="auto"><br></div><div dir="auto">thanks for the reply. This sounds like great news! But can i just confirm my understanding, so with no changes to the default, if i pipe a 180GiB zip file into it, at max only 7M of RAM will be allocated?<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Thu, 20 Oct 2022, 15:20 Christos Zoulas, <<a href="mailto:christos@zoulas.com">christos@zoulas.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">It will generally allocate and read only up to bytes_max which defaults to 7M and can be set by -P bytes=<div><br></div><div>Best,</div><div><br></div><div>christos<br><div><br><blockquote type="cite"><div>On Oct 20, 2022, at 5:55 AM, Arif Driessen <<a href="mailto:arifd86@gmail.com" target="_blank" rel="noreferrer">arifd86@gmail.com</a>> wrote:</div><br><div><p><u></u><u></u></p><p><u></u>Hello,<u></u></p><u></u><p><u></u><br><u></u></p><u></u><p><u></u>I am using `file` to get the mime-type of blobs of data streamed to me. I open a process and a pipe, and a pass the bytes as they come to me to `file`. Then I close the pipe and wait for `file` to return me a mime-type.<u></u></p><u></u><p><u></u><br><u></u></p><u></u><p><u></u>This works wonderfully, except, I'm worried, that file may be collecting into RAM the entire contents of the buffer as they are being piped.<br><br><u></u></p><u></u><p><u></u>For example, if I am given an 180GiB zip file, and I keep feeding those bytes to the pipe, will it blow up my RAM? Or does `file` employ something cleverl; even if just writing to the file system, or perhaps working on chunks and forgetting the past?<br><br><u></u></p><u></u><p><u></u>Thanks for your help!<br><br><u></u></p><u></u><p><u></u>Arif Driessen<br><u></u></p><u></u><div><br></div><u></u>
-- <br>File mailing list<br><a href="mailto:File@astron.com" target="_blank" rel="noreferrer">File@astron.com</a><br><a href="https://mailman.astron.com/mailman/listinfo/file" target="_blank" rel="noreferrer">https://mailman.astron.com/mailman/listinfo/file</a><br><span id="m_-583133778578176195cid:CBD667B6-5748-4DFD-BDFC-9322973C81A4"><sanitizer.log></span><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u><u></u></div></blockquote></div><br></div></div></blockquote></div></div></div>