unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: HOWTO: lightning fast Emacs on Linux multicore
Date: Sun, 09 Nov 2014 00:07:55 +0100	[thread overview]
Message-ID: <871tpdl29g.fsf@debian.uxu> (raw)

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


             reply	other threads:[~2014-11-08 23:07 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-08 23:07 Emanuel Berg [this message]
2014-11-10  2:05 ` HOWTO: lightning fast Emacs on Linux multicore 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871tpdl29g.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).