unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* HOWTO: lightning fast Emacs on Linux multicore
@ 2014-11-08 23:07 Emanuel Berg
  2014-11-10  2:05 ` Marcin Borkowski
                   ` (4 more replies)
  0 siblings, 5 replies; 17+ messages in thread
From: Emanuel Berg @ 2014-11-08 23:07 UTC (permalink / raw)
  To: help-gnu-emacs

A couple of months ago I got a multicore computer.
Better yet, it is a dualcore :)

I thought I'd share a trade-secret for all us
Emacs-only users.

There is a saying that the common case is the one that
should be optimized. That's what I'm doing here, with
the common case being - Emacs.

(This assumes a Debian Linux but I don't think it'd
look that different on other distributions or even
systems.)

First, confirm you have a multicore with

    lscpu | egrep '^CPU\(s\)'

Then, go to

    /etc/default/grub

and, as superuser, insert or change the line with
GRUB_CMDLINE_LINUX_DEFAULT into this:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet isolcpus=1"

Then

    sudo update-grub

and

    shutdown -h now -r # or otherwise reboot

After rebooting

    ps -eo psr,comm | grep ' 1 '

to see that almost no processes are executing on
CPU 1. But life in the vault is about to change...

Launch Emacs like this:

    taskset -c 1 emacs

Now, Emacs has a core to itself and should run much
faster, at least for normal usage.

-- 
underground experts united


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2014-11-17  3:42 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-08 23:07 HOWTO: lightning fast Emacs on Linux multicore Emanuel Berg
2014-11-10  2:05 ` Marcin Borkowski
     [not found] ` <mailman.13356.1415585130.1147.help-gnu-emacs@gnu.org>
2014-11-15 19:26   ` Emanuel Berg
2014-11-16  1:13     ` York Zhao
     [not found]     ` <mailman.13774.1416100398.1147.help-gnu-emacs@gnu.org>
2014-11-16  7:46       ` Emanuel Berg
2014-11-16  7:57         ` Jean-Jacques Rétorré
2014-11-16  8:07           ` Emanuel Berg
2014-11-16  8:43             ` Jean-Jacques Rétorré
2014-11-16 20:34               ` Emanuel Berg
2014-11-16  2:55 ` Pascal J. Bourguignon
2014-11-16  7:41   ` Emanuel Berg
2014-11-16 19:49 ` Bob Proulx
2014-11-16 20:25   ` Eli Zaretskii
     [not found] ` <mailman.13827.1416167406.1147.help-gnu-emacs@gnu.org>
2014-11-16 21:04   ` Emanuel Berg
2014-11-16 21:39     ` Bob Proulx
2014-11-17  3:42       ` Eli Zaretskii
     [not found]     ` <mailman.13834.1416173992.1147.help-gnu-emacs@gnu.org>
2014-11-16 21:58       ` Emanuel Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).