From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Arun Srinivas <getarunsri@hotmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: help needed pls. scheduler(kernel 2.6) + hyperthreaded related questions?
Date: Wed, 23 Mar 2005 10:16:20 +1100 [thread overview]
Message-ID: <4240A744.1000306@yahoo.com.au> (raw)
In-Reply-To: <BAY10-F42C3843D362DEB897FCABBD94E0@phx.gbl>
Arun Srinivas wrote:
> Pls. help me. I went through the sched.c for kernel 2.6 and saw that it
> supports
> hyperthreading.I would be glad if someone could answer this question....(if
> am not wrong a HT processor has 2 architectural states and one execution
> unit...i.e., two pipeline streams)
>
> 1)when there are 2 processes a parent and child(created by fork()) do they
> get scheduled @ the same time...ie., when the parent process is put into
> one
> pipeline, do the child also gets scheduled the same time?
>
No.
> 2) what abt in the case of threads(I read tht as opposed to kernel2.4,where
> threads are treated as processes) ..kernel 2.6 treats threads as threads.
> So, when two paired threads get into execution are they always scheduled at
> the same time?
>
No.
> Also, it would be helpful if someone could suggest which part of sched.c
> shud i look into to find out how threads are scheduled for a normal
> processor and for a hyperthreaded processor
>
It is pretty tricky. Basically processes on different CPUs are
scheduled completely independently of one another. The only time
when they may get moved from one CPU to another is with
load_balance, load_balance_newidle, active_load_balance,
try_to_wake_up, sched_exec, wake_up_new_task.
next prev parent reply other threads:[~2005-03-22 23:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-22 22:09 help needed pls. scheduler(kernel 2.6) + hyperthreaded related questions? Arun Srinivas
2005-03-22 23:16 ` Nick Piggin [this message]
2005-03-23 6:07 ` Arun Srinivas
2005-03-23 7:37 ` Nick Piggin
2005-03-23 9:47 ` Arun Srinivas
2005-03-24 0:17 ` Nick Piggin
2005-03-29 3:28 ` sched_setscheduler() and usage issues ....please help Arun Srinivas
2005-03-29 4:40 ` Steven Rostedt
2005-03-29 4:51 ` Lee Revell
2005-03-29 6:03 ` Jan Engelhardt
2005-03-29 11:35 ` Steven Rostedt
2005-03-29 11:38 ` Jan Engelhardt
2005-03-29 11:43 ` Arjan van de Ven
2005-03-29 11:46 ` Jan Engelhardt
2005-03-23 7:07 ` help needed pls. scheduler(kernel 2.6) + hyperthreaded related questions? Jan Engelhardt
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=4240A744.1000306@yahoo.com.au \
--to=nickpiggin@yahoo.com.au \
--cc=getarunsri@hotmail.com \
--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