From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#8884: closed (Re: bug#8884: wide-int crash) Date: Wed, 19 Oct 2011 10:44:15 -0400 Message-ID: References: <4D3AFF8D-3F70-4C2C-A053-49C3FB2C1167@Freenet.DE> <90642F8F-4E64-4EE8-ADEF-4140147845B4@Freenet.DE> <4E9D11DA.7000303@cs.ucla.edu> <23C33A8D-E7C1-49A1-9477-12AC9826BA06@Freenet.DE> <4E9D9D8D.6020306@cs.ucla.edu> <344ABBE3-5E69-44D6-8330-BF200B3FDEAD@Freenet.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319035581 30071 80.91.229.12 (19 Oct 2011 14:46:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 19 Oct 2011 14:46:21 +0000 (UTC) Cc: 8884@debbugs.gnu.org, Paul Eggert , Andreas Schwab To: Peter Dyballa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 19 16:46:12 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RGXOL-0004Lw-5Q for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Oct 2011 16:45:13 +0200 Original-Received: from localhost ([::1]:48229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGXOK-0005Vm-IB for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Oct 2011 10:45:12 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGXOC-0005Qm-3e for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 10:45:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGXO7-0002PQ-Sa for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 10:45:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGXO7-0002PG-Pi for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 10:44:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RGXP8-0003HW-BF for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 10:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Oct 2011 14:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8884 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8884-submit@debbugs.gnu.org id=B8884.131903553112579 (code B ref 8884); Wed, 19 Oct 2011 14:46:02 +0000 Original-Received: (at 8884) by debbugs.gnu.org; 19 Oct 2011 14:45:31 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGXOb-0003Go-64 for submit@debbugs.gnu.org; Wed, 19 Oct 2011 10:45:30 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGXOX-0003GY-GH for 8884@debbugs.gnu.org; Wed, 19 Oct 2011 10:45:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EANnhnk5MCqLO/2dsb2JhbABEqHOBBoFuAQEEAVYjBQsLNBIUGA0kiBO1EogbBKEshEU X-IronPort-AV: E=Sophos;i="4.69,372,1315195200"; d="scan'208";a="143057846" Original-Received: from 76-10-162-206.dsl.teksavvy.com (HELO pastel.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 19 Oct 2011 10:44:16 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id E6E2958CEC; Wed, 19 Oct 2011 10:44:15 -0400 (EDT) In-Reply-To: (Peter Dyballa's message of "Wed, 19 Oct 2011 15:59:14 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 19 Oct 2011 10:46:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:52855 Archived-At: >> It may simply be due to fragmentation: while there may still be more >> than 2GB of unused memory, there may not be a single contiguous unused >> chunk of 2GB. > Not likely. Why so? > VM is on a dedicated disk volume of almost 12 GB. Irrelevant. The fragmentation is in the process's address space (limited at most to 4GB). Think of the following scenario: 1- start Emacs: 30MB used, + (4096 - 30)MB free. 2- load 2GB file: 30MB + 2048MB + 2018MB free 3- look at the file, causing some allocation: 30MB + 2048MB + 1MB + 2017MB free 4- delete the large buffer 30MB + 2048MB free + 1MB + 2017MB free 5- run a few minor commands, e.g. visit some small files. 32MB + 2046MB free + 1MB + 2017MB free 6- try to load 2G file again Oops there's no hole large enough to put the 2048MB file. -- Stefan