From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Glenn Morris <rgm@gnu.org>
Newsgroups: gmane.emacs.devel
Subject: Re: warn-maybe-out-of-memory
Date: Sun, 13 Jul 2014 19:00:50 -0400
Message-ID: <ggtx6ksw2l.fsf@fencepost.gnu.org>
References: <83egxtax97.fsf@gnu.org> <83d2ddaw52.fsf@gnu.org>
	<53BF6B2F.5030701@yandex.ru> <837g3kbd9g.fsf@gnu.org>
	<53BFA3BB.6090709@yandex.ru> <8361j4b744.fsf@gnu.org>
	<53BFB1C3.9020202@yandex.ru> <jwv61j4j9u9.fsf-monnier+emacs@gnu.org>
	<5kpphafqd9.fsf@fencepost.gnu.org> <53C22ED8.5050206@yandex.ru>
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: ger.gmane.org 1405292464 18308 80.91.229.3 (13 Jul 2014 23:01:04 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 13 Jul 2014 23:01:04 +0000 (UTC)
Cc: Eli Zaretskii <eliz@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca>,
	emacs-devel@gnu.org
To: Dmitry Antipov <dmantipov@yandex.ru>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 14 01:00:57 2014
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Envelope-to: ged-emacs-devel@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1X6SlN-0007GM-HR
	for ged-emacs-devel@m.gmane.org; Mon, 14 Jul 2014 01:00:57 +0200
Original-Received: from localhost ([::1]:53973 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>)
	id 1X6SlN-0004q0-78
	for ged-emacs-devel@m.gmane.org; Sun, 13 Jul 2014 19:00:57 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48071)
	by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@gnu.org>)
	id 1X6SlJ-0004pj-Qy
	for emacs-devel@gnu.org; Sun, 13 Jul 2014 19:00:54 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rgm@gnu.org>) id 1X6SlJ-0005Sz-0F
	for emacs-devel@gnu.org; Sun, 13 Jul 2014 19:00:53 -0400
Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55204)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@gnu.org>)
	id 1X6SlI-0005Sr-TS
	for emacs-devel@gnu.org; Sun, 13 Jul 2014 19:00:52 -0400
Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@gnu.org>)
	id 1X6SlG-0001eQ-Gp; Sun, 13 Jul 2014 19:00:50 -0400
X-Spook: ASIO MP5K-SD advisors LLNL Sears Tower SEAL Team 6 Mafia
X-Ran: y`W0Z#}TeHf6s03V,(PpIAJ\()+{9fhYTWw2<hGuJ>>TH#Y&>4'Ww*fm~fGrV!R?c'x.!0
X-Hue: yellow
X-Attribution: GM
In-Reply-To: <53C22ED8.5050206@yandex.ru> (Dmitry Antipov's message of "Sun,
	13 Jul 2014 11:01:44 +0400")
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
	(bad octet value).
X-Received-From: 2001:4830:134:3::e
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.devel:173017
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/173017>

Dmitry Antipov wrote:

> In the example above, I asked for 10G having just 8G free.

Then it seems just plain wrong for Emacs to warn about that.
I have 6GB of memory on my machine, but the amount "free" according to
your definition is very close to 0 most of the time.

>> The performance of Emacs is pretty poor with large files - the default
>> large-file-warning-threshold is 10MB!

> This may be subject to change without notice :-).

Well, if you manage to improve Emacs's performance in this regard by 3
orders of magnitude, that would be impressive...