xfs
[Top] [All Lists]

Re: memory leak when write in a file (with O_DIRECT flag).

To: linux-xfs@xxxxxxxxxxx
Subject: Re: memory leak when write in a file (with O_DIRECT flag).
From: Vincent Cassi <cassi@xxxxxxxxxx>
Date: Wed, 24 Jul 2002 09:02:28 -0600
Cc: Steve Lord <lord@xxxxxxx>
References: <3D2C4D10.C9F37CE9@xxxxxxxxxx> <1026314548.2644.14.camel@xxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
Steve Lord wrote:

> On Wed, 2002-07-10 at 10:04, Vincent Cassi wrote:
> > Hi,
> >
> >   I have a small program that take a buffer and copy it in a file.
> >   If (and only if) the flag O_DIRECT is given to the open command, a
> > memory leak appeares.
> >   The /proc/meminfo file, show the free memory going down each time that
> > the program is running.
> >
> >   The average of the memory leak is 160 kBytes with a buffer of 80 Meg
> > Bytes.
> >   The buffer is alligned and mlocked before the write.
> >   The system used: Mandrake: 8.2
> >                                    XFS: 2.0.0-1 mdk
> >                                    linux: 2.4.18
> >
> >   What I'm doing wrong ???
> >   Thanks for any help.
> >
> >   Vincent
>
> Is there any chance you can try a cvs kernel, there have been major
> changes in this area since 2.4.18.
>
> Steve
>
> --
>
> Steve Lord                                      voice: +1-651-683-3511
> Principal Engineer, Filesystem Software         email: lord@xxxxxxx

I did new tests with the kernel 2.4.19-rc1 and its corresponding XFS patch.
It looks like the memory leak is still there but a lot smaller.

Thanks,
Vincent




<Prev in Thread] Current Thread [Next in Thread>