public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Wu Zhangjin <wuzhangjin@gmail.com>
To: loongson-dev <loongson-dev@googlegroups.com>,
	linux-kernel <linux-kernel@vger.kernel.org>
Cc: faggioli@etis.sssup.it, raistlin@inux.it,
	Thomas Gleixner <tglx@linutronix.de>,
	Ralf Baechle <ralf@linux-mips.org>,
	Nicholas Mc Guire <der.herr@hofr.at>,
	Qingguo Zhou <zhouqg@gmail.com>, zhangfx <zhangfx@lemote.com>
Subject: SCHED_DEADLINE for MIPS
Date: Sat, 30 Jan 2010 00:54:52 +0800	[thread overview]
Message-ID: <1264784092.21670.81.camel@falcon> (raw)

Hi, All

Just made SCHED_DEADLINE run on my YeeLoong laptop ;)

SCHED_DEADLINE made by Dario Faggioli and Michael Trimarchi, is "a new
scheduling class called SCHED_DEADLINE for the Linux kernel. The
scheduling class implements the real-time scheduling algorithm called
Earliest Deadline First (EDF), one of the most common real-time
scheduling algorithms."

Its homepage:

http://www.evidence.eu.com/content/view/313/390/

and more information about it is available here:

http://gitorious.org/sched_deadline/pages/Home

Thanks very much to the authors, I just cloned it and did some necessary
modification for MIPS to make it work on my YeeLoong laptop with debian
6.0(squeeze), at last, I got a really "deterministic" laptop.

And the information about "SCHED_DEADLINE for MIPS" is listed as
follows:

1. sched_deadline for MIPS

I have put it here:

git://dev.lemote.com/rt4ls.git rt/2.6.31/sched-deadline

It is based on:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git
rt/2.6.31

and

git://gitorious.org/sched_deadline/linux-deadline.git rt-deadline

and the following commits are added(please get more info from the git
repo.):

	SCHED_DEADLINE: added system calls for MIPS
	SCHED_DEADLINE: Fixup of "BUG: scheduling while atomic"

NOTE: If you plan to run it on your board, please remember to add your
board specific RT-preempt support at first.

2. sched_tool for MIPS

git://dev.lemote.com/rt4ls.git rt/schedtool-deadline

The schedtool is based on:

git://gitorious.org/sched_deadline/schedtool-deadline.git

To make the schedtool work on MIPS machine with debian O32 ABI system, I
have fixed the timespec struct and of course, the related system calls'
numbers are added in.

3. Usage (only use YeeLoong as an example)

3.1 Get the latest kernel with RT-preempt and SCHED_DEADLINE support

git://dev.lemote.com/rt4ls.git rt/2.6.31/loongson

3.2 Compile the kernel

A minimal defconfig is provided:

arch/mips/configs/yeeloong_rt_defconfig

and please refer to:

http://www.gitorious.org/sched_deadline/pages/Compile
http://dev.lemote.com/code/rt4ls/wiki/linux-loongson-howto

3.3 Get the schedtool with SCHED_DEADLINE support and compile it

git://dev.lemote.com/rt4ls.git rt/schedtool-deadline

3.4 Run your application with the SCHED_DEADLINE

$ ./schedtool -E -d 100000 -b 10000 -e yes

-E using the SCHED_DEADLINE policy(the old name is SCHED_EDF)
-d deadline
-b budget(runtime)
-e start command with specified policy/priority

Did you want to do some benchmarking on the RT-preempt and
SCHED_DEADLINE for MIPS? please refer to the "Benchmarks and Test Cases
" part of http://rt.wiki.kernel.org and the "Usage, Evaluation,
Examples" parts of http://gitorious.org/sched_deadline/pages/Home

That's all, Enjoy it!

Best Regards,
	Wu Zhangjin


                 reply	other threads:[~2010-01-29 17:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1264784092.21670.81.camel@falcon \
    --to=wuzhangjin@gmail.com \
    --cc=der.herr@hofr.at \
    --cc=faggioli@etis.sssup.it \
    --cc=linux-kernel@vger.kernel.org \
    --cc=loongson-dev@googlegroups.com \
    --cc=raistlin@inux.it \
    --cc=ralf@linux-mips.org \
    --cc=tglx@linutronix.de \
    --cc=zhangfx@lemote.com \
    --cc=zhouqg@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