Re: 2.6.39-rc4+: Kernel leaking memory during FS scanning, regression?

From: Sedat Dilek
Date: Thu Apr 28 2011 - 16:41:14 EST


On Thu, Apr 28, 2011 at 8:49 PM, Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
> On Thu, 28 Apr 2011, Sedat Dilek wrote:
>> On Thu, Apr 28, 2011 at 3:30 PM, Mike Galbraith <efault@xxxxxx> wrote:
>> rt_rq[0]:
>>  .rt_nr_running         : 0
>>  .rt_throttled         Â: 0
>
>>  .rt_time            : 888.893877
>
>>  .rt_time            : 950.005460
>
> So rt_time is constantly accumulated, but never decreased. The
> decrease happens in the timer callback. Looks like the timer is not
> running for whatever reason.
>
> Can you add the following patch as well ?
>
> Thanks,
>
> Â Â Â Âtglx
>
> --- linux-2.6.orig/kernel/sched.c
> +++ linux-2.6/kernel/sched.c
> @@ -172,7 +172,7 @@ static enum hrtimer_restart sched_rt_per
> Â Â Â Â Â Â Â Âidle = do_sched_rt_period_timer(rt_b, overrun);
> Â Â Â Â}
>
> - Â Â Â return idle ? HRTIMER_NORESTART : HRTIMER_RESTART;
> + Â Â Â return HRTIMER_RESTART;
> Â}
>
> Âstatic
>

See tarball.

- Sedat -

Attachment: from-dileks-3.tar.xz
Description: Binary data

Attachment: from-dileks-3.tar.xz.sha256sum
Description: Binary data