From: Livio Soares <livio@eecg.toronto.edu>
To: FENG ZHOU <zhfeng.osprey@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How to optimize system time for such case?
Date: Thu, 2 Nov 2006 07:34:36 -0500 [thread overview]
Message-ID: <20061102123436.GA6440@eecg.toronto.edu> (raw)
In-Reply-To: <b3c691930611020052k4cee7582lf58942c1b1151916@mail.gmail.com>
Hi Feng,
FENG ZHOU writes:
> Hello, all
> I am optimizing a compiler and I believe there is a bug in such
> compile. Currently, I have a test case, which is a scientific
> application, has a lot of system time. This is weird, because this
> case does not have many system calls. Meanwhile, compiled at another
> option, I found all the "system time" are gone! So, I assume there is
> some problem in the first one (though both binary produce correct
> result). I used some performance tuning tool and found the hottest
> address for CPU privilege level change event is: 0xa000000100001a70.
> This address is not in code or data segment. Now, I am kinda stuck
> here. My question is: how to find what this address is? Or find out
> what is the cause of the "system time"? Thanks in advance.
>
> PS: the platform is Itanium 2.
This address is from inside the kernel. On the Itanium arch, kernel starts at
0xa000000100000000
So you want the to see what function in your kernel is at address 0x1a70.
Looking at arch/ia64/kernel/ivt.S, it could either be an "Instruction Key Miss",
which starts at address 0x1800, but I'm not sure that function reaches your
address. Also, the "page_fault" code is right below the ikey_miss code, so that
could be a culprit. To make sure, please get your kernel binary (vmlinux) and
disassemble it with objdump. Check in which function the 0x1a70 address lies.
If it's a "Instruction Key Miss", your compiler is _probably_ generating
instructions incorrectly. If it's page-faults, well, data is being accessed
differently.
Also, Oprofile is a tool that is worth learning how to use:
http://oprofile.sf.net/
good luck,
Livio
next prev parent reply other threads:[~2006-11-02 12:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <b3c691930611020047p4a59206aj3fc3060e2f74e426@mail.gmail.com>
2006-11-02 8:52 ` FENG ZHOU
2006-11-02 12:34 ` Livio Soares [this message]
2006-11-02 9:10 Daniel J Blueman
[not found] ` <b3c691930611020116n6ee14112lff7632be72e7df71@mail.gmail.com>
2006-11-02 9:27 ` Daniel J Blueman
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=20061102123436.GA6440@eecg.toronto.edu \
--to=livio@eecg.toronto.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=zhfeng.osprey@gmail.com \
/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
all inboxes | Powered by JetHome®