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: Tue, 18 Oct 2011 09:33:23 -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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1318944866 25370 80.91.229.12 (18 Oct 2011 13:34:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 18 Oct 2011 13:34:26 +0000 (UTC) Cc: Peter Dyballa , eggert@cs.ucla.edu, 8884@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 18 15:34:21 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 1RG9oC-00009B-RU for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Oct 2011 15:34:20 +0200 Original-Received: from localhost ([::1]:48218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RG9oB-0006tp-Lb for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Oct 2011 09:34:19 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RG9o4-0006tg-0e for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2011 09:34:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RG9ny-0003Gk-2P for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2011 09:34:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RG9ny-0003Ga-0L for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2011 09:34:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RG9os-0005XJ-44 for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2011 09:35: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: Tue, 18 Oct 2011 13:35: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.131894489221266 (code B ref 8884); Tue, 18 Oct 2011 13:35:02 +0000 Original-Received: (at 8884) by debbugs.gnu.org; 18 Oct 2011 13:34:52 +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 1RG9og-0005Wv-Ii for submit@debbugs.gnu.org; Tue, 18 Oct 2011 09:34:52 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RG9oe-0005Wj-Oj for 8884@debbugs.gnu.org; Tue, 18 Oct 2011 09:34:49 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAO1/nU5MCqLO/2dsb2JhbABEqGSBBoFuAQEEAVYjBQsLNBIUGA0kiBO3HYgbBKEqhEU X-IronPort-AV: E=Sophos;i="4.69,365,1315195200"; d="scan'208";a="142688971" Original-Received: from 76-10-162-206.dsl.teksavvy.com (HELO ceviche.home) ([76.10.162.206]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 18 Oct 2011 09:33:23 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id B85A4660B6; Tue, 18 Oct 2011 09:33:23 -0400 (EDT) In-Reply-To: (Eli Zaretskii's message of "Tue, 18 Oct 2011 06:55:09 -0400") 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: Tue, 18 Oct 2011 09:35: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:52788 Archived-At: >> 4 GiB is 16 times that value, quite a bit more. Maths with large >> numbers, greater than 2**28, works. > Exactly. So with this option, you can: > . visit files or have buffers up to 4GB Actually, it will usually be less than 4GB, it depends on the amount of space the OS gives us (it can be as little as 2GB). E.g. you definitely won't be able to open two files of 2.5GB each. The current buffers.texi is fairly clear: A buffer's size cannot be larger than some maximum, which is defined by the largest buffer position representable by the @dfn{Emacs integer} data type. This is because Emacs tracks buffer positions using that data type. For typical 64-bit machines, the maximum buffer size enforced by the data types is @math{2^61 - 2} bytes, or about 2 EiB. For typical 32-bit machines, the maximum is @math{2^29 - 2} bytes, or about 512 MiB. Buffer sizes are also limited by the size of Emacs's virtual memory. So w.r.t accessing large files, --with-wide-int pushes the limit from 512MB to "a bit less than 4GB". That's one of the reasons why I'm not convinced it's worth the trouble, tho admittedly, the zone between 512MB and 4GB might contain a fair number of mbox files, so it can be useful for Rmail users. > None of these is possible without this option. The first of these two > advantages is the more important one: Emacs can now access the largest > files supported by the OS, instead of having a more-or-less arbitrary > limit below that. Of course, it's actually not "the largest files supported by the OS", since most OSes nowadays happily handle files larger than 4GB, even on 32bit systems. Stefan