From: nilesh.tayade@netscout.com (nilesh)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Query about the realtime processes scheduling.
Date: Thu, 18 Aug 2011 12:51:54 +0530 [thread overview]
Message-ID: <4E4CBD92.3010602@netscout.com> (raw)
In-Reply-To: <4E4CB5D5.7090906@netscout.com>
On Thursday 18 August 2011 12:18 PM, nilesh wrote:
> Hi,
>
> I am not too familiar with Linux scheduler. What I could understand
> theoretically is - the interactive processes get advantage (-5) in priority.
> And hence the effective priority is higher.
>
> Query:
> Is this true for realtime processes ( with SCHED_FIFO/SCHED_RR policy)
> as well? Could the realtime processes be I/O bound or interactive?
>
Please ignore the post.
I should have looked into the code before posting the query. It looks
like the bonus/penalty is only for non-realtime tasks.
2101static int effective_prio(struct task_struct *p)
2102{
2103 p->normal_prio = normal_prio(p);
2104 /*
2105 * If we are RT tasks or we were boosted to RT priority,
2106 * keep the priority unchanged. Otherwise, update priority
2107 * to the normal priority:
2108 */
2109 if (!rt_prio(p->prio))
2110 return p->normal_prio;
2111 return p->prio;
2112}
2113
--
Thanks,
Nilesh
next prev parent reply other threads:[~2011-08-18 7:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-18 6:48 Query about the realtime processes scheduling nilesh
2011-08-18 7:21 ` nilesh [this message]
2011-08-18 16:39 ` Mulyadi Santosa
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=4E4CBD92.3010602@netscout.com \
--to=nilesh.tayade@netscout.com \
--cc=kernelnewbies@lists.kernelnewbies.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.