From: Thorsten Glaser <tg@debian.org>
To: linux-m68k@vger.kernel.org
Subject: Re: Coldfire v4 low performance of read/write to shared memory
Date: Sat, 16 Feb 2013 18:54:34 +0000 (UTC) [thread overview]
Message-ID: <loom.20130216T195126-34@post.gmane.org> (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)
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.
bye,
//mirabilos
PS: Does strace by now know about these two syscalls,
and possibly filter them out? Does qemu’s userspace
emulation provide for them?
next prev parent reply other threads:[~2013-02-16 18:54 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 [this message]
2013-03-07 10:01 ` Lars Michael
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=loom.20130216T195126-34@post.gmane.org \
--to=tg@debian.org \
--cc=linux-m68k@vger.kernel.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