t/stest: shrink test size from 128MB
authorJens Axboe <axboe@fb.com>
Tue, 30 Jun 2015 02:27:37 +0000 (20:27 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 30 Jun 2015 02:27:37 +0000 (20:27 -0600)
We reduced the smalloc size, reduce it in the test cases too.

Signed-off-by: Jens Axboe <axboe@fb.com>
t/stest.c

index efb256efa92d106fe1902de36a5bcdfcf4e1adf7..fb51989521ec951c308a578c205c77597d145d59 100644 (file)
--- a/t/stest.c
+++ b/t/stest.c
@@ -30,7 +30,7 @@ static int do_rand_allocs(void)
                srand(MAGIC1);
 #endif
                nr = total = 0;
-               while (total < 128*1024*1024UL) {
+               while (total < 120*1024*1024UL) {
                        size = 8 * sizeof(struct elem) + (int) (999.0 * (rand() / (RAND_MAX + 1.0)));
                        e = smalloc(size);
                        if (!e) {