mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Richard B. Johnson" <root@chaos.analogic.com>
To: Garboua Nahil Y Contr WRALC/MASFE <Nahil.Garboua@robins.af.mil>
Cc: Mathieu Segaud <matt@minas-morgul.org>, linux-kernel@vger.kernel.org
Subject: RE: Context switch Tick
Date: Wed, 2 Jun 2004 16:52:04 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.53.0406021650150.1020@chaos> (raw)
In-Reply-To: <200406022013.i52KDu1l025256@cits-darla.robins.af.mil>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 831 bytes --]

On Wed, 2 Jun 2004, Garboua Nahil Y Contr WRALC/MASFE wrote:

> Okay, vmstat show me the cs according to current load, what is the Maximum
> tick rate?
> A process requests a 1 microseconds sleep, or even 500 nanoseconds, how long
> does it actually sleep, that is why I need to know max tick rate for context
> switch for a given CPU.

Can't you just measure it?

Script started on Wed Jun  2 16:48:51 2004
# ./tester
Testing CPU Speed (once at start of program)
CPU speed = 2803766848 Hz
Cycles to make the two function calls = 88
It took 55625156 cpu cycles or 19839.437091 microseconds.
# exit
Script done on Wed Jun  2 16:48:57 2004

That was for a usleep(1). Source attached.


Cheers,
Dick Johnson
Penguin : Linux version 2.4.26 on an i686 machine (5570.56 BogoMips).
            Note 96.31% of all statistics are fiction.


[-- Attachment #2: Type: APPLICATION/octet-stream, Size: 973 bytes --]

  reply	other threads:[~2004-06-02 20:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-02 20:15 Garboua Nahil Y Contr WRALC/MASFE
2004-06-02 20:52 ` Richard B. Johnson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-06-02 17:07 Garboua Nahil Y Contr WRALC/MASFE

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=Pine.LNX.4.53.0406021650150.1020@chaos \
    --to=root@chaos.analogic.com \
    --cc=Nahil.Garboua@robins.af.mil \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matt@minas-morgul.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®