public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* O_DIRECT leaks memory on linux-2.6.0-test9
@ 2003-11-21  6:18 IWAMOTO Toshihiro
  2003-11-21  7:17 ` Andrew Morton
  0 siblings, 1 reply; 10+ messages in thread
From: IWAMOTO Toshihiro @ 2003-11-21  6:18 UTC (permalink / raw)
  To: linux-kernel

Hi,

recently I noticed that direct IO causes memory leaks with
linux-2.6.0-test9.
The program that causes memory leaks is "fsstress", which is
testcases/kernel/fs/fsstress in ltp-full-20031106.tgz (ftp from
http://sourceforge.net/projects/ltp/).

fsstress does various file operations, and I found that the problem is
with the combination of write and dread (O_DIRECT read).
You should be able to reproduce the bug with the following command
line.

$ while true; do ./fsstress -c -d /usr/src/test -z -f write=1 \
 -f dread=1 -f creat=1 -S -n 1000 -p 32; done

The test machine is a quad P3 machine with the following file systems.
/usr/src is an ext3 file system but mounted as an ext2 using mount -t ext2.
$ mount -v
/dev/rd/c0d0p2 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/rd/c0d0p5 on /usr/src type ext2 (rw)


I didn't see memory leaks with the other three combinations of
read+write (dread+dwrite, read+dwrite, and read+write).

Any ideas?
I'll try to debug this next week, but rather like to see the fix
in the meanwhile. :)
--
IWAMOTO Toshihiro

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-12-13 15:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-21  6:18 O_DIRECT leaks memory on linux-2.6.0-test9 IWAMOTO Toshihiro
2003-11-21  7:17 ` Andrew Morton
2003-11-21  7:34   ` IWAMOTO Toshihiro
2003-11-21  7:55     ` Andrew Morton
2003-11-21  8:24       ` Gene Heskett
2003-11-21  8:40         ` Andrew Morton
2003-11-21 14:02           ` Gene Heskett
2003-11-21 14:25             ` Gene Heskett
2003-11-21 14:48               ` Gene Heskett
2003-12-13 15:13   ` Oops on module insertion of 3c509/3c95x Alexander Nyberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox