public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
From: Lars Michael <lh_post@yahoo.com>
To: linux-m68k@lists.linux-m68k.org
Cc: lh_post@yahoo.com
Subject: Re: Coldfire v4 low performance of read/write to shared memory
Date: Thu, 7 Mar 2013 02:01:39 -0800 (PST)	[thread overview]
Message-ID: <1362650499.60247.YahooMailClassic@web125606.mail.ne1.yahoo.com> (raw)
In-Reply-To: <1360754406.53672.YahooMailClassic@web125605.mail.ne1.yahoo.com>

Lars Michael <lh_post <at> yahoo.com> writes:

At the same time we noticed (by using strace) that there is an excessive and 
continously sequence of system
calls at normal program execusion:

333 (__NR_GET_THREAD_AREA), and 335 (__NR_ATOMIC_CMPXCHG_32)

Thorsten Glaser <tg@xxxxxxxxxx> wrote:

Yes, that is in fact normal. If you stop using programs (and libraries)
that use TLS (thread-local storage) and atomics, you’ll notice a massive
speedup as these syscalls will no longer be issued.

The only way out of this is an ABI breakage, with at least
* set one CPU register aside for the TLS base
* add a VDSO or some other kind of page for “fast syscalls”,
  to optimise away the need for cmpxchg to call into the
  kernel (if possible), and maybe speed up e.g. gettimeofday
* bump time_t to 64 bit (pet peeve of mine)
* … maybe others? I’m not a Linux kernel coder.



Thorsten, thanks for commenting. I am not really familiar with all this, but given what you say is true, is it fair to say that the ColdFire v4 is a 'less optimal' processor for running Linux? A thing to add is that there are no free register left for a TLS base.

Does anybody have really good experience with running Linux on the v4?

Thanks
Lars Horvath

      parent reply	other threads:[~2013-03-07 10:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-13 11:20 Coldfire v4 low performance of read/write to shared memory Lars Michael
2013-02-16 18:54 ` Thorsten Glaser
2013-03-07 10:01 ` Lars Michael [this message]

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=1362650499.60247.YahooMailClassic@web125606.mail.ne1.yahoo.com \
    --to=lh_post@yahoo.com \
    --cc=linux-m68k@lists.linux-m68k.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