mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mahmood Naderan <nt_mahmood@yahoo.com>
To: Mike Galbraith <umgwanakikbuti@gmail.com>
Cc: Jack Carrozzo <jack@crepinc.com>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: Thread Scheduler
Date: Sun, 23 Mar 2014 04:01:18 -0700 (PDT)	[thread overview]
Message-ID: <1395572478.74811.YahooMailNeo@web141601.mail.bf1.yahoo.com> (raw)
In-Reply-To: <1395282203.11039.24.camel@marge.simpson.net>







>On Thursday, March 20, 2014 6:53 AM, Mike Galbraith <umgwanakikbuti@gmail.com> wrote:
>
>marge:~ # man -k setscheduler getscheduler
>sched_setscheduler (2) - set and get scheduling policy/parameters
>sched_setscheduler (3p) - set scheduling policy and parameters (REALTIME)
>sched_getscheduler (2) - set and get scheduling policy/parameters
>sched_getscheduler (3p) - get scheduling policy (REALTIME)





OK I read them and it seems that in order to change the scheduler, I have to write a C code and call the sched_set* functions. Please correct that if I am wrong.

So in order to use my custom scheduler, I have to do the following steps.

1- Write my  code using the APIs and save that in kernel/sched_custom.c
2- Invoke sched_custom.c in kernel/sched.c
3- Recompile the kernel source
4- Reboot using the new kernel
5- write a C code and call sched_setschedule() to use my scheduler.

Is that all? Your reply is appreciated.


Regards,
Mahmood 

  reply	other threads:[~2014-03-23 11:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-19  9:57 Mahmood Naderan
2014-03-19 11:27 ` Mike Galbraith
2014-03-19 11:34   ` Mahmood Naderan
2014-03-19 12:06     ` Jack Carrozzo
2014-03-19 20:01       ` Mahmood Naderan
2014-03-20  2:23         ` Mike Galbraith
2014-03-23 11:01           ` Mahmood Naderan [this message]
2014-03-23 14:05             ` Mark Knecht
2014-03-23 14:27               ` Mahmood Naderan
2014-03-23 15:04                 ` Mark Knecht
2014-03-24 20:30             ` Andreas Mohr

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=1395572478.74811.YahooMailNeo@web141601.mail.bf1.yahoo.com \
    --to=nt_mahmood@yahoo.com \
    --cc=jack@crepinc.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=umgwanakikbuti@gmail.com \
    /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®