All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clark Williams <williams@redhat.com>
To: Brian Hutchinson <b.hutchman@gmail.com>
Cc: linux-rt-users@vger.kernel.org, Jon Masters <jcm@redhat.com>
Subject: Re: Seeing 800us of latency with cyclictest on a PC with 2.6.26.8 rt patch. Is that normal?
Date: Thu, 12 Mar 2009 07:24:19 -0500	[thread overview]
Message-ID: <20090312072419.3c4447b1@redhat.com> (raw)
In-Reply-To: <loom.20090311T192407-52@post.gmane.org>

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

On Wed, 11 Mar 2009 19:31:01 +0000 (UTC)
Brian Hutchinson <b.hutchman@gmail.com> wrote:
> 
> Thanks to everyone for all the suggestions.  I wouldn't have thought that 10
> year old desktop hardware could beat the pants off a modern laptop.
> 
>

Almost certainly it's because your old desktop doesn't have lots of
things going on behind-the-scenes in the BIOS. Modern x86/x86_64 h/w
vendors have added lots of outside the OS functions such as thermal
monitoring and special function keys (ala the Thinklight on most
Thinkpads) that are handled via System Management Interrupts (SMI)
directly by the BIOS. If the SMI service routines take long times to do
whatever they're doing, you get unexplained latencies. 

Jon Masters wrote an SMI detector module that we've been using to good
effect to detect and classify SMIs (/me rummages for LKML link).
Actually, I think we've added some stuff since he posted it last, so
I'll poke him to post it again. It's a special purpose module that runs
a function in the stop_machine() mode. The function just polls the TSC
looking for gaps that exceed a certain threshold. Any gap in the TSC
values on a particular core are very good candidates for SMIs.

Clark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkm4/voACgkQHyuj/+TTEp1/xwCgwgY5MprNyQ6Zt1WTMvfNP0sW
jwMAoKTq+aijqZlNA4MzN2vKl/QFf8hD
=asgJ
-----END PGP SIGNATURE-----

  reply	other threads:[~2009-03-12 12:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-10 16:39 Re: Seeing 800us of latency with cyclictest on a PC with 2.6.26.8 rt patch. Is that normal? Matthias Luescher
2009-03-11 19:31 ` Brian Hutchinson
2009-03-12 12:24   ` Clark Williams [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-03-10 14:06 Brian Hutchinson
2009-03-10 14:56 ` Sven-Thorsten Dietrich
2009-03-10 15:40   ` Brian Hutchinson
     [not found]   ` <3d1967ab0903100834s3426b865r652dec7f2bd3de1b@mail.gmail.com>
2009-03-10 16:33     ` Sven-Thorsten Dietrich

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=20090312072419.3c4447b1@redhat.com \
    --to=williams@redhat.com \
    --cc=b.hutchman@gmail.com \
    --cc=jcm@redhat.com \
    --cc=linux-rt-users@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.