Re: High wake up latencies with FAIR_USER_SCHED

2008-01-31 Thread Peter Zijlstra
On Thu, 2008-01-31 at 13:49 +0100, Guillaume Chazarain wrote: > On 1/31/08, Peter Zijlstra <[EMAIL PROTECTED]> wrote: > > Does something like this help? > > I made it compile by open coding undefined macros instead of > refactoring the whole file. > But it didn't affect wake up latencies. Ah, we

Re: High wake up latencies with FAIR_USER_SCHED

2008-01-31 Thread Guillaume Chazarain
On 1/31/08, Peter Zijlstra <[EMAIL PROTECTED]> wrote: > Does something like this help? I made it compile by open coding undefined macros instead of refactoring the whole file. But it didn't affect wake up latencies. Thanks. -- Guillaume -- To unsubscribe from this list: send the line "unsubscri

Re: High wake up latencies with FAIR_USER_SCHED

2008-01-31 Thread Peter Zijlstra
On Mon, 2008-01-28 at 21:13 +0100, Guillaume Chazarain wrote: > Unfortunately it seems to not be completely fixed, with this script: > > #!/usr/bin/python > > import os > import time > > SLEEP_TIME = 0.1 > SAMPLES = 5 > PRINT_DELAY = 0.5 > > def print_wakeup_latency(): > times = [] > l

Re: High wake up latencies with FAIR_USER_SCHED

2008-01-29 Thread Srivatsa Vaddagiri
On Tue, Jan 29, 2008 at 04:53:56PM +0100, Guillaume Chazarain wrote: > I just thought about something to restore low latencies with > FAIR_GROUP_SCHED, but it's possibly utter nonsense, so bear with me > ;-) The idea would be to reverse the trees upside down. The scheduler > would only see tasks (o

Re: High wake up latencies with FAIR_USER_SCHED

2008-01-29 Thread Guillaume Chazarain
On Jan 29, 2008 6:47 AM, Srivatsa Vaddagiri <[EMAIL PROTECTED]> wrote: > IMHO this is expected results and if someone really needs to cut down > this latency, they can reduce sysctl_sched_latency (which will be bad > from perf standpoint, as we will cause more cache thrashing with that). Thank yo

Re: High wake up latencies with FAIR_USER_SCHED

2008-01-28 Thread Srivatsa Vaddagiri
On Mon, Jan 28, 2008 at 09:13:53PM +0100, Guillaume Chazarain wrote: > Unfortunately it seems to not be completely fixed, with this script: The maximum scheduling latency of a task with group scheduler is: Lmax = latency to schedule group entity at level0 + latency to sche

Re: High wake up latencies with FAIR_USER_SCHED

2008-01-28 Thread Guillaume Chazarain
Unfortunately it seems to not be completely fixed, with this script: #!/usr/bin/python import os import time SLEEP_TIME = 0.1 SAMPLES = 5 PRINT_DELAY = 0.5 def print_wakeup_latency(): times = [] last_print = 0 while True: start = time.time() time.sleep(SLEEP_TIME)

Re: High wake up latencies with FAIR_USER_SCHED

2008-01-28 Thread Guillaume Chazarain
Hi Srivatsa, On Jan 28, 2008 3:31 AM, Srivatsa Vaddagiri <[EMAIL PROTECTED]> wrote: > Given that sysctl_sched_wakeup_granularity is set to 10ms by default, > this doesn't sound abnormal. Indeed, by lowering sched_wakeup_granularity I get much better latencies, but lowering sched_latency seems to

Re: High wake up latencies with FAIR_USER_SCHED

2008-01-28 Thread Ingo Molnar
* Srivatsa Vaddagiri <[EMAIL PROTECTED]> wrote: > NEW_FAIR_SLEEPERS feature gives credit for sleeping only to tasks and > not group-level entities. With the patch attached, I could see that > wakeup latencies with FAIR_USER_SCHED are restored to the same level > as !FAIR_USER_SCHED. > > Howev

Re: High wake up latencies with FAIR_USER_SCHED

2008-01-27 Thread Srivatsa Vaddagiri
On Sun, Jan 27, 2008 at 09:01:15PM +0100, Guillaume Chazarain wrote: > I noticed some strangely high wake up latencies with FAIR_USER_SCHED > using this script: > We have two busy loops with UID=1. > And UID=2 maintains the running median of its wake up latency. > I get these latencies: > > # .