all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bob Proulx <bob@proulx.com>
To: help-gnu-emacs@gnu.org
Subject: Re: HOWTO: lightning fast Emacs on Linux multicore
Date: Sun, 16 Nov 2014 14:39:40 -0700	[thread overview]
Message-ID: <20141116142736830858969@bob.proulx.com> (raw)
In-Reply-To: <87sihin9h1.fsf@debian.uxu>

Emanuel Berg wrote:
> Bob Proulx writes:
> > A tool I like a lot for visualizing this is the bar
> > graphs in 'htop'. You might try it. I expect you
> > will see that during normal operation all cpus are
> > going to get processes.
> 
> Yes, htop(1) is great, only the colors (light cyan and
> green) I don't like.

That sounds like you want to turn off colors.  There is always 'export
TERM=vt100' to disable terminal colors everywhere if you like. :-)

But I know we just chatted about sources.list where you want syntax
coloring.  So is this simply another case where you want color but you
want a different color theme?  I assume it is possible to set
different colors for htop.  I have never bothered to look.

> Here is a screenshot of htop and top(1) together:
>     http://user.it.uu.se/~embe8573/dumps/tops.png
> Can you see anything interesting?

I see that both cpus are getting work.  Other than that not really.
The load is so low at 0.2 that there isn't enough going on to be
interestingly resource stressful.

Just as a general statement other useful tools are iotop and nettop
too.

> > You didn't say what type of cpu you have but let me
> > say a word about Intel Hyper-Threading
> > (https://en.wikipedia.org/wiki/Hyper-threading) in
> 
> That was a lot to digest :) I'll read that Wikipedia
> article later and see if that clarifies things.
>
> My CPU is, according to lscpu(1):
> Model name:            AMD Athlon(tm) 64 X2 Dual Core Processor 3800+

You have a true dual-core.  Not hyperthreaded.  So you can ignore all
of the discussion about hyperthreading.  Which is good actually.

> Indeed, thats how it works in general. However, I do
> web browsing, mail, Usenet, all programming including
> compilation, actually I do everything in Emacs by now.
> So I think it makes sense for the system to not strive
> for general performance, but for special-treatment of
> the number one process. Anyway that's the reasoning
> behind this method, if it holds, let's just say it is
> complicated and difficult to quantify. It feels faster
> is all I know for sure.

But even when working almost entirely within emacs the emacs process
itself will depending upon what you are doing eventually spawn
children processes.  I would want all of those to be able to make use
of both cpu cores.  Locking it all down to one cpu would be slower for
me.

You say you do compilation within emacs.  Does this mean that emacs is
sharing the single locked core with the compilation process too?  That
would be a prime example where I would want emacs and any make -j2
parallel compilation to share the cpu.  Locking all of that to one cpu
would definitely be worse there.

Bob



  reply	other threads:[~2014-11-16 21:39 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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

  git send-email \
    --in-reply-to=20141116142736830858969@bob.proulx.com \
    --to=bob@proulx.com \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.