xfs
[Top] [All Lists]

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

To: Vincent Cassi <cassi@xxxxxxxxxx>
Subject: Re: memory leak when write in a file (with O_DIRECT flag).
From: Steve Lord <lord@xxxxxxx>
Date: 10 Jul 2002 10:22:28 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <3D2C4D10.C9F37CE9@xxxxxxxxxx>
References: <3D2C4D10.C9F37CE9@xxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
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


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