Skip to content

Commit f3caabe

Browse files
acervmetan-ucw
authored andcommitted
Reduce memory footprint of the dio_read test
The runtest file modified in ac6af27 ("Create dio_read.c test") did require half an hour to complete and used ~3.5GB of RAM, which would trigger OOM on memory constrained systems. This patch reduces both read and write buffer size, as well as the file size, so test will take few minutes to complete and the memory footprint was reduced to ~50MB. Fixes: ac6af27 ("Create dio_read.c test") Signed-off-by: Andrea Cervesato <[email protected]> Acked-by: Martin Doucha <[email protected]> Reviewed-by: Cyril Hrubis <[email protected]>
1 parent 2be2134 commit f3caabe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

runtest/ltp-aiodio.part4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ DIT002 dio_truncate
6262
#Running read_checkzero
6363
#gread_checkzero
6464
#Running dio_read
65-
DOR000 dio_read -n 1 -i 100
66-
DOR001 dio_read -n 10 -i 30
67-
DOR002 dio_read -n 20 -i 15
68-
DOR003 dio_read -n 100 -i 4
65+
DOR000 dio_read -n 1 -i 100 -r 512k -w 512k -s 32M
66+
DOR001 dio_read -n 10 -i 30 -r 512k -w 512k -s 32M
67+
DOR002 dio_read -n 20 -i 15 -r 512k -w 512k -s 32M
68+
DOR003 dio_read -n 100 -i 4 -r 512k -w 512k -s 32M

0 commit comments

Comments
 (0)