| To: | linux-xfs@xxxxxxxxxxx |
|---|---|
| Subject: | memory leak when write in a file (with O_DIRECT flag). |
| From: | Vincent Cassi <cassi@xxxxxxxxxx> |
| Date: | Wed, 10 Jul 2002 09:04:48 -0600 |
| Sender: | owner-linux-xfs@xxxxxxxxxxx |
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | TAKE - more cleanups, Steve Lord |
|---|---|
| Next by Date: | TAKE - rearrange dmapi mmap event trigger, Dean Roehrich |
| Previous by Thread: | TAKE - more cleanups, Steve Lord |
| Next by Thread: | Re: memory leak when write in a file (with O_DIRECT flag)., Steve Lord |
| Indexes: | [Date] [Thread] [Top] [All Lists] |