public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Arun Srinivas <getarunsri@hotmail.com>
Cc: juhl-lkml@dif.dk, LKML <linux-kernel@vger.kernel.org>
Subject: Re: sched /HT processor
Date: Sun, 03 Apr 2005 19:08:06 -0400	[thread overview]
Message-ID: <1112569686.27149.138.camel@localhost.localdomain> (raw)
In-Reply-To: <BAY10-F21A89B2521BD98E6C239C2D93A0@phx.gbl>

On Mon, 2005-04-04 at 04:22 +0530, Arun Srinivas wrote:
> Thanks. yes, a reschedule may not take place after a ms, if the currently 
> running task cannot be preempted by another task.
> 
> (1) But, can a reschedule happen within a millisec (or once a process is 
> scheduled can schedule() be called before the next millisec.) ?
> 

Yes.  For example: a high priority task may be waiting for some IO to
come in. Right after the normal timer interrupt scheduled another task,
the IO may come in and wake the high priority process up. This process
will preempt the other task right away. (ie. less than 1 ms).

> 2) Also in case argument (1) is not true, and I want rescheduling to be done 
> (i.e., schedule() called) in less than 1 ms , can I directly change the HZ 
> value in <asm-i386/param.h> and recompile my kernel so that my timer 
> interrupt will occur frequently?
> 

Well, 1) is true, but you can also increase HZ over 1000 if you like,
but that will usually cause more overhead, since, although a schedule
may not take place every HZ, a timer interrupt will.

-- Steve



  reply	other threads:[~2005-04-03 23:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bpH71yEXU00000397@hotmail.com>
2005-04-03  0:37 ` sched /HT processor 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
2005-04-03 15:31         ` Steven Rostedt
2005-04-03 22:52           ` Arun Srinivas
2005-04-03 23:08             ` Steven Rostedt [this message]
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=1112569686.27149.138.camel@localhost.localdomain \
    --to=rostedt@goodmis.org \
    --cc=getarunsri@hotmail.com \
    --cc=juhl-lkml@dif.dk \
    --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