* [PATCH 0/1] [meta-realtime] Add rt-app, schedtool, define core-image-realtime, and append recipies-kernel
@ 2013-03-16 10:16 ` Insop Song
2013-03-16 10:16 ` [PATCH 1/1] " Insop Song
2013-03-17 4:04 ` [linux-yocto] [PATCH 0/1] " Bruce Ashfield
0 siblings, 2 replies; 6+ messages in thread
From: Insop Song @ 2013-03-16 10:16 UTC (permalink / raw)
To: insop.song, bruce.ashfield, dvhart, linux-yocto, yocto
meta-realtime layer for testing sched_deadline and other real-time applications
Add rt-app, schedtool, define core-image-realtime, and append recipies-kernel
*applications tested are shown below:
1. rt-app
- "rt-app" is a test application that starts multiple periodic threads
in order to simulate a real-time periodic load
- run example
root@qemux86:~# rt-app -t 100000:35000:d -D 1
[rt-app] <notice> [0] Using SCHED_DEADLINE policy:
[rt-app] <notice> [0] starting thread with period: 100000, exec:
35000,deadline: 100000, priority: 10
[rt-app] <notice> [0] Locking pages in memory
idx period min_et max_et rel_st start end
deadline dur. slack Budget Used Budget
0 100000 35000 35000 64705 305724113 305759126
305824105 35013 64979
...
0 100000 35000 35000 965099 306624507 306659526
306724105 35019 64578
[rt-app] <notice> [0] Exiting.
2. schedtool
- scheduler test tool
- run example
root@qemux86:~# schedtool -E -t 10000:100000 -a 0 -e yes > /dev/null&
root@qemux86:~# schedtool -E -t 30000:100000 -a 0 -e yes > /dev/null&
root@qemux86:~# jobs
[1]- Running schedtool -E -t 10000:100000 -a 0 -e yes
> /dev/null &
[2]+ Running schedtool -E -t 30000:100000 -a 0 -e yes
> /dev/null &
$ top
Mem: 33616K used, 84308K free, 0K shrd, 2684K buff, 13904K cached
CPU: 37% usr 5% sys 0% nic 56% idle 0% io 0% irq 0% sirq
Load average: 911.65 428.84 84.32 35501/62 715
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
714 688 root R 2352 2% 28% yes
713 688 root R 2352 2% 9% yes
715 688 root R 2724 2% 4% top
Insop Song (1):
Add rt-app, schedtool, define core-image-realtime, and append
recipies-kernel
recipes-extended/images/core-image-realtime.bb | 12 +++++++++
recipes-kernel/linux/linux-yocto_3.8.bbappend | 9 +++++++
...adline-as-a-default-to-go-around-yocto-bu.patch | 26 ++++++++++++++++++
recipes-tools/rt-app/rt-app.bb | 28 ++++++++++++++++++++
recipes-tools/schedtool-dl/schedtool-dl.bb | 23 ++++++++++++++++
5 files changed, 98 insertions(+)
create mode 100644 recipes-extended/images/core-image-realtime.bb
create mode 100644 recipes-kernel/linux/linux-yocto_3.8.bbappend
create mode 100644 recipes-tools/rt-app/files/0001-set-with-deadline-as-a-default-to-go-around-yocto-bu.patch
create mode 100644 recipes-tools/rt-app/rt-app.bb
create mode 100644 recipes-tools/schedtool-dl/schedtool-dl.bb
--
1.7.9.5
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/1] [meta-realtime] Add rt-app, schedtool, define core-image-realtime, and append recipies-kernel
2013-03-16 10:16 ` [PATCH 0/1] [meta-realtime] Add rt-app, schedtool, define core-image-realtime, and append recipies-kernel Insop Song
@ 2013-03-16 10:16 ` Insop Song
2013-03-17 4:04 ` [linux-yocto] [PATCH 0/1] " Bruce Ashfield
1 sibling, 0 replies; 6+ messages in thread
From: Insop Song @ 2013-03-16 10:16 UTC (permalink / raw)
To: insop.song, bruce.ashfield, dvhart, linux-yocto, yocto
*applications tested
1. rt-app
- "rt-app" is a test application that starts multiple periodic threads
in order to simulate a real-time periodic load
- run example
root@qemux86:~# rt-app -t 100000:35000:d -D 1
[rt-app] <notice> [0] Using SCHED_DEADLINE policy:
[rt-app] <notice> [0] starting thread with period: 100000, exec:
35000,deadline: 100000, priority: 10
[rt-app] <notice> [0] Locking pages in memory
idx period min_et max_et rel_st start end
deadline dur. slack Budget Used Budget
0 100000 35000 35000 64705 305724113 305759126
305824105 35013 64979
...
0 100000 35000 35000 965099 306624507 306659526
306724105 35019 64578
[rt-app] <notice> [0] Exiting.
2. schedtool
- scheduler test tool
- run example
root@qemux86:~# schedtool -E -t 10000:100000 -a 0 -e yes > /dev/null&
root@qemux86:~# schedtool -E -t 30000:100000 -a 0 -e yes > /dev/null&
root@qemux86:~# jobs
[1]- Running schedtool -E -t 10000:100000 -a 0 -e yes
> /dev/null &
[2]+ Running schedtool -E -t 30000:100000 -a 0 -e yes
> /dev/null &
$ top
Mem: 33616K used, 84308K free, 0K shrd, 2684K buff, 13904K cached
CPU: 37% usr 5% sys 0% nic 56% idle 0% io 0% irq 0% sirq
Load average: 911.65 428.84 84.32 35501/62 715
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
714 688 root R 2352 2% 28% yes
713 688 root R 2352 2% 9% yes
715 688 root R 2724 2% 4% top
---
recipes-extended/images/core-image-realtime.bb | 12 +++++++++
recipes-kernel/linux/linux-yocto_3.8.bbappend | 9 +++++++
...adline-as-a-default-to-go-around-yocto-bu.patch | 26 ++++++++++++++++++
recipes-tools/rt-app/rt-app.bb | 28 ++++++++++++++++++++
recipes-tools/schedtool-dl/schedtool-dl.bb | 23 ++++++++++++++++
5 files changed, 98 insertions(+)
create mode 100644 recipes-extended/images/core-image-realtime.bb
create mode 100644 recipes-kernel/linux/linux-yocto_3.8.bbappend
create mode 100644 recipes-tools/rt-app/files/0001-set-with-deadline-as-a-default-to-go-around-yocto-bu.patch
create mode 100644 recipes-tools/rt-app/rt-app.bb
create mode 100644 recipes-tools/schedtool-dl/schedtool-dl.bb
diff --git a/recipes-extended/images/core-image-realtime.bb b/recipes-extended/images/core-image-realtime.bb
new file mode 100644
index 0000000..d449e69
--- /dev/null
+++ b/recipes-extended/images/core-image-realtime.bb
@@ -0,0 +1,12 @@
+require recipes-core/images/core-image-minimal-dev.bb
+
+DEPENDS = "linux-yocto"
+
+IMAGE_FEATURES += "package-management ssh-server-dropbear"
+EXTRA_IMAGE_FEATURES = "tools-debug debug-tweaks tools-profile dbg-pkgs"
+
+IMAGE_INSTALL = "\
+ ${CORE_IMAGE_BASE_INSTALL} \
+ rt-app \
+ schedtool-dl \
+ "
diff --git a/recipes-kernel/linux/linux-yocto_3.8.bbappend b/recipes-kernel/linux/linux-yocto_3.8.bbappend
new file mode 100644
index 0000000..175ab91
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto_3.8.bbappend
@@ -0,0 +1,9 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+KBRANCH_qemux86 = "standard/edf"
+KBRANCH_fri2 = "standard/edf"
+
+SRCREV_machine_qemux86 = "62d98f6b12f91cc7419b88dfa2e0abe077c94f9f"
+SRCREV_machine_fri2 = "62d98f6b12f91cc7419b88dfa2e0abe077c94f9f"
+
+KERNEL_FEATURES_append =" cfg/edf.scc"
diff --git a/recipes-tools/rt-app/files/0001-set-with-deadline-as-a-default-to-go-around-yocto-bu.patch b/recipes-tools/rt-app/files/0001-set-with-deadline-as-a-default-to-go-around-yocto-bu.patch
new file mode 100644
index 0000000..a697e89
--- /dev/null
+++ b/recipes-tools/rt-app/files/0001-set-with-deadline-as-a-default-to-go-around-yocto-bu.patch
@@ -0,0 +1,26 @@
+From 041b2b65889c44c47f90313c5bf9ce61effa96df Mon Sep 17 00:00:00 2001
+From: Insop Song <insop.song@gmail.com>
+Date: Sat, 9 Mar 2013 01:23:24 -0800
+Subject: [PATCH] set "--with-deadline" as a default to go around yocto build
+ error on deadline enabled
+
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index a5e2990..64e57e4 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -34,7 +34,7 @@ AC_ARG_WITH([deadline],
+ [AS_HELP_STRING([--with-deadline],
+ [Add support for SCHED_DEADLINE])],
+ [],
+- [with_deadline=no])
++ [with_deadline=yes])
+
+ AS_IF([test "x$with_deadline" != xno],
+ [AC_DEFINE([DLSCHED], [1], [Define if you have SCHED_DEADLINE support])
+--
+1.7.9.5
+
diff --git a/recipes-tools/rt-app/rt-app.bb b/recipes-tools/rt-app/rt-app.bb
new file mode 100644
index 0000000..acce437
--- /dev/null
+++ b/recipes-tools/rt-app/rt-app.bb
@@ -0,0 +1,28 @@
+DESCRIPTION = "rt-app is a test application that starts multiple periodic threads in order to simulate a real-time periodic load"
+SECTION = "devel"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;endline=339;md5=e43fc16fccd8519fba405f0a0ff6e8a3"
+PR = "r1"
+
+SRCREV = "e81cbe9f76ee298feded17bb7455d4deb2fb32af"
+
+SRC_URI = "git://github.com/gbagnoli/rt-app.git \
+ file://0001-set-with-deadline-as-a-default-to-go-around-yocto-bu.patch \
+ "
+
+S = "${WORKDIR}/git"
+
+inherit autotools gettext pkgconfig
+
+do_configure_prepend() {
+ autoreconf --install --verbose --force
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 0755 src/rt-app ${D}${bindir}
+}
+
+FILES_{PN} = "${bindir}/rt-app"
+
+PARALLEL_MAKE = ""
diff --git a/recipes-tools/schedtool-dl/schedtool-dl.bb b/recipes-tools/schedtool-dl/schedtool-dl.bb
new file mode 100644
index 0000000..5592175
--- /dev/null
+++ b/recipes-tools/schedtool-dl/schedtool-dl.bb
@@ -0,0 +1,23 @@
+DESCRIPTION = "schedtool-dl (scheduler test tool) for deadline scheduler"
+SECTION = "devel"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://Makefile;endline=55;md5=e4b4e8ed9c2132e1d727a1bb5e3bd984"
+PR = "r1"
+
+SRC_URI = "git://github.com/jlelli/schedtool-dl.git;protocol=git"
+SRCREV = "cd4e3f2f5a33c3266e25e447e8efbacb3b8c88da"
+
+S = "${WORKDIR}/git"
+
+do_compile() {
+ oe_runmake
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 0755 schedtool ${D}${bindir}
+}
+
+FILES_{PN} = "${bindir}/schedtool"
+
+PARALLEL_MAKE = ""
--
1.7.9.5
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [linux-yocto] [PATCH 0/1] [meta-realtime] Add rt-app, schedtool, define core-image-realtime, and append recipies-kernel
2013-03-16 10:16 ` [PATCH 0/1] [meta-realtime] Add rt-app, schedtool, define core-image-realtime, and append recipies-kernel Insop Song
2013-03-16 10:16 ` [PATCH 1/1] " Insop Song
@ 2013-03-17 4:04 ` Bruce Ashfield
2013-03-17 7:36 ` Insop Song
1 sibling, 1 reply; 6+ messages in thread
From: Bruce Ashfield @ 2013-03-17 4:04 UTC (permalink / raw)
To: Development list for the linux-yocto*.git Linux kernel repositories
Cc: yocto, dvhart
On 13-03-16 6:16 AM, Insop Song wrote:
> meta-realtime layer for testing sched_deadline and other real-time applications
>
> Add rt-app, schedtool, define core-image-realtime, and append recipies-kernel
>
This looks good to me now, I still think we'll have some confusion
between the core "rt" images and core-image-realtime that we are
introducing here.
I may rename it core-image-realtime-extended as part of the merge,
if that's acceptable to you ? I think it will be something that
we'll need to revisit at some point, but that's not a good reason
to hold this back anymore.
I'll merge, do a quick test and push this out on Monday.
Cheers,
Bruce
> *applications tested are shown below:
>
> 1. rt-app
> - "rt-app" is a test application that starts multiple periodic threads
> in order to simulate a real-time periodic load
>
> - run example
>
> root@qemux86:~# rt-app -t 100000:35000:d -D 1
> [rt-app]<notice> [0] Using SCHED_DEADLINE policy:
> [rt-app]<notice> [0] starting thread with period: 100000, exec:
> 35000,deadline: 100000, priority: 10
> [rt-app]<notice> [0] Locking pages in memory
> idx period min_et max_et rel_st start end
> deadline dur. slack Budget Used Budget
> 0 100000 35000 35000 64705 305724113 305759126
> 305824105 35013 64979
> ...
> 0 100000 35000 35000 965099 306624507 306659526
> 306724105 35019 64578
> [rt-app]<notice> [0] Exiting.
>
> 2. schedtool
> - scheduler test tool
> - run example
> root@qemux86:~# schedtool -E -t 10000:100000 -a 0 -e yes> /dev/null&
> root@qemux86:~# schedtool -E -t 30000:100000 -a 0 -e yes> /dev/null&
> root@qemux86:~# jobs
> [1]- Running schedtool -E -t 10000:100000 -a 0 -e yes
> > /dev/null&
> [2]+ Running schedtool -E -t 30000:100000 -a 0 -e yes
> > /dev/null&
>
> $ top
> Mem: 33616K used, 84308K free, 0K shrd, 2684K buff, 13904K cached
> CPU: 37% usr 5% sys 0% nic 56% idle 0% io 0% irq 0% sirq
> Load average: 911.65 428.84 84.32 35501/62 715
> PID PPID USER STAT VSZ %VSZ %CPU COMMAND
> 714 688 root R 2352 2% 28% yes
> 713 688 root R 2352 2% 9% yes
> 715 688 root R 2724 2% 4% top
>
> Insop Song (1):
> Add rt-app, schedtool, define core-image-realtime, and append
> recipies-kernel
>
> recipes-extended/images/core-image-realtime.bb | 12 +++++++++
> recipes-kernel/linux/linux-yocto_3.8.bbappend | 9 +++++++
> ...adline-as-a-default-to-go-around-yocto-bu.patch | 26 ++++++++++++++++++
> recipes-tools/rt-app/rt-app.bb | 28 ++++++++++++++++++++
> recipes-tools/schedtool-dl/schedtool-dl.bb | 23 ++++++++++++++++
> 5 files changed, 98 insertions(+)
> create mode 100644 recipes-extended/images/core-image-realtime.bb
> create mode 100644 recipes-kernel/linux/linux-yocto_3.8.bbappend
> create mode 100644 recipes-tools/rt-app/files/0001-set-with-deadline-as-a-default-to-go-around-yocto-bu.patch
> create mode 100644 recipes-tools/rt-app/rt-app.bb
> create mode 100644 recipes-tools/schedtool-dl/schedtool-dl.bb
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-yocto] [PATCH 0/1] [meta-realtime] Add rt-app, schedtool, define core-image-realtime, and append recipies-kernel
2013-03-17 4:04 ` [linux-yocto] [PATCH 0/1] " Bruce Ashfield
@ 2013-03-17 7:36 ` Insop Song
2013-03-18 14:21 ` Bruce Ashfield
0 siblings, 1 reply; 6+ messages in thread
From: Insop Song @ 2013-03-17 7:36 UTC (permalink / raw)
To: Bruce Ashfield
Cc: yocto, dvhart,
Development list for the linux-yocto*.git Linux kernel repositories
On Sat, Mar 16, 2013 at 9:04 PM, Bruce Ashfield
<bruce.ashfield@windriver.com> wrote:
>
> This looks good to me now, I still think we'll have some confusion
> between the core "rt" images and core-image-realtime that we are
> introducing here.
>
> I may rename it core-image-realtime-extended as part of the merge,
> if that's acceptable to you ? I think it will be something that
> we'll need to revisit at some point, but that's not a good reason
> to hold this back anymore.
>
> I'll merge, do a quick test and push this out on Monday.
"core-image-realtime-extended" or "core-image-rt-extended (to be
aligned with existing core-image-rt)" or something along this line
sounds fine to me.
I was thinking of updating my patch, but it would be better if you
decide the final name, so I won't update the patch for now.
Or if you know which name is the best, then just let me know, I will
update the patch and send it to you.
Thank you,
Insop
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-yocto] [PATCH 0/1] [meta-realtime] Add rt-app, schedtool, define core-image-realtime, and append recipies-kernel
2013-03-17 7:36 ` Insop Song
@ 2013-03-18 14:21 ` Bruce Ashfield
2013-03-18 15:46 ` Insop Song
0 siblings, 1 reply; 6+ messages in thread
From: Bruce Ashfield @ 2013-03-18 14:21 UTC (permalink / raw)
To: Insop Song
Cc: yocto, dvhart,
Development list for the linux-yocto*.git Linux kernel repositories
On 13-03-17 03:36 AM, Insop Song wrote:
> On Sat, Mar 16, 2013 at 9:04 PM, Bruce Ashfield
> <bruce.ashfield@windriver.com> wrote:
>
>>
>> This looks good to me now, I still think we'll have some confusion
>> between the core "rt" images and core-image-realtime that we are
>> introducing here.
>>
>> I may rename it core-image-realtime-extended as part of the merge,
>> if that's acceptable to you ? I think it will be something that
>> we'll need to revisit at some point, but that's not a good reason
>> to hold this back anymore.
>>
>> I'll merge, do a quick test and push this out on Monday.
>
> "core-image-realtime-extended" or "core-image-rt-extended (to be
> aligned with existing core-image-rt)" or something along this line
> sounds fine to me.
I went with core-image-rt-extended this morning.
The changes have been merged, briefly tested and pushed to the
yocto layer.
I've also created a docs/ subirectory in the layer, if you have
test steps, READMEs or other information to contribute, that's the
place we should put it.
We can tweak this as required from here.
Cheers,
Bruce
>
> I was thinking of updating my patch, but it would be better if you
> decide the final name, so I won't update the patch for now.
> Or if you know which name is the best, then just let me know, I will
> update the patch and send it to you.
>
> Thank you,
>
> Insop
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-yocto] [PATCH 0/1] [meta-realtime] Add rt-app, schedtool, define core-image-realtime, and append recipies-kernel
2013-03-18 14:21 ` Bruce Ashfield
@ 2013-03-18 15:46 ` Insop Song
0 siblings, 0 replies; 6+ messages in thread
From: Insop Song @ 2013-03-18 15:46 UTC (permalink / raw)
To: Bruce Ashfield
Cc: yocto, dvhart,
Development list for the linux-yocto*.git Linux kernel repositories
On Mon, Mar 18, 2013 at 7:21 AM, Bruce Ashfield
<bruce.ashfield@windriver.com> wrote:
>
>
> I went with core-image-rt-extended this morning.
>
> The changes have been merged, briefly tested and pushed to the
> yocto layer.
>
> I've also created a docs/ subirectory in the layer, if you have
> test steps, READMEs or other information to contribute, that's the
> place we should put it.
>
> We can tweak this as required from here.
>
Thank you and will update the docs dir soon.
Regards,
Insop
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-03-18 15:47 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <insop.song@gmail.com>
2013-03-16 10:16 ` [PATCH 0/1] [meta-realtime] Add rt-app, schedtool, define core-image-realtime, and append recipies-kernel Insop Song
2013-03-16 10:16 ` [PATCH 1/1] " Insop Song
2013-03-17 4:04 ` [linux-yocto] [PATCH 0/1] " Bruce Ashfield
2013-03-17 7:36 ` Insop Song
2013-03-18 14:21 ` Bruce Ashfield
2013-03-18 15:46 ` Insop Song
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.