[lkml]   [2003]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectO_DIRECT leaks memory on linux-2.6.0-test9

recently I noticed that direct IO causes memory leaks with
The program that causes memory leaks is "fsstress", which is
testcases/kernel/fs/fsstress in ltp-full-20031106.tgz (ftp from

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

$ 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
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:58    [W:0.069 / U:1.484 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site