Re: O_DIRECT leaks memory on linux-2.6.0-test9

From: Andrew Morton
Date: Fri Nov 21 2003 - 03:36:55 EST


Gene Heskett <gene.heskett@xxxxxxxxxxx> wrote:
>
> On Friday 21 November 2003 02:55, Andrew Morton wrote:
> >IWAMOTO Toshihiro <iwamoto@xxxxxxxxxxxxx> wrote:
> >> It'll take a while to leak a noticable amount of memory. So I
> >> reduced the amount of memory using a boot option.
> >
> >Well I'll be darned. I took a new version of fsstress and it
> > happens here too. We're leaking anonymous memory. -mm doesn't do
> > any better, either.
>
> Running 2.6.0-test9-mm4, default as scheduler
>
> That triggerd me to go look at ksysguard, and I've got 70 megs out in
> swap in less than 24 hours uptime with my normal loading. Usually it
> takes me a couple of weeks to get that much as I've half a gig of
> main memory.

That's good. The kernel has given you 70 megs more memory.

> Its also showing about 95 megs free.

free memory isn't really relevant. If there's plenty of `buffers' and
pagecache around then it's mostly reclaimable.

> Would this leak
> show up there (ksysguard), and if so, in what section?

I don't know.

> T'would be nice if xosview were to be made operable, but this kernel
> breaks it. I used to keep it running in the corner of one of my
> screens.

I had a patch for that. Maybe it got merged. You should hunt down the
upstream source and try it out.

For diagnosing this sort of thing it is best to learn to read the /proc
files.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/