GNU bug report logs - #2790
emacs 22.1.1 cannot open 5GB file on 64GB 64-bit Linux box

Previous Next

Package: emacs;

Reported by: Mike Coleman <tutufan <at> gmail.com>

Date: Thu, 26 Mar 2009 16:00:03 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#2790: closed (emacs 22.1.1 cannot open 5GB file on 64GB
 64-bit Linux box)
Date: Mon, 12 Sep 2011 03:04:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 12 Sep 2011 05:59:16 +0300
with message-id <8339g2xy7v.fsf <at> gnu.org>
and subject line Re: bug#2790: emacs 22.1.1 cannot open 5GB file on 64GB 64-bit Linux box
has caused the GNU bug report #2790,
regarding emacs 22.1.1 cannot open 5GB file on 64GB 64-bit Linux box
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
2790: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=2790
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Mike Coleman <tutufan <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: emacs 22.1.1 cannot open 5GB file on 64GB 64-bit Linux box
Date: Thu, 26 Mar 2009 10:50:35 -0500
I'm trying to open a large (between 4GB and 5GB) file on a x86-64
Linux box that has 64GB of RAM.  I'm getting the error message
"Maximum buffer size exceeded".  I'm able to create 32GB strings in
Python on this box, so I don't believe it's a ulimit problem or
anything like that.

The contents of /proc/cpuinfo say that the CPU has 48 virtual bits.
I'm guessing that emacs uses maybe six bits or so for overhead, but
that doesn't seem like enough to be causing my problem.

Given the error message, it seems like emacs probably has an internal
idea of a maximum buffer size, but apropos doesn't turn up anything.

I'm sure this has been discussed and I've tried to find these
discussions, but I don't seem to be able to track down the current
thinking on this subject.

Is this a know limitation or a bug?  Can someone who knows provide a
quick summary?

Thanks,
Mike



[Message part 3 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: 2790-done <at> debbugs.gnu.org, tutufan <at> gmail.com
Subject: Re: bug#2790: emacs 22.1.1 cannot open 5GB file on 64GB 64-bit Linux
	box
Date: Mon, 12 Sep 2011 05:59:16 +0300
> From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
> Date: Mon, 12 Sep 2011 00:10:05 +0200
> Cc: 2790 <at> debbugs.gnu.org
> 
> Mike Coleman <tutufan <at> gmail.com> writes:
> 
> > I'm trying to open a large (between 4GB and 5GB) file on a x86-64
> > Linux box that has 64GB of RAM.  I'm getting the error message
> > "Maximum buffer size exceeded".
> 
> A lot of work has gone into making Emacs 24 usable for visiting buffers
> that are larger than 2GB.  But I'm not sure if Emacs 24 is quite there
> yet.
> 
> Has anybody tried this lately?

We are there.  Before I removed the 2GB limit hat was artificially put
there to avoid crashes, I actually visited a file larger than 2GB (I
think it was 3GB and change) and made sure I can move in it, edit it,
and save it.

So I'm closing this bug.


This bug report was last modified 13 years and 315 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.