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
|