All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harald.Krammer@hkr.at (Harald Krammer)
To: linux-arm-kernel@lists.infradead.org
Subject: SRAM performance optimization (PXA270)
Date: Mon, 03 Jan 2011 09:31:27 +0100	[thread overview]
Message-ID: <4D21895F.9090807@hkr.at> (raw)

Hello,
I am currently running a PXA270 520MHz system with a 104 MHz DRAM. Now I
need to optimize my system. The analysis showed me (with the help of
valgrind, gettimeofday, size,...) that a poor cache hit rate is present.
So I came to the conclusion that the SRAM will help me, because it is
clocked with 208 MHz.

Now the question: how?

My first test was to map few data of my application into the SRAM via
the mmap system call and so I got a performance boost of ~4%.  I know
from my tests that the code-cache hit rate is poor too, so the code
should be placed into the SRAM. How I can do that?
My current idea is to write a so-library with code and load it into the
SRAM.  The effort looks a little bit complex and  the disadvantages are
debugging and  core file analysis (gdb needs also patches). So in case
of any problems in the code it will be hard to find it.
BTW, -fPIC code (position-independent code) costs around 3 % performance
in my case. I have never thought about that, but it is logical.

Exists better solution?
e.g. fixed map-address with modified loader ?, or exists a kernel patch
to locate few parts of the kernel into SRAM?

Thanks for any ideas or comments
Nice greetings
Harald

-- 

Harald Krammer

Mobil +43.(0) 664. 130 59 58
Mail: Harald.Krammer (at) hkr.at

                 reply	other threads:[~2011-01-03  8:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4D21895F.9090807@hkr.at \
    --to=harald.krammer@hkr.at \
    --cc=linux-arm-kernel@lists.infradead.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 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.