[Top][All Lists]

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

Re: warn-maybe-out-of-memory

From: Dmitry Antipov
Subject: Re: warn-maybe-out-of-memory
Date: Fri, 11 Jul 2014 13:43:31 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 07/11/2014 01:02 PM, Eli Zaretskii wrote:

I mean the cases where the file size is borderline, near the available
memory, but slightly less than that.

We may warn if file size reaches or exceeds, say, 90% of available memory.

Then how does this feature make sense?  It is, according to you,
unpredictable and uncontrollable.

This depends on OS and VM pressure. For example, on GNU/Linux if I have
just slightly above 8G free:

$ free
             total       used       free     shared    buffers     cached
Mem:      16127204    7762072    8365132      68248      84396    6401276
-/+ buffers/cache:    1276400   14850804

and asks for 10G, the kernel may shrink page cache by 2G and satisfy
10G mmap request, thus fooling the logic I'm using to issue the warning.
But under some circumstances, this may be not so; in short, I think that
we need to support more OSes and gather more feedback from users.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]