Re: [PATCH] sched: fix RLIMIT_RTTIME when PI-boosting to RT

2015-03-09 Thread Ingo Molnar
* Brian Silverman wrote: > Here's my test code. Compile with `gcc -pthread -lrt test_pi.c`. It > requires permission to set a realtime scheduling policy of 2 when > running. Mind sending a patch that sticks this testcase into tools/testing/selftests/sched/ or so, with the new 'sched'

Re: [PATCH] sched: fix RLIMIT_RTTIME when PI-boosting to RT

2015-03-09 Thread Brian Silverman
On Mon, Mar 9, 2015 at 1:34 PM, Sebastian Andrzej Siewior wrote: > From what I can tell not beeing a sched guy is that the patch looks > reasonable since the timeout gets only set to zero on enqueue_task_rt(). > Is there something special you do to trigger this? I posted some test code with two

Re: [PATCH] sched: fix RLIMIT_RTTIME when PI-boosting to RT

2015-03-09 Thread Sebastian Andrzej Siewior
* Austin Schuh | 2015-03-05 09:10:47 [-0800]: >ping? Why is this a ping? I haven't seen this in my rt nor in my lkml inbox. Please repost it properly including lkml. >From what I can tell not beeing a sched guy is that the patch looks reasonable since the timeout gets only set to zero on

Re: [PATCH] sched: fix RLIMIT_RTTIME when PI-boosting to RT

2015-03-09 Thread Sebastian Andrzej Siewior
* Austin Schuh | 2015-03-05 09:10:47 [-0800]: ping? Why is this a ping? I haven't seen this in my rt nor in my lkml inbox. Please repost it properly including lkml. From what I can tell not beeing a sched guy is that the patch looks reasonable since the timeout gets only set to zero on

Re: [PATCH] sched: fix RLIMIT_RTTIME when PI-boosting to RT

2015-03-09 Thread Brian Silverman
On Mon, Mar 9, 2015 at 1:34 PM, Sebastian Andrzej Siewior bige...@linutronix.de wrote: From what I can tell not beeing a sched guy is that the patch looks reasonable since the timeout gets only set to zero on enqueue_task_rt(). Is there something special you do to trigger this? I posted some

Re: [PATCH] sched: fix RLIMIT_RTTIME when PI-boosting to RT

2015-03-09 Thread Ingo Molnar
* Brian Silverman br...@peloton-tech.com wrote: Here's my test code. Compile with `gcc -pthread -lrt test_pi.c`. It requires permission to set a realtime scheduling policy of 2 when running. Mind sending a patch that sticks this testcase into tools/testing/selftests/sched/ or so, with the

Re: [PATCH] sched: fix RLIMIT_RTTIME when PI-boosting to RT

2015-03-05 Thread Austin Schuh
ping? On Wed, Feb 18, 2015 at 4:23 PM, wrote: > From: Brian Silverman > > When non-realtime tasks get priority-inheritance boosted to a realtime > scheduling class, RLIMIT_RTTIME starts to apply to them. However, the > counter used for checking this (the same one used for SCHED_RR >

Re: [PATCH] sched: fix RLIMIT_RTTIME when PI-boosting to RT

2015-03-05 Thread Austin Schuh
ping? On Wed, Feb 18, 2015 at 4:23 PM, br...@peloton-tech.com wrote: From: Brian Silverman br...@peloton-tech.com When non-realtime tasks get priority-inheritance boosted to a realtime scheduling class, RLIMIT_RTTIME starts to apply to them. However, the counter used for checking this (the

Re: [PATCH] sched: fix RLIMIT_RTTIME when PI-boosting to RT

2015-02-18 Thread Brian Silverman
Here's my test code. Compile with `gcc -pthread -lrt test_pi.c`. It requires permission to set a realtime scheduling policy of 2 when running. #define _GNU_SOURCE #include #include #include #include #include #include #include #include #include #include static const struct timespec

[PATCH] sched: fix RLIMIT_RTTIME when PI-boosting to RT

2015-02-18 Thread brian
From: Brian Silverman When non-realtime tasks get priority-inheritance boosted to a realtime scheduling class, RLIMIT_RTTIME starts to apply to them. However, the counter used for checking this (the same one used for SCHED_RR timeslices) was not getting reset. This meant that tasks running with

Re: [PATCH] sched: fix RLIMIT_RTTIME when PI-boosting to RT

2015-02-18 Thread Brian Silverman
Here's my test code. Compile with `gcc -pthread -lrt test_pi.c`. It requires permission to set a realtime scheduling policy of 2 when running. #define _GNU_SOURCE #include pthread.h #include unistd.h #include stdio.h #include time.h #include sched.h #include assert.h #include sys/resource.h

[PATCH] sched: fix RLIMIT_RTTIME when PI-boosting to RT

2015-02-18 Thread brian
From: Brian Silverman br...@peloton-tech.com When non-realtime tasks get priority-inheritance boosted to a realtime scheduling class, RLIMIT_RTTIME starts to apply to them. However, the counter used for checking this (the same one used for SCHED_RR timeslices) was not getting reset. This meant