mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jesper Juhl <juhl-lkml@dif.dk>
To: Arun Srinivas <getarunsri@hotmail.com>
Cc: rostedt@goodmis.org, linux-kernel@vger.kernel.org
Subject: Re: sched /HT processor
Date: Sun, 3 Apr 2005 13:17:28 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.62.0504031253060.2448@dragon.hyggekrogen.localhost> (raw)
In-Reply-To: <BAY10-F53F98A846BEB2918701804D93A0@phx.gbl>

On Sun, 3 Apr 2005, Arun Srinivas wrote:

> 
> I looked at my "include/asm-i386/param.h" and the HZ value is 1000.So, I
> suppose the timer interrupt frequency is 1000 times per sec. or once every 1
> millisec.
> 
> So, is scheduler_tick() ( for resceduling) called only once every 1 ms?? I am
> measuring the time when 2  of my processes are scheduled in a HT processor.So,
> the possible timedifference of when my 2 processes are scheduled can be only
> the following:
> 
> 1) 0 (if both of my processes are scheduled @ the same time since its a HT)
> 2) 1ms ( this is the min. possible time diff.
> 3) some value greater than 1 ms
> Is the above argument correct?

A reschedule can happen once every ms, but also upon returning to 
userspace and when returning from an interrupt handler, and also when 
something in the kernel explicitly calls schedule() or sleeps (which in 
turn results in a call to schedule()). And each CPU runs schedule() 
independently.
At least that's my understanding of it - if I'm wrong I hope someone on 
the list will correct me.


-- 
Jesper Juhl



  reply	other threads:[~2005-04-03 11:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bpH71yEXU00000397@hotmail.com>
2005-04-03  0:37 ` Arun Srinivas
2005-04-03  1:17   ` Steven Rostedt
2005-04-03  2:16     ` Arun Srinivas
2005-04-03  4:22       ` Steven Rostedt
2005-04-03  7:52     ` Arun Srinivas
2005-04-03 11:17       ` Jesper Juhl [this message]
2005-04-03 15:31         ` Steven Rostedt
2005-04-03 22:52           ` Arun Srinivas
2005-04-03 23:08             ` Steven Rostedt
2005-04-04 23:06               ` scheduler/SCHED_FIFO behaviour Arun Srinivas
2005-04-04 23:17                 ` Steven Rostedt
2005-04-05  2:16                   ` Arun Srinivas
2005-04-05  3:33                     ` Steven Rostedt
2005-04-03 22:52           ` sched /HT processor Arun Srinivas

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.62.0504031253060.2448@dragon.hyggekrogen.localhost \
    --to=juhl-lkml@dif.dk \
    --cc=getarunsri@hotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rostedt@goodmis.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®