Emacs To read Large Files ~14GB

Recently I have downloaded emacs on my system to edit large files as it claims. When trying opening large files, the emacs gives me a problem that buffer size is exceeded.

Is there a way to increase it?! I have a system with memory of 24 GB!


Why do you want to edit huge 14Gb files? I believe it is wrong to want to do that.

You don't have the human time to read all (or even most) of such a huge file. What kind of file is it? (some log file, some MySQL dump file???)

So you are searching some specific pattern inside that file. Do yourself a favor, write a script (or even a program) to do that, and to edit (if relevant) your big file where needed...

Very probably, you don't care of most of the content of that huge file. Only a few lines matter to you.

Or split the file into smaller pieces (e.g. with csplit), and edit the relevant smaller chunks, then rebuild the huge file with cat

I've never used it but vlf.el is an elisp hack to view overly large files. I believe it uses insert-file-contents, but reads from an offset so as to do something akin to pagination.

There are some notes on the wiki but no solutions apart from vlf.el which I've linked to above.

Are you running the 64-bit version of emacs? Check with file, you should get something like this:

$ file /usr/bin/emacs
/usr/bin/emacs: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped

Type M-:(log most-positive-fixnum 2) to see whether the return value is closer to 64 or 32. If the latter, compile or get yourself a 64-bit Emacs. Also look at M-x find-file-literally if large files cause sluggishness; it should disable some time consuming operations such as font-lock-mode.

Need Your Help

concate exculding NULL variable

php mysql concatenation explode

I have several variables, which i receives from upon entry in one of my form via multiple select options. Total 4 select options are available which user can select maximum all or else he can select

Javascript .toLowerCase/.toUpperCase in mixed mode

javascript mode uppercase lowercase mixed

I try to code some function. I want to change every 2nd letter .toUpperCase. I get it to work with str.char[0].toUpperCase but have to do it with the whole char numbers manually (char[0],char[1],ch...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.