From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: HOWTO: lightning fast Emacs on Linux multicore Date: Sun, 09 Nov 2014 00:07:55 +0100 Organization: Aioe.org NNTP Server Message-ID: <871tpdl29g.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415488224 12278 80.91.229.3 (8 Nov 2014 23:10:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Nov 2014 23:10:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 09 00:10:18 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XnF98-0002NK-6j for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Nov 2014 00:10:18 +0100 Original-Received: from localhost ([::1]:37049 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnF97-0003xB-FU for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Nov 2014 18:10:17 -0500 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 51 Original-NNTP-Posting-Host: feB02bRejf23rfBm51Mt7Q.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:9y9RVv+LQMPGdmPdMbHRmOReSLU= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:208575 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100853 Archived-At: 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