Re: O_DIRECT leaks memory on linux-2.6.0-test9

From: Andrew Morton
Date: Fri Nov 21 2003 - 02:20:42 EST


IWAMOTO Toshihiro <iwamoto@xxxxxxxxxxxxx> wrote:
>
> 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

It seems OK here. Please take a copy of /proc/meminfo and /proc/slabinfo.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/