public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: John Richard Moser <nigelenki@comcast.net>
To: linux-kernel@vger.kernel.org
Subject: Can context switches be faster?
Date: Thu, 12 Oct 2006 11:44:56 -0400	[thread overview]
Message-ID: <452E62F8.5010402@comcast.net> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Can context switches be made faster?  This is a simple question, mainly
because I don't really understand what happens during a context switch
that the kernel has control over (besides storing registers).

Linux ported onto the L4-Iguana microkernel is reported to be faster
than the monolith[1]; it's not like microkernels are faster, but the
L4-Iguana apparently just has super awesome context switching code:

   Wombat's context-switching overheads as measured by lmbench on an
   XScale processor are up to thirty times less than those of native
   Linux, thanks to Wombat profiting from the implementation of fast
   context switches in L4-embedded.

The first question that comes into my mind is, obviously, is this some
special "fast context switch" code for only embedded systems; or is it
possible to work this on normal systems?

The second is, if it IS possible to get faster context switches in
general use, can the L4 context switch methods be used in Linux?  I
believe L4 is BSD licensed-- at least the files in their CVS repo that I
looked at have "BSD" stamped on them.  Maybe some of the code can be
examined, adopted, adapted, etc.

If it's not possible to speed up context switches, the classical
question would probably be.. why not?  ;)  No use knowing a thing and
not understanding it; you get situations like this right here... :)

[1]http://l4hq.org/
- --
    We will enslave their women, eat their children and rape their
    cattle!
                  -- Bosc, Evil alien overlord from the fifth dimension
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIVAwUBRS5i9ws1xW0HCTEFAQKHtw/+PtjvtkfynX0uItgpa2zocbo8/hadu4kp
dGmxI9eBouUc0T5GDjX7hHYolaIFswuNWyrnELU6uE4WeQ6l5BFnobc1FCiHLVBE
7cZlr9FaFw3r7Ohb4AJBTLKXRYP3h107SnccxJLcqVqspwmzs6lZHaXCU9vrxpCW
Xaam8bSBUrqJ3tIPalM20Nl4SrVF0clMYlKRT2LdD3/TFdN2e60m9sczyGEnLVT/
Co+/JpQ5qxk7DqjXJHr0N5a0CmgjlTZQHEjtvfcPlrKa5CprLECrYx2aJHgs+nIz
CXf9L2z3oiE4yWADK5+zXlJWcF7+pvspIsI9rQDdHoO2xFUzguiVup9XJOLbytpV
yN0dVrOWaAXQMBtrYCInOtA6ynpAZ+hTv2EBSHRaOC+mnxcDTBSqJrj979RrKGlj
Mz282LaSRDL4XPq9d8LwrnuPHIoqGGfj0wUKwmxC19vDfGOk3Y1I/frvcRgnjlb1
TwG/QPgiGcXXVTgEDeogqgq+DRPmuoxxXo+OPMgA4441BzgqkCzxmjLA0uQL15dd
CrAO8NF1fOzvWCvAQO8DhSaGGOikeur4BdkwnF6/eTQYA7QGewaCVdY0u6Q2dhAF
wrGho4pGaEh/ev59/KsHvtSD88SfTUsLigTgGrwiRTufUm4XVbr5AzldTPUMUkUU
+jRWrqbwkLM=
=IDvt
-----END PGP SIGNATURE-----

             reply	other threads:[~2006-10-12 15:45 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-12 15:44 John Richard Moser [this message]
2006-10-12 15:53 ` Can context switches be faster? John Richard Moser
2006-10-12 17:19 ` Russell King
2006-10-12 18:25   ` John Richard Moser
2006-10-12 18:37     ` Arjan van de Ven
2006-10-12 18:56       ` John Richard Moser
2006-10-12 19:02         ` Arjan van de Ven
2006-10-13 11:05       ` James Courtier-Dutton
2006-10-13 14:51         ` Chase Venters
2006-10-12 18:20 ` Phillip Susi
2006-10-12 18:29   ` John Richard Moser
2006-10-13  2:53     ` Andrew James Wade
2006-10-13  5:29       ` John Richard Moser
2006-10-13 16:56         ` Andrew James Wade
2006-10-13 17:24           ` John Richard Moser
2006-10-12 19:57 ` Chris Friesen
2006-10-12 20:23   ` John Richard Moser
2006-10-12 20:29     ` Arjan van de Ven
2006-10-12 20:36       ` John Richard Moser
2006-10-12 20:35     ` Jeremy Fitzhardinge
2006-10-13 23:32       ` Andreas Mohr
2006-10-13 23:47         ` David Lang
2006-10-14  0:14         ` Jeremy Fitzhardinge
2006-10-14  0:30         ` Alan Cox
2006-10-14  0:14           ` Jeremy Fitzhardinge

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=452E62F8.5010402@comcast.net \
    --to=nigelenki@comcast.net \
    --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