From: Shin-ichiro KAWASAKI <kawasaki@juno.dti.ne.jp>
To: linux-sh@vger.kernel.org
Subject: qemu-sh CF access perormance
Date: Tue, 31 Mar 2009 13:19:24 +0000 [thread overview]
Message-ID: <49D2185C.4050909@juno.dti.ne.jp> (raw)
Hi. I have a question related to qemu-sh.
I use qemu-sh r2d emulation and userland on compact flush as qemu disk image,
to investigate why qemu-sh system emulation is slower than qemu-arm.
For example, it takes only around 1 second to compile simple hello.c with
gcc on qemu-arm system emulation. On the other hand, it takes around 40
seconds on qemu-sh system emulation.
This compile time (40 secs) reduces to less than 6 seconds, if I repeat to
invoke "% gcc hello.c". Then I guess,
- disk cache reduces the compile time
- and compact flush access performance is rather bad on qemu-sh r2d system
I investigated what happens on CF access, and found
- the ioread/write16_rep() function call in ata_sff_data_xfer() placed in
"drivers/ata/libata-sff.c", cause tlb miss exception,
- and the exception is handled by handle_trapped_io() in
"arch/sh/kernel/io_trapped.c".
I'd like to ask following questions to linux-sh experts,
- Why such io-traps are used to access CF?
- Will this io-traps are used for SH7785LCR's SD card access?
I guess these io-traps can be the reason why gcc takes so much time on qemu-sh.
Thank you for reading this mail.
Any comments or any explanations will be appreciated.
Regards,
Shin-ichiro KAWASAKI
next reply other threads:[~2009-03-31 13:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-31 13:19 Shin-ichiro KAWASAKI [this message]
2009-04-01 4:22 ` qemu-sh CF access perormance Magnus Damm
2009-04-01 15:25 ` Shin-ichiro KAWASAKI
2009-04-02 3:32 ` Paul Mundt
2009-04-02 14:36 ` Shin-ichiro KAWASAKI
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=49D2185C.4050909@juno.dti.ne.jp \
--to=kawasaki@juno.dti.ne.jp \
--cc=linux-sh@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