From: Imran Khan <kimran@codeaurora.org>
To: linux-arm-kernel@lists.infradead.org
Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Perf degradation seen with thread_info stored in sp_el0
Date: Fri, 24 Feb 2017 19:11:55 +0530 [thread overview]
Message-ID: <72e51627-9155-96f2-f7a9-1be8a8198930@codeaurora.org> (raw)
Hi,
I am observing some degradation in context switch performance (reported by sched benchmark of perf), after including the change
to keep thread_info in sp_el0:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6cdf9c7ca687e01840d0215437620a20263012fc
However, if I use D0 to store the same information, I see that performance improves.
For example, I am getting following numbers for the above mentioned scenarios:
Thread info obtained from stack:
/data/local # ./perf bench sched messaging -g 5 -l 500
# Running 'sched/messaging' benchmark:
# 20 sender and receiver processes per group
# 5 groups == 200 processes run
Total time: 2.911 [sec]
Thread info obtained from sp_el0:
/data/local # ./perf bench sched messaging -g 5 -l 500
# Running 'sched/messaging' benchmark:
# 20 sender and receiver processes per group
# 5 groups == 200 processes run
Total time: 3.590 [sec]
Thread info obtained from D0:
/data/local # ./perf bench sched messaging -g 5 -l 500
# Running 'sched/messaging' benchmark:
# 20 sender and receiver processes per group
# 5 groups == 200 processes run
Total time: 3.103 [sec]
So keeping thread_info in sp_el0 is resulting in degradation of around 23% , while keeping the same in D0 is
resulting in degradation of about 6-7%. Of course so far my test cases are not involving cases where D0 might
get changed in kernel space itself e.g. snippets under kernel_neon_begin/end and taking care of those cases
will have further overhead.
But right now I just wanted to have a feedback regarding, what are the possible complications I may face if
I try to keep thread_info in D0 and whether such a solution will be feasible or not.
Moreover is there any other alternative way to get rid of this performance degradation.
Thanks and Regards,
Imran
--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a\nmember of the Code Aurora Forum, hosted by The Linux Foundation
reply other threads:[~2017-02-24 13:42 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=72e51627-9155-96f2-f7a9-1be8a8198930@codeaurora.org \
--to=kimran@codeaurora.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®