From: Mikael Pettersson <mikpe@csd.uu.se>
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: 2.5 SYSENTER context-switch overhead on P4 :-(
Date: Sun, 5 Jan 2003 21:33:37 +0100 (MET) [thread overview]
Message-ID: <200301052033.VAA07415@harpo.it.uu.se> (raw)
I've measured the cost of the two wrmsr()'s added to the
context-switch path to support SYSENTER in 2.5 kernels.
Here's the data (clock cycles, averaged):
CPU wrmsr only only
type both cs esp
---- ---- --- ---
P4 2.4GHz (Xeon) 1722 860 863
P4 1.7GHz (Willamette) 1642 816 817
P3 800MHz (Coppermine) 158 76 76
P3 450MHz (Katmai) 216 105 105
P2 233MHz (Deschutes) 176 88 88
P2 233MHz (Klamath) 150 75 75
The other implementation with keeps the MSRs constant and
uses a trampoline stack might be a better alternative.
/Mikael
reply other threads:[~2003-01-05 20:25 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=200301052033.VAA07415@harpo.it.uu.se \
--to=mikpe@csd.uu.se \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.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®