[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
HOWTO: lightning fast Emacs on Linux multicore
From: |
Emanuel Berg |
Subject: |
HOWTO: lightning fast Emacs on Linux multicore |
Date: |
Sun, 09 Nov 2014 00:07:55 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
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
- HOWTO: lightning fast Emacs on Linux multicore,
Emanuel Berg <=
- Re: HOWTO: lightning fast Emacs on Linux multicore, Marcin Borkowski, 2014/11/09
- Message not available
- Re: HOWTO: lightning fast Emacs on Linux multicore, Emanuel Berg, 2014/11/15
- Re: HOWTO: lightning fast Emacs on Linux multicore, York Zhao, 2014/11/15
- Message not available
- Re: HOWTO: lightning fast Emacs on Linux multicore, Emanuel Berg, 2014/11/16
- Re: HOWTO: lightning fast Emacs on Linux multicore, Jean-Jacques Rétorré, 2014/11/16
- Re: HOWTO: lightning fast Emacs on Linux multicore, Emanuel Berg, 2014/11/16
- Re: HOWTO: lightning fast Emacs on Linux multicore, Jean-Jacques Rétorré, 2014/11/16
- Re: HOWTO: lightning fast Emacs on Linux multicore, Emanuel Berg, 2014/11/16
Re: HOWTO: lightning fast Emacs on Linux multicore, Pascal J. Bourguignon, 2014/11/15